28
32
virtual ~EditWidgetInterface() {}
30
34
/// Returns pointer to window UI object as void*
31
virtual void *getWindow() = 0;
35
virtual Gtk::Window *getWindow() = 0;
33
37
/// Set the widget's title
34
38
virtual void setTitle (gchar const*) = 0;
36
40
/// Show all parts of widget the user wants to see.
37
41
virtual void layout() = 0;
39
43
/// Present widget to user
40
44
virtual void present() = 0;
42
46
/// Returns geometry of widget
43
47
virtual void getGeometry (gint &x, gint &y, gint &w, gint &h) = 0;
45
49
/// Change the widget's size
46
50
virtual void setSize (gint w, gint h) = 0;
48
52
/// Move widget to specified position
49
53
virtual void setPosition (NR::Point p) = 0;
51
55
/// Transientize widget
52
56
virtual void setTransient (void*, int) = 0;
54
58
/// Return mouse position in widget
55
59
virtual NR::Point getPointer() = 0;
61
/// Make widget iconified
62
virtual void setIconified() = 0;
64
/// Make widget maximized on screen
65
virtual void setMaximized() = 0;
57
67
/// Make widget fill screen and show it if possible.
58
68
virtual void setFullscreen() = 0;
60
70
/// Shuts down the desktop object for the view being closed. It checks
61
71
/// to see if the document has been edited, and if so prompts the user
62
72
/// to save, discard, or cancel. Returns TRUE if the shutdown operation
63
73
/// is cancelled or if the save is cancelled or fails, FALSE otherwise.
64
74
virtual bool shutdown() = 0;
66
76
/// Destroy and delete widget.
67
77
virtual void destroy() = 0;
70
80
/// Queue a redraw request with the canvas
71
81
virtual void requestCanvasUpdate() = 0;
83
/// Force a redraw of the canvas
84
virtual void requestCanvasUpdateAndWait() = 0;
86
/// Enable interaction on this desktop
87
virtual void enableInteraction() = 0;
89
/// Disable interaction on this desktop
90
virtual void disableInteraction() = 0;
73
92
/// Update the "active desktop" indicator
74
93
virtual void activateDesktop() = 0;
76
95
/// Update the "inactive desktop" indicator
77
96
virtual void deactivateDesktop() = 0;
79
98
/// Set rulers to position
80
99
virtual void viewSetPosition (NR::Point p) = 0;
82
101
/// Update rulers from current values
83
102
virtual void updateRulers() = 0;
85
104
/// Update scrollbars from current values
86
105
virtual void updateScrollbars (double scale) = 0;
88
107
/// Toggle rulers on/off and set preference value accordingly
89
108
virtual void toggleRulers() = 0;
91
110
/// Toggle scrollbars on/off and set preference value accordingly
92
111
virtual void toggleScrollbars() = 0;
113
/// Toggle CMS on/off and set preference value accordingly
114
virtual void toggleColorProfAdjust() = 0;
94
116
/// Temporarily block signals and update zoom display
95
117
virtual void updateZoom() = 0;
97
119
/// The zoom display will get the keyboard focus.
98
120
virtual void letZoomGrabFocus() = 0;
100
122
/// In auxiliary toolbox, set focus to widget having specific id
101
123
virtual void setToolboxFocusTo (const gchar *) = 0;
103
125
/// In auxiliary toolbox, set value of adjustment with specific id
104
126
virtual void setToolboxAdjustmentValue (const gchar *, double) = 0;
128
/// In auxiliary toolbox, select one of the "select one" options (usually radio toggles)
129
virtual void setToolboxSelectOneValue (const gchar *, gint) = 0;
106
131
/// In auxiliary toolbox, return true if specific togglebutton is active
107
132
virtual bool isToolboxButtonActive (gchar const*) = 0;
109
134
/// Set the coordinate display
110
135
virtual void setCoordinateStatus (NR::Point p) = 0;
112
137
/// Message widget will get no content
113
138
virtual void setMessage (Inkscape::MessageType type, gchar const* msg) = 0;
115
140
/// Open yes/no dialog with warning text and confirmation question.
116
141
virtual bool warnDialog (gchar*) = 0;
143
virtual Inkscape::UI::Widget::Dock* getDock () = 0;
119
146
} // namespace View