Code

Avoid crash by uninitialized perspectives.
[inkscape.git] / src / widgets / toolbox.h
1 #ifndef SEEN_TOOLBOX_H
2 #define SEEN_TOOLBOX_H
4 /**
5  * \brief Main toolbox
6  *
7  * Authors:
8  *   Lauris Kaplinski <lauris@kaplinski.com>
9  *   Frank Felfe <innerspace@iname.com>
10  *
11  * Copyright (C) 1999-2002 Authors
12  * Copyright (C) 2001-2002 Ximian, Inc.
13  *
14  * Released under GNU GPL, read the file 'COPYING' for more information
15  */
17 #include <gtk/gtkstyle.h>
18 #include <gtk/gtktooltips.h>
19 #include <glibmm/ustring.h>
21 #include "forward.h"
22 #include "icon-size.h"
24 namespace Inkscape {
25 namespace UI {
27 class ToolboxFactory
28 {
29 public:
30     static void setToolboxDesktop(GtkWidget *toolbox, SPDesktop *desktop);
31     static void setOrientation(GtkWidget* toolbox, GtkOrientation orientation);
32     static void showAuxToolbox(GtkWidget* toolbox);
34     static GtkWidget *createToolToolbox();
35     static GtkWidget *createAuxToolbox();
36     static GtkWidget *createCommandsToolbox();
37     static GtkWidget *createSnapToolbox();
39     static void updateSnapToolbox(SPDesktop *desktop, SPEventContext *eventcontext, GtkWidget *toolbox);
41     static Inkscape::IconSize prefToSize(Glib::ustring const &path, int base = 0 );
43 private:
44     ToolboxFactory();
45 };
47 } // namespace UI
48 } // namespace Inkscape
51 // utility
53 // TODO remove this:
54 void sp_toolbox_add_label(GtkWidget *tbl, gchar const *title, bool wide = true);
57 #endif /* !SEEN_TOOLBOX_H */
59 /*
60   Local Variables:
61   mode:c++
62   c-file-style:"stroustrup"
63   c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
64   indent-tabs-mode:nil
65   fill-column:99
66   End:
67 */
68 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :