53# include <Inventor/Qt/SoQt.h>
55# include <Inventor/Win/SoXt2SoWin.h>
56# include <Inventor/Win/SoWin.h>
64#include <Inventor/SbBasic.h>
65#include <Inventor/SbLinear.h>
66#include <Inventor/Xt/SoXtDef.h>
67#include <Inventor/Xt/SoXtLocalisation.h>
68#include <Inventor/Xt/SoInventorXtLibName.h>
70#include <Inventor/SoModule.h>
71SO_MODULE_HEADER(SoInventorXt, __INVENTORXTDLL)
74class SoXtEventHandler;
109 static SoWidget
init(
const char *appName,
118 static void init(SoWidget topLevelWidget);
214 static void exit(
int returnCode = 0);
221 { XtAppNextEvent(appContext, event); }
252 static void show(SoWidget widget);
258 static void hide(SoWidget widget);
303 char *errorStr1,
char *errorStr2 = NULL);
341 static void addExtensionEventHandler(SoWidget w,
342 int extensionEventType,
345 static void removeExtensionEventHandler(SoWidget w,
346 int extensionEventType,
354 static SoWidget getwidget(
unsigned int whatisit );
357 static void canExit(
SbBool ce);
359 static void setEventHandler();
361 static SoXtEventHandler *eventHandler;
364 static void getExtensionEventHandler(
367 XtEventHandler &proc,
375 static void activeLoop();
377 static int s_returnCode;
379 static SoWidget mainWidget;
380 static bool m_internalApp;
387 static SoWidget label[155];
389 static void localisationlabel(SoWidget parent);
393 static void setupInventorGLDisplay();
395 static int s_initRefCount;
396 static const char *s_versionString;
List of generic (void *) pointers.
Abstract base class for all actions.
Routines for Open Inventor/Xt compatibility.
static void registerColormapLoad(SoWidget widget, SoWidget shell)
Convenience routine which will register map/unmap callbacks to load and unload the pulldown menu colo...
static void getPopupArgs(Display *d, int scr, ArgList args, int *n)
Convenience routine which gets visual args for the popup planes.
static void exit(int returnCode=0)
Tells the main event loop to exit with a return code.
static Boolean dispatchEvent(XEvent *event)
Dispatches the passed event to a handler.
static int mainLoop()
Enters the main event loop and waits until exit() is called.
static void nextEvent(XtAppContext appContext, XEvent *event)
Gets the nextEvent by calling XtAppNextEvent().
static XtAppContext getAppContext()
This method is included for portability only.
static void removeColormapFromShell(SoWidget widget, SoWidget shell)
Convenience routine to remove the given widget colormap from the supplied shell widget.
static void createSimpleErrorDialog(SoWidget widget, char *dialogTitle, char *errorStr1, char *errorStr2=NULL)
Convenience routine which brings a simple Xt error dialog box displaying the given error string(s) an...
static XmString encodeString(char *s)
Convenience routine for encoding a character string as an XmString .
static void show(SoWidget widget)
Convenience routine to show the passed widget.
static bool isInitialized()
Returns TRUE if SoXt module is currently initialized.
static SoWidget getShellWidget(SoWidget w)
Convenience routine which will return the topmost window containing the given widget.
static void hide(SoWidget widget)
Convenience routine to hide the passed widget.
static SoDEPRECATED SoWidget threadInit(const char *appName, const char *className="Inventor")
static void finish()
Frees Open Inventor's internal static memory allocations.
static void init(SoWidget topLevelWidget)
This alternate form of init allows the application to initialize Xt.
static SoWidget init(const char *appName, const char *className="Inventor")
This is called to initialize Open Inventor and Xt, and bind Open Inventor with X events handling so t...
static SbVec2s getWidgetSize(SoWidget w)
Convenience routine to get the size of the given window.
static void setWidgetSize(SoWidget w, const SbVec2s &size)
Convenience routine to set the size of the given window.
static void addColormapToShell(SoWidget widget, SoWidget shell)
Convenience routine to insert the given widget colormap onto the supplied shell widget.
static SoWidget getTopLevelWidget()
Returns information based on the initial widget returned by or passed to init.
static Display * getDisplay()
This method is included for portability only.
static SoDEPRECATED void threadInit(SoWidget topLevelWidget)
static char * decodeString(XmString xs)
Convenience routine for decoding an XmString back to a character string.
struct _XtAppStruct * XtAppContext