Ardour  9.0-pre0-582-g084a23a80d
scalebutton.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 // Generated by gmmproc 2.45.3 -- DO NOT MODIFY!
3 #ifndef _GTKMM_SCALEBUTTON_H
4 #define _GTKMM_SCALEBUTTON_H
5 
6 #include <gtkmmconfig.h>
7 
8 
9 #include <glibmm/ustring.h>
10 #include <sigc++/sigc++.h>
11 
12 /*
13  * Copyright (C) 2007 The gtkmm Development Team
14  *
15  * This library is free software; you can redistribute it and/or
16  * modify it under the terms of the GNU Lesser General Public
17  * License as published by the Free Software Foundation; either
18  * version 2.1 of the License, or (at your option) any later version.
19  *
20  * This library is distributed in the hope that it will be useful,
21  * but WITHOUT ANY WARRANTY; without even the implied warranty of
22  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
23  * Lesser General Public License for more details.
24  *
25  * You should have received a copy of the GNU Lesser General Public
26  * License along with this library; if not, write to the Free
27  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
28  */
29 
30 
31 #include <gtkmm/button.h>
32 #include <gtkmm/adjustment.h>
33 #include <gtkmm/enums.h>
34 
35 
36 #ifndef DOXYGEN_SHOULD_SKIP_THIS
37 typedef struct _GtkScaleButton GtkScaleButton;
39 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
40 
41 
42 namespace Gtk
43 { class ScaleButton_Class; } // namespace Gtk
44 namespace Gtk
45 {
46 
47 //TODO: Inherit/Implement Orientation when we can break ABI.
48 
58 class ScaleButton : public Button
59 {
60  public:
61 #ifndef DOXYGEN_SHOULD_SKIP_THIS
62  typedef ScaleButton CppObjectType;
63  typedef ScaleButton_Class CppClassType;
64  typedef GtkScaleButton BaseObjectType;
65  typedef GtkScaleButtonClass BaseClassType;
66 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
67 
68  virtual ~ScaleButton();
69 
70 #ifndef DOXYGEN_SHOULD_SKIP_THIS
71 
72 private:
73  friend class ScaleButton_Class;
74  static CppClassType scalebutton_class_;
75 
76  // noncopyable
77  ScaleButton(const ScaleButton&);
78  ScaleButton& operator=(const ScaleButton&);
79 
80 protected:
81  explicit ScaleButton(const Glib::ConstructParams& construct_params);
82  explicit ScaleButton(GtkScaleButton* castitem);
83 
84 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
85 
86 public:
87 #ifndef DOXYGEN_SHOULD_SKIP_THIS
88  static GType get_type() G_GNUC_CONST;
89 
90 
91  static GType get_base_type() G_GNUC_CONST;
92 #endif
93 
95  GtkScaleButton* gobj() { return reinterpret_cast<GtkScaleButton*>(gobject_); }
96 
98  const GtkScaleButton* gobj() const { return reinterpret_cast<GtkScaleButton*>(gobject_); }
99 
100 
101 public:
102  //C++ methods used to invoke GTK+ virtual functions:
103 
104 protected:
105  //GTK+ Virtual Functions (override these to change behaviour):
106 
107  //Default Signal Handlers::
109  virtual void on_value_changed(double value);
110 
111 
112 private:
113 
114 
115 public:
116  explicit ScaleButton(IconSize size, double min, double max, double step, const Glib::StringArrayHandle& icons);
117 
118 
124  void set_icons(const Glib::StringArrayHandle& icons);
125 
130  double get_value() const;
131 
139  void set_value(double value);
140 
141 
142 #ifndef GTKMM_DISABLE_DEPRECATED
143 
150 #endif // GTKMM_DISABLE_DEPRECATED
151 
152 
153  //The return type should bge const. This has been fixed in the gtkmm-3maybe branch.
154 
155 #ifndef GTKMM_DISABLE_DEPRECATED
156 
163 #endif // GTKMM_DISABLE_DEPRECATED
164 
165 
172  void set_adjustment(Gtk::Adjustment& adjustment);
173 
174  // TODO: Should be deprecated, but we have no replacement yet, until we break ABI.
175 
183 
190  void set_orientation(Orientation orientation);
191 
192 
198 
203  const Widget* get_plus_button() const;
204 
210 
215  const Widget* get_minus_button() const;
216 
222 
227  const Gtk::Widget* get_popup() const;
228 
229 
236  Glib::SignalProxy1< void,double > signal_value_changed();
237 
238 
239  //Ignore key-binding signals:
240 
241 
247  Glib::PropertyProxy< double > property_value() ;
248 
254  Glib::PropertyProxy_ReadOnly< double > property_value() const;
255 
261  Glib::PropertyProxy< IconSize > property_size() ;
262 
268  Glib::PropertyProxy_ReadOnly< IconSize > property_size() const;
269 
275  Glib::PropertyProxy< Adjustment* > property_adjustment() ;
276 
282  Glib::PropertyProxy_ReadOnly< Adjustment* > property_adjustment() const;
283 
289  Glib::PropertyProxy< Glib::StringArrayHandle > property_icons() ;
290 
296  Glib::PropertyProxy_ReadOnly< Glib::StringArrayHandle > property_icons() const;
297 
303  Glib::PropertyProxy< Orientation > property_orientation() ;
304 
310  Glib::PropertyProxy_ReadOnly< Orientation > property_orientation() const;
311 
312 
313 };
314 
315 } // namespace Gtk
316 
317 
318 namespace Glib
319 {
328  Gtk::ScaleButton* wrap(GtkScaleButton* object, bool take_copy = false);
329 } //namespace Glib
330 
331 
332 #endif /* _GTKMM_SCALEBUTTON_H */
333 
Gtk::Adjustment * get_adjustment() const
Widget * get_plus_button()
Glib::PropertyProxy< IconSize > property_size()
Gtk::Widget * get_popup()
Orientation get_orientation()
Gtk::ScaleButton * wrap(GtkScaleButton *object, bool take_copy=false)
const Gtk::Widget * get_popup() const
void set_value(double value)
void set_adjustment(Gtk::Adjustment &adjustment)
Gtk::Adjustment * get_adjustment()
Glib::PropertyProxy_ReadOnly< IconSize > property_size() const
Glib::PropertyProxy_ReadOnly< Glib::StringArrayHandle > property_icons() const
const Widget * get_minus_button() const
double get_value() const
const GtkScaleButton * gobj() const
Provides access to the underlying C GtkObject.
Definition: scalebutton.h:98
Glib::PropertyProxy< double > property_value()
Glib::PropertyProxy_ReadOnly< Orientation > property_orientation() const
const Widget * get_plus_button() const
virtual void on_value_changed(double value)
This is a default handler for the signal signal_value_changed().
Widget * get_minus_button()
GtkScaleButton * gobj()
Provides access to the underlying C GtkObject.
Definition: scalebutton.h:95
Glib::PropertyProxy_ReadOnly< double > property_value() const
virtual ~ScaleButton()
ScaleButton(IconSize size, double min, double max, double step, const Glib::StringArrayHandle &icons)
void set_orientation(Orientation orientation)
Glib::PropertyProxy< Adjustment * > property_adjustment()
Glib::PropertyProxy< Glib::StringArrayHandle > property_icons()
Glib::PropertyProxy< Orientation > property_orientation()
void set_icons(const Glib::StringArrayHandle &icons)
Glib::SignalProxy1< void, double > signal_value_changed()
Glib::PropertyProxy_ReadOnly< Adjustment * > property_adjustment() const
Definition: ardour_ui.h:188