summaryrefslogtreecommitdiffstats
path: root/src/widgets/calligraphic-profile-rename.h
blob: 91952a9c1fb3808e17ca380c346a27f647de3858 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/**
 *
 * \brief  Dialog for naming calligraphic profiles
 *
 * Author:
 *   Aubanel MONNIER 
 *
 * Copyright (C) 2007 Aubanel MONNIER
 *
 * Released under GNU GPL.  Read the file 'COPYING' for more information
 */

#ifndef INKSCAPE_DIALOG_CALLIGRAPHIC_PROFILE_H
#define INKSCAPE_DIALOG_CALLIGRAPHIC_PROFILE_H

#include <gtkmm/dialog.h>
#include <gtkmm/entry.h>
#include <gtkmm/label.h>
#include <gtkmm/table.h>

namespace Inkscape {
  namespace UI {
    namespace Dialogs {
      
      class  CalligraphicProfileDialog: public Gtk::Dialog {  
      public:
	CalligraphicProfileDialog();
	virtual ~CalligraphicProfileDialog(){} ;
	static void show(SPDesktop *desktop);
	static bool applied(){return instance()._applied;}
	static Glib::ustring getProfileName() { return instance()._profile_name;}

	Glib::ustring getName() const { return "CalligraphicProfileDialog"; }

	
      protected:
	void _close();
	void _apply();

	Gtk::Label        _profile_name_label;
	Gtk::Entry        _profile_name_entry;
	Gtk::Table        _layout_table;
	Gtk::Button       _close_button;
	Gtk::Button       _apply_button;
	Glib::ustring _profile_name;
	bool _applied;
      private:
	static CalligraphicProfileDialog &instance(){static CalligraphicProfileDialog instance; return instance;}
	CalligraphicProfileDialog(CalligraphicProfileDialog const &); // no copy
	CalligraphicProfileDialog &operator=(CalligraphicProfileDialog  const &); // no assign
      };      
    }
  }
}

#endif // INKSCAPE_DIALOG_CALLIGRAPHIC_PROFILE_H