VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtFileBrowseWidget.h
Go to the documentation of this file.
1 /*******************************************************************************
2 * Copyright (c) 2020 MAK Technologies, Inc.
3 * All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvCoreQt/vrvCoreQt.h>
13 
14 #include <QtWidgets/QWidget>
15 
16 class QLineEdit;
17 class QPushButton;
18 class QHBoxLayout;
19 class DtDe;
20 
21 
22 namespace makVrv
23 {
24  class DtUnicode;
25 
31  class DT_DLL_VRVCOREQT DtFileBrowseWidget : public QWidget
32  {
33  Q_OBJECT
34 
35  public:
42  DtFileBrowseWidget(QWidget * parent, DtDe& de, const DtUnicode& buttonText, const std::string& browseDirectory, const std::string& filter = "");
43 
45  virtual ~DtFileBrowseWidget();
46 
49  virtual void setText(const DtUnicode& text);
50  virtual DtUnicode text() const;
52 
54  virtual void clear();
55 
57  virtual void setEnabled(bool);
58 
59  signals:
60  void onFilePathValueChanged(const std::string&);
61 
62  protected slots:
65  virtual void onBrowseUrlButtonReleased();
66 
67  protected:
69  std::string myBrowseDirectory;
70  QHBoxLayout* myMainLayout;
73  const std::string myFilter;
74  };
75 
76 }
A unicode string.
Definition: DtUnicode.h:33
A widget that is (horizontally) composed of a QLineEdit and a QPushButton.
Definition: DtFileBrowseWidget.h:31
#define DT_DLL_VRVCOREQT
Definition: vrvCoreQt.h:20
Contains DLL export macros.
const std::string myFilter
Definition: DtFileBrowseWidget.h:73
DtDe & myDe
Definition: DtFileBrowseWidget.h:68
QPushButton * myBrowseUrlButton
Definition: DtFileBrowseWidget.h:72
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
QHBoxLayout * myMainLayout
Definition: DtFileBrowseWidget.h:70
std::string myBrowseDirectory
Definition: DtFileBrowseWidget.h:69
QLineEdit * myTextLineEdit
Definition: DtFileBrowseWidget.h:71

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)