Code

Use subdirectories with icon sizes.
[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  *   Jon A. Cruz <jon@joncruz.org>
11  *
12  * Copyright (C) 1999-2002 Authors
13  * Copyright (C) 2001-2002 Ximian, Inc.
14  *
15  * Released under GNU GPL, read the file 'COPYING' for more information
16  */
18 #include <gtk/gtkstyle.h>
19 #include <gtk/gtktooltips.h>
20 #include <glibmm/ustring.h>
22 #include "forward.h"
23 #include "icon-size.h"
25 namespace Inkscape {
26 namespace UI {
28 class ToolboxFactory
29 {
30 public:
31     static void setToolboxDesktop(GtkWidget *toolbox, SPDesktop *desktop);
32     static void setOrientation(GtkWidget* toolbox, GtkOrientation orientation);
33     static void showAuxToolbox(GtkWidget* toolbox);
35     static GtkWidget *createToolToolbox();
36     static GtkWidget *createAuxToolbox();
37     static GtkWidget *createCommandsToolbox();
38     static GtkWidget *createSnapToolbox();
40     static Glib::ustring getToolboxName(GtkWidget* toolbox);
42     static void updateSnapToolbox(SPDesktop *desktop, SPEventContext *eventcontext, GtkWidget *toolbox);
44     static Inkscape::IconSize prefToSize(Glib::ustring const &path, int base = 0 );
46 private:
47     ToolboxFactory();
48 };
50 } // namespace UI
51 } // namespace Inkscape
54 // utility
56 // TODO remove this:
57 void sp_toolbox_add_label(GtkWidget *tbl, gchar const *title, bool wide = true);
60 #endif /* !SEEN_TOOLBOX_H */
62 /*
63   Local Variables:
64   mode:c++
65   c-file-style:"stroustrup"
66   c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
67   indent-tabs-mode:nil
68   fill-column:99
69   End:
70 */
71 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :