Ardour  8.7-15-gadf511264b
progressbar.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 // Generated by gmmproc 2.45.3 -- DO NOT MODIFY!
3 #ifndef _GTKMM_PROGRESSBAR_H
4 #define _GTKMM_PROGRESSBAR_H
5 
6 
7 #include <glibmm/ustring.h>
8 #include <sigc++/sigc++.h>
9 
10 /* $Id: progressbar.hg,v 1.2 2004/11/10 22:05:57 murrayc Exp $ */
11 
12 /* progressbar.h
13  *
14  * Copyright (C) 1998-2002 The gtkmm Development Team
15  *
16  * This library is free software; you can redistribute it and/or
17  * modify it under the terms of the GNU Lesser General Public
18  * License as published by the Free Software Foundation; either
19  * version 2.1 of the License, or (at your option) any later version.
20  *
21  * This library is distributed in the hope that it will be useful,
22  * but WITHOUT ANY WARRANTY; without even the implied warranty of
23  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
24  * Lesser General Public License for more details.
25  *
26  * You should have received a copy of the GNU Lesser General Public
27  * License along with this library; if not, write to the Free
28  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
29  */
30 
31 #include <gtkmm/widget.h>
32 
33 
34 #ifndef DOXYGEN_SHOULD_SKIP_THIS
35 typedef struct _GtkProgressBar GtkProgressBar;
37 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
38 
39 
40 namespace Gtk
41 { class ProgressBar_Class; } // namespace Gtk
42 namespace Gtk
43 {
44 
45 
53 {
56 };
57 
58 } // namespace Gtk
59 
60 
61 #ifndef DOXYGEN_SHOULD_SKIP_THIS
62 namespace Glib
63 {
64 
65 template <>
66 class Value<Gtk::ProgressBarStyle> : public Glib::Value_Enum<Gtk::ProgressBarStyle>
67 {
68 public:
69  static GType value_type() G_GNUC_CONST;
70 };
71 
72 } // namespace Glib
73 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
74 
75 
76 namespace Gtk
77 {
78 
79 
108 class ProgressBar : public Widget
109 {
110  public:
111 #ifndef DOXYGEN_SHOULD_SKIP_THIS
112  typedef ProgressBar CppObjectType;
113  typedef ProgressBar_Class CppClassType;
114  typedef GtkProgressBar BaseObjectType;
115  typedef GtkProgressBarClass BaseClassType;
116 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
117 
118  virtual ~ProgressBar();
119 
120 #ifndef DOXYGEN_SHOULD_SKIP_THIS
121 
122 private:
123  friend class ProgressBar_Class;
124  static CppClassType progressbar_class_;
125 
126  // noncopyable
127  ProgressBar(const ProgressBar&);
128  ProgressBar& operator=(const ProgressBar&);
129 
130 protected:
131  explicit ProgressBar(const Glib::ConstructParams& construct_params);
132  explicit ProgressBar(GtkProgressBar* castitem);
133 
134 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
135 
136 public:
137 #ifndef DOXYGEN_SHOULD_SKIP_THIS
138  static GType get_type() G_GNUC_CONST;
139 
140 
141  static GType get_base_type() G_GNUC_CONST;
142 #endif
143 
145  GtkProgressBar* gobj() { return reinterpret_cast<GtkProgressBar*>(gobject_); }
146 
148  const GtkProgressBar* gobj() const { return reinterpret_cast<GtkProgressBar*>(gobject_); }
149 
150 
151 public:
152  //C++ methods used to invoke GTK+ virtual functions:
153 
154 protected:
155  //GTK+ Virtual Functions (override these to change behaviour):
156 
157  //Default Signal Handlers::
158 
159 
160 private:
161 
162 
163 public:
165 
166 
173  void pulse();
174 
175 
181  Glib::ustring get_text() const;
182 
187  void set_text(const Glib::ustring& text);
188 
189 
194  double get_fraction() const;
195 
202  void set_fraction(double fraction);
203 
204 
209  double get_pulse_step() const;
210 
216  void set_pulse_step(double fraction);
217 
218 
225 
231 
232 
238  void set_ellipsize(Pango::EllipsizeMode mode);
239 
245  Pango::EllipsizeMode get_ellipsize() const;
246 
252  Glib::PropertyProxy< Adjustment* > property_adjustment() ;
253 
259  Glib::PropertyProxy_ReadOnly< Adjustment* > property_adjustment() const;
260 
266  Glib::PropertyProxy< double > property_fraction() ;
267 
273  Glib::PropertyProxy_ReadOnly< double > property_fraction() const;
274 
280  Glib::PropertyProxy< double > property_pulse_step() ;
281 
287  Glib::PropertyProxy_ReadOnly< double > property_pulse_step() const;
288 
294  Glib::PropertyProxy< ProgressBarOrientation > property_orientation() ;
295 
301  Glib::PropertyProxy_ReadOnly< ProgressBarOrientation > property_orientation() const;
302 
308  Glib::PropertyProxy< ProgressBarStyle > property_bar_style() ;
309 
315  Glib::PropertyProxy_ReadOnly< ProgressBarStyle > property_bar_style() const;
316 
322  Glib::PropertyProxy< guint > property_activity_step() ;
323 
329  Glib::PropertyProxy_ReadOnly< guint > property_activity_step() const;
330 
336  Glib::PropertyProxy< guint > property_activity_blocks() ;
337 
343  Glib::PropertyProxy_ReadOnly< guint > property_activity_blocks() const;
344 
350  Glib::PropertyProxy< guint > property_discrete_blocks() ;
351 
357  Glib::PropertyProxy_ReadOnly< guint > property_discrete_blocks() const;
358 
364  Glib::PropertyProxy< Glib::ustring > property_text() ;
365 
371  Glib::PropertyProxy_ReadOnly< Glib::ustring > property_text() const;
372 
378  Glib::PropertyProxy< bool > property_ellipsize() ;
379 
385  Glib::PropertyProxy_ReadOnly< bool > property_ellipsize() const;
386 
387 
388 };
389 
390 } // namespace Gtk
391 
392 
393 namespace Glib
394 {
403  Gtk::ProgressBar* wrap(GtkProgressBar* object, bool take_copy = false);
404 } //namespace Glib
405 
406 
407 #endif /* _GTKMM_PROGRESSBAR_H */
408 
GtkProgressBar * gobj()
Provides access to the underlying C GtkObject.
Definition: progressbar.h:145
void set_orientation(ProgressBarOrientation orientation=PROGRESS_LEFT_TO_RIGHT)
Glib::PropertyProxy< Adjustment * > property_adjustment()
double get_pulse_step() const
Glib::PropertyProxy< guint > property_discrete_blocks()
Glib::PropertyProxy< ProgressBarOrientation > property_orientation()
void set_fraction(double fraction)
Glib::PropertyProxy< Glib::ustring > property_text()
Glib::PropertyProxy_ReadOnly< ProgressBarOrientation > property_orientation() const
Glib::PropertyProxy_ReadOnly< Glib::ustring > property_text() const
void set_pulse_step(double fraction)
Gtk::ProgressBar * wrap(GtkProgressBar *object, bool take_copy=false)
Glib::PropertyProxy< guint > property_activity_blocks()
ProgressBarOrientation get_orientation() const
Glib::PropertyProxy< guint > property_activity_step()
Glib::PropertyProxy< ProgressBarStyle > property_bar_style()
Glib::PropertyProxy< bool > property_ellipsize()
void set_ellipsize(Pango::EllipsizeMode mode)
const GtkProgressBar * gobj() const
Provides access to the underlying C GtkObject.
Definition: progressbar.h:148
void set_text(const Glib::ustring &text)
Glib::PropertyProxy< double > property_pulse_step()
Glib::PropertyProxy_ReadOnly< double > property_fraction() const
Glib::PropertyProxy_ReadOnly< double > property_pulse_step() const
Glib::PropertyProxy_ReadOnly< guint > property_discrete_blocks() const
Glib::PropertyProxy_ReadOnly< ProgressBarStyle > property_bar_style() const
virtual ~ProgressBar()
Pango::EllipsizeMode get_ellipsize() const
Glib::PropertyProxy_ReadOnly< Adjustment * > property_adjustment() const
double get_fraction() const
Glib::PropertyProxy_ReadOnly< guint > property_activity_step() const
Glib::ustring get_text() const
Glib::PropertyProxy_ReadOnly< bool > property_ellipsize() const
Glib::PropertyProxy< double > property_fraction()
Glib::PropertyProxy_ReadOnly< guint > property_activity_blocks() const
ProgressBarStyle
Definition: progressbar.h:53
@ PROGRESS_DISCRETE
Definition: progressbar.h:55
@ PROGRESS_CONTINUOUS
Definition: progressbar.h:54
Definition: ardour_ui.h:188
Definition: lobject.h:100