58d5953295b68ceab06ccc97a06749837d901432
1 #ifndef __UI_WIDGET_ZOOMSTATUS_H__
2 #define __UI_WIDGET_ZOOMSTATUS_H__
4 /** \file
5 * Enhanced spinbutton.
6 *
7 * Authors:
8 * Ralf Stephan <ralf@ark.in-berlin.de>
9 *
10 * Copyright (C) 2005 The Authors
11 *
12 * Released under GNU GPL, read the file 'COPYING' for more information
13 */
15 #include <gtkmm/adjustment.h>
16 #include <gtkmm/spinbutton.h>
18 struct SPDesktop;
20 namespace Gtk { class Widget; }
21 namespace Inkscape {
22 namespace UI {
23 namespace Widget {
25 class ZoomStatus : public Gtk::SpinButton
26 {
27 public:
28 ZoomStatus();
29 ~ZoomStatus();
31 void init (SPDesktop*);
32 void update();
34 protected:
35 Gtk::Adjustment _adj;
36 SPDesktop *_dt;
37 bool _upd_f;
39 virtual int on_input (double*);
40 virtual bool on_output();
41 virtual void on_value_changed();
42 };
44 } // namespace Widget
45 } // namespace UI
46 } // namespace Inkscape
49 #endif
52 /*
53 Local Variables:
54 mode:c++
55 c-file-style:"stroustrup"
56 c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
57 indent-tabs-mode:nil
58 fill-column:99
59 End:
60 */
61 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :