~centralelyon2010/inkscape/imagelinks2

« back to all changes in this revision

Viewing changes to src/widgets/calligraphic-profile-rename.h

  • Committer: Ted Gould
  • Date: 2008-11-21 05:24:08 UTC
  • Revision ID: ted@canonical.com-20081121052408-tilucis2pjrrpzxx
MergeĀ fromĀ fe-moved

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/**
2
 
 *
3
 
 * \brief  Dialog for naming calligraphic profiles
4
 
 *
5
 
 * Author:
 
1
/** @file
 
2
 * @brief Dialog for naming calligraphic profiles
 
3
 */
 
4
/* Author:
6
5
 *   Aubanel MONNIER 
7
6
 *
8
 
 * Copyright (C) 2007 Aubanel MONNIER
9
 
 *
 
7
 * Copyright (C) 2007 Authors
10
8
 * Released under GNU GPL.  Read the file 'COPYING' for more information
11
9
 */
12
10
 
20
18
struct SPDesktop;
21
19
 
22
20
namespace Inkscape {
23
 
  namespace UI {
24
 
    namespace Dialogs {
 
21
namespace UI {
 
22
namespace Dialog {
25
23
      
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;}
33
 
 
34
 
        Glib::ustring getName() const { return "CalligraphicProfileDialog"; }
35
 
 
36
 
        
37
 
      protected:
38
 
        void _close();
39
 
        void _apply();
40
 
 
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
 
}
 
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
    }
 
39
 
 
40
protected:
 
41
    void _close();
 
42
    void _apply();
 
43
 
 
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
56
63
 
57
64
#endif // INKSCAPE_DIALOG_CALLIGRAPHIC_PROFILE_H
 
65
 
 
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 :