37#include <QPlainTextEdit>
104 PVarDialog(QVector<PCollInfo> collection_list,
bool darkTheme,
105 QWidget *parent =
nullptr,
106 Qt::WindowFlags f = Qt::WindowFlags());
112 std::unique_ptr<QPushButton>
fAdd;
152 bool hasErrorDef(QStringList &varNames, QString& name);
void check()
Slot to validate variable definitions and emit check_request signal.
bool basic_check()
Performs basic validation checks on variable definitions.
void add()
Slot to validate and add variable definitions, emitting add_request signal.
QVector< PCollInfo > fCollList
vector holding all collection information
QStringList collectVarNames(QStringList &list, bool &ok)
Collects all variable names from a tokenized string list.
void showVarNames()
Slot to show a dialog displaying variable names from the selected collection.
void help()
Slot to display help information about variable syntax.
std::unique_ptr< QPushButton > fCheck
check button to validate variable definitions
std::unique_ptr< QPushButton > fAdd
add button to add variables to mupp GUI
std::unique_ptr< QPushButton > fShowVarName
button to show variable names from selected collection
std::unique_ptr< QListWidget > fCollectionView
list widget displaying available collections
bool hasErrorDef(QStringList &varNames, QString &name)
Checks that each variable has a corresponding error definition.
void add_request(QString varStr, QVector< int > idx)
Signal emitted when user requests to add variable definitions.
std::unique_ptr< QPushButton > fCancel
cancel button to reject the dialog
std::unique_ptr< QPushButton > fHelp
help button to display syntax information
void check_request(QString varStr, QVector< int > idx)
Signal emitted when user requests to check variable definitions.
std::unique_ptr< QPlainTextEdit > fVarEdit
text editor for variable definitions
bool var_consistency_check()
Validates that all identifiers exist in selected collections.
PVarDialog(QVector< PCollInfo > collection_list, bool darkTheme, QWidget *parent=nullptr, Qt::WindowFlags f=Qt::WindowFlags())
Constructor for PVarDialog.
The PCollInfo struct holds collection information.
QStringList fVarName
variable names of the given collection
QString fCollName
collection name (may include path)