Code

updated spanish.nsh and inkscape.nsi to reflect latest file-changes
[inkscape.git] / trunk / src / widgets / calligraphic-profile-rename.h
1 /** @file
2  * @brief Dialog for naming calligraphic profiles
3  */
4 /* Author:
5  *   Aubanel MONNIER 
6  *
7  * Copyright (C) 2007 Authors
8  * Released under GNU GPL.  Read the file 'COPYING' for more information
9  */
11 #ifndef INKSCAPE_DIALOG_CALLIGRAPHIC_PROFILE_H
12 #define INKSCAPE_DIALOG_CALLIGRAPHIC_PROFILE_H
14 #include <gtkmm/dialog.h>
15 #include <gtkmm/entry.h>
16 #include <gtkmm/label.h>
17 #include <gtkmm/table.h>
18 struct SPDesktop;
20 namespace Inkscape {
21 namespace UI {
22 namespace Dialog {
23       
24 class CalligraphicProfileRename : public Gtk::Dialog {  
25 public:
26     CalligraphicProfileRename();
27     virtual ~CalligraphicProfileRename() {}
28     Glib::ustring getName() const {
29         return "CalligraphicProfileRename";
30     }
31     
32     static void show(SPDesktop *desktop);
33     static bool applied() {
34         return instance()._applied;
35     }
36     static Glib::ustring getProfileName() {
37         return instance()._profile_name;
38     }
40 protected:
41     void _close();
42     void _apply();
44     Gtk::Label        _profile_name_label;
45     Gtk::Entry        _profile_name_entry;
46     Gtk::Table        _layout_table;
47     Gtk::Button       _close_button;
48     Gtk::Button       _apply_button;
49     Glib::ustring _profile_name;
50     bool _applied;
51 private:
52     static CalligraphicProfileRename &instance() {
53         static CalligraphicProfileRename instance_;
54         return instance_;
55     }
56     CalligraphicProfileRename(CalligraphicProfileRename const &); // no copy
57     CalligraphicProfileRename &operator=(CalligraphicProfileRename const &); // no assign
58 };
59  
60 } // namespace Dialog
61 } // namespace UI
62 } // namespace Inkscape
64 #endif // INKSCAPE_DIALOG_CALLIGRAPHIC_PROFILE_H
66 /*
67   Local Variables:
68   mode:c++
69   c-file-style:"stroustrup"
70   c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
71   indent-tabs-mode:nil
72   fill-column:99
73   End:
74 */
75 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :