VR-Exchange 2.2 API Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
include
widgets
fileEdit.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 1992-2010 VT MAK
3
** All rights reserved.
4
******************************************************************************/
5
6
9
10
#ifndef fileEdit_H_
11
#define fileEdit_H_
12
13
#include <namespace.h>
14
#include <QtGui/QWidget>
15
#include <QtCore/QString>
16
17
class
QString;
18
class
QLineEdit
;
19
class
QPushButton;
20
21
namespace
MAKVrExchange
22
{
23
class
DT_DLL_VRXWIDGETS
DtFileEdit
:
public
QWidget
24
{
25
Q_OBJECT
26
public
:
27
29
enum
FileOperation
30
{
31
OpenFile
,
32
SaveFile
33
};
34
36
DtFileEdit
(
QWidget
* parent=0,Qt::WindowFlags f=0 );
37
39
virtual
~
DtFileEdit
();
40
43
void
setFileOperation(FileOperation op);
44
46
FileOperation fileOperation()
const
;
47
49
void
setExtension(
const
QString& extension);
50
52
void
setFilename(
const
QString& filename);
53
55
QString filename()
const
;
56
57
signals:
58
60
void
filenameChanged(
const
QString&);
61
62
public
slots:
63
64
virtual
void
showFileDialog();
65
67
virtual
void
emitFilenameChanged();
68
69
70
protected
:
71
72
FileOperation
myOperation
;
73
QString
myExtension
;
74
QLineEdit
*
myFilenameEdit
;
75
QPushButton*
myBrowseButton
;
76
77
};
78
79
}
80
81
#endif
Document ID: Generated on Mon Apr 15 17:15:50 EDT 2013 from SVN revision 126154
Copyright © 2005-2012 VT MÄK. All Rights Reserved (
www.mak.com
)