Guitarix
gx_main_boxes.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2009, 2010 Hermann Meyer, James Warden, Andreas Degert
3  * Copyright (C) 2011 Pete Shorthose
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18  * --------------------------------------------------------------------------
19  *
20  * This file is part of the guitarix GUI main class
21  * Note: this header file depends on gx_main_interface.h
22  *
23  * ----------------------------------------------------------------------------
24  */
25 
26 /* ------- This is part of the GUI namespace ------- */
27 
28 
29 #pragma once
30 
31 #ifndef SRC_HEADERS_GX_MAIN_BOXES_H_
32 #define SRC_HEADERS_GX_MAIN_BOXES_H_
33 
34 #include <gtkmm/liststore.h>
35 #include <gtkmm/window.h>
36 #include <gtkmm/frame.h>
37 #include <gtkmm/accelgroup.h>
38 #include <gtkmm/scrolledwindow.h>
39 #include <gtkmm/fixed.h>
40 #include <gtkmm/eventbox.h>
41 #include <gtkmm/notebook.h>
42 #include <gxwmm/paintbox.h>
43 #include <gtkmm/radiomenuitem.h>
44 #include <gtkmm/paned.h>
45 #include <gxwmm/switch.h>
46 
47 namespace gx_gui {
48 
49 /****************************************************************/
50 
51 // can be done more elegantly when Gtk::Orientable can be used
52 
53 class UiVSwitchWithCaption: public Gtk::VBox {
54 private:
55  Gtk::HBox m_hbox;
56  Gtk::HBox m_hbox1;
57  Gtk::HBox m_hbox2;
58  Gtk::Label m_label;
59 protected:
60  Gxw::Switch m_switch;
61 public:
62  UiVSwitchWithCaption(const char *sw_type, gx_engine::Parameter &param, const char *label);
63  void set_rack_label_inverse() {m_label.set_name("rack_label_inverse"); }
64  Gxw::Switch *get_regler() { return &m_switch; }
65 };
66 
67 /****************************************************************/
68 
69 class GxVBox: public Gtk::VBox {
70  public:
71  Gtk::Label m_label;
72  GxVBox(): Gtk::VBox(), m_label() {}
73  ~GxVBox() {}
74 };
75 
76 /****************************************************************/
77 
78 class GxHBox: public Gtk::HBox {
79 public:
80  Gtk::Label m_label;
81  GxHBox(): Gtk::HBox(), m_label() {}
82  ~GxHBox() {}
83 };
84 
85 class GxHFrame: public Gtk::Frame {
86 public:
87  Gtk::Label m_label;
88  Gtk::HBox m_hbox;
89  GxHFrame(): Gtk::Frame(), m_label(), m_hbox() {}
90  ~GxHFrame() {}
91 };
92 
93 /****************************************************************/
94 
95 class GxPaintBox: public Gxw::PaintBox {
96  public:
97  Gtk::HBox m_hbox;
98  GxPaintBox(const char *expose_funk);
100 };
101 
102 /****************************************************************/
103 
104 class GxMainBox: public Gtk::HBox {
105  public:
106  Gtk::HBox m_hbox;
107  Gtk::HBox m_pbox;
108  Gtk::HBox m_tbox;
109  Gtk::HBox m_fbox;
110  Gtk::EventBox m_eventbox;
111  Gtk::Fixed m_fixedbox;
112  Gtk::Label m_label;
113  Gxw::PaintBox m_paintbox;
114  GxMainBox(const char *expose_funk);
116 };
117 
118 /****************************************************************/
119 
120 class GxNotebookBox: public Gtk::Notebook {
121  public:
123 };
124 
125 /****************************************************************/
126 
127 }/* end of gx_gui namespace */
128 
129 #endif // SRC_HEADERS_GX_MAIN_BOXES_H_
130 
gx_gui::GxNotebookBox
Definition: gx_main_boxes.h:120
gx_gui::UiVSwitchWithCaption::m_switch
Gxw::Switch m_switch
Definition: gx_main_boxes.h:60
gx_gui::GxHBox
Definition: gx_main_boxes.h:78
gx_gui::GxHFrame
Definition: gx_main_boxes.h:85
gx_gui::GxMainBox::m_label
Gtk::Label m_label
Definition: gx_main_boxes.h:112
gx_gui::GxHBox::m_label
Gtk::Label m_label
Definition: gx_main_boxes.h:80
gx_gui::GxMainBox::m_pbox
Gtk::HBox m_pbox
Definition: gx_main_boxes.h:107
gx_gui::GxMainBox::m_fixedbox
Gtk::Fixed m_fixedbox
Definition: gx_main_boxes.h:111
gx_gui::GxHBox::~GxHBox
~GxHBox()
Definition: gx_main_boxes.h:82
gx_gui::GxMainBox::m_fbox
Gtk::HBox m_fbox
Definition: gx_main_boxes.h:109
gx_gui::UiVSwitchWithCaption::set_rack_label_inverse
void set_rack_label_inverse()
Definition: gx_main_boxes.h:63
gx_gui::GxMainBox::~GxMainBox
~GxMainBox()
gx_gui::UiVSwitchWithCaption::m_label
Gtk::Label m_label
Definition: gx_main_boxes.h:58
gx_gui::GxMainBox::m_eventbox
Gtk::EventBox m_eventbox
Definition: gx_main_boxes.h:110
gx_gui::UiVSwitchWithCaption::m_hbox
Gtk::HBox m_hbox
Definition: gx_main_boxes.h:55
gx_gui::UiVSwitchWithCaption::m_hbox1
Gtk::HBox m_hbox1
Definition: gx_main_boxes.h:56
gx_gui::GxPaintBox
Definition: gx_main_boxes.h:95
gx_gui::GxVBox::~GxVBox
~GxVBox()
Definition: gx_main_boxes.h:73
gx_gui::GxVBox::m_label
Gtk::Label m_label
Definition: gx_main_boxes.h:71
gx_gui::UiVSwitchWithCaption::UiVSwitchWithCaption
UiVSwitchWithCaption(const char *sw_type, gx_engine::Parameter &param, const char *label)
gx_gui::UiVSwitchWithCaption
Definition: gx_main_boxes.h:53
gx_gui::GxPaintBox::~GxPaintBox
~GxPaintBox()
gx_gui::GxHFrame::~GxHFrame
~GxHFrame()
Definition: gx_main_boxes.h:90
gx_gui::GxMainBox::m_paintbox
Gxw::PaintBox m_paintbox
Definition: gx_main_boxes.h:113
gx_gui::GxHFrame::m_label
Gtk::Label m_label
Definition: gx_main_boxes.h:87
gx_gui::GxPaintBox::m_hbox
Gtk::HBox m_hbox
Definition: gx_main_boxes.h:97
gx_gui
Definition: gx_gui_helpers.h:28
gx_gui::GxMainBox::m_hbox
Gtk::HBox m_hbox
Definition: gx_main_boxes.h:106
gx_gui::GxPaintBox::GxPaintBox
GxPaintBox(const char *expose_funk)
gx_gui::GxHFrame::GxHFrame
GxHFrame()
Definition: gx_main_boxes.h:89
gx_gui::UiVSwitchWithCaption::get_regler
Gxw::Switch * get_regler()
Definition: gx_main_boxes.h:64
gx_gui::GxVBox
Definition: gx_main_boxes.h:69
gx_gui::GxMainBox
Definition: gx_main_boxes.h:104
gx_gui::GxNotebookBox::GxNotebookBox
GxNotebookBox()
gx_gui::GxVBox::GxVBox
GxVBox()
Definition: gx_main_boxes.h:72
gx_gui::GxMainBox::GxMainBox
GxMainBox(const char *expose_funk)
gx_gui::GxHFrame::m_hbox
Gtk::HBox m_hbox
Definition: gx_main_boxes.h:88
gx_gui::UiVSwitchWithCaption::m_hbox2
Gtk::HBox m_hbox2
Definition: gx_main_boxes.h:57
gx_gui::GxHBox::GxHBox
GxHBox()
Definition: gx_main_boxes.h:81
gx_engine::Parameter
Definition: gx_parameter.h:106
gx_gui::GxMainBox::m_tbox
Gtk::HBox m_tbox
Definition: gx_main_boxes.h:108