44#include <QApplication>
56#if !defined(InventorQt_EXPORTS)
57#ifndef OIV_DISABLE_AUTOLINK
58# pragma comment(lib,__INVENTORQTLIB)
64class SoQtSensorHandler;
104 SoNONUNICODE
static QWidget *
init(
const char *appName,
const char *
className =
"Inventor");
121 static void init( QWidget *topLevelWidget );
144 static void show(QWidget *widget);
150 static void hide(QWidget *widget);
169 static void exit(
int returnCode = 0);
213 char *errorStr1,
char *errorStr2 = NULL);
299 static QPointer<QWidget> mainWidget;
300 static QPointer<QApplication> qapplication;
301 static QApplication *getQApp() {
return qapplication;};
306 static void addExtensionEventHandler(QWidget *w,
307 int extensionEventType,
310 static void removeExtensionEventHandler(QWidget *w,
311 int extensionEventType,
315 static void getExtensionEventHandler(
XEvent *event, QWidget *w,
321 static SoQtSensorHandler *sensorHandler;
329 static void setupInventorGLDisplay();
331 static int s_returnCode;
334 static int OIVExtensionEventNumber;
335 static int s_initRefCount;
336 static const char *s_versionString;
337 static SbBool s_ownTopLevelWindow;
338 static SbBool s_ownApplication;
339 static int s_defaultArgc;
340 static char** s_defaultArgv;
344#define SoQtButton QToolButton
346#define SoQtButton QPushButton
struct _XtAppStruct * XtAppContext
List of generic (void *) pointers.
Class for smart character strings.
Abstract base class for all actions.
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Routines for Ope...
SoDEPRECATED static SoNONUNICODE QWidget * threadInit(const char *appName, const char *className="Inventor")
Non Unicode: This function should not be used in a Unicode application.
static void exit(int returnCode=0)
Tells the main event loop to exit with a return code.
static void show(QWidget *widget)
Convenience routine to show the passed widget handle.
static bool isInitialized()
Returns TRUE if SoQt module is currently initialized.
static int getExtensionEventNumber()
Returns the type number of the Open Inventor extension QCustomEvent.
static void createSimpleErrorDialog(QWidget *widget, const SbString &sdialogTitle, const SbString &errorStr1, const SbString &errorStr2="")
Convenience routine which brings a simple Qt error dialog box displaying the given error string(s) an...
static SoDEPRECATED QWidget * threadInit(const SbString &appName, const SbString &className="Inventor")
static void hide(QWidget *widget)
Convenience routine to hide the passed widget handle.
static SbGlContextHelper::GLContext getAppContext()
This method is included for portability only.
static SbGlContextHelper::Display getDisplay()
This method is included for portability only.
static SoDEPRECATED void threadInit(QWidget *topLevelWidget)
static int mainLoop()
Enters the main event loop and waits until exit() is called or QCoreApplication::exit() is called.
static QWidget * getTopLevelWidget()
Returns information based on the initial QWidget handle returned by or passed to init.
static SbVec2s getWidgetSize(QWidget *widget)
Convenience routine to get the size of the given widget.
static SoNONUNICODE void createSimpleErrorDialog(QWidget *widget, char *dialogTitle, char *errorStr1, char *errorStr2=NULL)
Convenience routine which brings a simple Qt error dialog box displaying the given error string(s) an...
static SoNONUNICODE QWidget * init(const char *appName, const char *className="Inventor")
This is called to initialize Open Inventor and Qt, and bind Open Inventor with Qt message handling so...
static QWidget * init(const SbString &appName, const SbString &className="Inventor")
This is called to initialize Open Inventor and Qt, and bind Open Inventor with Qt message handling so...
static void finish()
Frees Open Inventor's internal static memory allocations.
static Boolean dispatchEvent(XEvent *)
This method is included for portability only.
static void init(QWidget *topLevelWidget)
This alternate form of init allows the application to initialize Qt.
static void nextEvent(XtAppContext appContext, XEvent *event)
This method is included for portability only.
static void setWidgetSize(QWidget *widget, const SbVec2s &size)
Convenience routine to set the size of the given widget.