QElectroTech 0.100.0-dev
Loading...
Searching...
No Matches
Public Member Functions | Private Slots | Private Member Functions | Private Attributes | List of all members
GraphicsTablePropertiesEditor Class Reference

The GraphicsTablePropertiesEditor class This widget is used to edit the property of both QetGraphicsTableItem and QetGraphicsHeaderItem. More...

#include <graphicstablepropertieseditor.h>

Inheritance diagram for GraphicsTablePropertiesEditor:
Inheritance graph
Collaboration diagram for GraphicsTablePropertiesEditor:
Collaboration graph

Public Member Functions

 GraphicsTablePropertiesEditor (QetGraphicsTableItem *table=nullptr, QWidget *parent=nullptr)
 GraphicsTablePropertiesEditor::GraphicsTablePropertiesEditor.
 
 ~GraphicsTablePropertiesEditor () override
 GraphicsTablePropertiesEditor::~GraphicsTablePropertiesEditor.
 
void setTable (QetGraphicsTableItem *table)
 GraphicsTablePropertiesEditor::setTable Set the table to be edited.
 
virtual void apply () override
 GraphicsTablePropertiesEditor::apply Apply the current edition.
 
QUndoCommand * associatedUndo () const override
 GraphicsTablePropertiesEditor::associatedUndo.
 
virtual 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.
 
- Public Member Functions inherited from PropertiesEditorWidget
 PropertiesEditorWidget (QWidget *parent=nullptr)
 PropertiesEditorWidget::PropertiesEditorWidget Constructor.
 
virtual void reset ()
 
virtual QString title () const
 PropertiesEditorWidget::title.
 
virtual void updateUi ()
 
bool isLiveEdit () const
 PropertiesEditorWidget::isLiveEdit.
 

Private Slots

void on_m_header_font_pb_clicked ()
 GraphicsTablePropertiesEditor::on_m_header_font_pb_clicked.
 
void on_m_table_font_pb_clicked ()
 GraphicsTablePropertiesEditor::on_m_table_font_pb_clicked.
 
virtual void updateUi () override
 GraphicsTablePropertiesEditor::updateUi.
 
void updatePosWidget ()
 
void updateInfoLabel ()
 
void on_m_table_name_le_textEdited (const QString &arg1)
 
void on_m_previous_table_cb_activated (int index)
 
void on_m_previous_pb_clicked ()
 
void on_m_next_pb_clicked ()
 
void on_m_auto_geometry_pb_clicked ()
 GraphicsTablePropertiesEditor::on_m_auto_geometry_pb_clicked.
 
void on_m_apply_geometry_to_linked_table_pb_clicked ()
 GraphicsTablePropertiesEditor::on_m_apply_geometry_to_linked_table_pb_clicked.
 

Private Member Functions

void setUpEditConnection ()
 GraphicsTablePropertiesEditor::setUpEditConnection.
 

Private Attributes

Ui::GraphicsTablePropertiesEditor * ui
 
QPointer< QetGraphicsTableItemm_table_item
 
QList< QMetaObject::Connection > m_connect_list
 
QList< QMetaObject::Connection > m_edit_connection
 
QButtonGroup * m_header_button_group = nullptr
 
QButtonGroup * m_table_button_group = nullptr
 
QWidget * m_current_model_editor = nullptr
 
QVector< QetGraphicsTableItem * > m_other_table_vector
 

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 GraphicsTablePropertiesEditor class This widget is used to edit the property of both QetGraphicsTableItem and QetGraphicsHeaderItem.

Constructor & Destructor Documentation

◆ GraphicsTablePropertiesEditor()

GraphicsTablePropertiesEditor::GraphicsTablePropertiesEditor ( QetGraphicsTableItem table = nullptr,
QWidget *  parent = nullptr 
)
explicit

GraphicsTablePropertiesEditor::GraphicsTablePropertiesEditor.

