~ubuntu-branches/ubuntu/karmic/gtkmm2.4/karmic

« back to all changes in this revision

Viewing changes to gtk/src/scalebutton.hg

  • Committer: Bazaar Package Importer
  • Author(s): Robert Ancell
  • Date: 2009-09-22 10:14:59 UTC
  • mfrom: (1.2.42 upstream)
  • Revision ID: james.westby@ubuntu.com-20090922101459-pespb00fbm1mlqbd
Tags: 1:2.18.1-0ubuntu1
* New upstream release: (LP: #434355)
  - RecentManager: Undeprecate get_default().
  - Clipboard: wait_for_targets): Fix a crash.
  - Window: Added set_icon_name().
  - Require a recent pangomm.
  - Style: Fix a compiler error with the Intel C++ compiler.
  - Fix recently-introduced problems with disable-deprecated options.
* debian/control.in:
  - Bump libpangomm-1.4-dev depends and build-depends

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $Id: scalebutton.hg,v 1.5 2005/11/30 14:10:49 murrayc Exp $ */
2
 
 
3
 
/* scalebutton.h
4
 
 *
 
1
/*
5
2
 * Copyright (C) 2007 The gtkmm Development Team
6
3
 *
7
4
 * This library is free software; you can redistribute it and/or
19
16
 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20
17
 */
21
18
 
 
19
#m4 _PUSH(SECTION_CC_PRE_INCLUDES)
 
20
#undef GTK_DISABLE_DEPRECATED
 
21
#m4 _POP()
 
22
_CONFIGINCLUDE(gtkmmconfig.h)
 
23
 
22
24
#include <gtkmm/button.h>
23
25
#include <gtkmm/adjustment.h>
24
26
#include <gtkmm/enums.h>
25
27
_DEFS(gtkmm,gtk)
26
28
_PINCLUDE(gtkmm/private/button_p.h)
27
29
 
28
 
 
29
30
namespace Gtk
30
31
{
31
32
 
33
34
 
34
35
/** A button which pops up a scale widget.
35
36
 *
36
 
 * This kind of widget is commonly used for volume controls in multimedia 
37
 
 * applications, and there is a Gtk::VolumeButton subclass that is tailored 
 
37
 * This kind of widget is commonly used for volume controls in multimedia
 
38
 * applications, and there is a Gtk::VolumeButton subclass that is tailored
38
39
 * for this use case.
39
 
 * 
 
40
 *
40
41
 * @ingroup Widgets
41
42
 * @newin{2,12}
42
43
 */
43
44
class ScaleButton : public Button
44
45
{
45
46
  _CLASS_GTKOBJECT(ScaleButton, GtkScaleButton, GTK_SCALE_BUTTON, Gtk::Button, GtkButton)
 
47
 
46
48
public:
47
 
  
48
49
  _WRAP_CTOR(ScaleButton(IconSize size, double min, double max, double step, const Glib::StringArrayHandle& icons), gtk_scale_button_new)
49
50
 
50
51
  _WRAP_METHOD(void set_icons(const Glib::StringArrayHandle& icons), gtk_scale_button_set_icons)
51
52
  _WRAP_METHOD(double get_value() const, gtk_scale_button_get_value)
52
53
  _WRAP_METHOD(void set_value(double value), gtk_scale_button_set_value)
 
54
 
 
55
  // TODO: The overload makes no sense, as the same type is returned
 
56
  // by both methods.  Also, the refreturn looks fishy to me.
53
57
  _WRAP_METHOD(Gtk::Adjustment* get_adjustment(), gtk_scale_button_get_adjustment, refreturn)
54
58
  _WRAP_METHOD(Gtk::Adjustment* get_adjustment() const, gtk_scale_button_get_adjustment, constversion)
 
59
 
55
60
  _WRAP_METHOD(void set_adjustment(Gtk::Adjustment& adjustment), gtk_scale_button_set_adjustment)
 
61
 
 
62
  // TODO: Should be deprecated, but we have no replacement yet.
56
63
  _WRAP_METHOD(Orientation get_orientation(), gtk_scale_button_get_orientation)
57
64
  _WRAP_METHOD(void set_orientation(Orientation orientation), gtk_scale_button_set_orientation)
 
65
 
58
66
  _WRAP_METHOD(Widget* get_plus_button(), gtk_scale_button_get_plus_button)
59
67
  _WRAP_METHOD(const Widget* get_plus_button() const, gtk_scale_button_get_plus_button, constversion)
60
68
  _WRAP_METHOD(Widget* get_minus_button(), gtk_scale_button_get_minus_button)
74
82
  _WRAP_PROPERTY("orientation", Orientation)
75
83
};
76
84
 
77
 
 
78
85
} // namespace Gtk
79