Code

RegisteredEnum is now subclassed from RegisteredWidget<enum> instead of old RegisteredWdg
[inkscape.git] / src / ui / widget / button.h
1 /**
2  * \brief Button and CheckButton widgets
3  *
4  * Author:
5  *   buliabyak@gmail.com
6  *
7  * Copyright (C) 2005 author
8  *
9  * Released under GNU GPL.  Read the file 'COPYING' for more information.
10  */
12 #ifndef INKSCAPE_UI_WIDGET_BUTTON_H
13 #define INKSCAPE_UI_WIDGET_BUTTON_H
15 #include <gtkmm/button.h>
16 #include <gtkmm/checkbutton.h>
17 #include <gtkmm/tooltips.h>
19 namespace Inkscape {
20 namespace UI {
21 namespace Widget {
23 class Button : public Gtk::Button
24 {
25 public:
26     Button();
27     Button(Glib::ustring const &label, Glib::ustring const &tooltip);
28 protected:
29     Gtk::Tooltips _tooltips;
30 };
32 class CheckButton : public Gtk::CheckButton
33 {
34 public:
35     CheckButton();
36     CheckButton(Glib::ustring const &label, Glib::ustring const &tooltip);
37 protected:
38     Gtk::Tooltips _tooltips;
39 };
41 } // namespace Widget
42 } // namespace UI
43 } // namespace Inkscape
45 #endif // INKSCAPE_UI_WIDGET_BUTTON_H
47 /* 
48   Local Variables:
49   mode:c++
50   c-file-style:"stroustrup"
51   c-file-offsets:((innamespace . 0)(inline-open . 0))
52   indent-tabs-mode:nil
53   fill-column:99
54   End:
55 */
56 // vim: filetype=c++:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :