~vaifrax/inkscape/bugfix170049

« back to all changes in this revision

Viewing changes to src/ui/widget/zoom-status.h

  • Committer: mental
  • Date: 2006-01-16 02:36:01 UTC
  • Revision ID: mental@users.sourceforge.net-20060116023601-wkr0h7edl5veyudq
moving trunk for module inkscape

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef __UI_WIDGET_ZOOMSTATUS_H__
 
2
#define __UI_WIDGET_ZOOMSTATUS_H__
 
3
 
 
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
 */
 
14
 
 
15
#include <gtkmm/adjustment.h>
 
16
#include <gtkmm/spinbutton.h>
 
17
 
 
18
struct SPDesktop;
 
19
 
 
20
namespace Gtk { class Widget; }
 
21
namespace Inkscape {
 
22
    namespace UI {
 
23
        namespace Widget {
 
24
 
 
25
class ZoomStatus : public Gtk::SpinButton
 
26
{
 
27
public:
 
28
    ZoomStatus();
 
29
    ~ZoomStatus();
 
30
 
 
31
    void init (SPDesktop*);
 
32
    void update();
 
33
 
 
34
protected:
 
35
    Gtk::Adjustment _adj;
 
36
    SPDesktop *_dt;
 
37
    bool _upd_f;
 
38
 
 
39
    virtual int  on_input (double*);
 
40
    virtual bool on_output();
 
41
    virtual void on_value_changed();
 
42
};
 
43
 
 
44
} // namespace Widget
 
45
} // namespace UI
 
46
} // namespace Inkscape
 
47
 
 
48
 
 
49
#endif 
 
50
 
 
51
 
 
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 :