133d94a280c742d586adab238a808acd946158e9
1 /**\r
2 *\r
3 * \brief Dialog for naming calligraphic profiles\r
4 *\r
5 * Author:\r
6 * Aubanel MONNIER \r
7 *\r
8 * Copyright (C) 2007 Aubanel MONNIER\r
9 *\r
10 * Released under GNU GPL. Read the file 'COPYING' for more information\r
11 */\r
12 \r
13 #ifndef INKSCAPE_DIALOG_CALLIGRAPHIC_PROFILE_H\r
14 #define INKSCAPE_DIALOG_CALLIGRAPHIC_PROFILE_H\r
15 \r
16 #include <gtkmm/dialog.h>\r
17 #include <gtkmm/entry.h>\r
18 #include <gtkmm/label.h>\r
19 #include <gtkmm/table.h>\r
20 \r
21 namespace Inkscape {\r
22 namespace UI {\r
23 namespace Dialogs {\r
24 \r
25 class CalligraphicProfileDialog: public Gtk::Dialog { \r
26 public:\r
27 CalligraphicProfileDialog();\r
28 virtual ~CalligraphicProfileDialog(){} ;\r
29 static void show(SPDesktop *desktop);\r
30 static bool applied(){return instance()._applied;}\r
31 static Glib::ustring getProfileName() { return instance()._profile_name;}\r
32 \r
33 Glib::ustring getName() const { return "CalligraphicProfileDialog"; }\r
34 \r
35 \r
36 protected:\r
37 void _close();\r
38 void _apply();\r
39 \r
40 Gtk::Label _profile_name_label;\r
41 Gtk::Entry _profile_name_entry;\r
42 Gtk::Table _layout_table;\r
43 Gtk::Button _close_button;\r
44 Gtk::Button _apply_button;\r
45 Glib::ustring _profile_name;\r
46 bool _applied;\r
47 private:\r
48 static CalligraphicProfileDialog &instance(){static CalligraphicProfileDialog instance; return instance;}\r
49 CalligraphicProfileDialog(CalligraphicProfileDialog const &); // no copy\r
50 CalligraphicProfileDialog &operator=(CalligraphicProfileDialog const &); // no assign\r
51 }; \r
52 }\r
53 }\r
54 }\r
55 \r
56 #endif INKSCAPE_DIALOG_CALLIGRAPHIC_PROFILE_H\r