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)
5  2008, Joel Holdsworth <joel@airwebreathe.org.uk>
6 
7   **Lumiera** is free software; you can redistribute it and/or modify it
8   under the terms of the GNU General Public License as published by the
9   Free Software Foundation; either version 2 of the License, or (at your
10   option) any later version. See the file COPYING for further details.
11 
12 */
13 
14 
23 #ifndef STAGE_DIALOG_NAME_CHOOSER_H
24 #define STAGE_DIALOG_NAME_CHOOSER_H
25 
26 #include "stage/gtk-base.hpp"
27 
28 
29 namespace stage {
30 namespace dialog {
31 
37  : public Gtk::Dialog
38  {
39  Gtk::HBox hBox_;
40  Gtk::Label caption_;
41  Gtk::Entry name_;
42 
43  public:
51  NameChooser(Gtk::Window &parent, cuString title, cuString defaultName);
52 
58  cuString
59  getName() const
60  {
61  return name_.get_text();
62  }
63  };
64 
65 
66 }} // namespace stage::dialog
67 #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:37
cuString getName() const
Gets the current name of the chosen in the dialog.
A set of basic GTK includes for the UI.