Guitarix
gx_jack_options.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  *
22  * ----------------------------------------------------------------------------
23  */
24 
25 /* ------- This is the GUI namespace ------- */
26 
27 #pragma once
28 
29 #ifndef SRC_HEADERS_GX_JACK_OPTIONS_H_
30 #define SRC_HEADERS_GX_JACK_OPTIONS_H_
31 namespace gx_gui {
32 
33 class GxBuilder;
34 /****************************************************************
35  ** class SelectJackControlPgm
36  */
37 
38 class SelectJackControlPgm: public Gtk::Window {
39 private:
40  Gtk::Label *description;
41  Gtk::Entry *customstarter;
42  Gtk::ComboBox *startercombo;
43  Gtk::CheckButton *dontask;
45  sigc::signal<void> close;
47  void on_ok_button();
49  bool on_delete_event(GdkEventAny* event);
50  bool on_key_press_event(GdkEventKey *event);
51  static SelectJackControlPgm* create_from_builder(BaseObjectType* cobject, Glib::RefPtr<GxBuilder> bld, gx_engine::GxMachineBase& m) {
52  return new SelectJackControlPgm(cobject, bld, m);
53  }
54  SelectJackControlPgm(BaseObjectType* cobject, Glib::RefPtr<GxBuilder> bld, gx_engine::GxMachineBase& m);
55 public:
58  sigc::signal<void>& signal_close() { return close; }
59 };
60 
61 /* jack client and port mapping functions */
62 bool gx_start_jack_dialog(Glib::RefPtr<Gdk::Pixbuf> gw_ib);
63 } // end namespace gx_gui
64 #endif // SRC_HEADERS_GX_JACK_OPTIONS_H_
gx_gui::SelectJackControlPgm::signal_close
sigc::signal< void > & signal_close()
Definition: gx_jack_options.h:60
gx_gui::SelectJackControlPgm::create
static SelectJackControlPgm * create(gx_system::CmdlineOptions &opt, gx_engine::GxMachineBase &machine)
gx_engine::GxMachineBase
Definition: machine.h:55
gx_gui::SelectJackControlPgm::on_starter_changed
void on_starter_changed()
gx_gui::SelectJackControlPgm::~SelectJackControlPgm
~SelectJackControlPgm()
gx_gui::SelectJackControlPgm::SelectJackControlPgm
SelectJackControlPgm(BaseObjectType *cobject, Glib::RefPtr< GxBuilder > bld, gx_engine::GxMachineBase &m)
gx_gui::SelectJackControlPgm::customstarter
Gtk::Entry * customstarter
Definition: gx_jack_options.h:43
gx_gui::SelectJackControlPgm::dontask
Gtk::CheckButton * dontask
Definition: gx_jack_options.h:45
gx_gui::SelectJackControlPgm::on_ok_button
void on_ok_button()
gx_gui::SelectJackControlPgm::description
Gtk::Label * description
Definition: gx_jack_options.h:42
gx_gui::gx_start_jack_dialog
bool gx_start_jack_dialog(Glib::RefPtr< Gdk::Pixbuf > gw_ib)
gx_gui::SelectJackControlPgm::startercombo
Gtk::ComboBox * startercombo
Definition: gx_jack_options.h:44
gx_gui::SelectJackControlPgm::on_key_press_event
bool on_key_press_event(GdkEventKey *event)
gx_gui
Definition: gx_gui_helpers.h:28
gx_gui::SelectJackControlPgm::create_from_builder
static SelectJackControlPgm * create_from_builder(BaseObjectType *cobject, Glib::RefPtr< GxBuilder > bld, gx_engine::GxMachineBase &m)
Definition: gx_jack_options.h:53
gx_system::CmdlineOptions
Definition: gx_system.h:384
gx_gui::SelectJackControlPgm::on_delete_event
bool on_delete_event(GdkEventAny *event)
gx_gui::SelectJackControlPgm::machine
gx_engine::GxMachineBase & machine
Definition: gx_jack_options.h:46
gx_gui::SelectJackControlPgm
Definition: gx_jack_options.h:38
gx_gui::SelectJackControlPgm::close
sigc::signal< void > close
Definition: gx_jack_options.h:47
gx_gui::SelectJackControlPgm::on_cancel_button
void on_cancel_button()