QElectroTech  0.8-dev
Public Member Functions | Private Slots | Private Member Functions | Private Attributes | List of all members
IndiTextPropertiesWidget Class Reference

The IndiTextPropertiesWidget class This widget is used to edit the properties of one or several independent text item. More...

#include <inditextpropertieswidget.h>

Inheritance diagram for IndiTextPropertiesWidget:
Inheritance graph
Collaboration diagram for IndiTextPropertiesWidget:
Collaboration graph

Public Member Functions

 IndiTextPropertiesWidget (IndependentTextItem *text=nullptr, QWidget *parent=nullptr)
 IndiTextPropertiesWidget::IndiTextPropertiesWidget. More...
 
 IndiTextPropertiesWidget (QList< IndependentTextItem * > text_list, QWidget *parent=nullptr)
 IndiTextPropertiesWidget::IndiTextPropertiesWidget. More...
 
 ~IndiTextPropertiesWidget () override
 IndiTextPropertiesWidget::~IndiTextPropertiesWidget. More...
 
void setText (IndependentTextItem *text)
 IndiTextPropertiesWidget::setText. More...
 
void setText (QList< IndependentTextItem * > text_list)
 
void apply () override
 IndiTextPropertiesWidget::apply Apply the current edition through a QUndoCommand pushed to the undo stack of text's diagram. More...
 
bool setLiveEdit (bool live_edit) override
 IndiTextPropertiesWidget::setLiveEdit. More...
 
QUndoCommand * associatedUndo () const override
 IndiTextPropertiesWidget::associatedUndo. More...
 
- Public Member Functions inherited from PropertiesEditorWidget
 PropertiesEditorWidget (QWidget *parent=nullptr)
 PropertiesEditorWidget::PropertiesEditorWidget Constructor. More...
 
virtual void reset ()
 
virtual QString title () const
 PropertiesEditorWidget::title. More...
 
bool isLiveEdit () const
 PropertiesEditorWidget::isLiveEdit. More...
 

Private Slots

void on_m_advanced_editor_pb_clicked ()
 IndiTextPropertiesWidget::on_m_advanced_editor_pb_clicked. More...
 
void on_m_break_html_pb_clicked ()
 
void on_m_font_pb_clicked ()
 

Private Member Functions

void setUpEditConnection ()
 IndiTextPropertiesWidget::setUpEditConnection Disconnect the previous connection, and reconnect the connection between the editors widgets and void IndiTextPropertiesWidget::apply function. More...
 
void updateUi () override
 IndiTextPropertiesWidget::updateUi. More...
 

Private Attributes

Ui::IndiTextPropertiesWidget * ui
 
QPointer< IndependentTextItemm_text
 
QList< QPointer< IndependentTextItem > > m_text_list
 
QList< QMetaObject::Connection > m_connect_list
 
QList< QMetaObject::Connection > m_edit_connection
 
QFont m_selected_font
 
bool m_font_is_selected = false
 

Additional Inherited Members

- Protected Member Functions inherited from PropertiesEditorWidget
virtual void enableLiveEdit ()
 
virtual void disableLiveEdit ()
 
- Protected Attributes inherited from PropertiesEditorWidget
bool m_live_edit
 

Detailed Description

The IndiTextPropertiesWidget class This widget is used to edit the properties of one or several independent text item.

Constructor & Destructor Documentation

◆ IndiTextPropertiesWidget() [1/2]

IndiTextPropertiesWidget::IndiTextPropertiesWidget ( IndependentTextItem text = nullptr,
QWidget *  parent = nullptr 
)

IndiTextPropertiesWidget::IndiTextPropertiesWidget.

Parameters
text: the text to edit
parent: the parent widget of this widget
Here is the call graph for this function:

◆ IndiTextPropertiesWidget() [2/2]

IndiTextPropertiesWidget::IndiTextPropertiesWidget ( QList< IndependentTextItem * >  text_list,
QWidget *  parent = nullptr 
)

IndiTextPropertiesWidget::IndiTextPropertiesWidget.

Parameters
text_list: a list of texts to edit
parent: the parent widget of this widget
Here is the call graph for this function:

◆ ~IndiTextPropertiesWidget()

IndiTextPropertiesWidget::~IndiTextPropertiesWidget ( )
override

Member Function Documentation

◆ apply()

void IndiTextPropertiesWidget::apply ( )
overridevirtual

IndiTextPropertiesWidget::apply Apply the current edition through a QUndoCommand pushed to the undo stack of text's diagram.

Reimplemented from PropertiesEditorWidget.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ associatedUndo()

QUndoCommand * IndiTextPropertiesWidget::associatedUndo ( ) const
overridevirtual

IndiTextPropertiesWidget::associatedUndo.

Returns

Reimplemented from PropertiesEditorWidget.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ on_m_advanced_editor_pb_clicked

void IndiTextPropertiesWidget::on_m_advanced_editor_pb_clicked ( )
privateslot

◆ on_m_break_html_pb_clicked

void IndiTextPropertiesWidget::on_m_break_html_pb_clicked ( )
privateslot
Here is the call graph for this function:

◆ on_m_font_pb_clicked

void IndiTextPropertiesWidget::on_m_font_pb_clicked ( )
privateslot
Here is the call graph for this function:

◆ setLiveEdit()

bool IndiTextPropertiesWidget::setLiveEdit ( bool  live_edit)
overridevirtual

IndiTextPropertiesWidget::setLiveEdit.

Parameters
live_edit
Returns

Reimplemented from PropertiesEditorWidget.

Here is the call graph for this function:

◆ setText() [1/2]

void IndiTextPropertiesWidget::setText ( IndependentTextItem text)

IndiTextPropertiesWidget::setText.

Parameters
text: set text as edited text
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setText() [2/2]

void IndiTextPropertiesWidget::setText ( QList< IndependentTextItem * >  text_list)
Here is the call graph for this function:

◆ setUpEditConnection()

void IndiTextPropertiesWidget::setUpEditConnection ( )
private

IndiTextPropertiesWidget::setUpEditConnection Disconnect the previous connection, and reconnect the connection between the editors widgets and void IndiTextPropertiesWidget::apply function.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ updateUi()

void IndiTextPropertiesWidget::updateUi ( )
overrideprivatevirtual

IndiTextPropertiesWidget::updateUi.

Reimplemented from PropertiesEditorWidget.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ m_connect_list

QList<QMetaObject::Connection> IndiTextPropertiesWidget::m_connect_list
private

◆ m_edit_connection

QList<QMetaObject::Connection> IndiTextPropertiesWidget::m_edit_connection
private

◆ m_font_is_selected

bool IndiTextPropertiesWidget::m_font_is_selected = false
private

◆ m_selected_font

QFont IndiTextPropertiesWidget::m_selected_font
private

◆ m_text

QPointer<IndependentTextItem> IndiTextPropertiesWidget::m_text
private

◆ m_text_list

QList<QPointer<IndependentTextItem> > IndiTextPropertiesWidget::m_text_list
private

◆ ui

Ui::IndiTextPropertiesWidget* IndiTextPropertiesWidget::ui
private

The documentation for this class was generated from the following files: