22#include <qtabwidget.h>
97 virtual void GetWebHelp(
string tabName, std::vector<std::pair<string, string>> &help)
const;
131 QComboBox *cb = (QComboBox *)sender();
132 cb->blockSignals(
true);
133 cb->setCurrentIndex(0);
134 cb->blockSignals(
false);
145 void _setSubTab(
int tabid);
150 void _setFrontTab(
int tabnum);
152 void SetActiveViz(
const QString &vizNameQ);
155 static const string _renderersTabName;
156 static const string _navigationTabName;
157 static const string _settingsTabName;
164 std::vector<string> _tabNames;
168 std::map<string, QWidget *> _tabWidgets;
172 std::map<string, vector<QWidget *>> _subTabWidgets;
173 std::map<string, vector<string>> _subTabNames;
177 std::map<string, string> _currentFrontSubTab;
178 std::map<string, string> _prevFrontSubTab;
180 string _currentFrontTab;
181 string _prevFrontTab;
184 std::map<string, EventRouter *> _eventRouterMap;
192 virtual QSize sizeHint()
const {
return QSize(460, 800); }
195 virtual void keyPressEvent(QKeyEvent *e) { e->accept(); }
201 int _getSubTabIndex(
string tabName,
string subTabName)
const;
202 int _getSubTabIndex(
string subTabName)
const;
203 int _getTabIndex(
string tabName)
const;
205 string _getTabForSubTab(
string subTabName)
const;
207 QWidget *_getSubTabWidget(
string subTabName)
const;
208 QWidget *_getTabWidget(
string tabName)
const;
217 void _createAllDefaultTabs();
224 void _installTab(
string tabName,
string subTabName,
EventRouter *eRouter);
226 void _registerEventRouter(
const std::string subTabName,
EventRouter *router);
232 void _installWidgets();
243 void _addSubTabWidget(QWidget *evWid,
string Tag,
string tagType);
245 void _updateRouters();
A pure virtual class specifying the common properties of all the parameter tabs in the VAPOR GUI.
static string GetClassType()
static void UseHomeViewpoint(ControlExec *ce)
static void ViewAll(ControlExec *ce)
static void AlignView(ControlExec *ce, int axis)
static void SetHomeViewpoint(ControlExec *ce)
A class that manages the contents of the parameter tabs in VAPOR GUI.
void ActiveEventRouterChanged(string type)
virtual void GetWebHelp(string tabName, std::vector< std::pair< string, string > > &help) const
void Update()
Update from current state.
TabManager(QWidget *, VAPoR::ControlExec *ce)
void LoadDataNotify(string dataSetName)
void MoveToFront(string subTabName)
void EnableRouters(bool onOff)
Enable or disable widgets associated with all event routers.
void Proj4StringChanged(string proj4String)
Proj4 string changed.
vector< string > GetInstalledTabNames(bool renderOnly) const
Provides API for VAPOR visualizer User Interfaces (UIs)
ParamsMgr * GetParamsMgr() const
A singleton class for managing Params instances.
ParamsBase * GetParams(string classType)