QElectroTech  0.8-dev
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. More...
 
 ~GraphicsTablePropertiesEditor () override
 GraphicsTablePropertiesEditor::~GraphicsTablePropertiesEditor. More...
 
void setTable (QetGraphicsTableItem *table)
 GraphicsTablePropertiesEditor::setTable Set the table to be edited. More...
 
virtual void apply () override
 GraphicsTablePropertiesEditor::apply Apply the current edition. More...
 
QUndoCommand * associatedUndo () const override
 GraphicsTablePropertiesEditor::associatedUndo. More...
 
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 enable, return true, else false. By default this method do nothing and return false (live edit is disable). Herited class of PropertiesEditorWidget must reimplemente this methode to manage the live edit mode. 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...
 
virtual void updateUi ()
 
bool isLiveEdit () const
 PropertiesEditorWidget::isLiveEdit. More...
 

Private Slots

void on_m_header_font_pb_clicked ()
 GraphicsTablePropertiesEditor::on_m_header_font_pb_clicked. More...
 
void on_m_table_font_pb_clicked ()
 GraphicsTablePropertiesEditor::on_m_table_font_pb_clicked. More...
 
virtual void updateUi () override
 GraphicsTablePropertiesEditor::updateUi. More...
 
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. More...
 
void on_m_apply_geometry_to_linked_table_pb_clicked ()
 GraphicsTablePropertiesEditor::on_m_apply_geometry_to_linked_table_pb_clicked. More...
 

Private Member Functions

void setUpEditConnection ()
 GraphicsTablePropertiesEditor::setUpEditConnection. More...
 

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 enable, return true, else false. By default this method do nothing and return false (live edit is disable). Herited class of PropertiesEditorWidget must reimplemente this methode to manage the live edit mode.

Parameters
live_edittrue to enable live edit
Returns
true if live edit is enable, 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:

◆ 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: