VR-Forces 4.6.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
appsrc
vrfOpdEditor
propertyFileViewer.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2013 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
6
#pragma once
7
8
#include <
vrvUtil/signalslib.h
>
9
10
#include "
propertyItem.h
"
11
12
class
DtPropertyFileViewer
:
public
DtPropertyItem
13
{
14
Q_OBJECT
15
16
public
:
17
DtPropertyFileViewer
(
makVrv::DtDe
&,
DtPropertySheet
*,
const
QString& title,
DtReaderWriter
* var,
DtReaderWriter
* backup);
18
DtPropertyFileViewer
(
makVrv::DtDe
&,
DtPropertyItem
*,
DtPropertySheet
*,
const
QString& title,
19
DtReaderWriter
* var,
DtReaderWriter
* backup);
20
21
static
DtPropertyItem
*
create
(
makVrv::DtDe
&,
DtPropertySheet
*,
DtPropertyItem
*,
const
QString& title,
22
DtReaderWriter
* var,
DtReaderWriter
* backup);
23
24
void
setFilename
(
const
QString&);
25
const
QString&
filename
()
const
;
26
27
protected
:
28
virtual
void
createButtons
();
29
30
// Override to, instead of restoring, show the file
31
virtual
void
restore
();
32
33
virtual
void
showEditor
();
34
virtual
QVariant
data
()
const
;
35
36
protected
:
37
QString
myFilename
;
38
};
39
40
inline
void
DtPropertyFileViewer::setFilename
(
const
QString& n)
41
{
42
myFilename
= n;
43
}
44
45
inline
const
QString&
DtPropertyFileViewer::filename
()
const
46
{
47
return
myFilename
;
48
}
Document ID: Generated on Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (
www.mak.com
)