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
47namespace gx_gui {
48
49/****************************************************************/
50
51// can be done more elegantly when Gtk::Orientable can be used
52
53class UiVSwitchWithCaption: public Gtk::VBox {
54private:
55 Gtk::HBox m_hbox;
56 Gtk::HBox m_hbox1;
57 Gtk::HBox m_hbox2;
58 Gtk::Label m_label;
59protected:
60 Gxw::Switch m_switch;
61public:
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
69class GxVBox: public Gtk::VBox {
70 public:
71 Gtk::Label m_label;
72 GxVBox(): Gtk::VBox(), m_label() {}
74};
75
76/****************************************************************/
77
78class GxHBox: public Gtk::HBox {
79public:
80 Gtk::Label m_label;
81 GxHBox(): Gtk::HBox(), m_label() {}
83};
84
85class GxHFrame: public Gtk::Frame {
86public:
87 Gtk::Label m_label;
88 Gtk::HBox m_hbox;
89 GxHFrame(): Gtk::Frame(), m_label(), m_hbox() {}
91};
92
93/****************************************************************/
94
95class GxPaintBox: public Gxw::PaintBox {
96 public:
97 Gtk::HBox m_hbox;
98 GxPaintBox(const char *expose_funk);
100};
101
102/****************************************************************/
103
104class 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
120class 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
Gtk::Label m_label
Definition: gx_main_boxes.h:80
Gtk::Label m_label
Definition: gx_main_boxes.h:87
Gtk::HBox m_hbox
Definition: gx_main_boxes.h:88
Gtk::EventBox m_eventbox
GxMainBox(const char *expose_funk)
Gxw::PaintBox m_paintbox
Gtk::Fixed m_fixedbox
Gtk::Label m_label
GxPaintBox(const char *expose_funk)
Gtk::Label m_label
Definition: gx_main_boxes.h:71
UiVSwitchWithCaption(const char *sw_type, gx_engine::Parameter &param, const char *label)