QCAD
Open Source 2D CAD
Loading...
Searching...
No Matches
RCadToolBar.h
Go to the documentation of this file.
1
20#ifndef RCADTOOLBAR_H_
21#define RCADTOOLBAR_H_
22
23#include "gui_global.h"
24
25#include <QToolBar>
26#include <QMetaType>
27
29class QStackedLayout;
30
35class QCADGUI_EXPORT RCadToolBar: public QToolBar {
36Q_OBJECT
37
38public:
39 RCadToolBar(const QString& title, QWidget* parent = 0);
40
41 RCadToolBarPanel* getPanel(const QString& title, const QString& objectName, bool hasBackButton = true);
42
43 RCadToolBarPanel* getCurrentPanel() const;
44 QString getCurrentPanelName() const;
45
46 void showPanel(const QString& name, bool isBack = false);
47
48 void updateIconSize();
49
50public slots:
51 bool back();
52 void toggleVerticalWhenFloating(bool on);
53
54protected:
55 virtual void contextMenuEvent(QContextMenuEvent* event);
56
57
58private:
59 QWidget* widget;
60 QStackedLayout* stackedLayout;
61};
62
64
65#endif
Q_DECLARE_METATYPE(RMath *)
Definition RCadToolBar.h:35
QStackedLayout * stackedLayout
Definition RCadToolBar.h:60
QWidget * widget
Definition RCadToolBar.h:59
Definition RCadToolBarPanel.h:37
#define QCADGUI_EXPORT
Definition gui_global.h:10