Fork me on GitHub
2.15.20
FGx
A cross-platform launcher for FlightGear
xgroupboxes.h
Go to the documentation of this file.
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 
18 /** \brief A QGroupBox with a QVBoxLyout layout */
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 
38 /** \brief A QGroupBox with a QHBoxLyout layout */
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 
58 /** \brief A QGroupBox with a QGridLayout layout */
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
A QGroupBox with a QVBoxLyout layout.
Definition: xgroupboxes.h:19
XGroupVBox(QString title, QWidget *parent=0)
Definition: xgroupboxes.cpp:13
QHBoxLayout * xLayout
Definition: xgroupboxes.h:45
QVBoxLayout * xLayout
Definition: xgroupboxes.h:26
XGroupGBox(QString title, QWidget *parent=0)
Definition: xgroupboxes.cpp:63
A QGroupBox with a QGridLayout layout.
Definition: xgroupboxes.h:59
A QGroupBox with a QHBoxLyout layout.
Definition: xgroupboxes.h:39
QGridLayout * gridLayout
Definition: xgroupboxes.h:65
void addWidget(QWidget *w, int row, int col, int row_span, int col_span)
Definition: xgroupboxes.cpp:71
void addWidget(QWidget *w)
Definition: xgroupboxes.cpp:21
void addLayout(QBoxLayout *lay)
Definition: xgroupboxes.cpp:52
XGroupHBox(QString title, QWidget *parent=0)
Definition: xgroupboxes.cpp:37
void addWidget(QWidget *w)
Definition: xgroupboxes.cpp:45
void addLayout(QBoxLayout *lay)
Definition: xgroupboxes.cpp:27