Overte C++ Documentation
ModelSelector.h
1 //
2 // ModelSelector.h
3 //
4 //
5 // Created by Clement on 3/10/15.
6 // Copyright 2015 High Fidelity, Inc.
7 //
8 // Distributed under the Apache License, Version 2.0.
9 // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
10 //
11 
12 #ifndef hifi_ModelSelector_h
13 #define hifi_ModelSelector_h
14 
15 #include <QDialog>
16 #include <QFileInfo>
17 
18 #include <SettingHandle.h>
19 
20 #include "ui/ModelsBrowser.h"
21 
22 class QComboBox;
23 class QPushButton;
24 
25 class ModelSelector : public QDialog {
26  Q_OBJECT
27 
28 public:
29  ModelSelector();
30 
31  QFileInfo getFileInfo() const;
32 
33  public slots:
34  virtual void accept() override;
35 
36  private slots:
37  void browse();
38 
39 private:
40  QFileInfo _modelFile;
41  QPushButton* _browseButton;
42 };
43 
44 #endif // hifi_ModelSelector_h