QElectroTech 0.100.0-dev
Loading...
Searching...
No Matches
graphicstablepropertieseditor.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 GRAPHICSTABLEPROPERTIESEDITOR_H
19#define GRAPHICSTABLEPROPERTIESEDITOR_H
20
21#include "../../../PropertiesEditor/propertieseditorwidget.h"
22
23#include <QButtonGroup>
24#include <QPointer>
25
26namespace Ui {
28}
29
31class QAbstractItemModel;
32class QUndoStack;
33class QButtonGroup;
34
40{
41 Q_OBJECT
42
43 public:
44 explicit GraphicsTablePropertiesEditor(QetGraphicsTableItem *table = nullptr, QWidget *parent = nullptr);
46
47 void setTable(QetGraphicsTableItem *table);
48 virtual void apply() override;
49 QUndoCommand * associatedUndo() const override;
50 virtual bool setLiveEdit(bool live_edit) override;
51
52 private slots:
55 virtual void updateUi() override;
56 void updatePosWidget();
57 void updateInfoLabel();
58 void on_m_table_name_le_textEdited(const QString &arg1);
64
65 private:
67
68 private:
69 Ui::GraphicsTablePropertiesEditor *ui;
70 QPointer<QetGraphicsTableItem> m_table_item;
71 QList <QMetaObject::Connection> m_connect_list,
73 QButtonGroup *m_header_button_group = nullptr,
75 QWidget *m_current_model_editor = nullptr;
76 QVector<QetGraphicsTableItem *> m_other_table_vector;
77};
78
79Q_DECLARE_METATYPE(QMargins)
80
81#endif // GRAPHICSTABLEPROPERTIESEDITOR_H
The GraphicsTablePropertiesEditor class This widget is used to edit the property of both QetGraphicsT...
Definition graphicstablepropertieseditor.h:40
virtual void apply() override
GraphicsTablePropertiesEditor::apply Apply the current edition.
Definition graphicstablepropertieseditor.cpp:113
virtual void updateUi() override
GraphicsTablePropertiesEditor::updateUi.
Definition graphicstablepropertieseditor.cpp:307
void setUpEditConnection()
GraphicsTablePropertiesEditor::setUpEditConnection.
Definition graphicstablepropertieseditor.cpp:434
QList< QMetaObject::Connection > m_edit_connection
Definition graphicstablepropertieseditor.h:72
QUndoCommand * associatedUndo() const override
GraphicsTablePropertiesEditor::associatedUndo.
Definition graphicstablepropertieseditor.cpp:129
void on_m_table_font_pb_clicked()
GraphicsTablePropertiesEditor::on_m_table_font_pb_clicked.
Definition graphicstablepropertieseditor.cpp:282
QWidget * m_current_model_editor
Definition graphicstablepropertieseditor.h:75
QVector< QetGraphicsTableItem * > m_other_table_vector
Definition graphicstablepropertieseditor.h:76
void on_m_header_font_pb_clicked()
GraphicsTablePropertiesEditor::on_m_header_font_pb_clicked.
Definition graphicstablepropertieseditor.cpp:253
void on_m_previous_table_cb_activated(int index)
Definition graphicstablepropertieseditor.cpp:474
QList< QMetaObject::Connection > m_connect_list
Definition graphicstablepropertieseditor.h:71
QButtonGroup * m_header_button_group
Definition graphicstablepropertieseditor.h:73
QPointer< QetGraphicsTableItem > m_table_item
Definition graphicstablepropertieseditor.h:70
void setTable(QetGraphicsTableItem *table)
GraphicsTablePropertiesEditor::setTable Set the table to be edited.
Definition graphicstablepropertieseditor.cpp:75
void on_m_table_name_le_textEdited(const QString &arg1)
Definition graphicstablepropertieseditor.cpp:469
void updatePosWidget()
Definition graphicstablepropertieseditor.cpp:393
void on_m_next_pb_clicked()
Definition graphicstablepropertieseditor.cpp:494
void on_m_auto_geometry_pb_clicked()
GraphicsTablePropertiesEditor::on_m_auto_geometry_pb_clicked.
Definition graphicstablepropertieseditor.cpp:506
void on_m_previous_pb_clicked()
Definition graphicstablepropertieseditor.cpp:485
void updateInfoLabel()
Definition graphicstablepropertieseditor.cpp:399
QButtonGroup * m_table_button_group
Definition graphicstablepropertieseditor.h:74
Ui::GraphicsTablePropertiesEditor * ui
Definition graphicstablepropertieseditor.h:69
virtual bool setLiveEdit(bool live_edit) override
PropertiesEditorWidget::setLiveEdit Set the editor in live edit mode. When an editor is in live edit ...
Definition graphicstablepropertieseditor.cpp:239
~GraphicsTablePropertiesEditor() override
GraphicsTablePropertiesEditor::~GraphicsTablePropertiesEditor.
Definition graphicstablepropertieseditor.cpp:65
void on_m_apply_geometry_to_linked_table_pb_clicked()
GraphicsTablePropertiesEditor::on_m_apply_geometry_to_linked_table_pb_clicked.
Definition graphicstablepropertieseditor.cpp:516
The PropertiesEditorWidget class This class extend QWidget method to have a common way to edit proper...
Definition propertieseditorwidget.h:31
The QetGraphicsTableItem class This item display a table destined to represent the content of a QAbst...
Definition qetgraphicstableitem.h:43
Q_DECLARE_METATYPE(NamesList)
Definition autonumberingdockwidget.h:26