1 #ifndef SOQT_FULLVIEWER_H
2 #define SOQT_FULLVIEWER_H
29 #include <Inventor/Qt/viewers/SoQtViewer.h>
41 BUILD_DECORATION = 0x01,
43 BUILD_ALL = (BUILD_DECORATION | BUILD_POPUP)
46 void setDecoration(
const SbBool on);
47 SbBool isDecoration(
void)
const;
49 void setPopupMenuEnabled(
const SbBool on);
50 SbBool isPopupMenuEnabled(
void)
const;
52 QWidget * getAppPushButtonParent(
void)
const;
53 void addAppPushButton(QWidget * newButton);
54 void insertAppPushButton(QWidget * newButton,
int index);
55 void removeAppPushButton(QWidget * oldButton);
56 int findAppPushButton(QWidget * oldButton)
const;
57 int lengthAppPushButton(
void)
const;
59 QWidget * getRenderAreaWidget(
void)
const;
76 QWidget * buildWidget(QWidget * parent);
78 virtual void buildDecoration(QWidget * parent);
79 virtual QWidget * buildLeftTrim(QWidget * parent);
80 virtual QWidget * buildBottomTrim(QWidget * parent);
81 virtual QWidget * buildRightTrim(QWidget * parent);
82 QWidget * buildAppButtons(QWidget * parent);
83 QWidget * buildViewerButtons(QWidget * parent);
84 virtual void createViewerButtons(QWidget * parent, SbPList * buttonlist);
86 virtual void buildPopupMenu(
void);
87 virtual void setPopupMenuString(
const char * title);
88 virtual void openPopupMenu(
const SbVec2s position);
90 virtual void leftWheelStart(
void);
91 virtual void leftWheelMotion(
float);
92 virtual void leftWheelFinish(
void);
93 float getLeftWheelValue(
void)
const;
94 void setLeftWheelValue(
const float value);
96 virtual void bottomWheelStart(
void);
97 virtual void bottomWheelMotion(
float);
98 virtual void bottomWheelFinish(
void);
99 float getBottomWheelValue(
void)
const;
100 void setBottomWheelValue(
const float value);
102 virtual void rightWheelStart(
void);
103 virtual void rightWheelMotion(
float);
104 virtual void rightWheelFinish(
void);
105 float getRightWheelValue(
void)
const;
106 void setRightWheelValue(
const float value);
108 void setLeftWheelString(
const char *
const name);
109 QWidget * getLeftWheelLabelWidget(
void)
const;
110 void setBottomWheelString(
const char *
const name);
111 QWidget * getBottomWheelLabelWidget(
void)
const;
112 void setRightWheelString(
const char *
const name);
113 const char * getRightWheelString()
const;
114 QWidget * getRightWheelLabelWidget(
void)
const;
146 class SoQtFullViewerP * pimpl;
148 friend class SoGuiFullViewerP;
149 friend class SoQtFullViewerP;
155 #ifdef __COIN_SOXT__ // FIXME: get rid of non-templatized code. 20020108 mortene.
157 Widget buildFunctionsSubmenu(Widget popup);
158 Widget buildDrawStyleSubmenu(Widget popup);
162 SbPList * viewerButtonWidgets;
163 #endif // __COIN_SOXT__
168 #endif // ! SOQT_FULLVIEWER_H