Version: 8.3.0
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
YACS
Introduction
Features
Packages
Building
TODOs
Base classes
Engine
SALOME Runtime
XML file loader
GUI design
Python wrapping
PMMLlib C++ examples
Configuring and Installing PMML from sources
PMMLlib
PMMLlib Python examples
Modules
Namespaces
Classes
Files
File List
idl
src
bases
engine
genericgui
hmi
pmml
pyqt
runtime
salomegui
YACSExport.hxx
Yacsgui.cxx
Yacsgui.hxx
Yacsgui_DataModel.cxx
Yacsgui_DataModel.hxx
Yacsgui_Resource.cxx
Yacsgui_Resource.hxx
salomewrap
yacsloader
yacsorb
File Members
Yacsgui_Resource.hxx
Go to the documentation of this file.
1
// Copyright (C) 2006-2016 CEA/DEN, EDF R&D
2
//
3
// This library is free software; you can redistribute it and/or
4
// modify it under the terms of the GNU Lesser General Public
5
// License as published by the Free Software Foundation; either
6
// version 2.1 of the License, or (at your option) any later version.
7
//
8
// This library is distributed in the hope that it will be useful,
9
// but WITHOUT ANY WARRANTY; without even the implied warranty of
10
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11
// Lesser General Public License for more details.
12
//
13
// You should have received a copy of the GNU Lesser General Public
14
// License along with this library; if not, write to the Free Software
15
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16
//
17
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18
//
19
20
#ifndef _SALOMEGUI_RESOURCE_HXX_
21
#define _SALOMEGUI_RESOURCE_HXX_
22
23
#include <QColor>
24
#include <QFont>
25
#include <QString>
26
27
class
Yacsgui
;
28
class
SUIT_ResourceMgr;
29
30
class
Yacsgui_Resource
31
{
32
public
:
33
Yacsgui_Resource
(SUIT_ResourceMgr* r);
34
virtual
void
createPreferences
(
Yacsgui
* swm);
35
virtual
void
preferencesChanged
(
const
QString& sect,
const
QString& name );
36
virtual
void
preferencesChanged
();
37
38
protected
:
39
int
integerValue
(
const
QString& name,
const
int
def = 0 )
const
;
40
double
doubleValue
(
const
QString& name,
const
double
def = 0 )
const
;
41
bool
booleanValue
(
const
QString& name,
const
bool
def =
false
)
const
;
42
QFont
fontValue
(
const
QString& name,
const
QFont& def = QFont() )
const
;
43
QColor
colorValue
(
const
QString& name,
const
QColor& def = QColor() )
const
;
44
QColor
colorValue
(
const
QString& name,
const
Qt::GlobalColor
c
)
const
;
45
QColor
colorValue
(
const
QString& name,
const
int
h
,
const
int
s,
const
int
v)
const
;
46
QString
stringValue
(
const
QString& name,
const
QString& def = QString() )
const
;
47
48
void
setValue
(
const
QString& name,
const
int
val );
49
void
setValue
(
const
QString& name,
const
double
val );
50
void
setValue
(
const
QString& name,
const
bool
val );
51
void
setValue
(
const
QString& name,
const
QFont& val );
52
void
setValue
(
const
QString& name,
const
QColor& val );
53
void
setValue
(
const
QString& name,
const
QString& val );
54
55
protected
:
56
SUIT_ResourceMgr*
_resource
;
57
58
};
59
60
#endif
61
src
salomegui
Yacsgui_Resource.hxx
Copyright © 2006-2017 CEA/DEN, EDF R&D