]> Shamusworld >> Repos - architektonas/blob - src/forms/cadtoolbar.h
Bugfixes related to removing Snapper class.
[architektonas] / src / forms / cadtoolbar.h
1 #ifndef __CADTOOLBAR_H__
2 #define __CADTOOLBAR_H__
3
4 #include <QtGui>
5
6 class ActionInterface;
7 class ActionHandler;
8 class CadToolBarSplines;
9 class CadToolBarInfo;
10 class CadToolBarMain;
11 class CadToolBarDim;
12 class CadToolBarLines;
13 class CadToolBarPoints;
14 class CadToolBarEllipses;
15 class CadToolBarArcs;
16 class CadToolBarModify;
17 class CadToolBarCircles;
18 class CadToolBarSnap;
19 class CadToolBarSelect;
20 class CadToolBarPolylines;
21
22 class CadToolBar: public QWidget
23 {
24         Q_OBJECT
25
26         public:
27                 CadToolBar(QWidget * parent = 0, Qt::WindowFlags flags = 0);
28                 ~CadToolBar();
29
30                 ActionHandler * getActionHandler();
31
32         public slots:
33                 void back();
34                 void forceNext();
35                 void mouseReleaseEvent(QMouseEvent * e);
36                 void contextMenuEvent(QContextMenuEvent * e);
37                 void createSubToolBars(ActionHandler * ah);
38                 void showToolBar(int id);
39                 void showToolBarMain();
40                 void showToolBarPoints();
41                 void showToolBarLines();
42                 void showToolBarArcs();
43                 void showToolBarEllipses();
44                 void showToolBarSplines();
45                 void showToolBarPolylines();
46                 void showToolBarCircles();
47                 void showToolBarInfo();
48                 void showToolBarModify();
49                 void showToolBarSnap();
50                 void showToolBarDim();
51                 void showToolBarSelect();
52                 void showToolBarSelect(ActionInterface * selectAction, int nextAction);
53                 QToolButton * CreateBackButton(QWidget *);
54                 QToolButton * CreateToolButton(QAction * action);
55
56         signals:
57                 void signalBack();
58                 void signalNext();
59
60         protected:
61                 ActionHandler * actionHandler;
62                 QWidget * currentTb;
63                 CadToolBarSplines * tbSplines;
64                 CadToolBarInfo * tbInfo;
65                 CadToolBarMain * tbMain;
66                 CadToolBarDim * tbDim;
67                 CadToolBarLines * tbLines;
68                 CadToolBarPoints * tbPoints;
69                 CadToolBarEllipses * tbEllipses;
70                 CadToolBarArcs * tbArcs;
71                 CadToolBarModify * tbModify;
72                 CadToolBarCircles * tbCircles;
73                 CadToolBarSnap * tbSnap;
74                 CadToolBarSelect * tbSelect;
75                 CadToolBarPolylines * tbPolylines;
76 };
77
78 #endif  // __CADTOOLBAR_H__