QElectroTech 0.100.0-dev
Loading...
Searching...
No Matches
elementscategoryeditor.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 ELEMENTS_CATEGORY_EDITOR_H
19#define ELEMENTS_CATEGORY_EDITOR_H
20
22
23#include <QDialog>
24
25class NameListWidget;
26class QFileNameEdit;
27class QDialogButtonBox;
28class QLabel;
29
34class ElementsCategoryEditor : public QDialog
35{
36 Q_OBJECT
37
38 public:
39 ElementsCategoryEditor(const ElementsLocation &location, bool edit = true, QWidget *parent = nullptr);
40 ~ElementsCategoryEditor() override;
41
43
44 private:
46
47 private:
48 QDialogButtonBox *m_buttons;
50 QLabel *m_file_name;
55
56 private:
57 void setUpWidget();
58
59 public slots:
60 void acceptCreation();
61 void acceptUpdate();
62};
63#endif
The ElementsCategoryEditor class This class provides a dialog to edit an existing category or create ...
Definition elementscategoryeditor.h:35
ElementsLocation m_location
Definition elementscategoryeditor.h:53
void acceptUpdate()
ElementsCategoryEditor::acceptUpdate Valid the update of the category.
Definition elementscategoryeditor.cpp:184
bool m_edit_mode
Definition elementscategoryeditor.h:52
QLabel * m_file_name
Definition elementscategoryeditor.h:50
ElementsLocation createdLocation() const
ElementsCategoryEditor::createdLocation.
Definition elementscategoryeditor.cpp:99
QFileNameEdit * m_file_line_edit
Definition elementscategoryeditor.h:51
void acceptCreation()
ElementsCategoryEditor::acceptCreation Valid the creation of the category.
Definition elementscategoryeditor.cpp:133
~ElementsCategoryEditor() override
ElementsCategoryEditor::~ElementsCategoryEditor Destructor.
Definition elementscategoryeditor.cpp:91
NameListWidget * m_names_list
Definition elementscategoryeditor.h:49
ElementsCategoryEditor(const ElementsCategoryEditor &)
QDialogButtonBox * m_buttons
Definition elementscategoryeditor.h:48
ElementsLocation m_created_location
Definition elementscategoryeditor.h:54
void setUpWidget()
ElementsCategoryEditor::setUpWidget.
Definition elementscategoryeditor.cpp:107
The ElementsLocation class This class represents the location, the location of an element or of a cat...
Definition elementslocation.h:47
The NameListWidget class Provide a widget for let user define localized string;.
Definition namelistwidget.h:35
Definition qfilenameedit.h:32