QElectroTech 0.100.0-dev
Loading...
Searching...
No Matches
inditextpropertieswidget.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 INDITEXTPROPERTIESWIDGET_H
19#define INDITEXTPROPERTIESWIDGET_H
20
21#include "../PropertiesEditor/propertieseditorwidget.h"
22
23#include <QPointer>
25
26namespace Ui {
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
The IndiTextPropertiesWidget class This widget is used to edit the properties of one or several indep...
Definition inditextpropertieswidget.h:35
void apply() override
IndiTextPropertiesWidget::apply Apply the current edition through a QUndoCommand pushed to the undo s...
Definition inditextpropertieswidget.cpp:121
~IndiTextPropertiesWidget() override
IndiTextPropertiesWidget::~IndiTextPropertiesWidget.
Definition inditextpropertieswidget.cpp:62
QList< QMetaObject::Connection > m_connect_list
Definition inditextpropertieswidget.h:62
void on_m_break_html_pb_clicked()
Definition inditextpropertieswidget.cpp:434
void updateUi() override
IndiTextPropertiesWidget::updateUi.
Definition inditextpropertieswidget.cpp:349
bool setLiveEdit(bool live_edit) override
IndiTextPropertiesWidget::setLiveEdit.
Definition inditextpropertieswidget.cpp:150
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:427
void setText(IndependentTextItem *text)
IndiTextPropertiesWidget::setText.
Definition inditextpropertieswidget.cpp:71
void setUpEditConnection()
IndiTextPropertiesWidget::setUpEditConnection Disconnect the previous connection, and reconnect the c...
Definition inditextpropertieswidget.cpp:325
Ui::IndiTextPropertiesWidget * ui
Definition inditextpropertieswidget.h:59
void on_m_font_pb_clicked()
Definition inditextpropertieswidget.cpp:446
QFont m_selected_font
Definition inditextpropertieswidget.h:64
QUndoCommand * associatedUndo() const override
IndiTextPropertiesWidget::associatedUndo.
Definition inditextpropertieswidget.cpp:173
QList< QMetaObject::Connection > m_edit_connection
Definition inditextpropertieswidget.h:63
The PropertiesEditorWidget class This class extend QWidget method to have a common way to edit proper...
Definition propertieseditorwidget.h:31
Definition autonumberingdockwidget.h:26