VR-Forces 4.8 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) 2017 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 
29  class DT_DLL_VRVCOREQT DtFileBrowseWidget : public QWidget
30  {
31  Q_OBJECT
32 
33  public:
40  DtFileBrowseWidget(QWidget * parent, DtDe& de, const DtUnicode& buttonText, const std::string& browseDirectory, const std::string& filter = "");
41 
43  virtual ~DtFileBrowseWidget();
44 
46  virtual void setText(const DtUnicode& text);
47 
49  virtual DtUnicode text();
50 
51  virtual void clear();
52 
53  protected slots:
55  virtual void onBrowseUrlButtonReleased();
56 
57  protected:
59  std::string myBrowseDirectory;
60  QHBoxLayout* myMainLayout;
63  const std::string myFilter;
64  };
65 
66 }
A unicode string.
Definition: DtUnicode.h:33
A widget consist of a QLineEdit and a QPushButton.
Definition: DtFileBrowseWidget.h:29
#define DT_DLL_VRVCOREQT
Definition: vrvCoreQt.h:20
Contains DLL export macros.
const std::string myFilter
Definition: DtFileBrowseWidget.h:63
DtDe & myDe
Definition: DtFileBrowseWidget.h:58
QPushButton * myBrowseUrlButton
Definition: DtFileBrowseWidget.h:62
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
QHBoxLayout * myMainLayout
Definition: DtFileBrowseWidget.h:60
std::string myBrowseDirectory
Definition: DtFileBrowseWidget.h:59
QLineEdit * myTextLineEdit
Definition: DtFileBrowseWidget.h:61

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)