QElectroTech  0.70
elementscategoryeditor.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 ELEMENTS_CATEGORY_EDITOR_H
19 #define ELEMENTS_CATEGORY_EDITOR_H
20 
21 #include <QDialog>
22 #include "elementslocation.h"
23 
24 class NameListWidget;
25 class QFileNameEdit;
26 class QDialogButtonBox;
27 class QLabel;
28 
33 class ElementsCategoryEditor : public QDialog
34 {
35  Q_OBJECT
36 
37  public:
38  ElementsCategoryEditor(const ElementsLocation &location, bool edit = true, QWidget *parent = nullptr);
39  ~ElementsCategoryEditor() override;
40 
42 
43  private:
45 
46  private:
47  QDialogButtonBox *m_buttons;
49  QLabel *m_file_name;
54 
55  private:
56  void setUpWidget();
57 
58  public slots:
59  void acceptCreation();
60  void acceptUpdate();
61 };
62 #endif
ElementsLocation m_created_location
The ElementsCategoryEditor class This class provides a dialog to edit an existing category or create ...
void acceptUpdate()
ElementsCategoryEditor::acceptUpdate Valid the update of the category.
QDialogButtonBox * m_buttons
ElementsCategoryEditor(const ElementsLocation &location, bool edit=true, QWidget *parent=nullptr)
ElementsCategoryEditor::ElementsCategoryEditor Constructor.
~ElementsCategoryEditor() override
ElementsCategoryEditor::~ElementsCategoryEditor Destructor.
void acceptCreation()
ElementsCategoryEditor::acceptCreation Valid the creation of the category.
void setUpWidget()
ElementsCategoryEditor::setUpWidget.
ElementsLocation createdLocation() const
ElementsCategoryEditor::createdLocation.
The NameListWidget class Provide a widget for let user define localized string;.