OGS
SetNameDialog.h
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: Copyright (c) OpenGeoSys Community (opengeosys.org)
2
// SPDX-License-Identifier: BSD-3-Clause
3
4
#pragma once
5
6
#include <QDialog>
7
#include "
GeoLib/GeoType.h
"
8
9
class
QDialogButtonBox;
10
class
QLabel;
11
class
QLineEdit;
12
class
QVBoxLayout;
13
17
class
SetNameDialog
:
public
QDialog
18
{
19
Q_OBJECT
20
21
public
:
23
SetNameDialog
(
const
std::string& geo_object_type, std::size_t
id
,
24
const
std::string& old_name, QDialog* parent =
nullptr
);
25
~SetNameDialog
()
override
;
26
27
std::string
getNewName
();
28
29
private
:
31
void
setupDialog
(
const
QString &label,
const
std::string &old_name);
32
33
QLabel*
_txt_label
;
34
QLineEdit*
_new_name
;
35
QVBoxLayout*
_layout
;
36
QDialogButtonBox*
_buttonBox
;
37
38
private
slots:
40
void
accept
()
override
;
41
43
void
reject
()
override
;
44
};
GeoType.h
SetNameDialog::setupDialog
void setupDialog(const QString &label, const std::string &old_name)
Constructs a dialog window.
Definition
SetNameDialog.cpp:29
SetNameDialog::_buttonBox
QDialogButtonBox * _buttonBox
Definition
SetNameDialog.h:36
SetNameDialog::_new_name
QLineEdit * _new_name
Definition
SetNameDialog.h:34
SetNameDialog::getNewName
std::string getNewName()
Definition
SetNameDialog.cpp:49
SetNameDialog::_txt_label
QLabel * _txt_label
Definition
SetNameDialog.h:33
SetNameDialog::reject
void reject() override
Instructions if the Cancel-Button has been pressed.
Definition
SetNameDialog.cpp:59
SetNameDialog::~SetNameDialog
~SetNameDialog() override
Definition
SetNameDialog.cpp:21
SetNameDialog::accept
void accept() override
Instructions if the OK-Button has been pressed.
Definition
SetNameDialog.cpp:54
SetNameDialog::SetNameDialog
SetNameDialog(const std::string &geo_object_type, std::size_t id, const std::string &old_name, QDialog *parent=nullptr)
Constructor.
Definition
SetNameDialog.cpp:11
SetNameDialog::_layout
QVBoxLayout * _layout
Definition
SetNameDialog.h:35
Applications
DataExplorer
DataView
SetNameDialog.h
Generated by
1.14.0