73class SoDialogComponent :
public SoTopComponent
75 SO_DG_HEADER(SoDialogComponent);
153 static void initClass();
154 static void exitClass();
156 virtual void destroyWidget();
157 virtual SoWidget getLabelWidget();
158 virtual void eventNotify(
unsigned int event, uintptr_t param);
159 virtual void updateFromSensor(
SoSensor* sensor);
160 virtual void setLabelSize(
SbVec2i32& size);
161 virtual void setComponentSize(
SbVec2i32 &size);
162 virtual SbVec2i32 getComponentInitSize();
164 virtual void setFocus() {};
165 virtual void changeWidgetEnable(
SbBool state);
166 virtual void resetSize();
168 SoWidget getWidget();
175 SoWidget m_labelWidget;
176 bool m_ownLabelWidget;
178 SoWidget m_componentWidget;
193 virtual void changeLabelVisibility() {};
194 virtual void changeLabelAlignment();
195 virtual void changeEdgeStyle();
196 virtual void updateComponentWidget();
197 virtual void changeEnable();
198 virtual void changeWidth();
199 virtual void changeHeight();
200 virtual void changeMinMaxSize();
205 SbVec2i32 m_initSize;
206 SbVec2i32 m_initMinSize;
207 SbVec2i32 m_initMaxSize;
219 void createComponentWidget(SoWidget parent);
220 void setSize(int32_t sw, int32_t sh, int32_t smw, int32_t smh, int32_t smmw, int32_t smmh);
221 void setDefaultState();
226 static char* DialogComponent;
227 static void change3DSkin();
228 static SbBool isSkinLoaded();
229 static void setSkinLoaded(
SbBool loaded);
231 SO_DG_CATALOG_ENTRY_HEADER(mainCptSeparator);
232 SO_DG_CATALOG_ENTRY_HEADER(edgeStyleSwitch);
233 SO_DG_CATALOG_ENTRY_HEADER(edgeStyleNone);
234 SO_DG_CATALOG_ENTRY_HEADER(edgeStyleShadowIn);
235 SO_DG_CATALOG_ENTRY_HEADER(edgeStyleShadowOut);
237 SoTranslation *componentTranslation;
238 SoTransform *componentTransform;
242 SoScale* componentScale;
243 float m_mComponentCachedDepth;
245 virtual void change3DLabelVisibility() {};
246 virtual void change3DEdgeStyle();
250 void update3DDialogComponent();
251 void create3DDialogComponent();
253 static SbBool m_isSkinLoaded;
256 virtual void getBoundingBox(SoGetBoundingBoxAction* action);