#include <add_trappy_circle_form.h>
|
Ui::AddTrappyCircleForm * | ui |
|
◆ AddTrappyCircleForm()
AddTrappyCircleForm::AddTrappyCircleForm |
( |
QWidget * | parent = nullptr | ) |
|
|
explicit |
8 : QDialog(parent),
ui(
new Ui::AddTrappyCircleForm) {
10 QDoubleValidator* double_validator{new QDoubleValidator()};
11 ui->abscissaLineEdit->setValidator(double_validator);
12 ui->ordinateLineEdit->setValidator(double_validator);
13 ui->radiusLineEdit->setValidator(double_validator);
14}
◆ ~AddTrappyCircleForm()
AddTrappyCircleForm::~AddTrappyCircleForm |
( |
| ) |
|
◆ AddTrappyCircle
void AddTrappyCircleForm::AddTrappyCircle |
( |
double | x, |
|
|
double | y, |
|
|
double | radius ) |
|
signal |
◆ on_clearPushButton_clicked
void AddTrappyCircleForm::on_clearPushButton_clicked |
( |
| ) |
|
|
privateslot |
18 {
19 ui->abscissaLineEdit->clear();
20 ui->ordinateLineEdit->clear();
21 ui->radiusLineEdit->clear();
22}
◆ on_createPushButton_clicked
void AddTrappyCircleForm::on_createPushButton_clicked |
( |
| ) |
|
|
privateslot |
24 {
25 QString x =
ui->abscissaLineEdit->displayText().replace(
',',
'.');
26 QString y =
ui->ordinateLineEdit->displayText().replace(
',',
'.');
27 QString radius =
ui->radiusLineEdit->displayText().replace(
',',
'.');
28 if (x.isEmpty() || y.isEmpty() || radius.isEmpty())
29 QMessageBox::warning(
30 this, "Warning!",
31 "There are empty fields! Please, enter values in all fields.");
32 else {
34 close();
35 }
36}
◆ ui
Ui::AddTrappyCircleForm* AddTrappyCircleForm::ui |
|
private |
The documentation for this class was generated from the following files: