57#ifndef _SO_XT_COMPONENT_H_
58#define _SO_XT_COMPONENT_H_
60#include <X11/Intrinsic.h>
253 SoNONUNICODE
void setTitle(
const char* newTitle );
268 return m_guiComponent->getTitle(); }
292 return m_guiComponent->getIconTitle(); }
305 { windowCloseFunc = func; windowCloseData = data; }
318 return m_guiComponent->getWidgetName(); }
325 return m_guiComponent->getClassName(); }
362 const char* name = NULL,
378 void setClassName(
const SbString &n ) { m_guiComponent->setClassName( n ); }
386 virtual void windowCloseAction();
391 virtual void afterRealizeHook();
401 virtual SbString getDefaultWidgetName()
const;
402 virtual SbString getDefaultTitle()
const;
403 virtual SbString getDefaultIconTitle()
const;
419 void unregisterWidget(
SoWidget w );
437 void openHelpCard(
const char* cardName );
440 static SbString getlabel(
unsigned int whatisit );
446 void constructorCommon(
SoWidget parent,
const char* name,
SbBool buildInsideParent,
SbBool sync );
449 SbBool callWebBrowser(
const char* url )
const;
455 virtual void widgetDestroyed();
464 SbBool ShellMapped, widgetMapped;
466 void checkForVisibilityChange();
473 void* windowCloseData;
478 static SbDict* widgetDictionary;
481 Dimension posX, posY, width, height;
482 int m_decorationHints;
493 return (_baseWidget != NULL ?
XtDisplay(_baseWidget) : NULL);
#define TRUE
Possible value of SbBool.
virtual SbGlContextHelper::Display getDisplay()=0
Returns the Display corresponding to this graphics device.
UINT * XtDisplay(SoWidget w)
#define SoXtComponentVisibilityCB
void SoXtComponentCB(void *data, SoXtComponent *v)
void SoXtComponentVisibilityCB(void *data, SbBool b)
Class for smart character strings.
Manages a list of callbacks and associated data.
Abstract base class for all Open Inventor components.
SbBool isFullScreen(void) const
Queries if the viewer is in fullscreen mode.
SbVec2s getSize()
Convenience routine on the widget.
void setSize(const SbVec2s &size)
Convenience routine on the widget.
SoWidget getShellWidget() const
Returns the shell widget (NULL if the shell hasn't been created by this component).
void setWindowCloseCallback(SoXtComponentCB *func, void *data=NULL)
Sets which callback to call when the user closes this component (double click in the upper left corne...
virtual void show()
This shows the component.
static SoXtComponent * getComponent(SoWidget w)
This returns the SoXtComponent for this widget.
void setFullScreenEnable(const SbBool enable)
Enables/disables fullscreen mode.
SbString getClassName() const
Returns the class name.
SbString getWidgetName() const
Returns the widget name.
SoNONUNICODE void setIconTitle(const char *newIconTitle)
Sets icon title.
SbString getTitle() const
Gets window title.
Display * getDisplay()
Returns the X display associated with this components widget.
static void displayHelp(const char *filename, UINT contextID)
Static method to display the specified topic of the specified help file.
SbBool isVisible()
Returns TRUE if this component is mapped onto the screen.
SoWidget getWidget() const
This returns the base widget for this component.
SbBool isFullScreenEnable() const
Queries if it is possible to put the viewer in fullscreen mode.
SoWidget getParentWidget() const
Returns the parent widget, be it a shell or not.
SoNONUNICODE void setTitle(const char *newTitle)
Sets window title.
SbBool isTopLevelShell() const
Returns TRUE if this component is a top level shell component (has its own window).
SbString getIconTitle() const
Gets icon title.
SbBool setFullScreen(const SbBool enable)
Switches the viewer into (or out of) fullscreen mode.
void setIconTitle(const SbString &newIconTitle)
Sets icon title.
virtual void hide()
This hides the component.
void setTitle(const SbString &newTitle)
Sets window title.