OGS
|
Small dialog for setting a name for an object.
Definition at line 28 of file SetNameDialog.h.
#include <SetNameDialog.h>
Public Member Functions | |
SetNameDialog (const std::string &geo_object_type, std::size_t id, const std::string &old_name, QDialog *parent=nullptr) | |
Constructor. | |
~SetNameDialog () override | |
std::string | getNewName () |
Private Slots | |
void | accept () override |
Instructions if the OK-Button has been pressed. | |
void | reject () override |
Instructions if the Cancel-Button has been pressed. | |
Private Member Functions | |
void | setupDialog (const QString &label, const std::string &old_name) |
Constructs a dialog window. | |
Private Attributes | |
QLabel * | _txt_label |
QLineEdit * | _new_name |
QVBoxLayout * | _layout |
QDialogButtonBox * | _buttonBox |
SetNameDialog::SetNameDialog | ( | const std::string & | geo_object_type, |
std::size_t | id, | ||
const std::string & | old_name = "", | ||
QDialog * | parent = nullptr ) |
Constructor.
Definition at line 22 of file SetNameDialog.cpp.
References setupDialog().
|
override |
Definition at line 32 of file SetNameDialog.cpp.
References _buttonBox, _layout, _new_name, and _txt_label.
|
overrideprivateslot |
Instructions if the OK-Button has been pressed.
Definition at line 65 of file SetNameDialog.cpp.
Referenced by setupDialog().
std::string SetNameDialog::getNewName | ( | ) |
Definition at line 60 of file SetNameDialog.cpp.
References _new_name.
Referenced by MainWindow::showGeoNameDialog(), and MainWindow::showStationNameDialog().
|
overrideprivateslot |
Instructions if the Cancel-Button has been pressed.
Definition at line 70 of file SetNameDialog.cpp.
Referenced by setupDialog().
|
private |
Constructs a dialog window.
Definition at line 40 of file SetNameDialog.cpp.
References _buttonBox, _layout, _new_name, _txt_label, accept(), and reject().
Referenced by SetNameDialog().
|
private |
Definition at line 47 of file SetNameDialog.h.
Referenced by ~SetNameDialog(), and setupDialog().
|
private |
Definition at line 46 of file SetNameDialog.h.
Referenced by ~SetNameDialog(), and setupDialog().
|
private |
Definition at line 45 of file SetNameDialog.h.
Referenced by ~SetNameDialog(), getNewName(), and setupDialog().
|
private |
Definition at line 44 of file SetNameDialog.h.
Referenced by ~SetNameDialog(), and setupDialog().