 |
Sayonara Player
|
21 #ifndef GUI_CONTROLSBASE_H
22 #define GUI_CONTROLSBASE_H
24 #include "Components/PlayManager/PlayState.h"
26 #include "Gui/InfoDialog/InfoDialogContainer.h"
27 #include "Gui/Utils/Widgets/Widget.h"
28 #include "Gui/Utils/Icons.h"
30 #include "Utils/MetaData/RadioMode.h"
31 #include "Utils/Pimpl.h"
57 virtual QLabel* labSayonara()
const = 0;
58 virtual QLabel* labTitle()
const = 0;
59 virtual QLabel* labVersion()
const = 0;
60 virtual QLabel* labAlbum()
const = 0;
61 virtual QLabel* labArtist()
const = 0;
62 virtual QLabel* labWrittenBy()
const = 0;
63 virtual QLabel* labBitrate()
const = 0;
64 virtual QLabel* labFilesize()
const = 0;
65 virtual QLabel* labCopyright()
const = 0;
66 virtual QLabel* labCurrentTime()
const = 0;
67 virtual QLabel* labMaxTime()
const = 0;
69 virtual QWidget* widgetDetails()
const = 0;
73 virtual QPushButton* btnMute()
const = 0;
74 virtual QPushButton* btnPlay()
const = 0;
75 virtual QPushButton* btnRecord()
const = 0;
76 virtual QPushButton* btnPrevious()
const = 0;
77 virtual QPushButton* btnNext()
const = 0;
78 virtual QPushButton* btnStop()
const = 0;
81 virtual QSize buttonSize()
const final;
82 virtual bool isExternResizeAllowed()
const = 0;
91 void setCoverLocation(
const MetaData& md);
92 void setStandardCover();
95 void checkRecordButtonVisible();
97 void setupVolumeButton(
int percent);
98 void increaseVolume();
99 void decreaseVolume();
101 void refreshCurrentPosition(
int val);
102 void setTotalTimeLabel(MilliSeconds total_time);
104 void setupShortcuts();
105 void setupConnections();
108 void changeVolumeByDelta(
int val);
113 void recordChanged(
bool b);
115 void buffering(
int progress);
117 void currentPositionChanged(MilliSeconds pos_ms);
118 void progressMoved(
int val);
119 void progressHovered(
int val);
121 void volumeChanged(
int val);
122 void muteChanged(
bool muted);
124 void currentTrackChanged(
const MetaData& md);
125 void metadataChanged();
127 void refreshLabels(
const MetaData& md);
128 void refreshCurrentTrack();
131 void coverChanged(
const QByteArray& data,
const QString& mimedata);
132 void coverClickRejected();
134 void streamRecorderActiveChanged();
141 void resizeEvent(QResizeEvent* e)
override;
142 void showEvent(QShowEvent* e)
override;
143 void contextMenuEvent(QContextMenuEvent* e)
override;
144 void skinChanged()
override;
147 #endif // GUI_CONTROLSBASE_H
PlayState
The PlayState enum.
Definition: PlayState.h:29
MD::Interpretation metadataInterpretation() const override
get the interpretation for the metadata. Maybe a list of metadata should be intrepeted as albums whil...
This class is used for the actual editing of a RatingLabel While the RatingLabel class is used in pai...
Definition: RatingLabel.h:97
IconName
The IconName enum.
Definition: Icons.h:58
MetaDataList infoDialogData() const override
get the metadata that should be used for the info dialog So for lists, the selected tracks are used h...
A slider as it is used by the progress bar You can also set a different value by calling set_bufferin...
Definition: SearchSlider.h:41
Definition: GUI_ControlsBase.h:48
An interface used to abstract the usage of the info dialog. An implementing class has to return the i...
Definition: InfoDialogContainer.h:64