Parameters
table
parent
Here is the call graph for this function:

◆ ~GraphicsTablePropertiesEditor()

GraphicsTablePropertiesEditor::~GraphicsTablePropertiesEditor ( )
override

Member Function Documentation

◆ apply()

void GraphicsTablePropertiesEditor::apply ( )
overridevirtual

GraphicsTablePropertiesEditor::apply Apply the current edition.

Reimplemented from PropertiesEditorWidget.

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

◆ associatedUndo()

QUndoCommand * GraphicsTablePropertiesEditor::associatedUndo ( ) const
overridevirtual

GraphicsTablePropertiesEditor::associatedUndo.

Returns
the undo command associated to the edition

Reimplemented from PropertiesEditorWidget.

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

◆ on_m_apply_geometry_to_linked_table_pb_clicked

void GraphicsTablePropertiesEditor::on_m_apply_geometry_to_linked_table_pb_clicked ( )
privateslot

◆ on_m_auto_geometry_pb_clicked

void GraphicsTablePropertiesEditor::on_m_auto_geometry_pb_clicked ( )
privateslot

GraphicsTablePropertiesEditor::on_m_auto_geometry_pb_clicked.

Here is the call graph for this function:

◆ on_m_header_font_pb_clicked

void GraphicsTablePropertiesEditor::on_m_header_font_pb_clicked ( )
privateslot

◆ on_m_next_pb_clicked

void GraphicsTablePropertiesEditor::on_m_next_pb_clicked ( )
privateslot

◆ on_m_previous_pb_clicked

void GraphicsTablePropertiesEditor::on_m_previous_pb_clicked ( )
privateslot

◆ on_m_previous_table_cb_activated

void GraphicsTablePropertiesEditor::on_m_previous_table_cb_activated ( int  index)
privateslot

◆ on_m_table_font_pb_clicked

void GraphicsTablePropertiesEditor::on_m_table_font_pb_clicked ( )
privateslot

◆ on_m_table_name_le_textEdited

void GraphicsTablePropertiesEditor::on_m_table_name_le_textEdited ( const QString &  arg1)
privateslot

◆ setLiveEdit()

bool GraphicsTablePropertiesEditor::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.

Here is the call graph for this function:

◆ setTable()

void GraphicsTablePropertiesEditor::setTable ( QetGraphicsTableItem table)

GraphicsTablePropertiesEditor::setTable Set the table to be edited.

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

◆ setUpEditConnection()

void GraphicsTablePropertiesEditor::setUpEditConnection ( )
private

GraphicsTablePropertiesEditor::setUpEditConnection.

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

◆ updateInfoLabel

void GraphicsTablePropertiesEditor::updateInfoLabel ( )
privateslot
Here is the caller graph for this function:

◆ updatePosWidget

void GraphicsTablePropertiesEditor::updatePosWidget ( )
privateslot
Here is the caller graph for this function:

◆ updateUi

void GraphicsTablePropertiesEditor::updateUi ( )
overrideprivatevirtualslot

GraphicsTablePropertiesEditor::updateUi.

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> GraphicsTablePropertiesEditor::m_connect_list
private

◆ m_current_model_editor

QWidget* GraphicsTablePropertiesEditor::m_current_model_editor = nullptr
private

◆ m_edit_connection

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

◆ m_header_button_group

QButtonGroup* GraphicsTablePropertiesEditor::m_header_button_group = nullptr
private

◆ m_other_table_vector

QVector<QetGraphicsTableItem *> GraphicsTablePropertiesEditor::m_other_table_vector
private

◆ m_table_button_group

QButtonGroup * GraphicsTablePropertiesEditor::m_table_button_group = nullptr
private

◆ m_table_item

QPointer<QetGraphicsTableItem> GraphicsTablePropertiesEditor::m_table_item
private

◆ ui

Ui::GraphicsTablePropertiesEditor* GraphicsTablePropertiesEditor::ui
private

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