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

The TerminalStripEditor class Main dialog used to edit terminal strip of a project. More...

#include <terminalstripeditor.h>

Inherits QWidget.

Collaboration diagram for TerminalStripEditor:
Collaboration graph

Public Member Functions

 TerminalStripEditor (QETProject *project, QWidget *parent=nullptr)
 TerminalStripEditor::TerminalStripEditor.
 
 ~TerminalStripEditor () override
 TerminalStripEditor::~TerminalStripEditor.
 
void setCurrentStrip (TerminalStrip *strip_)
 TerminalStripEditor::setCurrentStrip Set the current terminal strip edited to strip_.
 
void reload ()
 TerminalStripEditor::reload Reload this editor and and reset all unapplied change.
 
void apply ()
 TerminalStripEditor::apply Apply current edited values.
 

Private Slots

void on_m_auto_ordering_pb_clicked ()
 TerminalStripEditor::on_m_auto_pos_pb_clicked.
 
void on_m_group_terminals_pb_clicked ()
 TerminalStripEditor::on_m_group_terminals_pb_clicked.
 
void on_m_ungroup_pb_clicked ()
 TerminalStripEditor::on_m_ungroup_pb_clicked.
 
void on_m_level_sb_valueChanged (int arg1)
 TerminalStripEditor::on_m_level_sb_valueChanged.
 
void on_m_type_cb_activated (int index)
 
void on_m_function_cb_activated (int index)
 
void on_m_led_cb_activated (int index)
 
void on_m_bridge_terminals_pb_clicked ()
 TerminalStripEditor::on_m_bridge_terminals_pb_clicked.
 
void on_m_unbridge_terminals_pb_clicked ()
 TerminalStripEditor::on_m_unbridge_terminals_pb_clicked.
 
void on_m_bridge_color_cb_activated (const QColor &col)
 
void on_m_move_to_pb_clicked ()
 

Private Member Functions

void spanMultiLevelTerminals ()
 TerminalStripEditor::spanMultiLevelTerminals Span row of m_table_widget for multi-level terminal.
 
void selectionChanged ()
 TerminalStripEditor::selectionChanged Update the editor according to the current selection.
 
QSize setUpBridgeCellWidth ()
 
TerminalStripModel::Column isSingleColumnSelected () const
 TerminalStripEditor::isSingleColumnSelected If all current QModelIndex are in the same column return the column type.
 
QPair< TerminalStripModel::Column, QVector< modelRealTerminalData > > singleColumnData () const
 TerminalStripEditor::singleColumnData.
 

Private Attributes

Ui::TerminalStripEditor * ui
 
QETProjectm_project {nullptr}
 
TerminalStripm_current_strip {nullptr}
 
TerminalStripModelm_model {nullptr}
 

Detailed Description

The TerminalStripEditor class Main dialog used to edit terminal strip of a project.

Constructor & Destructor Documentation

◆ TerminalStripEditor()

TerminalStripEditor::TerminalStripEditor ( QETProject project,
QWidget *  parent = nullptr 
)
explicit

TerminalStripEditor::TerminalStripEditor.

Parameters
project: Project to manage the terminal strip
parent: paent widget
Here is the call graph for this function:

◆ ~TerminalStripEditor()

TerminalStripEditor::~TerminalStripEditor ( )
override

Member Function Documentation

◆ apply()

void TerminalStripEditor::apply ( )

TerminalStripEditor::apply Apply current edited values.

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

◆ isSingleColumnSelected()

TerminalStripModel::Column TerminalStripEditor::isSingleColumnSelected ( ) const
private

TerminalStripEditor::isSingleColumnSelected If all current QModelIndex are in the same column return the column type.

See also
TerminalStripModel::Column
Returns
the column or TerminalStripModel::Invalid if several column are selected
Here is the call graph for this function:
Here is the caller graph for this function:

◆ on_m_auto_ordering_pb_clicked

