VAPOR3 3.9.4
PStringDropdown.h
Go to the documentation of this file.
1#pragma once
2
3#include "PLineItem.h"
4#include <vector>
5//#include "VaporWidgetsFwd.h"
6
7class VComboBox;
8
12
13class PStringDropdown : public PLineItem {
14 Q_OBJECT
15
16 VComboBox *_vComboBox;
17 std::string _customBlankText;
18
19public:
20 PStringDropdown(const std::string &tag, const std::vector<std::string> &items, const std::string &label = "");
22 void SetItems(const std::vector<std::string> &items) const;
23
24protected:
25 virtual void updateGUI() const override;
26 void setCustomBlankText(std::string text);
27
28protected slots:
29 virtual void dropdownTextChanged(std::string text);
30};
void SetItems(const std::vector< std::string > &items) const
Sets the items presented in the dropdown.
PStringDropdown(const std::string &tag, const std::vector< std::string > &items, const std::string &label="")
void setCustomBlankText(std::string text)
virtual void dropdownTextChanged(std::string text)
virtual void updateGUI() const override