VAPOR3 3.9.4
PFileSelector.h
Go to the documentation of this file.
1#pragma once
2
3#include "PLineItem.h"
4
5class VPushButton;
7class QString;
8
12
13class PFileSelector : public PLineItem {
14 Q_OBJECT
15
16 VPushButton * _button;
17 VLineEdit_Deprecated *_pathTexbox;
18
19 bool _syncWithSettings = false;
20 std::string _syncWithSettingsTag;
21
22public:
23 PFileSelector(const std::string &tag, const std::string &label = "");
25 PFileSelector *SetFileTypeFilter(const std::string &filter);
26 // PFileSelector *UseDefaultPathSetting(const std::string &tag);
27
28protected:
29 QString _fileTypeFilter = "All Files (*)";
30
31 void updateGUI() const override;
32 bool requireParamsMgr() const override;
33 virtual QString selectPath(const std::string &defaultPath) const = 0;
34
35private slots:
36 void buttonClicked();
37};
38
42
44 Q_OBJECT
45public:
47
48protected:
49 virtual QString selectPath(const std::string &defaultPath) const override;
50};
51
55
57 Q_OBJECT
58public:
60
61protected:
62 virtual QString selectPath(const std::string &defaultPath) const override;
63};
64
68
70 Q_OBJECT
71public:
73 PFileSelector *SetFileTypeFilter(const std::string &filter) = delete;
74
75protected:
76 virtual QString selectPath(const std::string &defaultPath) const override;
77};
PFileSelector * SetFileTypeFilter(const std::string &filter)=delete
virtual QString selectPath(const std::string &defaultPath) const override
virtual QString selectPath(const std::string &defaultPath) const override
virtual QString selectPath(const std::string &defaultPath) const override
PFileSelector * SetFileTypeFilter(const std::string &filter)
Sets the fileTypeFilter parameter in the QFileDialog popup functions.
PFileSelector(const std::string &tag, const std::string &label="")
QString _fileTypeFilter
Definition: PFileSelector.h:29
virtual QString selectPath(const std::string &defaultPath) const =0
void updateGUI() const override
bool requireParamsMgr() const override