void TerminalStripEditor::on_m_auto_ordering_pb_clicked ( )
privateslot

TerminalStripEditor::on_m_auto_pos_pb_clicked.

Here is the call graph for this function:

◆ on_m_bridge_color_cb_activated

void TerminalStripEditor::on_m_bridge_color_cb_activated ( const QColor &  col)
privateslot
Here is the call graph for this function:

◆ on_m_bridge_terminals_pb_clicked

void TerminalStripEditor::on_m_bridge_terminals_pb_clicked ( )
privateslot

TerminalStripEditor::on_m_bridge_terminals_pb_clicked.

Here is the call graph for this function:

◆ on_m_function_cb_activated

void TerminalStripEditor::on_m_function_cb_activated ( int  index)
privateslot
Here is the call graph for this function:

◆ on_m_group_terminals_pb_clicked

void TerminalStripEditor::on_m_group_terminals_pb_clicked ( )
privateslot

TerminalStripEditor::on_m_group_terminals_pb_clicked.

Here is the call graph for this function:

◆ on_m_led_cb_activated

void TerminalStripEditor::on_m_led_cb_activated ( int  index)
privateslot
Here is the call graph for this function:

◆ on_m_level_sb_valueChanged

void TerminalStripEditor::on_m_level_sb_valueChanged ( int  arg1)
privateslot

TerminalStripEditor::on_m_level_sb_valueChanged.

Parameters
arg1
Here is the call graph for this function:

◆ on_m_move_to_pb_clicked

void TerminalStripEditor::on_m_move_to_pb_clicked ( )
privateslot
Here is the call graph for this function:

◆ on_m_type_cb_activated

void TerminalStripEditor::on_m_type_cb_activated ( int  index)
privateslot
Here is the call graph for this function:

◆ on_m_unbridge_terminals_pb_clicked

void TerminalStripEditor::on_m_unbridge_terminals_pb_clicked ( )
privateslot

TerminalStripEditor::on_m_unbridge_terminals_pb_clicked.

Here is the call graph for this function:

◆ on_m_ungroup_pb_clicked

void TerminalStripEditor::on_m_ungroup_pb_clicked ( )
privateslot

TerminalStripEditor::on_m_ungroup_pb_clicked.

Here is the call graph for this function:

◆ reload()

void TerminalStripEditor::reload ( )

TerminalStripEditor::reload Reload this editor and and reset all unapplied change.

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

◆ selectionChanged()

void TerminalStripEditor::selectionChanged ( )
private

TerminalStripEditor::selectionChanged Update the editor according to the current selection.

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

◆ setCurrentStrip()

void TerminalStripEditor::setCurrentStrip ( TerminalStrip strip_)

TerminalStripEditor::setCurrentStrip Set the current terminal strip edited to strip_.

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

◆ setUpBridgeCellWidth()

QSize TerminalStripEditor::setUpBridgeCellWidth ( )
private
Here is the caller graph for this function:

◆ singleColumnData()

QPair< TerminalStripModel::Column, QVector< modelRealTerminalData > > TerminalStripEditor::singleColumnData ( ) const
private

TerminalStripEditor::singleColumnData.

Returns
a QPair with for first value the column and for second value the data of selected cell of the table widget, only if the selected cells are in the same column. If selected cells are not in the same column the first value of the QPair is TerminalStripModel::Invalid.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ spanMultiLevelTerminals()

void TerminalStripEditor::spanMultiLevelTerminals ( )
private

TerminalStripEditor::spanMultiLevelTerminals Span row of m_table_widget for multi-level terminal.

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

Member Data Documentation

◆ m_current_strip

TerminalStrip* TerminalStripEditor::m_current_strip {nullptr}
private

◆ m_model

TerminalStripModel* TerminalStripEditor::m_model {nullptr}
private

◆ m_project

QETProject* TerminalStripEditor::m_project {nullptr}
private

◆ ui

Ui::TerminalStripEditor* TerminalStripEditor::ui
private

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