3ds Max C++ API Reference
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
QmaxRollupContainer Class Reference

#include <QmaxRollupContainer.h>

+ Inheritance diagram for QmaxRollupContainer:

Public Member Functions

 QmaxRollupContainer (QWidget *parent=nullptr)
 
virtual ~QmaxRollupContainer ()
 
void addRollup (QmaxRollup *rollup)
 
void insertRollup (QmaxRollup *rollup, int index)
 
int numRollups () const
 
QmaxRolluprollup (int index) const
 
QVector< QmaxRollup * > rollups () const
 
int indexOf (QmaxRollup *rollup) const
 
void resetCategories ()
 Resets the categories of the rollups back to the default state.
 
QmaxRolluptakeRollup (int index)
 
void takeRollup (QmaxRollup *rollup)
 
void sortRollups ()
 Sorts the rollups by category.
 
virtual void openAllRollups ()
 
virtual void closeAllRollups ()
 
virtual void addRightClickAction (QAction *action)
 Adds a QAction that get used within the right-click context menu of the rollup-container.
 
virtual void removeRightClickAction (QAction *action)
 Remove a QAction that from used within the right-click context menu of the rollup-container.
 
QSize minimumSizeHint () const override
 
bool canScroll () const
 

Protected Member Functions

 QmaxRollupContainer (QmaxRollupContainerPrivate *d, QWidget *parent=nullptr)
 
void mouseMoveEvent (QMouseEvent *event) override
 
void mousePressEvent (QMouseEvent *event) override
 
void mouseReleaseEvent (QMouseEvent *event) override
 
void wheelEvent (QWheelEvent *event) override
 
void contextMenuEvent (QContextMenuEvent *event) override
 
void dragEnterEvent (QDragEnterEvent *event) override
 
void dragMoveEvent (QDragMoveEvent *event) override
 
void dragLeaveEvent (QDragLeaveEvent *event) override
 
void dropEvent (QDropEvent *event) override
 
 Q_DECLARE_PRIVATE (QmaxRollupContainer)
 

Friends

class QmaxRollup
 

Constructor & Destructor Documentation

◆ QmaxRollupContainer() [1/2]

QmaxRollupContainer ( QWidget *  parent = nullptr)
explicit

◆ ~QmaxRollupContainer()

virtual ~QmaxRollupContainer ( )
virtual

◆ QmaxRollupContainer() [2/2]

QmaxRollupContainer ( QmaxRollupContainerPrivate *  d,
QWidget *  parent = nullptr 
)
explicitprotected

Member Function Documentation

◆ addRollup()

void addRollup ( QmaxRollup rollup)

◆ insertRollup()

void insertRollup ( QmaxRollup rollup,
int  index 
)

◆ numRollups()

int numRollups ( ) const

◆ rollup()

QmaxRollup * rollup ( int  index) const

◆ rollups()

QVector< QmaxRollup * > rollups ( ) const

◆ indexOf()

int indexOf ( QmaxRollup rollup) const

◆ resetCategories()

void resetCategories ( )

Resets the categories of the rollups back to the default state.

Calls sortRollups() internally.

See also
sortRollups, QmaxRollup::category(), QmaxRollup::resetCategory()

◆ takeRollup() [1/2]

QmaxRollup * takeRollup ( int  index)

◆ takeRollup() [2/2]

void takeRollup ( QmaxRollup rollup)

◆ sortRollups()

void sortRollups ( )

Sorts the rollups by category.

Sorts the rollups in based on ascending category. Rollups with the same category will appear in the given order.

See also
QmaxRollup.category()

◆ openAllRollups()

virtual void openAllRollups ( )
virtual

◆ closeAllRollups()

virtual void closeAllRollups ( )
virtual

◆ addRightClickAction()

virtual void addRightClickAction ( QAction *  action)
virtual

Adds a QAction that get used within the right-click context menu of the rollup-container.

The rollup container does not take ownership of the QAction. To remove an action, call removeRightClickAction() or simply delete the QAction on callers side.

See also
removeRightClickAction, QAction

◆ removeRightClickAction()

virtual void removeRightClickAction ( QAction *  action)
virtual

Remove a QAction that from used within the right-click context menu of the rollup-container.

See also
addRightClickAction, QAction

◆ minimumSizeHint()

QSize minimumSizeHint ( ) const
override

◆ canScroll()

bool canScroll ( ) const

◆ mouseMoveEvent()

void mouseMoveEvent ( QMouseEvent *  event)
overrideprotected

◆ mousePressEvent()

void mousePressEvent ( QMouseEvent *  event)
overrideprotected

◆ mouseReleaseEvent()

void mouseReleaseEvent ( QMouseEvent *  event)
overrideprotected

◆ wheelEvent()

void wheelEvent ( QWheelEvent *  event)
overrideprotected

◆ contextMenuEvent()

void contextMenuEvent ( QContextMenuEvent *  event)
overrideprotected

◆ dragEnterEvent()

void dragEnterEvent ( QDragEnterEvent *  event)
overrideprotected

◆ dragMoveEvent()

void dragMoveEvent ( QDragMoveEvent *  event)
overrideprotected

◆ dragLeaveEvent()

void dragLeaveEvent ( QDragLeaveEvent *  event)
overrideprotected

◆ dropEvent()

void dropEvent ( QDropEvent *  event)
overrideprotected

◆ Q_DECLARE_PRIVATE()

Q_DECLARE_PRIVATE ( QmaxRollupContainer  )
protected

Friends And Related Function Documentation

◆ QmaxRollup

friend class QmaxRollup
friend