X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fdesktop.h;h=4c255ecbbb140f9c935c43ec9afe5e423e7534ff;hb=17680991ff44a340869f04d7ce00a6889337ed7f;hp=9f3d7752076f34d021df00c841538df9be4a5b52;hpb=04f50952e01e32eef6902cce4cc1df66e9a6f2c2;p=inkscape.git diff --git a/src/desktop.h b/src/desktop.h index 9f3d77520..4c255ecbb 100644 --- a/src/desktop.h +++ b/src/desktop.h @@ -35,6 +35,8 @@ class NRRect; class SPCSSAttr; +struct _GtkWidget; +typedef struct _GtkWidget GtkWidget; struct SPCanvas; struct SPCanvasItem; struct SPCanvasGroup; @@ -83,7 +85,7 @@ struct SPDesktop : public Inkscape::UI::View::View SPCanvasItem *acetate; SPCanvasGroup *main; - SPCanvasGroup *grid; + SPCanvasGroup *gridgroup; SPCanvasGroup *guides; SPCanvasItem *drawing; SPCanvasGroup *sketch; @@ -97,8 +99,9 @@ struct SPDesktop : public Inkscape::UI::View::View GList *zooms_future; unsigned int dkey; unsigned int number; - bool is_fullscreen; + guint window_state; unsigned int interaction_disabled_counter; + bool waiting_cursor; /// \todo fixme: This has to be implemented in different way */ guint guides_active : 1; @@ -226,6 +229,7 @@ struct SPDesktop : public Inkscape::UI::View::View void setWindowPosition (NR::Point p); void setWindowSize (gint w, gint h); void setWindowTransient (void* p, int transient_policy=1); + void getToplevel( GtkWidget*& toplevel ); void presentWindow(); bool warnDialog (gchar *text); void toggleRulers(); @@ -240,13 +244,25 @@ struct SPDesktop : public Inkscape::UI::View::View void enableInteraction(); void disableInteraction(); + + void setWaitingCursor(); + void clearWaitingCursor(); + + void toggleGrid(); + bool gridsEnabled() { return grids_visible; } + bool is_iconified(); + bool is_maximized(); + bool is_fullscreen(); + + void iconify(); + void maximize(); void fullscreen(); void registerEditWidget (Inkscape::UI::View::EditWidgetInterface *widget) { _widget = widget; } - NR::Matrix w2d() const; + NR::Matrix w2d() const; //transformation from window to desktop coordinates (used for zooming) NR::Point w2d(NR::Point const &p) const; NR::Point d2w(NR::Point const &p) const; NR::Matrix doc2dt() const; @@ -267,6 +283,8 @@ private: NR::Matrix _d2w; NR::Matrix _doc2dt; + bool grids_visible; + void push_current_zoom (GList**); sigc::signal _document_replaced_signal;