Code

Line-end fixups
[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>
21 namespace Inkscape {
22   namespace UI {
23     namespace Dialogs {
24       
25       class  CalligraphicProfileDialog: public Gtk::Dialog {  
26       public:
27         CalligraphicProfileDialog();
28         virtual ~CalligraphicProfileDialog(){} ;
29         static void show(SPDesktop *desktop);
30         static bool applied(){return instance()._applied;}
31         static Glib::ustring getProfileName() { return instance()._profile_name;}
33         Glib::ustring getName() const { return "CalligraphicProfileDialog"; }
35         
36       protected:
37         void _close();
38         void _apply();
40         Gtk::Label        _profile_name_label;
41         Gtk::Entry        _profile_name_entry;
42         Gtk::Table        _layout_table;
43         Gtk::Button       _close_button;
44         Gtk::Button       _apply_button;
45         Glib::ustring _profile_name;
46         bool _applied;
47       private:
48         static CalligraphicProfileDialog &instance(){static CalligraphicProfileDialog instance; return instance;}
49         CalligraphicProfileDialog(CalligraphicProfileDialog const &); // no copy
50         CalligraphicProfileDialog &operator=(CalligraphicProfileDialog  const &); // no assign
51       };      
52     }
53   }
54 }
56 #endif INKSCAPE_DIALOG_CALLIGRAPHIC_PROFILE_H