Cross Reference: /inkscape/src/interface.h
interface.h revision 7c482efdec6bbe4004c5078fd8470efc3a2085f2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
#ifndef SEEN_SP_INTERFACE_H
#define SEEN_SP_INTERFACE_H
/*
* Main UI stuff
*
* Authors:
* Lauris Kaplinski <lauris@kaplinski.com>
* Frank Felfe <innerspace@iname.com>
* Abhishek Sharma
* Kris De Gussem <Kris.DeGussem@gmail.com>
*
* Copyright (C) 2012 Kris De Gussem
* Copyright (C) 1999-2002 authors
* Copyright (C) 2001-2002 Ximian, Inc.
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#include <gtk/gtk.h>
#include <gtkmm/menu.h>
#include "sp-item.h"
class SPViewWidget;
namespace Inkscape {
class Verb;
namespace UI {
namespace View {
class View;
} // namespace View
} // namespace UI
} // namespace Inkscape
/**
* Create a new document window.
*/
void sp_create_window (SPViewWidget *vw, gboolean editable);
/**
*
*/
void sp_ui_close_view (GtkWidget *widget);
/**
*
*/
void sp_ui_new_view (void);
void sp_ui_new_view_preview (void);
/**
*
*/
unsigned int sp_ui_close_all (void);
/**
*
*/
GtkWidget *sp_ui_main_menubar (Inkscape::UI::View::View *view);
static GtkWidget *sp_ui_menu_append_item_from_verb(GtkMenu *menu, Inkscape::Verb *verb, Inkscape::UI::View::View *view, bool radio = false, GSList *group = NULL);
/**
*
*/
void sp_menu_append_recent_documents (GtkWidget *menu);
/**
*
*/
void sp_ui_dialog_title_string (Inkscape::Verb * verb, gchar* c);
/**
*
*/
void sp_ui_error_dialog (const gchar * message);
bool sp_ui_overwrite_file (const gchar * filename);
class ContextMenu : public Gtk::Menu
{
public:
ContextMenu(Inkscape::UI::View::View *view, SPItem *item);
~ContextMenu(void);
private:
SPItem *_item;
SPObject *_object;
SPDesktop *_desktop;
std::vector<Gtk::SeparatorMenuItem*> separators;
Gtk::MenuItem MIGroup;
Gtk::MenuItem MIParent;
Gtk::SeparatorMenuItem* AddSeparator(void);
void AppendItemFromVerb(Inkscape::Verb *verb, Inkscape::UI::View::View *view);
void MakeObjectMenu (void);
void MakeItemMenu (void);
void MakeGroupMenu (void);
void MakeAnchorMenu (void);
void MakeImageMenu (void);
void MakeShapeMenu (void);
void MakeTextMenu (void);
void EnterGroup(Gtk::MenuItem* mi);
void LeaveGroup(void);
void ItemProperties(void);
void ItemSelectThis(void);
void SelectSameFillStroke(void);
void ItemCreateLink(void);
void SetMask(void);
void ReleaseMask(void);
void SetClip(void);
void ReleaseClip(void);
void ActivateUngroup(void);
void AnchorLinkProperties(void);
void AnchorLinkFollow(void);
void AnchorLinkRemove(void);
void ImageProperties(void);
void ImageEdit(void);
Glib::ustring getImageEditorName();
void ImageEmbed(void);
void ImageExtract(void);
void FillSettings(void);
void TextSettings(void);
void SpellcheckSettings(void);
};
#endif // SEEN_SP_INTERFACE_H
/*
Local Variables:
mode:c++
c-file-style:"stroustrup"
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
indent-tabs-mode:nil
fill-column:99
End:
*/
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :