Lumiera 0.pre.04~rc.1
»edit your freedom«
Loading...
Searching...
No Matches
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
29namespace stage {
30namespace 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
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.
cuString getName() const
Gets the current name of the chosen in the dialog.
A set of basic GTK includes for the UI.
Lumiera GTK UI implementation root.
Definition guifacade.cpp:37
const uString cuString
Definition gtk-base.hpp:93