3ds Max C++ API Reference
QmaxDockWidget Class Reference

#include <QmaxDockWidget.h>

+ Inheritance diagram for QmaxDockWidget:

Signals

void orientationChanged (Qt::Orientation orientation)
 Emitted when the dock widget orientation has changed. More...
 

Public Member Functions

 QmaxDockWidget (const QString &objectName, const QString &title, QWidget *parent=nullptr, Qt::WindowFlags flags={})
 
 QmaxDockWidget (QmaxMainWindow::QmaxDockType dockType, const QString &objectName, const QString &title, QWidget *parent=nullptr, Qt::WindowFlags flags={})
 
 QmaxDockWidget (QWidget *parent=nullptr, Qt::WindowFlags flags={})
 
virtual ~QmaxDockWidget () override
 
bool loadCUIContent (const QString &fileName, int startup)
 Loads CUI content from a file into the dock widget. More...
 
void saveCUIContent (const QString &fileName)
 Save CUI content from the dock widget into a file. More...
 
void setMaxDockType (QmaxMainWindow::QmaxDockType dockType)
 Sets the 3ds Max dock type on the dock widget. More...
 
QmaxMainWindow::QmaxDockType maxDockType () const
 Returns the 3ds Max dock type for the widget. More...
 
void setMaxDockFlags (QmaxMainWindow::QmaxDockFlags dockFlags)
 Sets the 3ds Max specific dock flags on the dock widget. More...
 
void addMaxDockFlags (QmaxMainWindow::QmaxDockFlags dockFlags)
 Adds the 3ds Max specific dock flags on the dock widget. More...
 
QmaxMainWindow::QmaxDockFlags maxDockFlags () const
 Returns the 3ds Max specific dock flags for the dock widget. More...
 
Qt::Orientation orientation () const
 Returns the orientation of the dock widget. More...
 
void setOrientation (Qt::Orientation orientation)
 Sets the orientation of the dock widget. More...
 
Qt::DockWidgetArea dockWidgetArea ()
 Returns the docking area of the dock widget in the parent main window layout. More...
 

Protected Member Functions

bool event (QEvent *evt) override
 
void paintEvent (QPaintEvent *evt) override
 
bool nativeEvent (const QByteArray &eventType, void *message, long *result) override
 

Properties

Qt::Orientation orientation
 The orientation of the dock widget. More...
 

Constructor & Destructor Documentation

◆ QmaxDockWidget() [1/3]

QmaxDockWidget ( const QString &  objectName,
const QString &  title,
QWidget *  parent = nullptr,
Qt::WindowFlags  flags = {} 
)
explicit

◆ QmaxDockWidget() [2/3]

QmaxDockWidget ( QmaxMainWindow::QmaxDockType  dockType,
const QString &  objectName,
const QString &  title,
QWidget *  parent = nullptr,
Qt::WindowFlags  flags = {} 
)
explicit

◆ QmaxDockWidget() [3/3]

QmaxDockWidget ( QWidget *  parent = nullptr,
Qt::WindowFlags  flags = {} 
)
explicit

◆ ~QmaxDockWidget()

virtual ~QmaxDockWidget ( )
overridevirtual

Member Function Documentation

◆ loadCUIContent()

bool loadCUIContent ( const QString &  fileName,
int  startup 
)

Loads CUI content from a file into the dock widget.

See also
saveCUIContent()

◆ saveCUIContent()

void saveCUIContent ( const QString &  fileName)

Save CUI content from the dock widget into a file.

See also
loadCUIContent()

◆ setMaxDockType()

void setMaxDockType ( QmaxMainWindow::QmaxDockType  dockType)
inline

Sets the 3ds Max dock type on the dock widget.

Parameters
[in]dockTypeThe dock type of the actual docking content.
See also
maxDockType()
68 { 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 widget.

See also
setMaxDockType()
72 { 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 dock widget.

Parameters
[in]dockFlagsThe 3ds Max specific dock flags.
See also
maxDockFlags(), addMaxDockFlags()
77 { 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 dock widget.

Parameters
[in]dockFlagsThe 3ds Max specific dock flags.
See also
maxDockFlags(), setMaxDockFlags()
83 { 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 dock widget.

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

◆ orientation()

Qt::Orientation orientation ( ) const

Returns the orientation of the dock widget.

See also
setOrientation()

◆ setOrientation()

void setOrientation ( Qt::Orientation  orientation)

Sets the orientation of the dock widget.

See also
orientation()

◆ dockWidgetArea()

Qt::DockWidgetArea dockWidgetArea ( )

Returns the docking area of the dock widget in the parent main window layout.

If dock widget has not been added to a main window, the return value will be Qt::NoDockWidgetArea.

◆ orientationChanged

void orientationChanged ( Qt::Orientation  orientation)
signal

Emitted when the dock widget orientation has changed.

Parameters
orientationThe new dock widget orientation.
See also
orientation(), setOrientation().

◆ event()

bool event ( QEvent *  evt)
overrideprotected

◆ paintEvent()

void paintEvent ( QPaintEvent *  evt)
overrideprotected

◆ nativeEvent()

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

Property Documentation

◆ orientation

Qt::Orientation orientation
readwrite

The orientation of the dock widget.

The orientation property for the dock widget works equivalent to the orientation of the QToolBar. When the QmaxDockWidget is in a QMainWindow docking layout then the orientation will be managed by the system. For the left and right dock area the orientation will be Qt::Vertical. Which means top-down, the title bar is on top of the dock widget. For the top and bottom dock area the orientation will be Qt::Horizontal.

See also
orientation(), setOrientation()