Code

* Merge from trunk
[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     bool isFloatWindowProblem() const;
46 private:
47     UXManager();
49     bool floatwindowIssues;
50 };
52 } // namespace UI
53 } // namespace Inkscape
55 #endif // SEEN_UI_UXMANAGER_H
56 /*
57   Local Variables:
58   mode:c++
59   c-file-style:"stroustrup"
60   c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
61   indent-tabs-mode:nil
62   fill-column:99
63   End:
64 */
65 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :