FGx  1
xgroupboxes.h
1 // -=-=-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-
2 // FGx FlightGear Launcher // xgroupboxes.h
3 // -=-=-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-
4 // (c) 2010-2012
5 // Yves Sablonier, Pete Morgan
6 // Geoff McLane
7 // GNU GPLv2, see main.cpp and shipped licence.txt for further information
8 
9 #ifndef XGROUPBOXES_H
10 #define XGROUPBOXES_H
11 
12 #include <QGroupBox>
13 #include <QVBoxLayout>
14 #include <QHBoxLayout>
15 #include <QBoxLayout>
16 #include <QGridLayout>
17 
19 class XGroupVBox : public QGroupBox
20 {
21 Q_OBJECT
22 public:
23  explicit XGroupVBox(QString title, QWidget *parent = 0);
24 
25 
26  QVBoxLayout *xLayout;
27  void addWidget(QWidget *w);
28  void addWidget(QWidget *w, int stretch);
29  void addLayout(QBoxLayout *lay);
30  void addLayout(QGridLayout *gridlayout);
31 
32 signals:
33 
34 public slots:
35 
36 };
37 
39 class XGroupHBox : public QGroupBox
40 {
41 Q_OBJECT
42 public:
43  explicit XGroupHBox(QString title, QWidget *parent = 0);
44 
45  QHBoxLayout *xLayout;
46  void addWidget(QWidget *w);
47  void addWidget(QWidget *w, int stretch);
48  void addLayout(QBoxLayout *lay);
49  void addLayout(QGridLayout *gridlayout);
50 
51 signals:
52 
53 public slots:
54 
55 };
56 
57 
59 class XGroupGBox : public QGroupBox
60 {
61 Q_OBJECT
62 public:
63  explicit XGroupGBox(QString title, QWidget *parent = 0);
64 
65  QGridLayout *gridLayout;
66  void addWidget(QWidget *w, int row, int col, int row_span, int col_span);
67  void addWidget(QWidget *w, int row, int col, int row_span, int col_span, Qt::AlignmentFlag align);
68 
69 signals:
70 
71 public slots:
72 
73 };
74 
75 #endif // XGROUPBOX_H
XGroupGBox
A QGroupBox with a QGridLayout layout.
Definition: xgroupboxes.h:59
XGroupHBox
A QGroupBox with a QHBoxLyout layout.
Definition: xgroupboxes.h:39
XGroupVBox
A QGroupBox with a QVBoxLyout layout.
Definition: xgroupboxes.h:19