QElectroTech  0.8-dev
Signals | Public Member Functions | Public Attributes | Private Slots | Private Attributes | List of all members
FormulaAutonumberingW Class Reference

#include <formulaautonumberingw.h>

Inherits QWidget.

Collaboration diagram for FormulaAutonumberingW:
Collaboration graph

Signals

void applyPressed ()
 
void textChanged (QString)
 

Public Member Functions

 FormulaAutonumberingW (QWidget *parent=nullptr)
 
 ~FormulaAutonumberingW () override
 
QString formula ()
 FormulaAutonumberingW::formula. More...
 
void setContext (const QString &)
 FormulaAutonumberingW::setContext. More...
 
void clearContext ()
 FormulaAutonumberingW::clearContext. More...
 

Public Attributes

Ui::FormulaAutonumberingW * ui
 

Private Slots

void on_m_formula_le_textChanged (QString)
 FormulaAutonumberingW::on_m_formula_le_textChanged Update Apply Button. More...
 

Private Attributes

QString formula_
 

Detailed Description

This class implements the element autonumbering widget. It loads the current formula applied to new elements and allows the user to overwrite it with a new formula. Formula is added while parsing label in customelement.cpp

Constructor & Destructor Documentation

◆ FormulaAutonumberingW()

FormulaAutonumberingW::FormulaAutonumberingW ( QWidget *  parent = nullptr)
explicit

Constructor

Here is the call graph for this function:

◆ ~FormulaAutonumberingW()

FormulaAutonumberingW::~FormulaAutonumberingW ( )
override

Destructor

Member Function Documentation

◆ applyPressed

void FormulaAutonumberingW::applyPressed ( )
signal

◆ clearContext()

void FormulaAutonumberingW::clearContext ( )

FormulaAutonumberingW::clearContext.

Parameters
clearformula line edit text
Here is the caller graph for this function:

◆ formula()

QString FormulaAutonumberingW::formula ( )

FormulaAutonumberingW::formula.

Returns
formula to be stored into project
Here is the caller graph for this function:

◆ on_m_formula_le_textChanged

void FormulaAutonumberingW::on_m_formula_le_textChanged ( QString  text)
privateslot

◆ setContext()

void FormulaAutonumberingW::setContext ( const QString &  formula)

FormulaAutonumberingW::setContext.

Parameters
formulato be inserted into context
Here is the call graph for this function:
Here is the caller graph for this function:

◆ textChanged

void FormulaAutonumberingW::textChanged ( QString  )
signal
Here is the caller graph for this function:

Member Data Documentation

◆ formula_

QString FormulaAutonumberingW::formula_
private

◆ ui

Ui::FormulaAutonumberingW* FormulaAutonumberingW::ui

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