2
* \brief A floating dialog implementation.
5
* Gustav Broberg <broberg@kth.se>
7
* Copyright (C) 2007 Authors
9
* Released under GNU GPL. Read the file 'COPYING' for more information.
13
#ifndef INKSCAPE_UI_DIALOG_FLOATING_BEHAVIOR_H
14
#define INKSCAPE_UI_DIALOG_FLOATING_BEHAVIOR_H
16
#include <gtkmm/dialog.h>
24
class FloatingBehavior : public Behavior {
27
static Behavior *create(Dialog &dialog);
31
/** Gtk::Dialog methods */
32
operator Gtk::Widget &();
35
Gtk::VBox *get_vbox();
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);
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();
54
/** Custom signal handlers */
57
void onDesktopActivated(SPDesktop *desktop);
61
FloatingBehavior(Dialog& dialog);
63
Gtk::Dialog *_d; //< the actual dialog
67
} // namespace Behavior
70
} // namespace Inkscape
72
#endif // INKSCAPE_UI_DIALOG_FLOATING_BEHAVIOR_H
77
c-file-style:"stroustrup"
78
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
83
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :