Lumiera  0.pre.03
»edit your freedom«
NameChooser Class Reference

#include "stage/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 45 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()

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 43 of file name-chooser.cpp.

Member Function Documentation

◆ getName()

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 68 of file name-chooser.hpp.

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

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