QElectroTech 0.200.1-dev
Loading...
Searching...
No Matches
DynamicElementTextItemEditor Class Reference

#include <dynamicelementtextitemeditor.h>

Inheritance diagram for DynamicElementTextItemEditor:
Inheritance graph
Collaboration diagram for DynamicElementTextItemEditor:
Collaboration graph

Public Member Functions

 DynamicElementTextItemEditor (Element *element, QWidget *parent=nullptr)
 ~DynamicElementTextItemEditor () override
void setElement (Element *element) override
QString title () const override
 PropertiesEditorWidget::title.
bool setLiveEdit (bool live_edit) override
 PropertiesEditorWidget::setLiveEdit Set the editor in live edit mode. When an editor is in live edit mode, every change is applied immediately (no need to call apply). If live edit can be enabled, return true, or else false. By default this method does nothing and returns false (live edit is disabled). Inherited class of PropertiesEditorWidget must reimplement this method to manage the live edit mode.
void apply () override
void setCurrentText (DynamicElementTextItem *text)
 DynamicElementTextItemEditor::setCurrentText Expand and select the item for text text.
void setCurrentGroup (ElementTextItemGroup *group)
 DynamicElementTextItemEditor::setCurrentGroup Expand and select the item for group group.
QUndoCommand * associatedUndo () const override
 PropertiesEditorWidget::associatedUndo By default, return a nullptr.
Public Member Functions inherited from AbstractElementPropertiesEditorWidget
 AbstractElementPropertiesEditorWidget (QWidget *parent=nullptr)
Public Member Functions inherited from PropertiesEditorWidget
 PropertiesEditorWidget (QWidget *parent=nullptr)
 PropertiesEditorWidget::PropertiesEditorWidget Constructor.
virtual void reset ()
virtual void updateUi ()
bool isLiveEdit () const
 PropertiesEditorWidget::isLiveEdit.

Private Slots

void on_m_add_text_clicked ()
 DynamicElementTextItemEditor::on_m_add_text_clicked Add a new dynamic text.
void on_m_remove_selection_clicked ()
 DynamicElementTextItemEditor::on_m_remove_selection_clicked Remove the selected item.
void on_m_add_group_clicked ()
 DynamicElementTextItemEditor::on_m_add_group_clicked Add a new group.
void on_m_tree_view_clicked (const QModelIndex &index)
void on_m_export_pb_clicked ()
void on_m_import_pb_clicked ()

Private Member Functions

void dataEdited ()

Private Attributes

Ui::DynamicElementTextItemEditor * ui
DynamicElementTextModelm_model = nullptr

Additional Inherited Members

Protected Member Functions inherited from PropertiesEditorWidget
virtual void enableLiveEdit ()
virtual void disableLiveEdit ()
Protected Attributes inherited from AbstractElementPropertiesEditorWidget
QPointer< Elementm_element
Protected Attributes inherited from PropertiesEditorWidget
bool m_live_edit

Constructor & Destructor Documentation

◆ DynamicElementTextItemEditor()

DynamicElementTextItemEditor::DynamicElementTextItemEditor ( Element * element,
QWidget * parent = nullptr )
explicit
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ~DynamicElementTextItemEditor()

DynamicElementTextItemEditor::~DynamicElementTextItemEditor ( )
override

Member Function Documentation

◆ apply()

void DynamicElementTextItemEditor::apply ( )
overridevirtual

Reimplemented from PropertiesEditorWidget.

Here is the caller graph for this function:

◆ associatedUndo()

QUndoCommand * DynamicElementTextItemEditor::associatedUndo ( ) const
overridevirtual

PropertiesEditorWidget::associatedUndo By default, return a nullptr.

Returns
nullptr

Reimplemented from PropertiesEditorWidget.

◆ dataEdited()

void DynamicElementTextItemEditor::dataEdited ( )
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ on_m_add_group_clicked

void DynamicElementTextItemEditor::on_m_add_group_clicked ( )
privateslot

◆ on_m_add_text_clicked

void DynamicElementTextItemEditor::on_m_add_text_clicked ( )
privateslot

DynamicElementTextItemEditor::on_m_add_text_clicked Add a new dynamic text.

Here is the call graph for this function:

◆ on_m_export_pb_clicked

void DynamicElementTextItemEditor::on_m_export_pb_clicked ( )
privateslot

◆ on_m_import_pb_clicked

void DynamicElementTextItemEditor::on_m_import_pb_clicked ( )
privateslot

◆ on_m_remove_selection_clicked

void DynamicElementTextItemEditor::on_m_remove_selection_clicked ( )
privateslot

◆ on_m_tree_view_clicked

void DynamicElementTextItemEditor::on_m_tree_view_clicked ( const QModelIndex & index)
privateslot

◆ setCurrentGroup()

void DynamicElementTextItemEditor::setCurrentGroup ( ElementTextItemGroup * group)

DynamicElementTextItemEditor::setCurrentGroup Expand and select the item for group group.

Parameters
group
Here is the caller graph for this function:

◆ setCurrentText()

void DynamicElementTextItemEditor::setCurrentText ( DynamicElementTextItem * text)

DynamicElementTextItemEditor::setCurrentText Expand and select the item for text text.

Parameters
text
Here is the caller graph for this function:

◆ setElement()

void DynamicElementTextItemEditor::setElement ( Element * element)
overridevirtual

Implements AbstractElementPropertiesEditorWidget.

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

◆ setLiveEdit()

bool DynamicElementTextItemEditor::setLiveEdit ( bool live_edit)
overridevirtual

PropertiesEditorWidget::setLiveEdit Set the editor in live edit mode. When an editor is in live edit mode, every change is applied immediately (no need to call apply). If live edit can be enabled, return true, or else false. By default this method does nothing and returns false (live edit is disabled). Inherited class of PropertiesEditorWidget must reimplement this method to manage the live edit mode.

Parameters
live_edittrue to enable live edit
Returns
true if live edit is enabled, else false.

Reimplemented from PropertiesEditorWidget.

◆ title()

QString DynamicElementTextItemEditor::title ( ) const
inlineoverridevirtual

PropertiesEditorWidget::title.

Returns
the title of this editor

Reimplemented from PropertiesEditorWidget.

Member Data Documentation

◆ m_model

DynamicElementTextModel* DynamicElementTextItemEditor::m_model = nullptr
private

◆ ui

Ui::DynamicElementTextItemEditor* DynamicElementTextItemEditor::ui
private

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