LunaSysMgr
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
gfxsettings.h
Go to the documentation of this file.
1
/* @@@LICENSE
2
*
3
* Copyright (c) 2010-2012 Hewlett-Packard Development Company, L.P.
4
*
5
* Licensed under the Apache License, Version 2.0 (the "License");
6
* you may not use this file except in compliance with the License.
7
* You may obtain a copy of the License at
8
*
9
* http://www.apache.org/licenses/LICENSE-2.0
10
*
11
* Unless required by applicable law or agreed to in writing, software
12
* distributed under the License is distributed on an "AS IS" BASIS,
13
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
* See the License for the specific language governing permissions and
15
* limitations under the License.
16
*
17
* LICENSE@@@ */
18
19
20
21
#ifndef __GraphicsSettings_h__
22
#define __GraphicsSettings_h__
23
24
#include "Common.h"
25
26
#include <QString>
27
#include <vector>
28
#include <set>
29
#include <glib.h>
30
#include <QtGlobal>
31
#include <QSize>
32
33
class
GraphicsSettings
34
{
35
public
:
36
37
void
reload
();
38
39
quint32
totalCacheSizeLimitInBytes
;
40
bool
atlasPagesExemptFromSizeLimit
;
41
quint32
allowedScaleUpPercentage
;
42
quint32
allowedScaleDownPercentage
;
43
quint32
allowedAsymmetricScalePercentage
;
//for when the pixmap is not square to begin with
44
quint32
forceSquarifyUsesMaxBoundSquare
;
//for when the pixmap is not square, true here causes a square of s = max(w,h)
45
QString
dbg_dumpFunctionsWriteableDirectory
;
//for debug functions that dump stuff to disk, this is the location it goes to
46
QString
graphicsAssetBaseDirectory
;
//the root dir where all the Dimensions UI graphics assets are located
47
QString
dbg_graphicsAssetBaseDirectory
;
// same, but dbg
48
49
QSize
maxPixSize
;
//maximum dimensions of a single pixmap; set according to gfx hardware and sw limitations
50
51
QSize
maxVCamPixSize
;
//maximum dimensions of a virtual camera picture
52
bool
useFixedVCamPixSize
;
53
QSize
fixedVCamPixSize
;
54
55
QSize
goggleSize
;
56
bool
vCamHorizontalFlip
;
57
bool
vCamVerticalFlip
;
58
bool
dbgSaveVcamOutput
;
59
60
QSize
jupocInnerSpacing
;
//min spacing between items in a JUPOC
61
62
static
inline
GraphicsSettings
*
DiUiGraphicsSettings
() {
63
if
(G_LIKELY(s_settings))
64
return
s_settings;
65
66
s_settings =
new
GraphicsSettings
();
67
return
s_settings;
68
}
69
70
static
inline
GraphicsSettings
*
settings
() {
71
return
DiUiGraphicsSettings
();
72
}
73
74
private
:
75
void
load(
const
char
* settingsFile);
76
void
postLoad();
77
GraphicsSettings
();
78
~
GraphicsSettings
();
79
80
static
GraphicsSettings
* s_settings;
81
QString m_settingsFile;
82
};
83
84
#endif // GraphicsSettings
85
luna-sysmgr
Src
lunaui
launcher
gfx
gfxsettings.h
Generated on Fri Jun 21 2013 00:53:53 for LunaSysMgr by
1.8.3.1