VR-Exchange 2.4 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
fileEdit.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2015 VT MAK
3  * All rights reserved.
4  ****************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <widgets/dllExport.h>
13 #include <QtCore/QString>
14 #include <QtGui/QWidget>
15 
16 class QString;
17 class QLineEdit;
18 class QPushButton;
19 
20 namespace MAKVrExchange
21 {
22 
24  { Q_OBJECT;
25  public:
26 
29  {
31  SaveFile
32  };
33 
35  DtFileEdit( QWidget* parent = 0, Qt::WindowFlags f = 0 );
36 
38  virtual ~DtFileEdit();
39 
42  void setFileOperation( FileOperation op );
43 
45  FileOperation fileOperation() const;
46 
48  void setExtension( const QString& extension );
49 
51  void setFilename( const QString& filename );
52 
54  QString filename() const;
55 
56  signals:
57 
59  void filenameChanged( const QString& filename );
60 
61  public slots:
62 
63  virtual void showFileDialog();
64 
66  virtual void emitFilenameChanged();
67 
68  protected:
69 
71  QString myExtension;
73  QPushButton* myBrowseButton;
74 
75  };
76 
77 }

Document ID: Generated on Thu Jul 23 10:25:22 EDT 2015 from SVN revision 155065
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)