Lumiera  0.pre.03
»edityourfreedom«
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
NameChooser Class Reference

#include "gui/dialog/name-chooser.hpp"

Description

The name chooser dialog is a modal dialog box that prompts the user to choose a string name.

Definition at line 42 of file name-chooser.hpp.

Public Member Functions

 NameChooser (Gtk::Window &parent, cuString title, cuString defaultName)
 Creates a name chooser dialog. More...
 
cuString getName () const
 Gets the current name of the chosen in the dialog. More...
 

Private Attributes

Gtk::Label caption_
 
Gtk::HBox hBox_
 
Gtk::Entry name_
 

Constructor & Destructor Documentation

NameChooser ( Gtk::Window &  parent,
cuString  title,
cuString  defaultName 
)

Creates a name chooser dialog.

Parameters
parentThe window which will be the parent of this dialog.
titleThe string for the title of this dialog.
default_nameThe name that will be shown by default in the edit box of the dialog.

Definition at line 40 of file name-chooser.cpp.

References gui::dialog::BorderPadding, gui::dialog::BoxSpacing, NameChooser::caption_, NameChooser::hBox_, NameChooser::name_, and NULL.

Member Function Documentation

cuString getName ( ) const
inline

Gets the current name of the chosen in the dialog.

Returns
Returns the name currently typed into the edit box of the dialog.

Definition at line 65 of file name-chooser.hpp.

Member Data Documentation

Gtk::HBox hBox_
private

Definition at line 45 of file name-chooser.hpp.

Referenced by NameChooser::NameChooser().

Gtk::Label caption_
private

Definition at line 46 of file name-chooser.hpp.

Referenced by NameChooser::NameChooser().

Gtk::Entry name_
private

Definition at line 47 of file name-chooser.hpp.

Referenced by NameChooser::NameChooser().

+ Inheritance diagram for NameChooser:
+ Collaboration diagram for NameChooser:

The documentation for this class was generated from the following files: