Code

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