3ds Max C++ API Reference
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
QmaxToolBar Class 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>

+ Inheritance diagram for QmaxToolBar:

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
 

Detailed Description

This class is used by 3ds Max for the docking toolbars and should be used as replacement for the standard QToolBar.

Constructor & Destructor Documentation

◆ QmaxToolBar()

QmaxToolBar ( const QString &  objectName,
const QString &  title,
QWidget *  parent = nullptr 
)
explicit

◆ ~QmaxToolBar()

virtual ~QmaxToolBar ( )
overridevirtual

Member Function Documentation

◆ loadCUIContent()

bool loadCUIContent ( const QString &  fileName,
int  startup 
)

Loads CUI content from a file into the toolbar.

See also
saveCUIContent()

◆ saveCUIContent()

void saveCUIContent ( const QString &  fileName)

Save CUI content from the toolbar into a file.

See also
loadCUIContent()

◆ setMaxDockType()

void setMaxDockType ( QmaxMainWindow::QmaxDockType  dockType)
inline

Sets the 3ds Max dock type on the toolbar.

Parameters
[in]dockTypeThe dock type of the actual docking content.
See also
maxDockType()
58{ QmaxMainWindow::setMaxDockType( this, dockType ); }
static void setMaxDockType(QWidget *widget, QmaxDockType dockType)
Sets the 3ds Max dock type on a QToolBar or QDockWidget.

◆ maxDockType()

QmaxMainWindow::QmaxDockType maxDockType ( ) const
inline

Returns the 3ds Max dock type for the toolbar.

See also
setMaxDockType()
62{ return QmaxMainWindow::maxDockType( this ); }
static QmaxDockType maxDockType(const QWidget *widget)
Returns the 3ds Max dock type for a QToolBar or QDockWidget.

◆ setMaxDockFlags()

void setMaxDockFlags ( QmaxMainWindow::QmaxDockFlags  dockFlags)
inline

Sets the 3ds Max specific dock flags on the toolbar.

Parameters
[in]dockFlagsThe 3ds Max specific dock flags.
See also
maxDockFlags(), addMaxDockFlags()
67{ QmaxMainWindow::setMaxDockFlags( this, dockFlags ); }
static void setMaxDockFlags(QWidget *widget, QmaxDockFlags dockFlags)
Sets the 3ds Max specific dock flags on a QToolBar or QDockWidget.

◆ addMaxDockFlags()

void addMaxDockFlags ( QmaxMainWindow::QmaxDockFlags  dockFlags)
inline

Adds the 3ds Max specific dock flags on the toolbar.

Parameters
[in]dockFlagsThe 3ds Max specific dock flags.
See also
maxDockFlags(), setMaxDockFlags()
73{ QmaxMainWindow::addMaxDockFlags( this, dockFlags ); }
static void addMaxDockFlags(QWidget *widget, QmaxDockFlags dockFlags)
Adds the 3ds Max specific dock flags on a QToolBar or QDockWidget.
Definition: QmaxMainWindow.h:134

◆ maxDockFlags()

QmaxMainWindow::QmaxDockFlags maxDockFlags ( ) const
inline

Returns the 3ds Max specific dock flags for the toolbar.

See also
setMaxDockFlags(), addMaxDockFlags()
77{ return QmaxMainWindow::maxDockFlags( this ); }
static QmaxDockFlags maxDockFlags(const QWidget *widget)
Returns the 3ds Max specific dock flags for a QToolBar or QDockWidget.

◆ setWidget()

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.

Parameters
[in]widgetThe widget that should be set to the toolbar.
See also
widget()

◆ widget()

QWidget * widget ( ) const

Returns the widget for the toolbar.

The function returns a nullptr no widget has been set.

See also
setWidget()

◆ event()

bool event ( QEvent *  evt)
overrideprotected

◆ nativeEvent()

bool nativeEvent ( const QByteArray &  eventType,
void message,
qintptr *  result 
)
overrideprotected