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

The TerminalNumberingDialog class Dialog to configure the automatic numbering of terminals. More...

#include <terminalnumberingdialog.h>

Inherits QDialog.

Collaboration diagram for TerminalNumberingDialog:
Collaboration graph

Public Member Functions

 TerminalNumberingDialog (QWidget *parent=nullptr, QETProject *project=nullptr)
 TerminalNumberingDialog::TerminalNumberingDialog Constructor.
 ~TerminalNumberingDialog ()
 TerminalNumberingDialog::~TerminalNumberingDialog Destructor.
bool isXAxisPriority () const
 TerminalNumberingDialog::isXAxisPriority.
bool isAlphanumeric () const
 TerminalNumberingDialog::isAlphanumeric.
bool alsoNumberLetters () const
 TerminalNumberingDialog::alsoNumberLetters.
QStringList excludedStrips () const
 TerminalNumberingDialog::excludedStrips.
QUndoCommand * getUndoCommand (QETProject *project) const
 TerminalNumberingDialog::getUndoCommand Scans the given project for terminals, sorts them according to user preferences (X/Y axis, alphanumeric rules), and generates an undo command containing all label changes.

Private Attributes

Ui::TerminalNumberingDialog * ui
QMap< QString, QCheckBox * > m_stripCheckboxes

Detailed Description

The TerminalNumberingDialog class Dialog to configure the automatic numbering of terminals.

Constructor & Destructor Documentation

◆ TerminalNumberingDialog()

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

TerminalNumberingDialog::TerminalNumberingDialog Constructor.

Parameters
parent
projectPointer to the current project (used to populate terminal strips)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ~TerminalNumberingDialog()

TerminalNumberingDialog::~TerminalNumberingDialog ( )

Member Function Documentation

◆ alsoNumberLetters()

bool TerminalNumberingDialog::alsoNumberLetters ( ) const

TerminalNumberingDialog::alsoNumberLetters.

Returns
true if the "also number letters" checkbox is checked
Here is the caller graph for this function:

◆ excludedStrips()

QStringList TerminalNumberingDialog::excludedStrips ( ) const

TerminalNumberingDialog::excludedStrips.

Returns
List of terminal strip prefixes that should be excluded from numbering
Here is the caller graph for this function:

◆ getUndoCommand()

QUndoCommand * TerminalNumberingDialog::getUndoCommand ( QETProject * project) const

TerminalNumberingDialog::getUndoCommand Scans the given project for terminals, sorts them according to user preferences (X/Y axis, alphanumeric rules), and generates an undo command containing all label changes.

Parameters
projectPointer to the current QETProject
Returns
QUndoCommand* containing the modifications, or nullptr if no changes are needed.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ isAlphanumeric()

bool TerminalNumberingDialog::isAlphanumeric ( ) const

TerminalNumberingDialog::isAlphanumeric.

Returns
true if alphanumeric sorting is enabled, false if numeric only
Here is the caller graph for this function:

◆ isXAxisPriority()

bool TerminalNumberingDialog::isXAxisPriority ( ) const

TerminalNumberingDialog::isXAxisPriority.

Returns
true if X axis has priority, false if Y axis has priority
Here is the caller graph for this function:

Member Data Documentation

◆ m_stripCheckboxes

QMap<QString, QCheckBox*> TerminalNumberingDialog::m_stripCheckboxes
private

◆ ui

Ui::TerminalNumberingDialog* TerminalNumberingDialog::ui
private

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