Loading...
Searching...
No Matches
gx_main_boxes.h
Go to the documentation of this file.
/*
* Copyright (C) 2009, 2010 Hermann Meyer, James Warden, Andreas Degert
* Copyright (C) 2011 Pete Shorthose
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
* --------------------------------------------------------------------------
*
* This file is part of the guitarix GUI main class
* Note: this header file depends on gx_main_interface.h
*
* ----------------------------------------------------------------------------
*/
/* ------- This is part of the GUI namespace ------- */
#pragma once
#ifndef SRC_HEADERS_GX_MAIN_BOXES_H_
#define SRC_HEADERS_GX_MAIN_BOXES_H_
#include <gtkmm/liststore.h>
#include <gtkmm/window.h>
#include <gtkmm/frame.h>
#include <gtkmm/accelgroup.h>
#include <gtkmm/scrolledwindow.h>
#include <gtkmm/fixed.h>
#include <gtkmm/eventbox.h>
#include <gtkmm/notebook.h>
#include <gxwmm/paintbox.h>
#include <gtkmm/radiomenuitem.h>
#include <gtkmm/paned.h>
#include <gxwmm/switch.h>
namespace gx_gui {
/****************************************************************/
// can be done more elegantly when Gtk::Orientable can be used
class UiVSwitchWithCaption: public Gtk::VBox {
private:
Gtk::HBox m_hbox;
Gtk::HBox m_hbox1;
Gtk::HBox m_hbox2;
Gtk::Label m_label;
protected:
Gxw::Switch m_switch;
public:
UiVSwitchWithCaption(const char *sw_type, gx_engine::Parameter &param, const char *label);
void set_rack_label_inverse() {m_label.set_name("rack_label_inverse"); }
Gxw::Switch *get_regler() { return &m_switch; }
};
/****************************************************************/
class GxVBox: public Gtk::VBox {
public:
Gtk::Label m_label;
GxVBox(): Gtk::VBox(), m_label() {}
~GxVBox() {}
};
/****************************************************************/
class GxHBox: public Gtk::HBox {
public:
Gtk::Label m_label;
GxHBox(): Gtk::HBox(), m_label() {}
~GxHBox() {}
};
class GxHFrame: public Gtk::Frame {
public:
Gtk::Label m_label;
Gtk::HBox m_hbox;
GxHFrame(): Gtk::Frame(), m_label(), m_hbox() {}
~GxHFrame() {}
};
/****************************************************************/
class GxPaintBox: public Gxw::PaintBox {
public:
Gtk::HBox m_hbox;
GxPaintBox(const char *expose_funk);
~GxPaintBox();
};
/****************************************************************/
class GxMainBox: public Gtk::HBox {
public:
Gtk::HBox m_hbox;
Gtk::HBox m_pbox;
Gtk::HBox m_tbox;
Gtk::HBox m_fbox;
Gtk::EventBox m_eventbox;
Gtk::Fixed m_fixedbox;
Gtk::Label m_label;
Gxw::PaintBox m_paintbox;
GxMainBox(const char *expose_funk);
~GxMainBox();
};
/****************************************************************/
class GxNotebookBox: public Gtk::Notebook {
public:
GxNotebookBox();
};
/****************************************************************/
}/* end of gx_gui namespace */
#endif // SRC_HEADERS_GX_MAIN_BOXES_H_
gx_engine::Parameter
Definition gx_parameter.h:107
gx_gui::GxHBox::GxHBox
GxHBox()
Definition gx_main_boxes.h:81
gx_gui::GxHBox::m_label
Gtk::Label m_label
Definition gx_main_boxes.h:80
gx_gui::GxHBox::~GxHBox
~GxHBox()
Definition gx_main_boxes.h:82
gx_gui::GxHFrame::m_label
Gtk::Label m_label
Definition gx_main_boxes.h:87
gx_gui::GxHFrame::GxHFrame
GxHFrame()
Definition gx_main_boxes.h:89
gx_gui::GxHFrame::m_hbox
Gtk::HBox m_hbox
Definition gx_main_boxes.h:88
gx_gui::GxHFrame::~GxHFrame
~GxHFrame()
Definition gx_main_boxes.h:90
gx_gui::GxMainBox::m_eventbox
Gtk::EventBox m_eventbox
Definition gx_main_boxes.h:110
gx_gui::GxMainBox::m_fbox
Gtk::HBox m_fbox
Definition gx_main_boxes.h:109
gx_gui::GxMainBox::m_hbox
Gtk::HBox m_hbox
Definition gx_main_boxes.h:106
gx_gui::GxMainBox::~GxMainBox
~GxMainBox()
gx_gui::GxMainBox::m_pbox
Gtk::HBox m_pbox
Definition gx_main_boxes.h:107
gx_gui::GxMainBox::GxMainBox
GxMainBox(const char *expose_funk)
gx_gui::GxMainBox::m_tbox
Gtk::HBox m_tbox
Definition gx_main_boxes.h:108
gx_gui::GxMainBox::m_paintbox
Gxw::PaintBox m_paintbox
Definition gx_main_boxes.h:113
gx_gui::GxMainBox::m_fixedbox
Gtk::Fixed m_fixedbox
Definition gx_main_boxes.h:111
gx_gui::GxMainBox::m_label
Gtk::Label m_label
Definition gx_main_boxes.h:112
gx_gui::GxNotebookBox::GxNotebookBox
GxNotebookBox()
gx_gui::GxPaintBox::m_hbox
Gtk::HBox m_hbox
Definition gx_main_boxes.h:97
gx_gui::GxPaintBox::GxPaintBox
GxPaintBox(const char *expose_funk)
gx_gui::GxPaintBox::~GxPaintBox
~GxPaintBox()
gx_gui::GxVBox::GxVBox
GxVBox()
Definition gx_main_boxes.h:72
gx_gui::GxVBox::m_label
Gtk::Label m_label
Definition gx_main_boxes.h:71
gx_gui::GxVBox::~GxVBox
~GxVBox()
Definition gx_main_boxes.h:73
gx_gui::UiVSwitchWithCaption::m_switch
Gxw::Switch m_switch
Definition gx_main_boxes.h:60
gx_gui::UiVSwitchWithCaption::m_hbox
Gtk::HBox m_hbox
Definition gx_main_boxes.h:55
gx_gui::UiVSwitchWithCaption::UiVSwitchWithCaption
UiVSwitchWithCaption(const char *sw_type, gx_engine::Parameter &param, const char *label)
gx_gui::UiVSwitchWithCaption::set_rack_label_inverse
void set_rack_label_inverse()
Definition gx_main_boxes.h:63
gx_gui::UiVSwitchWithCaption::m_hbox2
Gtk::HBox m_hbox2
Definition gx_main_boxes.h:57
gx_gui::UiVSwitchWithCaption::get_regler
Gxw::Switch * get_regler()
Definition gx_main_boxes.h:64
gx_gui::UiVSwitchWithCaption::m_label
Gtk::Label m_label
Definition gx_main_boxes.h:58
gx_gui::UiVSwitchWithCaption::m_hbox1
Gtk::HBox m_hbox1
Definition gx_main_boxes.h:56
gx_gui
Definition gx_gui_helpers.h:28