1#ifndef PYTHOVARIABLES_H
2#define PYTHOVARIABLES_H
6#include "ui_PythonVariablesGUI.h"
42 bool _getFilePath(QString &filePath,
bool operation =
true);
47 void _createNewVariable();
48 void _deleteVariable();
49 void _scriptChanged();
51 void _coordInputVarChanged(
int row,
int col);
52 void _2DInputVarChanged(
int row,
int col);
53 void _3DInputVarChanged(
int row,
int col);
55 void _findEnabledCoordinateVariables(
const std::vector<string> variables,
const std::vector<bool> variablesEnabled);
56 void _coordinatesCheckboxClicked(
int state);
59 const QColor *_background;
77 bool _includeCoordVars;
79 std::vector<string> _coordVars;
80 std::vector<bool> _coordVarsEnabled;
81 std::vector<string> _2DVars;
82 std::vector<bool> _2DVarsEnabled;
83 std::vector<string> _3DVars;
84 std::vector<bool> _3DVarsEnabled;
85 std::vector<string> _outputVars;
86 std::vector<string> _outputGrids;
87 std::vector<string> _inputGrids;
88 std::vector<string> _otherGrids;
90 void _connectWidgets();
91 void _setGUIEnabled(
bool enabled);
92 void _makeInputTableValues(std::vector<string> &tableValuesCoords, std::vector<string> &tableValues2D, std::vector<string> &tableValues3D, std::vector<string> &summaryValues)
const;
93 void _makeOutputTableValues(std::vector<string> &outputValues)
const;
94 std::vector<string> _makeDialogOptions(std::vector<string> grids);
95 std::vector<string> _buildInputVars()
const;
96 int _checkForDuplicateNames(std::vector<string> names,
string name);
97 bool _isGridSelected(
string grid, std::vector<string> selectedVars, std::vector<bool> varEnabled)
const;
98 void _saveToSession();
100 void _updateNewItemDialog();
101 void _updateLabelColor(
int r,
int g,
int b, QLabel *label);
117 void Update(
int type, std::vector<string> optionNames, std::vector<int> categoryItems = std::vector<int>());
122 void _connectWidgets();
124 void _adjustToType(
int type);
125 void _disableComboItem(
int index);
130 QLabel * _itemNameLabel;
131 QLineEdit * _itemNameEdit;
132 QLabel * _optionNameLabel;
133 QComboBox * _optionNameCombo;
134 QPushButton *_okButton;
135 QPushButton *_cancelButton;
164 QLabel * _dataMgrNameLabel;
165 QComboBox * _dataMgrNameCombo;
166 QLabel * _scriptNameLabel;
167 QComboBox * _scriptNameCombo;
168 QPushButton *_okButton;
169 QPushButton *_cancelButton;
175 void _updateOptions(
int index);
string GetOptionName() const
string GetItemName() const
NewItemDialog(QWidget *parent=0)
void Update(int type, std::vector< string > optionNames, std::vector< int > categoryItems=std::vector< int >())
string GetDataMgrName() const
string GetScriptName() const
int Update(int type, VAPoR::ControlExec *controlExec)
OpenAndDeleteDialog(QWidget *parent=0)
void InitControlExec(VAPoR::ControlExec *ce)
void Update(bool internal=false)
PythonVariables(QWidget *parent)
Provides API for VAPOR visualizer User Interfaces (UIs)
static const string _scriptType