Image Component Library (ICL)
ContainerGUIComponents.h
Go to the documentation of this file.
1 /********************************************************************
2 ** Image Component Library (ICL) **
3 ** **
4 ** Copyright (C) 2006-2013 CITEC, University of Bielefeld **
5 ** Neuroinformatics Group **
6 ** Website: www.iclcv.org and **
7 ** http://opensource.cit-ec.de/projects/icl **
8 ** **
9 ** File : ICLQt/src/ICLQt/ContainerGUIComponents.h **
10 ** Module : ICLQt **
11 ** Authors: Christof Elbrechter **
12 ** **
13 ** **
14 ** GNU LESSER GENERAL PUBLIC LICENSE **
15 ** This file may be used under the terms of the GNU Lesser General **
16 ** Public License version 3.0 as published by the **
17 ** **
18 ** Free Software Foundation and appearing in the file LICENSE.LGPL **
19 ** included in the packaging of this file. Please review the **
20 ** following information to ensure the license requirements will **
21 ** be met: http://www.gnu.org/licenses/lgpl-3.0.txt **
22 ** **
23 ** The development of this software was supported by the **
24 ** Excellence Cluster EXC 277 Cognitive Interaction Technology. **
25 ** The Excellence Cluster EXC 277 is a grant of the Deutsche **
26 ** Forschungsgemeinschaft (DFG) in the context of the German **
27 ** Excellence Initiative. **
28 ** **
29 ********************************************************************/
30 
31 #pragma once
32 
33 #include <ICLUtils/CompatMacros.h>
35 
36 namespace icl{
37  namespace qt{
38 
40  struct HBox : public ContainerGUIComponent{
42  HBox(QWidget *parent=0):ContainerGUIComponent("hbox","",parent){}
43  };
44 
46  struct VBox : public ContainerGUIComponent{
48  VBox(QWidget *parent=0):ContainerGUIComponent("vbox","",parent){}
49  };
50 
52  struct HScroll : public ContainerGUIComponent{
54  HScroll(QWidget *parent=0):ContainerGUIComponent("hscroll","",parent){}
55  };
56 
58  struct VScroll : public ContainerGUIComponent{
60  VScroll(QWidget *parent=0):ContainerGUIComponent("vscroll","",parent){}
61  };
62 
64  struct HSplit : public ContainerGUIComponent{
66  HSplit(QWidget *parent=0):ContainerGUIComponent("hsplit","",parent){}
67  };
68 
70  struct VSplit : public ContainerGUIComponent{
72  VSplit(QWidget *parent=0):ContainerGUIComponent("vsplit","",parent){}
73  };
74 
76  struct Tab : public ContainerGUIComponent{
78 
80  Tab(const std::string &commaSepTitles,QWidget *parent=0):
81  ContainerGUIComponent("tab",commaSepTitles, parent){}
82  };
83 
85  struct Border : public ContainerGUIComponent{
86  friend class ::icl::qt::GUI;
87  private:
89  Border(const std::string &label, QWidget *parent=0):
90  ContainerGUIComponent("border",label,parent){}
91  };
92  } // namespace qt
93 }
94 
Vertical split-component.
Definition: ContainerGUIComponents.h:70
Tab(const std::string &commaSepTitles, QWidget *parent=0)
create Tab with given list of tab-labels optionally given parent
Definition: ContainerGUIComponents.h:80
HSplit(QWidget *parent=0)
create HSplit with optionally given parent
Definition: ContainerGUIComponents.h:66
Vertical Box container component.
Definition: ContainerGUIComponents.h:46
Special GUI extension, that mimics the GUIComponent interface.
Definition: ContainerGUIComponent.h:44
undocument this line if you encounter any issues!
Definition: Any.h:37
Horizontal split-component.
Definition: ContainerGUIComponents.h:64
internally used component
Definition: ContainerGUIComponents.h:85
Border(const std::string &label, QWidget *parent=0)
create HBox with optionally given parent
Definition: ContainerGUIComponents.h:89
Tab-compnent.
Definition: ContainerGUIComponents.h:76
VBox(QWidget *parent=0)
create VBox with optionally given parent
Definition: ContainerGUIComponents.h:48
Horizonal Box container component.
Definition: ContainerGUIComponents.h:40
Vertical scroll area.
Definition: ContainerGUIComponents.h:58
VScroll(QWidget *parent=0)
create VScroll with optionally given parent
Definition: ContainerGUIComponents.h:60
Horizontal scroll area.
Definition: ContainerGUIComponents.h:52
const ContainerGUIComponent & label(const std::string &label) const
sets the component's label
Definition: ContainerGUIComponent.h:73
HScroll(QWidget *parent=0)
create HScroll with optionally given parent
Definition: ContainerGUIComponents.h:54
HBox(QWidget *parent=0)
create HBox with optionally given parent
Definition: ContainerGUIComponents.h:42
VSplit(QWidget *parent=0)
create HSplit with optionally given parent
Definition: ContainerGUIComponents.h:72