BALL
1.4.79
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
BALL
VIEW
DIALOGS
mainControlPreferences.h
Go to the documentation of this file.
1
// -*- Mode: C++; tab-width: 2; -*-
2
// vi: set ts=2:
3
//
4
5
#ifndef BALL_VIEW_DIALOGS_MAINCONTROLPREFERENCES_H
6
#define BALL_VIEW_DIALOGS_MAINCONTROLPREFERENCES_H
7
8
#ifndef BALL_COMMON_GLOBAL_H
9
# include <
BALL/COMMON/global.h
>
10
#endif
11
12
#ifndef BALL_FORMAT_INIFILE_H
13
# include <
BALL/FORMAT/INIFile.h
>
14
#endif
15
16
#ifndef BALL_VIEW_KERNEL_PREFERENCESENTRY
17
# include <
BALL/VIEW/KERNEL/preferencesEntry.h
>
18
#endif
19
20
#include <BALL/VIEW/UIC/ui_mainControlPreferences.h>
21
22
#include <QtGui/QWidget>
23
#include <QtGui/QFont>
24
25
namespace
BALL
26
{
27
namespace
VIEW
28
{
29
37
class
BALL_VIEW_EXPORT
MainControlPreferences
38
:
public
QWidget
,
39
public
Ui_MainControlPreferencesData,
40
public
PreferencesEntry
41
{
42
Q_OBJECT
43
44
public
:
45
47
MainControlPreferences
(
QWidget
*parent = NULL,
const
char
*name =
"MainControlPreferences"
,
48
Qt::WFlags fl=0);
49
51
virtual
~
MainControlPreferences
();
52
58
QStyle* setStyle();
59
61
void
enableLoggingToFile(
bool
state);
62
64
bool
loggingToFileEnabled()
const
;
65
67
QFont getFont();
68
69
bool
getLanguageChanged
() {
70
return
last_index_ != languageComboBox_->currentIndex();
71
}
72
73
void
resetLanguageChanged
() {
74
last_index_ = languageComboBox_->currentIndex();
75
}
76
78
void
writePreferenceEntries(
INIFile
& inifile);
79
81
void
readPreferenceEntries(
const
INIFile
& inifile);
82
83
public
slots:
84
86
void
selectFont();
87
89
void
setFont(QFont font);
90
91
protected
:
92
93
QFont
font_
;
94
int
last_index_
;
95
};
96
97
} }
// namespace
98
99
#endif // BALL_VIEW_DIALOGS_MAINCONTROLPREFERENCES_H
BALL::VIEW::MainControlPreferences::resetLanguageChanged
void resetLanguageChanged()
Definition:
mainControlPreferences.h:73
BALL::VIEW::MainControlPreferences
Definition:
mainControlPreferences.h:37
QWidget
BALL::VIEW::MainControlPreferences::getLanguageChanged
bool getLanguageChanged()
Definition:
mainControlPreferences.h:69
INIFile.h
BALL_VIEW_EXPORT
#define BALL_VIEW_EXPORT
Definition:
COMMON/global.h:52
BALL::VIEW::MainControlPreferences::last_index_
int last_index_
Definition:
mainControlPreferences.h:94
preferencesEntry.h
BALL::VIEW::PreferencesEntry
Definition:
preferencesEntry.h:68
global.h
BALL::VIEW::MainControlPreferences::font_
QFont font_
Definition:
mainControlPreferences.h:93
BALL::INIFile
Definition:
INIFile.h:28
Generated by
1.8.7