Code

862c675d02499792f3b72e7530ecccec975ea17b
[inkscape.git] / src / ui / uxmanager.h
1 #ifndef SEEN_UI_UXMANAGER_H
2 #define SEEN_UI_UXMANAGER_H
3 /*
4  * A simple interface for previewing representations.
5  *
6  * Authors:
7  *   Jon A. Cruz <jon@joncruz.org>
8  *
9  * Copyright (C) 2010 Jon A. Cruz
10  *
11  * Released under GNU GPL, read the file 'COPYING' for more information
12  */
14 #include <glib.h>
15 #include <vector>
17 extern "C"
18 {
19     typedef struct _GObject GObject;
20     typedef struct _GtkWidget GtkWidget;
21 }
23 class SPDesktop;
25 struct SPDesktopWidget;
28 namespace Inkscape {
29 namespace UI {
31 class UXManager
32 {
33 public:
34     static UXManager* getInstance();
35     virtual ~UXManager();
37     void addTrack( SPDesktopWidget* dtw );
38     void delTrack( SPDesktopWidget* dtw );
40     void connectToDesktop( std::vector<GtkWidget *> const & toolboxes, SPDesktop *desktop );
42     void setTask(SPDesktop* dt, gint val);
44 private:
45     UXManager();
46 };
48 } // namespace UI
49 } // namespace Inkscape
51 #endif // SEEN_UI_UXMANAGER_H
52 /*
53   Local Variables:
54   mode:c++
55   c-file-style:"stroustrup"
56   c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
57   indent-tabs-mode:nil
58   fill-column:99
59   End:
60 */
61 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :