VAPOR3 3.9.4
PMultiVarSelector.h
Go to the documentation of this file.
1#pragma once
2
3#include "PWidget.h"
4
5class QListWidget;
6class QListWidgetItem;
7
13
14class PMultiVarSelector : public PWidget {
15public:
16 enum Mode { Auto, D2, D3, Both };
17
18 PMultiVarSelector(std::string tag);
20
21protected:
22 void updateGUI() const override;
23 QSize minimumSizeHint() const override;
24 bool requireDataMgr() const override { return true; }
25
26private:
27 QListWidget *_listWidget;
28 Mode _mode = Auto;
29
30 QListWidgetItem *_addVarToList(const std::string &var) const;
31 void _itemChanged(QListWidgetItem *);
32};
Allows the selection of multiple variables. To add a title, use a PLabel.
PMultiVarSelector * DisplayVars(Mode mode)
void updateGUI() const override
bool requireDataMgr() const override
QSize minimumSizeHint() const override
PMultiVarSelector(std::string tag)