3ds Max C++ API Reference
|
This class is used by 3ds Max for the docking toolbars and should be used as replacement for the standard QToolBar. More...
#include <QmaxToolBar.h>
Public Member Functions | |
QmaxToolBar (const QString &objectName, const QString &title, QWidget *parent=nullptr) | |
virtual | ~QmaxToolBar () override |
bool | loadCUIContent (const QString &fileName, int startup) |
Loads CUI content from a file into the toolbar. | |
void | saveCUIContent (const QString &fileName) |
Save CUI content from the toolbar into a file. | |
void | setMaxDockType (QmaxMainWindow::QmaxDockType dockType) |
Sets the 3ds Max dock type on the toolbar. | |
QmaxMainWindow::QmaxDockType | maxDockType () const |
Returns the 3ds Max dock type for the toolbar. | |
void | setMaxDockFlags (QmaxMainWindow::QmaxDockFlags dockFlags) |
Sets the 3ds Max specific dock flags on the toolbar. | |
void | addMaxDockFlags (QmaxMainWindow::QmaxDockFlags dockFlags) |
Adds the 3ds Max specific dock flags on the toolbar. | |
QmaxMainWindow::QmaxDockFlags | maxDockFlags () const |
Returns the 3ds Max specific dock flags for the toolbar. | |
void | setWidget (QWidget *widget) |
Sets the widget for the toolbar. | |
QWidget * | widget () const |
Returns the widget for the toolbar. | |
Protected Member Functions | |
bool | event (QEvent *evt) override |
bool | nativeEvent (const QByteArray &eventType, void *message, qintptr *result) override |
This class is used by 3ds Max for the docking toolbars and should be used as replacement for the standard QToolBar.
|
explicit |
|
overridevirtual |
bool loadCUIContent | ( | const QString & | fileName, |
int | startup | ||
) |
Loads CUI content from a file into the toolbar.
void saveCUIContent | ( | const QString & | fileName | ) |
Save CUI content from the toolbar into a file.
|
inline |
Sets the 3ds Max dock type on the toolbar.
[in] | dockType | The dock type of the actual docking content. |
|
inline |
Returns the 3ds Max dock type for the toolbar.
|
inline |
Sets the 3ds Max specific dock flags on the toolbar.
[in] | dockFlags | The 3ds Max specific dock flags. |
|
inline |
Adds the 3ds Max specific dock flags on the toolbar.
[in] | dockFlags | The 3ds Max specific dock flags. |
|
inline |
Returns the 3ds Max specific dock flags for the toolbar.
void setWidget | ( | QWidget * | widget | ) |
Sets the widget for the toolbar.
This method is a convenience function for toolbars that host only one widget like a QWinHost. 3ds Max uses it for putting a QmaxDockingWinHost which hosts a legacy win32 toolbar into the QToolBar.
[in] | widget | The widget that should be set to the toolbar. |
QWidget * widget | ( | ) | const |
Returns the widget for the toolbar.
The function returns a nullptr no widget has been set.
|
overrideprotected |
|
overrideprotected |