Guitarix
gx_gui_helpers.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 
21 /* ------- This is the GUI namespace ------- */
22 
23 #pragma once
24 
25 #ifndef SRC_HEADERS_GX_GUI_HELPERS_H_
26 #define SRC_HEADERS_GX_GUI_HELPERS_H_
27 
28 namespace gx_gui {
29 
31  const char* window_title,
32  const char* msg,
33  const guint nchoice,
34  const char* label[],
35  const gint resp[],
36  const gint default_response,
37  Glib::RefPtr<Gdk::Pixbuf> gw_ib
38  );
39 
40 /* extra GUI helpers */
41 int gx_message_popup(const char*);
42 void show_error_msg(const string& msg);
43 void child_set_property(Gtk::Container& container, Gtk::Widget& child, const char *property_name, bool value);
44 Glib::ustring logarithmic_format_value(double v, int prec);
45 int logarithmic_input_value(gpointer obj, gpointer nv);
46 
47 /* -------------------------------------------------------------------------- */
48 } /* end of gx_gui namespace */
49 #endif // SRC_HEADERS_GX_GUI_HELPERS_H_
50 
gx_gui::gx_nchoice_dialog_without_entry
gint gx_nchoice_dialog_without_entry(const char *window_title, const char *msg, const guint nchoice, const char *label[], const gint resp[], const gint default_response, Glib::RefPtr< Gdk::Pixbuf > gw_ib)
Definition: gx_gui_helpers.cpp:82
gx_gui::gx_message_popup
int gx_message_popup(const char *)
Definition: gx_gui_helpers.cpp:126
gx_gui::logarithmic_format_value
Glib::ustring logarithmic_format_value(double v, int prec)
Definition: gx_gui_helpers.cpp:46
gx_gui
Definition: gx_gui_helpers.h:28
gx_gui::show_error_msg
void show_error_msg(const string &msg)
gx_gui::logarithmic_input_value
int logarithmic_input_value(gpointer obj, gpointer nv)
Definition: gx_gui_helpers.cpp:54
gx_gui::child_set_property
void child_set_property(Gtk::Container &container, Gtk::Widget &child, const char *property_name, bool value)
Definition: gx_gui_helpers.cpp:39