ImFusion SDK 4.3
ViewLayoutWidget Class Reference

#include <ImFusion/GUI/ViewLayoutWidget.h>

The ViewLayoutWidget class provides controls to show/hide views and change the layout. More...

+ Inheritance diagram for ViewLayoutWidget:

Detailed Description

The ViewLayoutWidget class provides controls to show/hide views and change the layout.

It automatically adapts to the features of the layout e.g. disables the 'Show 3D View' button if the layout does not support the 3D view.

Public Slots

void setLayoutMode (DisplayWidgetMulti::LayoutMode mode)
 
- Public Slots inherited from ExpandableGroupBox
void expand ()
 Expands the group box.
 
void collapse ()
 Collapses the group box.
 
void setExpanded (bool expanded)
 Expands or collapses the group box (default: expanded)
 
void setResizable (bool isResizable)
 Makes the group box vertical resizable (default: disabled)
 
void setTitle (const QString &title)
 Sets the title of the group box.
 
void setIcon (const QIcon &icon)
 Sets the icon of the group box.
 
void clearAndDeleteLater ()
 
void setVisible (bool visible) override
 
void addAction (QAction *action)
 Adds a new action to the right side of the expand/collapse button.
 
void removeAction (QAction *action)
 Removes an action that was previously added with addAction.
 
std::vector< QAction * > actions ()
 Lists all actions.
 
void addPage (QWidget *widget)
 Calls setWidget if no containing widget is set, does nothing otherwise (required by the Qt designer plugin)
 

Public Member Functions

 ViewLayoutWidget (MainWindowBase *mw)
 
- Public Member Functions inherited from ExpandableGroupBox
 ExpandableGroupBox (QWidget *parent=0)
 Creates an empty group box.
 
QSize sizeHint () const override
 
void setWidget (QWidget *widget)
 Sets the contained widget.
 
QWidget * widget ()
 Returns the contained widget if any or nullptr otherwise.
 
QString title () const
 
QIcon icon () const
 
bool isExpanded () const
 
bool isResizable () const
 
void setCollapsible (bool collapsible)
 Sets if box is collapsible.
 
bool isCollapsible ()
 Returns if box is collapsible.
 
void setDraggable (bool value)
 Sets the flag whether the box is draggable with the mouse when clicking on the top button.
 
bool isDraggable () const
 Returns the flag whether the box is draggable with the mouse when clicking on the top button.
 
int count () const
 Returns 1 if widget is set, 0 otherwise (required by the Qt designer plugin)
 
int currentIndex () const
 Returns 0 (required by the Qt designer plugin)
 

Additional Inherited Members

- Signals inherited from ExpandableGroupBox
void expansionChanged (bool expanded)
 
void resizableChanged (bool isResizable)
 
void titleChanged (QString title)
 
void iconChanged (QIcon icon)
 
void actionAdded (QAction *action)
 
void actionRemoved (QAction *action)
 
- Properties inherited from ExpandableGroupBox
QString title
 
QIcon icon
 
bool expanded
 
bool resizable
 

The documentation for this class was generated from the following file:
Search Tab / S to search, Esc to close