Guitarix
regler.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 // Generated by gtkmmproc -- DO NOT MODIFY!
3 #ifndef _GXWMM_REGLER_H
4 #define _GXWMM_REGLER_H
5 
6 
7 #include <glibmm/ustring.h>
8 #include <sigc++/sigc++.h>
9 
10 /*
11  * Copyright (C) 2009, 2010 Hermann Meyer, James Warden, Andreas Degert
12  *
13  * This program is free software; you can redistribute it and/or modify
14  * it under the terms of the GNU General Public License as published by
15  * the Free Software Foundation; either version 2 of the License, or
16  * (at your option) any later version.
17  *
18  * This program is distributed in the hope that it will be useful,
19  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21  * GNU General Public License for more details.
22  *
23  * You should have received a copy of the GNU General Public License
24  * along with this program; if not, write to the Free Software
25  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
26  */
27 
28 #include <gtkmm/range.h>
29 #include <gtkmm/label.h>
30 #include <gdkmm/rectangle.h>
31 #include <gxwmm/controlparameter.h>
32 
33 
34 #ifndef DOXYGEN_SHOULD_SKIP_THIS
35 typedef struct _GxRegler GxRegler;
36 typedef struct _GxReglerClass GxReglerClass;
37 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
38 
39 
40 namespace Gxw
41 { class Regler_Class; } // namespace Gxw
42 namespace Gxw {
43 
44 
45 class Regler: public Gtk::Range, public ControlParameter {
46  public:
47 #ifndef DOXYGEN_SHOULD_SKIP_THIS
52 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
53 
54  virtual ~Regler();
55 
56 #ifndef DOXYGEN_SHOULD_SKIP_THIS
57 
58 private:
59  friend class Regler_Class;
60  static CppClassType regler_class_;
61 
62  // noncopyable
63  Regler(const Regler&);
64  Regler& operator=(const Regler&);
65 
66 protected:
67  explicit Regler(const Glib::ConstructParams& construct_params);
68  explicit Regler(GxRegler* castitem);
69 
70 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
71 
72 public:
73 #ifndef DOXYGEN_SHOULD_SKIP_THIS
74  static GType get_type() G_GNUC_CONST;
75 
76 
77  static GType get_base_type() G_GNUC_CONST;
78 #endif
79 
81  GxRegler* gobj() { return reinterpret_cast<GxRegler*>(gobject_); }
82 
84  const GxRegler* gobj() const { return reinterpret_cast<GxRegler*>(gobject_); }
85 
86 
87 public:
88  //C++ methods used to invoke GTK+ virtual functions:
89 
90 protected:
91  //GTK+ Virtual Functions (override these to change behaviour):
92 
93  //Default Signal Handlers::
95  virtual bool on_value_entry(const Gdk::Rectangle& p1, GdkEventButton* p2);
97  virtual int on_input_value(void * spin, void * new_val);
99  virtual Glib::ustring on_format_value(double value);
100 
101 
102 private:
103 
104 
105  public:
106 
107  void set_label_ref(Gtk::Label* p1);
108 
109  Gtk::Label* get_label_ref();
110 
111  void set_show_value(bool p1);
112 
113  bool get_show_value();
114 
115  void set_value_position(Gtk::PositionType p1);
116 
117  Gtk::PositionType get_value_position();
118 
125  Glib::SignalProxy2< bool,const Gdk::Rectangle&,GdkEventButton* > signal_value_entry();
126 
127 
134  Glib::SignalProxy2< int,void *,void * > signal_input_value();
135 
136  #ifdef GLIBMM_PROPERTIES_ENABLED
137 
143  Glib::PropertyProxy< Gtk::Label > property_label_ref() ;
144 #endif //#GLIBMM_PROPERTIES_ENABLED
145 
146 #ifdef GLIBMM_PROPERTIES_ENABLED
147 
153  Glib::PropertyProxy_ReadOnly< Gtk::Label > property_label_ref() const;
154 #endif //#GLIBMM_PROPERTIES_ENABLED
155 
156  #ifdef GLIBMM_PROPERTIES_ENABLED
157 
163  Glib::PropertyProxy< bool > property_show_value() ;
164 #endif //#GLIBMM_PROPERTIES_ENABLED
165 
166 #ifdef GLIBMM_PROPERTIES_ENABLED
167 
173  Glib::PropertyProxy_ReadOnly< bool > property_show_value() const;
174 #endif //#GLIBMM_PROPERTIES_ENABLED
175 
176  #ifdef GLIBMM_PROPERTIES_ENABLED
177 
183  Glib::PropertyProxy< double > property_value_xalign() ;
184 #endif //#GLIBMM_PROPERTIES_ENABLED
185 
186 #ifdef GLIBMM_PROPERTIES_ENABLED
187 
193  Glib::PropertyProxy_ReadOnly< double > property_value_xalign() const;
194 #endif //#GLIBMM_PROPERTIES_ENABLED
195 
196  #ifdef GLIBMM_PROPERTIES_ENABLED
197 
203  Glib::PropertyProxy_ReadOnly< int > property_digits() const;
204 #endif //#GLIBMM_PROPERTIES_ENABLED
205 
206 
207  #ifdef GLIBMM_PROPERTIES_ENABLED
208 
214  Glib::PropertyProxy< Gtk::PositionType > property_value_position() ;
215 #endif //#GLIBMM_PROPERTIES_ENABLED
216 
217 #ifdef GLIBMM_PROPERTIES_ENABLED
218 
224  Glib::PropertyProxy_ReadOnly< Gtk::PositionType > property_value_position() const;
225 #endif //#GLIBMM_PROPERTIES_ENABLED
226 
227 
234  Glib::SignalProxy1< Glib::ustring,double > signal_format_value();
235 
236 
237  protected:
238  Regler();
239 
240 
241 };
242 
243 } // namespace Gxw
244 
245 
246 namespace Glib
247 {
256  Gxw::Regler* wrap(GxRegler* object, bool take_copy = false);
257 } //namespace Glib
258 
259 
260 #endif /* _GXWMM_REGLER_H */
261 
Regler_Class CppClassType
Definition: regler.h:49
virtual int on_input_value(void *spin, void *new_val)
This is a default handler for the signal signal_input_value().
Definition: regler.cc:592
struct _GxReglerClass GxReglerClass
Definition: regler.h:36
Glib::SignalProxy2< int, void *, void *> signal_input_value()
Definition: regler.cc:504
static GType get_type() G_GNUC_CONST
Definition: regler.cc:445
const GxRegler * gobj() const
Provides access to the underlying C GtkObject.
Definition: regler.h:84
void set_show_value(bool p1)
Definition: regler.cc:467
virtual bool on_value_entry(const Gdk::Rectangle &p1, GdkEventButton *p2)
This is a default handler for the signal signal_value_entry().
Definition: regler.cc:580
Gtk::PositionType get_value_position()
Definition: regler.cc:482
Gxw::Regler * wrap(GxRegler *object, bool take_copy=false)
A Glib::wrap() method for this object.
Definition: regler.cc:236
GxRegler BaseObjectType
Definition: regler.h:50
void set_label_ref(Gtk::Label *p1)
Definition: regler.cc:457
Glib::SignalProxy2< bool, const Gdk::Rectangle &, GdkEventButton *> signal_value_entry()
Definition: regler.cc:498
Definition: bigknob.cc:51
virtual Glib::ustring on_format_value(double value)
This is a default handler for the signal signal_format_value().
Definition: regler.cc:604
Regler CppObjectType
Definition: regler.h:48
void set_value_position(Gtk::PositionType p1)
Definition: regler.cc:477
virtual ~Regler()
Definition: regler.cc:438
Glib::SignalProxy1< Glib::ustring, double > signal_format_value()
Definition: regler.cc:510
GxRegler * gobj()
Provides access to the underlying C GtkObject.
Definition: regler.h:81
Definition: bigknob.cc:41
GxReglerClass BaseClassType
Definition: regler.h:51
bool get_show_value()
Definition: regler.cc:472
static GType get_base_type() G_GNUC_CONST
Definition: regler.cc:451
struct _GxRegler GxRegler
Definition: regler.h:35
#define G_GNUC_CONST
Definition: wrap_init.cc:8
Gtk::Label * get_label_ref()
Definition: regler.cc:462