VR-Forces 4.1.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
vrfGuiCoreQt
DtFontDatabase.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2012 MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
/******************************************************************************
6
** $RCSfile: DtFontDatabase.h,v $ $Revision: 1.12 $ $State: Exp $
7
******************************************************************************/
8
11
13
14
#pragma once
15
16
#include <
vrvUtil/signalslib.h
>
17
#include <
vrfGuiCoreQt/vrfGuiCoreQt.h
>
18
#include <
vrvCore/DtSharedSettings.h
>
19
20
#include <
vrvGraphics/DtFreeTypeLibrary.h
>
21
22
#include <map>
23
24
#include <QString>
25
#include <QStringList>
26
#include <QFontDatabase>
27
28
namespace
makVrv
29
{
30
class
DtDe;
31
}
32
33
namespace
makVrf
34
{
37
class
DT_DLL_VRFGUICOREQT
DtFontDatabase
:
public
makVrv::DtVirtualBaseClass
38
{
39
public
:
40
DtFontDatabase
(
makVrv::DtDe
&);
41
virtual
~
DtFontDatabase
();
42
44
static
DtFontDatabase
& instance(
makVrv::DtDe
& de);
45
static
void
registerInstance(
makVrv::DtDe
& de,
DtFontDatabase
*);
46
48
virtual
QStringList families()
const
;
49
51
virtual
QList<int>
pointSizes(
const
QString& family);
52
54
virtual
QString fontFileFor(
const
QString& family,
int
flags = 0)
const
;
55
57
virtual
void
addFont(
const
std::string& family,
const
std::string& fileName);
58
60
virtual
QString fontFromFile(
const
std::string& file)
const
;
61
62
protected
:
63
makVrv::DtDe
&
myDe
;
64
QFontDatabase
myFontDatabase
;
65
};
66
}
Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (
www.mak.com
)