QElectroTech 0.200.1-dev
Loading...
Searching...
No Matches
inditextpropertieswidget.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 INDITEXTPROPERTIESWIDGET_H
19#define INDITEXTPROPERTIESWIDGET_H
20
22
23#include <QPointer>
25
26namespace Ui {
27 class IndiTextPropertiesWidget;
28}
29
35{
36 Q_OBJECT
37
38 public:
39 IndiTextPropertiesWidget(IndependentTextItem *text = nullptr, QWidget *parent = nullptr);
40 IndiTextPropertiesWidget(QList <IndependentTextItem *> text_list, QWidget *parent = nullptr);
42 void setText (IndependentTextItem *text);
43 void setText (QList<IndependentTextItem *> text_list);
44
45 void apply() override;
46 bool setLiveEdit(bool live_edit) override;
47 QUndoCommand* associatedUndo() const override;
48
49 private slots:
53
54 private:
56 void updateUi() override;
57
58 private:
59 Ui::IndiTextPropertiesWidget *ui;
60 QPointer <IndependentTextItem> m_text;
61 QList <QPointer<IndependentTextItem>> m_text_list;
62 QList <QMetaObject::Connection> m_connect_list,
65 bool m_font_is_selected = false;
66};
67
68#endif // INDITEXTPROPERTIESWIDGET_H
Definition independenttextitem.h:28
void apply() override
IndiTextPropertiesWidget::apply Apply the current edition through a QUndoCommand pushed to the undo s...
Definition inditextpropertieswidget.cpp:122
~IndiTextPropertiesWidget() override
IndiTextPropertiesWidget::~IndiTextPropertiesWidget.
Definition inditextpropertieswidget.cpp:63
QList< QMetaObject::Connection > m_connect_list
Definition inditextpropertieswidget.h:62
void on_m_break_html_pb_clicked()
Definition inditextpropertieswidget.cpp:435
IndiTextPropertiesWidget(IndependentTextItem *text=nullptr, QWidget *parent=nullptr)
IndiTextPropertiesWidget::IndiTextPropertiesWidget.
Definition inditextpropertieswidget.cpp:35
void updateUi() override
IndiTextPropertiesWidget::updateUi.
Definition inditextpropertieswidget.cpp:350
bool setLiveEdit(bool live_edit) override
IndiTextPropertiesWidget::setLiveEdit.
Definition inditextpropertieswidget.cpp:151
QPointer< IndependentTextItem > m_text
Definition inditextpropertieswidget.h:60
bool m_font_is_selected
Definition inditextpropertieswidget.h:65
QList< QPointer< IndependentTextItem > > m_text_list
Definition inditextpropertieswidget.h:61
void on_m_advanced_editor_pb_clicked()
IndiTextPropertiesWidget::on_m_advanced_editor_pb_clicked.
Definition inditextpropertieswidget.cpp:428
void setText(IndependentTextItem *text)
IndiTextPropertiesWidget::setText.
Definition inditextpropertieswidget.cpp:72
void setUpEditConnection()
IndiTextPropertiesWidget::setUpEditConnection Disconnect the previous connection, and reconnect the c...
Definition inditextpropertieswidget.cpp:326
Ui::IndiTextPropertiesWidget * ui
Definition inditextpropertieswidget.h:59
void on_m_font_pb_clicked()
Definition inditextpropertieswidget.cpp:447
QFont m_selected_font
Definition inditextpropertieswidget.h:64
QUndoCommand * associatedUndo() const override
IndiTextPropertiesWidget::associatedUndo.
Definition inditextpropertieswidget.cpp:174
QList< QMetaObject::Connection > m_edit_connection
Definition inditextpropertieswidget.h:63
PropertiesEditorWidget(QWidget *parent=nullptr)
PropertiesEditorWidget::PropertiesEditorWidget Constructor.
Definition propertieseditorwidget.cpp:26
Definition autonumberingdockwidget.h:30