|
enum | SWControlType {
SWCLOCKCONTROL = 0
, SWSENDERCONTROL
, SWSONGSCONTROL
, SWUSBCONTROL
,
SWPLAYERCONTROL
, SWSETUPCONTROL
, SWALARMCONTROL
, SWSHUTDOWNCONTROL
,
SWCONTROLSSIZE
} |
|
typedef QVector< SWAbstractControl * > | SWControlVec |
|
Definition at line 43 of file swradiyomainwidget.h.
◆ SWControlVec
◆ SWControlType
enum SWRaDIYoMainWidget::SWControlType |
◆ SWRaDIYoMainWidget()
SWRaDIYoMainWidget::SWRaDIYoMainWidget |
( |
QWidget * |
parent = nullptr | ) |
|
SWRaDIYoMainWidget –doku begins here —.
- Parameters
-
contains copy-writen material from qt example code:
- See also
- shaped clock example
-
embedded/flipdigits example
Basic setup
Not-aus
Setup Controls: 'RaDIYo' Buttons Reihenfolge beachten, die iost wichtig für die button-asuwahl per dial
Alle Controls, schön vorsortiert.
Setup Controls: Volume
startup
Definition at line 73 of file swradiyomainwidget.cpp.
◆ ~SWRaDIYoMainWidget()
SWRaDIYoMainWidget::~SWRaDIYoMainWidget |
( |
| ) |
|
|
virtual |
◆ currentControl()
◆ loadSettings()
void SWRaDIYoMainWidget::loadSettings |
( |
| ) |
|
|
protected |
loadSettings: die Einstellungen laden (fonts etc.)
Dss ist die Bildschirmgröße des Raspi 7 inch displays
Definition at line 487 of file swradiyomainwidget.cpp.
◆ onEntryActivated
◆ onIdleTimeOut
void SWRaDIYoMainWidget::onIdleTimeOut |
( |
| ) |
|
|
slot |
◆ onIDTriggered
void SWRaDIYoMainWidget::onIDTriggered |
( |
int |
newID | ) |
|
|
slot |
◆ onSenderButtonClicked
void SWRaDIYoMainWidget::onSenderButtonClicked |
( |
| ) |
|
|
slot |
swapControls
- Parameters
-
et. al: Die Buttons schalten ein / aus bzw. die Auswahl (Volume/Playlistentry/Uhrzeit weiter Die Dials wählen wenn möglich (Volume/...) Falls es nix zu wählen gibt (Clock), dann wird beim drehen weitergeschaltet als wäre der Button gedrückt worden.
Definition at line 353 of file swradiyomainwidget.cpp.
◆ onSenderValueChanged
void SWRaDIYoMainWidget::onSenderValueChanged |
( |
int |
value | ) |
|
|
slot |
◆ onShutDown()
void SWRaDIYoMainWidget::onShutDown |
( |
| ) |
|
|
protected |
◆ onVolumeButtonClicked
void SWRaDIYoMainWidget::onVolumeButtonClicked |
( |
| ) |
|
|
slot |
onVolumeButtonClicked() wechselt zwischen Play- und Standby-Mode
KISS: Wir halten uns an die Logik des Autoradios: Der rechte Dial-Button und der Screen-Button 'play' schaltet immer nur On/Off, drehen steuert nur die Lautstärke. Das aktuelle Control wird aus, das Spectrum-Display wird eingeblendet.
Definition at line 394 of file swradiyomainwidget.cpp.
◆ onVolumeValueChanged
void SWRaDIYoMainWidget::onVolumeValueChanged |
( |
int |
value | ) |
|
|
slot |
◆ saveSettings()
void SWRaDIYoMainWidget::saveSettings |
( |
| ) |
|
|
protected |
◆ setAlarm()
void SWRaDIYoMainWidget::setAlarm |
( |
| ) |
|
|
protected |
◆ settings()
QSettings & SWRaDIYoMainWidget::settings |
( |
| ) |
|
◆ setupDials()
void SWRaDIYoMainWidget::setupDials |
( |
| ) |
|
|
protected |
◆ swapControls()
void SWRaDIYoMainWidget::swapControls |
( |
int |
newID | ) |
|
|
protected |
◆ togglePlayMode()
void SWRaDIYoMainWidget::togglePlayMode |
( |
| ) |
|
◆ _buttonPauseCss
QString SWRaDIYoMainWidget::_buttonPauseCss |
|
protected |
◆ _buttonPlayCss
QString SWRaDIYoMainWidget::_buttonPlayCss |
|
protected |
◆ _controls
SWControlVec SWRaDIYoMainWidget::_controls |
|
protected |
◆ _currentCtrlID
int SWRaDIYoMainWidget::_currentCtrlID |
|
protected |
◆ _dialDialog
◆ _idleTimer
QTimer SWRaDIYoMainWidget::_idleTimer |
|
protected |
◆ _lastControlID
int SWRaDIYoMainWidget::_lastControlID |
|
protected |
◆ _nowPlaying
◆ _playerActive
bool SWRaDIYoMainWidget::_playerActive = false |
|
protected |
◆ _playerControl
◆ _radioButtons
◆ _senderControl
◆ _senderDialValue
int SWRaDIYoMainWidget::_senderDialValue = -1 |
|
protected |
◆ _settings
QSettings SWRaDIYoMainWidget::_settings |
|
protected |
◆ _songsControl
◆ _titleCss
QString SWRaDIYoMainWidget::_titleCss |
|
protected |
◆ _volumeDialValue
int SWRaDIYoMainWidget::_volumeDialValue = -1 |
|
protected |
◆ RADIYO_LARGE_X
const int SWRaDIYoMainWidget::RADIYO_LARGE_X = 800 |
|
staticprotected |
◆ RADIYO_LARGE_Y
const int SWRaDIYoMainWidget::RADIYO_LARGE_Y = 480 |
|
staticprotected |
◆ RADIYO_SMALL_X
const int SWRaDIYoMainWidget::RADIYO_SMALL_X = 480 |
|
staticprotected |
◆ RADIYO_SMALL_Y
const int SWRaDIYoMainWidget::RADIYO_SMALL_Y = 320 |
|
staticprotected |
◆ SWPAUSEBUTTONNSTYLE
constexpr const char* SWRaDIYoMainWidget::SWPAUSEBUTTONNSTYLE = ":/data/radiyo.pausebutton.css" |
|
staticconstexpr |
◆ SWPLAYBUTTONNSTYLE
constexpr const char* SWRaDIYoMainWidget::SWPLAYBUTTONNSTYLE = ":/data/radiyo.playbutton.css" |
|
staticconstexpr |
◆ SWTITLELABELSTYLE
constexpr const char* SWRaDIYoMainWidget::SWTITLELABELSTYLE = ":/data/radiyo.titlelabel.css" |
|
staticconstexpr |
The documentation for this class was generated from the following files: