~ubuntu-branches/debian/squeeze/inkscape/squeeze

« back to all changes in this revision

Viewing changes to src/ui/dialog/floating-behavior.h

  • Committer: Bazaar Package Importer
  • Author(s): Thomas Viehmann
  • Date: 2008-09-09 23:29:02 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20080909232902-c50iujhk1w79u8e7
Tags: 0.46-2.1
* Non-maintainer upload.
* Add upstream patch fixing a crash in the open dialog
  in the zh_CN.utf8 locale. Closes: #487623.
  Thanks to Luca Bruno for the patch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/**
 
2
 * \brief A floating dialog implementation.
 
3
 *
 
4
 * Author:
 
5
 *   Gustav Broberg <broberg@kth.se>
 
6
 *
 
7
 * Copyright (C) 2007 Authors
 
8
 *
 
9
 * Released under GNU GPL.  Read the file 'COPYING' for more information.
 
10
 */
 
11
 
 
12
 
 
13
#ifndef INKSCAPE_UI_DIALOG_FLOATING_BEHAVIOR_H
 
14
#define INKSCAPE_UI_DIALOG_FLOATING_BEHAVIOR_H
 
15
 
 
16
#include <gtkmm/dialog.h>
 
17
#include "behavior.h"
 
18
 
 
19
namespace Inkscape {
 
20
namespace UI {
 
21
namespace Dialog {
 
22
namespace Behavior {
 
23
 
 
24
class FloatingBehavior : public Behavior {
 
25
 
 
26
public:
 
27
    static Behavior *create(Dialog &dialog);
 
28
 
 
29
    ~FloatingBehavior();
 
30
 
 
31
    /** Gtk::Dialog methods */
 
32
    operator Gtk::Widget &();
 
33
    GtkWidget *gobj();
 
34
    void present();
 
35
    Gtk::VBox *get_vbox();
 
36
    void show();
 
37
    void hide();
 
38
    void show_all_children();
 
39
    void resize(int width, int height);
 
40
    void move(int x, int y);
 
41
    void set_position(Gtk::WindowPosition);
 
42
    void set_size_request(int width, int height);
 
43
    void size_request(Gtk::Requisition &requisition);
 
44
    void get_position(int &x, int &y);
 
45
    void get_size(int& width, int &height);
 
46
    void set_title(Glib::ustring title);
 
47
    void set_sensitive(bool sensitive);
 
48
 
 
49
    /** Gtk::Dialog signal proxies */
 
50
    Glib::SignalProxy0<void> signal_show();
 
51
    Glib::SignalProxy0<void> signal_hide();
 
52
    Glib::SignalProxy1<bool, GdkEventAny *> signal_delete_event();
 
53
 
 
54
    /** Custom signal handlers */
 
55
    void onHideF12();
 
56
    void onShowF12();
 
57
    void onDesktopActivated(SPDesktop *desktop);
 
58
    void onShutdown();
 
59
 
 
60
private:
 
61
    FloatingBehavior(Dialog& dialog);
 
62
 
 
63
    Gtk::Dialog *_d;   //< the actual dialog
 
64
 
 
65
};
 
66
 
 
67
} // namespace Behavior
 
68
} // namespace Dialog
 
69
} // namespace UI
 
70
} // namespace Inkscape
 
71
 
 
72
#endif // INKSCAPE_UI_DIALOG_FLOATING_BEHAVIOR_H
 
73
 
 
74
/*
 
75
  Local Variables:
 
76
  mode:c++
 
77
  c-file-style:"stroustrup"
 
78
  c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
 
79
  indent-tabs-mode:nil
 
80
  fill-column:99
 
81
  End:
 
82
*/
 
83
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :