QElectroTech 0.100.0-dev
Loading...
Searching...
No Matches
terminalstripeditor.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 TERMINALSTRIPEDITOR_H
19#define TERMINALSTRIPEDITOR_H
20
21#include <QWidget>
22
23#include "terminalstripmodel.h"
24
25namespace Ui {
27}
28
29class QETProject;
30class TerminalStrip;
31
37class TerminalStripEditor : public QWidget
38{
39 Q_OBJECT
40
41 public:
42 explicit TerminalStripEditor(QETProject *project, QWidget *parent = nullptr);
43 ~TerminalStripEditor() override;
44 void setCurrentStrip(TerminalStrip *strip_);
45 void reload();
46 void apply();
47
48 private:
50 void selectionChanged();
53 QPair<TerminalStripModel::Column, QVector<modelRealTerminalData>> singleColumnData() const;
54
55 private slots:
59 void on_m_level_sb_valueChanged(int arg1);
60 void on_m_type_cb_activated(int index);
61 void on_m_function_cb_activated(int index);
62 void on_m_led_cb_activated(int index);
65 void on_m_bridge_color_cb_activated(const QColor &col);
67
68 private:
69 Ui::TerminalStripEditor *ui;
73};
74
75#endif // TERMINALSTRIPEDITOR_H
Definition qetproject.h:62
The TerminalStripEditor class Main dialog used to edit terminal strip of a project.
Definition terminalstripeditor.h:38
~TerminalStripEditor() override
TerminalStripEditor::~TerminalStripEditor.
Definition terminalstripeditor.cpp:83
void on_m_group_terminals_pb_clicked()
TerminalStripEditor::on_m_group_terminals_pb_clicked.
Definition terminalstripeditor.cpp:447
void on_m_bridge_color_cb_activated(const QColor &col)
Definition terminalstripeditor.cpp:670
TerminalStripModel * m_model
Definition terminalstripeditor.h:72
TerminalStripModel::Column isSingleColumnSelected() const
TerminalStripEditor::isSingleColumnSelected If all current QModelIndex are in the same column return ...
Definition terminalstripeditor.cpp:388
void on_m_type_cb_activated(int index)
Definition terminalstripeditor.cpp:525
void on_m_auto_ordering_pb_clicked()
TerminalStripEditor::on_m_auto_pos_pb_clicked.
Definition terminalstripeditor.cpp:437
void on_m_bridge_terminals_pb_clicked()
TerminalStripEditor::on_m_bridge_terminals_pb_clicked.
Definition terminalstripeditor.cpp:608
void on_m_function_cb_activated(int index)
Definition terminalstripeditor.cpp:558
QSize setUpBridgeCellWidth()
Definition terminalstripeditor.cpp:362
void on_m_led_cb_activated(int index)
Definition terminalstripeditor.cpp:587
void on_m_ungroup_pb_clicked()
TerminalStripEditor::on_m_ungroup_pb_clicked.
Definition terminalstripeditor.cpp:490
Ui::TerminalStripEditor * ui
Definition terminalstripeditor.h:69
void selectionChanged()
TerminalStripEditor::selectionChanged Update the editor according to the current selection.
Definition terminalstripeditor.cpp:259
QPair< TerminalStripModel::Column, QVector< modelRealTerminalData > > singleColumnData() const
TerminalStripEditor::singleColumnData.
Definition terminalstripeditor.cpp:418
void on_m_unbridge_terminals_pb_clicked()
TerminalStripEditor::on_m_unbridge_terminals_pb_clicked.
Definition terminalstripeditor.cpp:641
void reload()
TerminalStripEditor::reload Reload this editor and and reset all unapplied change.
Definition terminalstripeditor.cpp:170
TerminalStrip * m_current_strip
Definition terminalstripeditor.h:71
void on_m_move_to_pb_clicked()
Definition terminalstripeditor.cpp:693
void on_m_level_sb_valueChanged(int arg1)
TerminalStripEditor::on_m_level_sb_valueChanged.
Definition terminalstripeditor.cpp:508
void setCurrentStrip(TerminalStrip *strip_)
TerminalStripEditor::setCurrentStrip Set the current terminal strip edited to strip_.
Definition terminalstripeditor.cpp:92
void apply()
TerminalStripEditor::apply Apply current edited values.
Definition terminalstripeditor.cpp:191
QETProject * m_project
Definition terminalstripeditor.h:70
void spanMultiLevelTerminals()
TerminalStripEditor::spanMultiLevelTerminals Span row of m_table_widget for multi-level terminal.
Definition terminalstripeditor.cpp:237
The TerminalStrip class This class hold all the datas and configurations of a terminal strip (but the...
Definition terminalstrip.h:45
Definition terminalstripmodel.h:47
Column
Definition terminalstripmodel.h:49
Definition autonumberingdockwidget.h:26