Guitarix
gx_main_boxes.cpp
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 gx_head GUI main class
21  *
22  * ----------------------------------------------------------------------------
23  */
24 
25 #include "guitarix.h" // NOLINT
26 
27 #include <glibmm/i18n.h> // NOLINT
28 
29 #include <iomanip> // NOLINT
30 #include <cstring> // NOLINT
31 #include <string> // NOLINT
32 
33 namespace gx_gui {
34 
35 /****************************************************************
36  ** predefined gtkmm widget classes used in main GUI
37  */
38 
39 /****************************************************************/
40 
41 GxPaintBox::GxPaintBox(const char *expose_funk)
42  : Gxw::PaintBox(), m_hbox(false, 0) {
43  property_paint_func() = expose_funk;
44  pack_start(m_hbox);
45 }
46 
48 
49 /****************************************************************/
50 
52  Gtk::HBox(),
53  m_hbox(),
54  m_pbox(),
55  m_tbox(),
56  m_eventbox(),
57  m_fbox(),
58  m_fixedbox(),
59  m_label() {
60  m_eventbox.add(m_hbox);
62  add(m_pbox);
63  pack_start(m_fbox, false, false);
64  m_fbox.pack_start(m_fixedbox, false, false);
65  add(m_tbox);
66 }
67 
69 
70 /****************************************************************/
71 
73  set_name("tab_rack");
74 }
75 
76 /****************************************************************/
77 }
Gtk::EventBox m_eventbox
Definition: bigknob.cc:51
GxPaintBox(const char *expose_funk)