QElectroTech  0.70
replacefoliowidget.h
Go to the documentation of this file.
1 /*
2  Copyright 2006-2019 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 REPLACEFOLIOWIDGET_H
19 #define REPLACEFOLIOWIDGET_H
20 
21 #include <QWidget>
22 #include <QDialog>
23 
24 #include "diagramcontext.h"
25 #include "titleblockproperties.h"
26 
28 class QDialogButtonBox;
29 
30 namespace Ui {
31  class ReplaceFolioWidget;
32 }
33 
34 class ReplaceFolioWidget : public QWidget
35 {
36  Q_OBJECT
37 
38  public:
39  explicit ReplaceFolioWidget(QWidget *parent = nullptr);
41 
43  void setTitleBlockProperties (const TitleBlockProperties &properties);
44 
45  private slots:
46  void on_m_title_cb_clicked();
48  void on_m_file_cb_clicked();
49  void on_m_folio_cb_clicked();
50  void on_m_plant_cb_clicked();
51  void on_m_loc_cb_clicked();
53 
54  private:
55  Ui::ReplaceFolioWidget *ui;
57 
58 };
59 
60 class ReplaceFolioDialog : public QDialog
61 {
62  Q_OBJECT
63 
64  public:
65  ReplaceFolioDialog(QWidget *parent = nullptr);
67 
69  void setTitleBlockProperties (const TitleBlockProperties &properties);
70 
71  private:
73  QDialogButtonBox *m_button_box = nullptr;
74 };
75 
76 #endif // REPLACEFOLIOWIDGET_H
DiagramContextWidget * m_diagram_context_widget
void setTitleBlockProperties(const TitleBlockProperties &properties)
ReplaceFolioWidget::setTitleBlockProperties Set the title block properties edited by this widget...
ReplaceFolioWidget * m_widget
TitleBlockProperties titleBlockProperties() const
ReplaceFolioWidget::titleBlockProperties.
void setTitleBlockProperties(const TitleBlockProperties &properties)
ReplaceFolioDialog::setTitleBlockProperties.
Ui::ReplaceFolioWidget * ui
ReplaceFolioDialog(QWidget *parent=nullptr)
TitleBlockProperties titleBlockProperties() const
ReplaceFolioDialog::titleBlockProperties.
QDialogButtonBox * m_button_box
ReplaceFolioWidget(QWidget *parent=nullptr)