QElectroTech 0.200.1-dev
Loading...
Searching...
No Matches
freeterminaleditor.h
Go to the documentation of this file.
1/*
2 Copyright 2006-2026 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#include "../../qetproject.h"
23
24class RealTerminal;
26class QTableView;
27
28namespace Ui {
29 class FreeTerminalEditor;
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 void setProject(QETProject *project);
44
45 private slots:
46 void on_m_type_cb_activated(int index);
47 void on_m_function_cb_activated(int index);
48 void on_m_led_cb_activated(int index);
50
51 private:
53 void setDisabledMove(bool b=true);
54
55 private:
56 Ui::FreeTerminalEditor *ui;
57 QPointer <QETProject> m_project;
59};
60#endif // FREETERMINALEDITOR_H
FreeTerminalModel * m_model
Definition freeterminaleditor.h:58
void reload()
FreeTerminalEditor::reload Reload the editor to be up to date with the current state of the project....
Definition freeterminaleditor.cpp:92
void on_m_move_pb_clicked()
Definition freeterminaleditor.cpp:248
void apply()
FreeTerminalEditor::apply Applu current edited values.
Definition freeterminaleditor.cpp:113
void setProject(QETProject *project)
FreeTerminalEditor::setProject Set @project as project handled by this editor. If a previous project ...
Definition freeterminaleditor.cpp:152
Ui::FreeTerminalEditor * ui
Definition freeterminaleditor.h:56
~FreeTerminalEditor()
FreeTerminalEditor::~FreeTerminalEditor.
Definition freeterminaleditor.cpp:81
QPointer< QETProject > m_project
Definition freeterminaleditor.h:57
void on_m_led_cb_activated(int index)
Definition freeterminaleditor.cpp:229
void setDisabledMove(bool b=true)
Definition freeterminaleditor.cpp:276
void on_m_type_cb_activated(int index)
Definition freeterminaleditor.cpp:167
FreeTerminalEditor(QETProject *project, QWidget *parent=nullptr)
FreeTerminalEditor::FreeTerminalEditor.
Definition freeterminaleditor.cpp:33
void on_m_function_cb_activated(int index)
Definition freeterminaleditor.cpp:200
The FreeTerminalModel class.
Definition freeterminalmodel.h:34
Definition qetproject.h:77
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:30