80class SOQT_DLL_API SoQt
84 static QWidget*
init(
const char * appname,
const char * classname =
"SoQt");
85 static QWidget*
init(
int & argc,
char ** argv,
86 const char * appname,
const char * classname =
"SoQt");
87 static void init(QWidget* toplevelwidget);
91 static void done(
void);
96 static void show(QWidget*
const widget);
97 static void hide(QWidget*
const widget);
99 static void setWidgetSize(QWidget*
const widget,
const SbVec2s size);
104 const char * string1,
105 const char * string2 = NULL);
124 static SbBool
isCompatible(
unsigned int major,
unsigned int minor);
127 static ABIType getABIType(
void);
129 static void lockGL(
void);
130 static void unlockGL(
void);
148 static void doIdleTasks(
void);
153 static void nextEvent(XtAppContext, XEvent *);
154 static Boolean dispatchEvent(XEvent * event);
155 static XtAppContext getAppContext(
void);
156 static Display * getDisplay(
void);
157 static XmString encodeString(
const char *
const str);
158 static char * decodeString(XmString xstring);
159 static void getPopupArgs(Display * display,
int screen,
160 ArgList args,
int * n);
162 static void registerColormapLoad(Widget widget, Widget shell);
163 static void addColormapToShell(Widget widget, Widget shell);
164 static void removeColormapFromShell(Widget widget, Widget shell);
166 static void addExtensionEventHandler(Widget widget,
167 int eventType, XtEventHandler proc,
168 XtPointer clientData);
169 static void removeExtensionEventHandler(Widget widget,
170 int eventType, XtEventHandler proc,
171 XtPointer clientData);
174 static void getExtensionEventHandler(XEvent * event, Widget & widget,
175 XtEventHandler & proc,
176 XtPointer & clientData);
181 friend class SoGtkComponent;
182 enum SoGtkComponentAction { CREATION, DESTRUCTION, CHANGE };
183 typedef void SoGtkComponentActionCallback(SoGtkComponent *, SoGtk::SoGtkComponentAction,
void *);
185 static void addComponentActionCallback(SoGtkComponentActionCallback *,
void *);
186 static void removeComponentActionCallback(SoGtkComponentActionCallback *,
void *);
188 static int getComponents(SbPList & components);
191 static void invokeComponentActionCallbacks(SoGtkComponent * component,
192 SoGtkComponentAction action);
194 static gint componentCreation(SoGtkComponent * component);
195 static gint componentDestruction(SoGtkComponent * component);
196 static gint componentChange(SoGtkComponent * component);
199 static gint timerSensorCB(gpointer data);
200 static gint idleSensorCB(gpointer data);
201 static gint delaySensorCB(gpointer data);
203 static GtkWidget * mainWidget;
204 static SbPList * components;
205 static SbPList * component_callbacks;
static QWidget * init(const char *appname, const char *classname="SoQt")
Definition SoQtCommon.cpp:173
static void getVersionInfo(int *major=NULL, int *minor=NULL, int *micro=NULL)
Definition SoQtCommon.cpp:317