OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
PropertyInputFilePath.h
Go to the documentation of this file.
1
4// ###########################################################################################################################################################################################################################################################################################################################
5
6#pragma once
7
8// OpenTwin header
11
12namespace ot {
13
14 class LineEdit;
15 class PushButton;
16
18 Q_OBJECT
20 public:
22 virtual ~PropertyInputFilePath();
23
24 virtual void addPropertyInputValueToJson(ot::JsonValue& _object, const char* _memberNameValue, ot::JsonAllocator& _allocator) override;
25 virtual QVariant getCurrentValue(void) const override;
26 virtual QWidget* getQWidget(void) override;
27 virtual const QWidget* getQWidget(void) const override;
28 virtual Property* createPropertyConfiguration(void) const override;
29 virtual bool setupFromConfiguration(const Property* _configuration) override;
30 virtual void focusPropertyInput(void) override;
31
32 void setCurrentFile(const QString& _file);
33 QString currentFile(void) const;
34
35 private Q_SLOTS:
36 void slotFind(void);
37 void slotChanged(void);
38
39 private:
41 QWidget* m_root;
42 LineEdit* m_edit;
43 PushButton* m_find;
44 QString m_filter;
45 QString m_text;
46 };
47
48}
#define OT_DECL_NOCOPY(___class)
Removes the default copy constructor and assignment operator.
Definition OTClassHelper.h:14
#define OT_WIDGETS_API_EXPORT
Definition OTWidgetsAPIExport.h:12
Definition LineEdit.h:17
BrowseMode
Definition PropertyFilePath.h:19
The Property class is used as a base class for all Properties that can be displayed and modified in t...
Definition Property.h:21
Definition PropertyInputFilePath.h:17
Definition PropertyInput.h:23
Definition PushButton.h:17
Definition Connector.h:8
rapidjson::Value JsonValue
Writable JSON value.
Definition JSON.h:27
rapidjson::MemoryPoolAllocator< rapidjson::CrtAllocator > JsonAllocator
Allocator used for writing to JSON values.
Definition JSON.h:30