QElectroTech 0.100.0-dev
Loading...
Searching...
No Matches
freeterminaleditor.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 FREETERMINALEDITOR_H
19#define FREETERMINALEDITOR_H
20
21#include <QWidget>
22
23class QETProject;
24class RealTerminal;
26class QTableView;
27
28namespace Ui {
30}
31
32class FreeTerminalEditor : public QWidget
33{
34 Q_OBJECT
35
36 public:
37 explicit FreeTerminalEditor(QETProject *project, QWidget *parent = nullptr);
39
40 void reload();
41 void apply();
42
43 private slots:
44 void on_m_type_cb_activated(int index);
45 void on_m_function_cb_activated(int index);
46 void on_m_led_cb_activated(int index);
48
49 private:
51 void setDisabledMove(bool b=true);
52
53 private:
54 Ui::FreeTerminalEditor *ui;
57};
58#endif // FREETERMINALEDITOR_H
Definition freeterminaleditor.h:33
FreeTerminalModel * m_model
Definition freeterminaleditor.h:56
void reload()
FreeTerminalEditor::reload Reload the editor to be up to date with the current state of the project....
Definition freeterminaleditor.cpp:88
void on_m_move_pb_clicked()
Definition freeterminaleditor.cpp:219
void apply()
FreeTerminalEditor::apply Applu current edited values.
Definition freeterminaleditor.cpp:109
Ui::FreeTerminalEditor * ui
Definition freeterminaleditor.h:54
~FreeTerminalEditor()
FreeTerminalEditor::~FreeTerminalEditor.
Definition freeterminaleditor.cpp:77
QETProject * m_project
Definition freeterminaleditor.h:55
void on_m_led_cb_activated(int index)
Definition freeterminaleditor.cpp:200
void setDisabledMove(bool b=true)
Definition freeterminaleditor.cpp:247
void on_m_type_cb_activated(int index)
Definition freeterminaleditor.cpp:138
void on_m_function_cb_activated(int index)
Definition freeterminaleditor.cpp:171
The FreeTerminalModel class.
Definition freeterminalmodel.h:34
Definition qetproject.h:62
The RealTerminal class Represent a real terminal. A real terminal can be a drawn terminal in a folio ...
Definition realterminal.h:43
Definition autonumberingdockwidget.h:26