MythTV
master
mythtv
libs
libmythui
langsettings.h
Go to the documentation of this file.
1
#ifndef LANGSETTINGS_H_
2
#define LANGSETTINGS_H_
3
4
// QT headers
5
#include <QObject>
6
#include <QTranslator>
7
8
// MythDB headers
9
#include "
mythuiexp.h
"
10
11
// MythUI headers
12
#include "
libmythui/mythscreentype.h
"
13
#include "
libmythui/mythuibuttonlist.h
"
14
15
class
QEventLoop;
16
class
MythUIButton
;
17
class
MythUIText
;
18
class
MythScreenStack
;
19
20
class
MUI_PUBLIC
LanguageSelection
:
public
MythScreenType
21
{
22
Q_OBJECT
23
24
public
:
25
explicit
LanguageSelection
(
MythScreenStack
*parent,
bool
exitOnFinish =
false
);
26
~LanguageSelection
(
void
)
override
;
27
31
static
bool
prompt(
bool
force
=
false
);
32
33
bool
Create
(
void
)
override
;
// MythScreenType
34
35
public
slots:
36
void
Close
(
void
)
override
;
// MythScreenType
37
38
protected
:
39
void
Load
(
void
)
override
;
// MythScreenType
40
41
private
slots:
42
//void LanguageClicked(MythUIButtonListItem *item);
43
//void CountryClicked(MythUIButtonListItem *item);
44
void
Save(
void
);
45
46
private
:
47
void
LanguageChanged
(
void
);
48
49
MythUIButtonList
*m_languageList {
nullptr
};
50
MythUIButtonList
*m_countryList {
nullptr
};
51
MythUIButton
*m_saveButton {
nullptr
};
52
MythUIButton
*m_cancelButton {
nullptr
};
53
54
bool
m_exitOnFinish
;
55
bool
m_loaded {
false
};
56
static
bool
m_languageChanged
;
57
QString
m_language
;
58
QString
m_country
;
59
QEventLoop *m_loop {
nullptr
};
60
};
61
62
#endif
LanguageSelection
Definition:
langsettings.h:21
LanguageSelection::m_languageChanged
static bool m_languageChanged
Definition:
langsettings.h:56
LanguageSelection::m_language
QString m_language
Definition:
langsettings.h:57
LanguageSelection::m_exitOnFinish
bool m_exitOnFinish
Definition:
langsettings.h:54
LanguageSelection::m_country
QString m_country
Definition:
langsettings.h:58
LanguageSelection::LanguageChanged
void LanguageChanged(void)
MythScreenStack
Definition:
mythscreenstack.h:17
MythScreenType
Screen in which all other widgets are contained and rendered.
Definition:
mythscreentype.h:46
MythScreenType::Create
virtual bool Create(void)
Definition:
mythscreentype.cpp:269
MythScreenType::Load
virtual void Load(void)
Load data which will ultimately be displayed on-screen or used to determine what appears on-screen (S...
Definition:
mythscreentype.cpp:284
MythScreenType::Close
virtual void Close()
Definition:
mythscreentype.cpp:389
MythUIButtonList
List widget, displays list items in a variety of themeable arrangements and can trigger signals when ...
Definition:
mythuibuttonlist.h:195
MythUIButton
A single button widget.
Definition:
mythuibutton.h:22
MythUIText
All purpose text widget, displays a text string.
Definition:
mythuitext.h:29
mythscreentype.h
mythuibuttonlist.h
mythuiexp.h
MUI_PUBLIC
#define MUI_PUBLIC
Definition:
mythuiexp.h:9
anonymous_namespace{mythcommflag.cpp}::force
bool force
Definition:
mythcommflag.cpp:62
Generated on Mon Jul 20 2026 03:17:15 for MythTV by
1.9.4