52 #ifndef DIALOG_VARIABLES_H
53 #define DIALOG_VARIABLES_H
55 #include "../vtools/dialogs/tools/dialogtool.h"
56 #include "../xml/vpattern.h"
57 #include "../vmisc/vtablesearch.h"
62 class VIndividualMeasurements;
83 virtual void closeEvent ( QCloseEvent * event ) Q_DECL_OVERRIDE;
84 virtual void changeEvent ( QEvent * event) Q_DECL_OVERRIDE;
85 virtual bool eventFilter(QObject *
object, QEvent *event) Q_DECL_OVERRIDE;
86 virtual void showEvent( QShowEvent *event ) Q_DECL_OVERRIDE;
87 virtual void resizeEvent(QResizeEvent *event) Q_DECL_OVERRIDE;
126 template <typename T>
127 void fillTable(const
QMap<QString, T> &varTable, QTableWidget *table);
138 void showHeaderUnits(QTableWidget *table,
int column, const QString &unit);
140 void addCell(QTableWidget *table, const QString &text,
int row,
int column,
141 int aligment,
bool ok = true);
155 void renameCache(const QString &name, const QString &newName);
The DialogVariables class show dialog increments. Tables of all variables in program will be here.
void saveCustomVariableName(const QString &text)
QList< QSharedPointer< QTableWidget > > tableList
void addCustomVariable()
clickedToolButtonAdd create new row in table
QString clearCustomVariableName(const QString &name) const
void fillControlPointLengths()
QString getCustomVariableName() const
void fillCustomVariables(bool freshCall=false)
fillCustomVariables fill data for variables table
virtual void closeEvent(QCloseEvent *event) Q_DECL_OVERRIDE
closeEvent handle when dialog cloded
VPattern * doc
doc dom document container
void saveCustomVariableDescription()
void enablePieces(bool enabled)
virtual void changeEvent(QEvent *event) Q_DECL_OVERRIDE
void saveCustomVariableFormula()
void fillTable(const QMap< QString, T > &varTable, QTableWidget *table)
void showHeaderUnits(QTableWidget *table, int column, const QString &unit)
DialogVariables(VContainer *data, VPattern *doc, QWidget *parent=nullptr)
DialogVariables create dialog.
virtual ~DialogVariables() Q_DECL_OVERRIDE
QVector< QPair< QString, QString > > renameList
void removeCustomVariable()
clickedToolButtonRemove remove one row from table
void fillLineLengths()
FillLengthLines fill data for table of lines lengths.
Ui::DialogVariables * ui
ui keeps information about user interface
void renameCache(const QString &name, const QString &newName)
void FullUpdateFromFile()
FullUpdateFromFile update information in tables form file.
virtual void resizeEvent(QResizeEvent *event) Q_DECL_OVERRIDE
VContainer * data
data container with data
void fillCurveLengths()
FillLengthSplines fill data for table of splines lengths.
bool variableUsed(const QString &name) const
void showCustomVariableDetails()
virtual bool eventFilter(QObject *object, QEvent *event) Q_DECL_OVERRIDE
void addCell(QTableWidget *table, const QString &text, int row, int column, int aligment, bool ok=true)
void filterVariables(const QString &filterString)
bool evalVariableFormula(const QString &formula, bool fromUser, VContainer *data, QLabel *label)
virtual void showEvent(QShowEvent *event) Q_DECL_OVERRIDE
showEvent handle when window show
The VContainer class container of all variables.
The VPattern class working with pattern file.