QElectroTech 0.100.0-dev
Loading...
Searching...
No Matches
integrationmovetemplateshandler.h
Go to the documentation of this file.
1/*
2 Copyright 2006-2024 The QElectroTech Team
3 This file is part of QElectroTech.
4
5 QElectroTech is free software: you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation, either version 2 of the License, or
8 (at your option) any later version.
9
10 QElectroTech is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with QElectroTech. If not, see <http://www.gnu.org/licenses/>.
17*/
18#ifndef TITLEBLOCK_SLASH_INTEGRATION_MOVE_TEMPLATES_HANDLER_H
19#define TITLEBLOCK_SLASH_INTEGRATION_MOVE_TEMPLATES_HANDLER_H
21#include <QtWidgets>
28 Q_OBJECT
29
30 // constructors, destructor
31 public:
34 private:
36
37 // methods
38 public:
40 QET::Action errorWithATemplate(const TitleBlockTemplateLocation &, const QString &) override;
41 QString nameForRenamingOperation() override;
42
43 private:
44 QString dateString() const;
47 void initDialog();
48 void radioButtonleftMargin(QRadioButton *);
49
50 private slots:
52
53 // attributes
54 private:
55 QWidget *parent_widget_;
56 QString rename_;
57 QDialog *integ_dialog_;
59 QVBoxLayout *dialog_vlayout_;
60 QGridLayout *dialog_glayout;
61 QDialogButtonBox *buttons_;
62 QRadioButton *use_existing_template_;
64 QRadioButton *erase_template_;
65 /*
66 Radio button the user may click for the integrated template to be
67 automatically renamed in order to be stored along with the existing one.
68 */
69 QRadioButton *integrate_both_;
70 QButtonGroup *button_group1_;
71 QButtonGroup *button_group2_;
72};
73#endif
Definition integrationmovetemplateshandler.h:27
QLabel * dialog_label_
Definition integrationmovetemplateshandler.h:58
QRadioButton * integrate_new_template_
Radio button the user may click to integrate the template.
Definition integrationmovetemplateshandler.h:63
IntegrationMoveTitleBlockTemplatesHandler(const IntegrationMoveTitleBlockTemplatesHandler &)
QRadioButton * erase_template_
Radio button the user may click for the integrated template to erase the existing one.
Definition integrationmovetemplateshandler.h:64
QWidget * parent_widget_
Widget used as parent to display dialogs.
Definition integrationmovetemplateshandler.h:55
QRadioButton * integrate_both_
Definition integrationmovetemplateshandler.h:69
QET::Action askUser(const TitleBlockTemplateLocation &, const TitleBlockTemplateLocation &)
Definition integrationmovetemplateshandler.cpp:128
QString rename_
Name to be used when renaming a title block template.
Definition integrationmovetemplateshandler.h:56
QString newNameForTemplate(const TitleBlockTemplateLocation &)
Definition integrationmovetemplateshandler.cpp:118
QButtonGroup * button_group1_
Definition integrationmovetemplateshandler.h:70
QRadioButton * use_existing_template_
Radio button the user may click to use the existing template and stop the integration.
Definition integrationmovetemplateshandler.h:62
QButtonGroup * button_group2_
Definition integrationmovetemplateshandler.h:71
QGridLayout * dialog_glayout
Definition integrationmovetemplateshandler.h:60
QET::Action errorWithATemplate(const TitleBlockTemplateLocation &, const QString &) override
Definition integrationmovetemplateshandler.cpp:84
~IntegrationMoveTitleBlockTemplatesHandler() override
Definition integrationmovetemplateshandler.cpp:37
void radioButtonleftMargin(QRadioButton *)
Definition integrationmovetemplateshandler.cpp:239
QDialog * integ_dialog_
Dialog in case of conflict when integrating a title block template.
Definition integrationmovetemplateshandler.h:57
void initDialog()
Definition integrationmovetemplateshandler.cpp:149
QString dateString() const
Definition integrationmovetemplateshandler.cpp:108
QET::Action templateAlreadyExists(const TitleBlockTemplateLocation &src, const TitleBlockTemplateLocation &dst) override
Definition integrationmovetemplateshandler.cpp:46
void correctRadioButtons()
Definition integrationmovetemplateshandler.cpp:246
QVBoxLayout * dialog_vlayout_
Definition integrationmovetemplateshandler.h:59
QString nameForRenamingOperation() override
Definition integrationmovetemplateshandler.cpp:100
QDialogButtonBox * buttons_
Definition integrationmovetemplateshandler.h:61
Definition movetemplateshandler.h:31
Definition templatelocation.h:29
Action
Definition qet.h:123