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
14
class
QEventLoop;
15
class
MythUIButtonList
;
16
class
MythUIButtonListItem
;
17
class
MythUIButton
;
18
class
MythUIText
;
19
class
MythScreenStack
;
20
21
class
MUI_PUBLIC
LanguageSelection
:
public
MythScreenType
22
{
23
Q_OBJECT
24
25
public
:
26
explicit
LanguageSelection
(
MythScreenStack
*parent,
bool
exitOnFinish =
false
);
27
~LanguageSelection
(
void
)
override
;
28
32
static
bool
prompt(
bool
force
=
false
);
33
34
bool
Create
(
void
)
override
;
// MythScreenType
35
void
Load
(
void
)
override
;
// MythScreenType
36
37
private
slots:
38
//void LanguageClicked(MythUIButtonListItem *item);
39
//void CountryClicked(MythUIButtonListItem *item);
40
void
Close
(
void
)
override
;
// MythScreenType
41
void
Save(
void
);
42
43
private
:
44
void
LanguageChanged
(
void
);
45
46
MythUIButtonList
*m_languageList {
nullptr
};
47
MythUIButtonList
*m_countryList {
nullptr
};
48
MythUIButton
*m_saveButton {
nullptr
};
49
MythUIButton
*m_cancelButton {
nullptr
};
50
51
bool
m_exitOnFinish
;
52
bool
m_loaded {
false
};
53
static
bool
m_languageChanged
;
54
QString
m_language
;
55
QString
m_country
;
56
QEventLoop *m_loop {
nullptr
};
57
};
58
59
#endif
LanguageSelection
Definition:
langsettings.h:22
LanguageSelection::m_languageChanged
static bool m_languageChanged
Definition:
langsettings.h:53
LanguageSelection::m_language
QString m_language
Definition:
langsettings.h:54
LanguageSelection::m_exitOnFinish
bool m_exitOnFinish
Definition:
langsettings.h:51
LanguageSelection::m_country
QString m_country
Definition:
langsettings.h:55
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
MythUIButtonListItem
Definition:
mythuibuttonlist.h:43
MythUIButtonList
List widget, displays list items in a variety of themeable arrangements and can trigger signals when ...
Definition:
mythuibuttonlist.h:193
MythUIButton
A single button widget.
Definition:
mythuibutton.h:22
MythUIText
All purpose text widget, displays a text string.
Definition:
mythuitext.h:29
force
bool force
Definition:
mythcommflag.cpp:60
mythscreentype.h
mythuiexp.h
MUI_PUBLIC
#define MUI_PUBLIC
Definition:
mythuiexp.h:9
Generated on Wed Oct 29 2025 03:16:19 for MythTV by
1.9.4