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_
31namespace gx_gui {
32
33class GxBuilder;
34/****************************************************************
35 ** class SelectJackControlPgm
36 */
37
38class SelectJackControlPgm: public Gtk::Window {
39private:
40 Gtk::Label *description;
41 Gtk::Entry *customstarter;
42 Gtk::ComboBox *startercombo;
43 Gtk::CheckButton *dontask;
45 sigc::signal<void> close;
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);
55public:
58 sigc::signal<void>& signal_close() { return close; }
59};
60
61/* jack client and port mapping functions */
62bool gx_start_jack_dialog(Glib::RefPtr<Gdk::Pixbuf> gw_ib);
63} // end namespace gx_gui
64#endif // SRC_HEADERS_GX_JACK_OPTIONS_H_
bool on_key_press_event(GdkEventKey *event)
bool on_delete_event(GdkEventAny *event)
Gtk::CheckButton * dontask
sigc::signal< void > & signal_close()
sigc::signal< void > close
static SelectJackControlPgm * create(gx_system::CmdlineOptions &opt, gx_engine::GxMachineBase &machine)
static SelectJackControlPgm * create_from_builder(BaseObjectType *cobject, Glib::RefPtr< GxBuilder > bld, gx_engine::GxMachineBase &m)
gx_engine::GxMachineBase & machine
SelectJackControlPgm(BaseObjectType *cobject, Glib::RefPtr< GxBuilder > bld, gx_engine::GxMachineBase &m)
bool gx_start_jack_dialog(Glib::RefPtr< Gdk::Pixbuf > gw_ib)