2 * NewGeom_NestedButton.h
4 * Created on: Apr 13, 2015
8 #ifndef SRC_NEWGEOM_NEWGEOM_NESTEDBUTTON_H_
9 #define SRC_NEWGEOM_NEWGEOM_NESTEDBUTTON_H_
11 #include <QWidgetAction>
20 * Custom (nested) button in salome mode.
22 class NewGeom_NestedButton : public QWidgetAction
26 NewGeom_NestedButton(QObject *parent, const QList<QAction*>& theNestedActions);
27 virtual ~NewGeom_NestedButton();
30 /// Shows/hides the additional buttons widget
31 void showAdditionalButtons(bool);
32 void actionStateChanged();
35 /// Creates the button representation
36 virtual QWidget * createWidget(QWidget * theParent);
39 QList<QAction*> myNestedActions; ///< list of nested actions
40 QWidget* myAdditionalButtonsWidget; ///< widget to precess additional buttons visibility
41 QFrame* myButtonFrame; ///< frame arround button representation
42 QToolButton* myThisButton; ///< main button
45 #endif /* SRC_NEWGEOM_NEWGEOM_NESTEDBUTTON_H_ */