Ocular Engine
ButtonDirectoryBrowse.hpp
1 
17 #pragma once
18 #ifndef __H__OCULAR_BUTTON_DIRECTORY_BROWSE__H__
19 #define __H__OCULAR_BUTTON_DIRECTORY_BROWSE__H__
20 
21 #include <QtWidgets/qpushbutton.h>
22 
23 //------------------------------------------------------------------------------------------
24 
29 namespace Ocular
30 {
35  namespace Editor
36  {
42  class ButtonDirectoryBrowse : public QPushButton
43  {
44  Q_OBJECT
45 
46  public:
47 
48  ButtonDirectoryBrowse(QWidget* parent = nullptr);
49  virtual ~ButtonDirectoryBrowse();
50 
51  virtual QSize sizeHint() const override;
52 
57  bool wasEdited(bool reset = true);
58 
62  std::string const& getSelectedDirectory() const;
63 
64  protected:
65 
66  private slots :
67 
68  void onButtonClick();
69 
70  private:
71 
72  bool m_WasEdited;
73 
74  std::string m_SelectedDirectory;
75  };
76  }
80 }
85 //------------------------------------------------------------------------------------------
86 
87 #endif
bool wasEdited(bool reset=true)
Definition: ButtonDirectoryBrowse.cpp:54
Note: Once this library is made dynamic, this will no longer be needed.
Definition: Common.hpp:70
Definition: ButtonDirectoryBrowse.hpp:42