Ocular Engine
FileProperty.hpp
1 
17 #pragma once
18 #ifndef __H__OCULAR_EDITOR_FILE_PROPERTY__H__
19 #define __H__OCULAR_EDITOR_FILE_PROPERTY__H__
20 
21 #include "Widgets/Properties/PropertyWidget.hpp"
22 #include "Widgets/Standard/LineEdit.hpp"
23 #include "Widgets/Standard/ButtonFileBrowse.hpp"
24 
25 #include <string>
26 
27 //------------------------------------------------------------------------------------------
28 
33 namespace Ocular
34 {
39  namespace Editor
40  {
47  {
48  public:
49 
50  FileProperty(QWidget* parent = nullptr);
51  virtual ~FileProperty();
52 
53  virtual bool updateProperties() override;
54 
59  virtual void setValue(void* value, uint32_t size = 0) override;
60  virtual std::string getValue() const override;
61 
62  protected:
63 
64  private:
65 
66  LineEdit* m_LineValue;
67  ButtonFileBrowse* m_ButtonBrowse;
68  };
69  }
73 }
78 //------------------------------------------------------------------------------------------
79 
80 #endif
Parent class for all general property widgets.
Definition: PropertyWidget.hpp:51
virtual void setValue(void *value, uint32_t size=0) override
Definition: FileProperty.cpp:84
virtual std::string getValue() const override
Definition: FileProperty.cpp:104
Note: Once this library is made dynamic, this will no longer be needed.
Definition: Common.hpp:70
Definition: ButtonFileBrowse.hpp:42
Definition: FileProperty.hpp:46
virtual bool updateProperties() override
Definition: FileProperty.cpp:52
Definition: LineEdit.hpp:56