Choreonoid  1.8
Separator.h
Go to the documentation of this file.
1 
5 #ifndef CNOID_BASE_SEPARATOR_H
6 #define CNOID_BASE_SEPARATOR_H
7 
8 #include <QFrame>
9 #include <QBoxLayout>
10 
11 namespace cnoid {
12 
13 class VSeparator : public QFrame
14 {
15 public:
16  inline VSeparator(QWidget* parent = 0) : QFrame(parent) {
17  setFrameStyle(QFrame::VLine | QFrame::Sunken);
18  }
19 };
20 
21 class HSeparator : public QFrame
22 {
23 public:
24  inline HSeparator(QWidget* parent = 0) : QFrame(parent) {
25  setFrameStyle(QFrame::HLine | QFrame::Sunken);
26  }
27 };
28 
29 class HSeparatorBox : public QHBoxLayout
30 {
31 public:
32  HSeparatorBox(QWidget* titleWidget) {
33  addWidget(new HSeparator(), 1);
34  addWidget(titleWidget);
35  addWidget(new HSeparator(), 1);
36  }
37 };
38 }
39 
40 #endif
cnoid::VSeparator
Definition: Separator.h:13
cnoid::HSeparator::HSeparator
HSeparator(QWidget *parent=0)
Definition: Separator.h:24
cnoid::HSeparatorBox::HSeparatorBox
HSeparatorBox(QWidget *titleWidget)
Definition: Separator.h:32
cnoid::HSeparator
Definition: Separator.h:21
cnoid
Definition: AbstractSceneLoader.h:11
cnoid::HSeparatorBox
Definition: Separator.h:29
cnoid::VSeparator::VSeparator
VSeparator(QWidget *parent=0)
Definition: Separator.h:16