3ds Max C++ API Reference
|
3ds Max Qt Rollup class. More...
#include <QmaxRollup.h>
Public Types | |
enum | Option { NoOptions = 0x0 , DontAutoClose = 0x2 , SaveCat = 0x4 , BorderLess = 0x10 , NoPadding = 0x20 , FixedCat = 0x40 } |
Create options for QmaxRollup. More... | |
Public Slots | |
virtual void | setOpen (bool isOpen=true) |
Sets the open/closed state of the rollup. | |
void | open () |
Sets the state of the rollup to open. | |
void | close () |
Sets the state of the rollup to closed. | |
Signals | |
void | toggled (bool isOpen=false) |
Emitted when the open/close state of the rollup is changed. | |
void | opened () |
Emitted when the rollup is opened. | |
void | closed () |
Emitted when the rollup is closed. | |
Public Member Functions | |
QmaxRollup (int category=ROLLUP_CAT_STANDARD, QWidget *parent=nullptr) | |
Creates a QmaxRollup with no title, with an optionally specified category and parent. | |
QmaxRollup (const QString &title, int category=ROLLUP_CAT_STANDARD, QWidget *parent=nullptr) | |
Creates a QmaxRollup with the specified title, and optional category and parent. | |
virtual | ~QmaxRollup () |
Destructor. | |
Q_DECLARE_FLAGS (Options, Option) | |
void | setOptions (Options options) |
Sets the options for the rollup. | |
Options | options () const |
Returns the options for the rollup. | |
QWidget * | widget () const |
Returns the rollup's widget, or a nullptr if there is none. | |
virtual void | setWidget (QWidget *widget) |
Puts a widget (such as a panel containing other widgets) into the rollup. | |
virtual QWidget * | takeWidget () |
Removes the rollup's widget, and passes ownership of the widget to the caller. | |
bool | isOpen () const |
Returns whether the rollup is open or closed ("rolled up"). | |
QString | title () const |
Returns the rollup's title. | |
void | setTitle (const QString &title) |
Sets the rollup's title. | |
int | category () const |
void | setCategory (int category) |
Sets the rollup's category. | |
void | resetCategory () |
Resets the rollup's category to its original category. | |
QmaxRollupContainer * | container () const |
Returns the container for the rollup. | |
Protected Member Functions | |
QmaxRollup (QmaxRollupPrivate *_d, const QString &title, QWidget *parent=nullptr) | |
virtual void | paintEvent (QPaintEvent *event) override |
virtual void | mousePressEvent (QMouseEvent *event) override |
virtual void | mouseReleaseEvent (QMouseEvent *event) override |
virtual void | mouseMoveEvent (QMouseEvent *event) override |
virtual bool | event (QEvent *event) override |
Q_DECLARE_PRIVATE (QmaxRollup) | |
Properties | |
QString | title |
The rollup title. | |
bool | open |
The rollup open status. | |
int | category |
The rollup category. | |
Friends | |
class | QmaxRollupContainer |
3ds Max Qt Rollup class.
This class provides access to the Qt implementation of the 3ds Max Rollup widget.
It exposes properties such as title and category, so they can be easily set in code or in the Qt Designer.
Rollups are the base containers for other widgets for most plug-ins. They are displayed on the 3ds Max command panel.
enum Option |
Create options for QmaxRollup.
|
explicit |
Creates a QmaxRollup with no title, with an optionally specified category and parent.
category | The category. For third-party plug-ins, this is usually ROLLUP_CAT_STANDARD. |
parent | The widget parent. You typically do not need to supply a parent, unless you are placing the rollup somewhere other than the command panel (such as in a dialog). |
|
explicit |
Creates a QmaxRollup with the specified title, and optional category and parent.
title | The title for the rollup. |
category | The category. For third-party plug-ins, this is usually ROLLUP_CAT_STANDARD. |
parent | The widget parent. You typically do not need to supply a parent, unless you are placing the rollup somewhere other than the command panel (such as in a dialog). |
|
virtual |
Destructor.
|
explicitprotected |
Q_DECLARE_FLAGS | ( | Options | , |
Option | |||
) |
Options options | ( | ) | const |
Returns the options for the rollup.
QWidget * widget | ( | ) | const |
Returns the rollup's widget, or a nullptr if there is none.
|
virtual |
Puts a widget (such as a panel containing other widgets) into the rollup.
The widget becomes a child of the rollup, and will be destroyed when the rollup is deleted or when a new widget is set. If the rollup already contains a widget, it is destroyed.
|
virtual |
bool isOpen | ( | ) | const |
Returns whether the rollup is open or closed ("rolled up").
QString title | ( | ) | const |
Returns the rollup's title.
void setTitle | ( | const QString & | title | ) |
Sets the rollup's title.
title | The title string. |
int category | ( | ) | const |
void resetCategory | ( | ) |
Resets the rollup's category to its original category.
QmaxRollupContainer * container | ( | ) | const |
Returns the container for the rollup.
|
virtualslot |
Sets the open/closed state of the rollup.
isOpen | If true, sets the rollup state to open. |
|
inlineslot |
Sets the state of the rollup to open.
|
signal |
Emitted when the open/close state of the rollup is changed.
isOpen | True when the rollup state is now open. |
|
signal |
Emitted when the rollup is opened.
|
signal |
Emitted when the rollup is closed.
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
|
protected |
|
friend |
|
readwrite |
|
readwrite |