QElectroTech  0.8-dev
configsaveloaderwidget.h
Go to the documentation of this file.
1 /*
2  Copyright 2006-2020 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 CONFIGSAVELOADERWIDGET_H
19 #define CONFIGSAVELOADERWIDGET_H
20 
21 #include <QGroupBox>
22 
23 namespace Ui {
25 }
26 
35 class ConfigSaveLoaderWidget : public QGroupBox
36 {
37  Q_OBJECT
38 
39  public:
40  explicit ConfigSaveLoaderWidget(QWidget *parent = nullptr);
42 
43  QString selectedText() const;
44  QString text()const;
45  void addItem(QString text);
46 
47  signals:
48  void loadClicked();
49  void saveClicked();
50 
51  private slots:
52  void on_m_load_pb_clicked();
53  void on_m_save_pb_clicked();
54 
55  private:
56  Ui::ConfigSaveLoaderWidget *ui;
57 };
58 
59 #endif // CONFIGSAVELOADERWIDGET_H
ConfigSaveLoaderWidget::loadClicked
void loadClicked()
ConfigSaveLoaderWidget
The ConfigSaveLoaderWidget class This group box provide 4 widget: A combo box with the available conf...
Definition: configsaveloaderwidget.h:36
ConfigSaveLoaderWidget::on_m_save_pb_clicked
void on_m_save_pb_clicked()
Definition: configsaveloaderwidget.cpp:49
ConfigSaveLoaderWidget::ConfigSaveLoaderWidget
ConfigSaveLoaderWidget(QWidget *parent=nullptr)
Definition: configsaveloaderwidget.cpp:21
ConfigSaveLoaderWidget::selectedText
QString selectedText() const
Definition: configsaveloaderwidget.cpp:33
ConfigSaveLoaderWidget::ui
Ui::ConfigSaveLoaderWidget * ui
Definition: configsaveloaderwidget.h:56
Ui
Definition: autonumberingdockwidget.h:25
ConfigSaveLoaderWidget::addItem
void addItem(QString text)
Definition: configsaveloaderwidget.cpp:41
ConfigSaveLoaderWidget::text
QString text() const
Definition: configsaveloaderwidget.cpp:37
configsaveloaderwidget.h
ConfigSaveLoaderWidget::~ConfigSaveLoaderWidget
~ConfigSaveLoaderWidget()
Definition: configsaveloaderwidget.cpp:28
ConfigSaveLoaderWidget::saveClicked
void saveClicked()
ConfigSaveLoaderWidget::on_m_load_pb_clicked
void on_m_load_pb_clicked()
Definition: configsaveloaderwidget.cpp:45