QElectroTech 0.100.0-dev
Loading...
Searching...
No Matches
elementspanelwidget.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_PANEL_WIDGET_H
19#define ELEMENTS_PANEL_WIDGET_H
20
21#include "elementspanel.h"
22
29class ElementsPanelWidget : public QWidget {
30 Q_OBJECT
31
32 // constructors, destructor
33 public:
34 ElementsPanelWidget(QWidget * = nullptr);
35 ~ElementsPanelWidget() override;
36
37 private:
39
40 // attributes
41 private:
44 QAction *prj_activate,
59 QLineEdit *filter_textfield;
60
61 // methods
62 public:
63 inline ElementsPanel &elementsPanel() const;
64
65 signals:
79
80 public slots:
83 void reloadAndFilter();
84 void activateProject();
85 void closeProject();
88 void newDiagram();
89 void deleteDiagram();
90 void moveDiagramUp();
91 void moveDiagramDown();
92 void moveDiagramUpTop();
93 void moveDiagramUpx10();
94 void moveDiagramUpx100();
95 void moveDiagramDownx10();
100 void updateButtons();
101 void handleContextMenu(const QPoint &);
102 void filterEdited(const QString &);
103
104 protected:
105 void keyPressEvent (QKeyEvent *e) override;
106
107 private:
109};
110
119
120#endif
The Diagram class This class represents an electric diagram. It manages its various child elements,...
Definition diagram.h:56
Definition elementspanel.h:34
The ElementsPanelWidget class This class embeds an elements panel under a toolbar providing various a...
Definition elementspanelwidget.h:29
void requestForDiagramPropertiesEdition(Diagram *)
void requestForDiagramMoveUp(Diagram *)
void requestForDiagramMoveDownx100(Diagram *)
void moveDiagramDown()
Definition elementspanelwidget.cpp:267
QAction * prj_move_diagram_up
Definition elementspanelwidget.h:50
void deleteDiagram()
Definition elementspanelwidget.cpp:235
QAction * tbt_edit
Definition elementspanelwidget.h:57
void requestForDiagramDeletion(Diagram *)
void handleContextMenu(const QPoint &)
Definition elementspanelwidget.cpp:402
QAction * prj_move_diagram_downx100
Definition elementspanelwidget.h:56
void activateProject()
Definition elementspanelwidget.cpp:185
~ElementsPanelWidget() override
Definition elementspanelwidget.cpp:136
QAction * prj_move_diagram_upx100
Definition elementspanelwidget.h:54
void requestForProjectPropertiesEdition(QETProject *)
void addTitleBlockTemplate()
Definition elementspanelwidget.cpp:317
QAction * prj_add_diagram
Definition elementspanelwidget.h:48
void editProjectProperties()
Definition elementspanelwidget.cpp:205
void newDiagram()
Definition elementspanelwidget.cpp:225
void removeTitleBlockTemplate()
Definition elementspanelwidget.cpp:345
void keyPressEvent(QKeyEvent *e) override
Definition elementspanelwidget.cpp:467
QAction * prj_move_diagram_downx10
Definition elementspanelwidget.h:55
QAction * tbt_add
Definition elementspanelwidget.h:57
QAction * prj_activate
Definition elementspanelwidget.h:44
QAction * open_directory
Definition elementspanelwidget.h:43
QAction * prj_close
Definition elementspanelwidget.h:45
void openDirectoryForSelectedItem()
Definition elementspanelwidget.cpp:144
void requestForNewDiagram(QETProject *)
QMenu * context_menu
Definition elementspanelwidget.h:58
void updateButtons()
Definition elementspanelwidget.cpp:359
void requestForDiagramMoveUpTop(Diagram *)
void closeProject()
Definition elementspanelwidget.cpp:195
QAction * prj_move_diagram_top
Definition elementspanelwidget.h:51
void moveDiagramUpTop()
Definition elementspanelwidget.cpp:245
void copyPathForSelectedItem()
Definition elementspanelwidget.cpp:158
void filterEdited(const QString &)
Definition elementspanelwidget.cpp:450
void moveDiagramUp()
Definition elementspanelwidget.cpp:257
QAction * prj_del_diagram
Definition elementspanelwidget.h:49
void moveDiagramUpx100()
Definition elementspanelwidget.cpp:287
ElementsPanel & elementsPanel() const
ElementsPanelWidget::elementsPanel.
Definition elementspanelwidget.h:115
void requestForProjectClosing(QETProject *)
void reloadAndFilter()
Definition elementspanelwidget.cpp:172
QString previous_filter_
Definition elementspanelwidget.h:108
QAction * copy_path
Definition elementspanelwidget.h:43
QAction * prj_move_diagram_upx10
Definition elementspanelwidget.h:53
void requestForDiagramMoveUpx100(Diagram *)
void moveDiagramUpx10()
Definition elementspanelwidget.cpp:277
ElementsPanel * elements_panel
Definition elementspanelwidget.h:42
void editDiagramProperties()
Definition elementspanelwidget.cpp:215
void requestForProject(QETProject *)
QAction * prj_move_diagram_down
Definition elementspanelwidget.h:52
QLineEdit * filter_textfield
Definition elementspanelwidget.h:59
QAction * prj_edit_prop
Definition elementspanelwidget.h:46
ElementsPanelWidget(const ElementsPanelWidget &)
void moveDiagramDownx100()
Definition elementspanelwidget.cpp:307
void requestForDiagramMoveDownx10(Diagram *)
void editTitleBlockTemplate()
Definition elementspanelwidget.cpp:332
QAction * prj_prop_diagram
Definition elementspanelwidget.h:47
QAction * tbt_remove
Definition elementspanelwidget.h:57
void requestForDiagramMoveUpx10(Diagram *)
void moveDiagramDownx10()
Definition elementspanelwidget.cpp:297
void requestForDiagramMoveDown(Diagram *)
Definition qetproject.h:62