blob: 07225b8ce8d7e5bdd5c38705b310324dbf461a1b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
/**
* \brief Generic Panel widget - A generic dockable container.
*
* Authors:
* Bryce Harrington <bryce@bryceharrington.org>
* Jon A. Cruz <jon@joncruz.org>
*
* Copyright (C) 2004 Bryce Harrington
* Copyright (C) 2005 Jon A. Cruz
*
* Released under GNU GPL. Read the file 'COPYING' for more information.
*/
#ifndef SEEN_INKSCAPE_UI_WIDGET_PANEL_H
#define SEEN_INKSCAPE_UI_WIDGET_PANEL_H
#include <gtkmm/box.h>
#include <gtkmm/frame.h>
#include <gtkmm/table.h>
#include <gtkmm/button.h>
#include <gtkmm/label.h>
#include <gtkmm/menu.h>
#include <gtkmm/optionmenu.h>
#include "../previewfillable.h"
namespace Inkscape {
namespace UI {
namespace Widget {
class Panel : public Gtk::VBox
{
public:
Panel();
virtual ~Panel();
Panel(Glib::ustring const &label);
Panel(const gchar *prefs_path);
void setLabel(Glib::ustring const &label);
Glib::ustring const &getLabel() const;
const gchar *_prefs_path;
void restorePanelPrefs();
protected:
void _setTargetFillable( PreviewFillable *target );
void _regItem( Gtk::MenuItem* item, int group, int id );
virtual void _handleAction( int setId, int itemId );
private:
void init();
void bounceCall(int i, int j);
Glib::ustring label;
Gtk::HBox topBar;
Gtk::Label tabTitle;
Gtk::OptionMenu tabButton;
Gtk::Menu menu;
Gtk::Button closeButton;
PreviewFillable *_fillable;
};
} // namespace Widget
} // namespace UI
} // namespace Inkscape
#endif // SEEN_INKSCAPE_UI_WIDGET_PANEL_H
/*
Local Variables:
mode:c++
c-file-style:"stroustrup"
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
indent-tabs-mode:nil
fill-column:99
End:
*/
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :
|