Lumiera  0.pre.03
»edit your freedom«
name-chooser.hpp
Go to the documentation of this file.
1 /*
2  NAME-CHOOSER.hpp - dialog to enter a string name
3 
4  Copyright (C) Lumiera.org
5  2008, Joel Holdsworth <joel@airwebreathe.org.uk>
6 
7  This program is free software; you can redistribute it and/or
8  modify it under the terms of the GNU General Public License as
9  published by the Free Software Foundation; either version 2 of
10  the License, or (at your option) any later version.
11 
12  This program is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  GNU General Public License for more details.
16 
17  You should have received a copy of the GNU General Public License
18  along with this program; if not, write to the Free Software
19  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20 
21 */
22 
23 
32 #ifndef STAGE_DIALOG_NAME_CHOOSER_H
33 #define STAGE_DIALOG_NAME_CHOOSER_H
34 
35 #include "stage/gtk-base.hpp"
36 
37 
38 namespace stage {
39 namespace dialog {
40 
46  : public Gtk::Dialog
47  {
48  Gtk::HBox hBox_;
49  Gtk::Label caption_;
50  Gtk::Entry name_;
51 
52  public:
60  NameChooser(Gtk::Window &parent, cuString title, cuString defaultName);
61 
67  cuString
68  getName() const
69  {
70  return name_.get_text();
71  }
72  };
73 
74 
75 }} // namespace stage::dialog
76 #endif /*STAGE_DIALOG_NAME_CHOOSER_H*/
The name chooser dialog is a modal dialog box that prompts the user to choose a string name...
NameChooser(Gtk::Window &parent, cuString title, cuString defaultName)
Creates a name chooser dialog.
Lumiera GTK UI implementation root.
Definition: guifacade.cpp:46
cuString getName() const
Gets the current name of the chosen in the dialog.
A set of basic GTK includes for the UI.