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* lab_sayonara()
const=0;
58 virtual QLabel* lab_title()
const=0;
59 virtual QLabel* lab_version()
const=0;
60 virtual QLabel* lab_album()
const=0;
61 virtual QLabel* lab_artist()
const=0;
62 virtual QLabel* lab_writtenby()
const=0;
63 virtual QLabel* lab_bitrate()
const=0;
64 virtual QLabel* lab_filesize()
const=0;
65 virtual QLabel* lab_copyright()
const=0;
66 virtual QLabel* lab_current_time()
const=0;
67 virtual QLabel* lab_max_time()
const=0;
69 virtual QWidget* widget_details()
const=0;
73 virtual QPushButton* btn_mute()
const=0;
74 virtual QPushButton* btn_play()
const=0;
75 virtual QPushButton* btn_rec()
const=0;
76 virtual QPushButton* btn_bwd()
const=0;
77 virtual QPushButton* btn_fwd()
const=0;
78 virtual QPushButton* btn_stop()
const=0;
81 virtual QSize button_size()
const final;
82 virtual bool is_extern_resize_allowed()
const=0;
91 void set_cover_location(
const MetaData& md);
92 void set_standard_cover();
95 void check_record_button_visible();
97 void setup_volume_button(
int percent);
98 void increase_volume();
99 void decrease_volume();
101 void refresh_current_position(
int val);
102 void set_total_time_label(MilliSeconds total_time);
104 void setup_shortcuts();
105 void setup_connections();
109 void change_volume_by_tick(
int val);
114 void rec_changed(
bool b);
116 void buffering(
int progress);
118 void cur_pos_changed(MilliSeconds pos_ms);
119 void progress_moved(
int val);
120 void progress_hovered(
int val);
121 void volume_changed(
int val);
123 void mute_changed(
bool muted);
125 void track_changed(
const MetaData& md);
126 void id3_tags_changed();
128 void refresh_labels(
const MetaData& md);
129 void refresh_current_track();
132 void cover_changed(
const QByteArray& data,
const QString& mimedata);
133 void cover_click_rejected();
135 void sr_active_changed();
142 void resizeEvent(QResizeEvent* e)
override;
143 void showEvent(QShowEvent* e)
override;
144 void contextMenuEvent(QContextMenuEvent* e)
override;
145 void skin_changed()
override;
148 #endif // GUI_CONTROLSBASE_H Definition: GUI_ControlsBase.h:45
MD::Interpretation metadata_interpretation() const override
get the interpretation for the metadata. Maybe a list of metadata should be intrepeted as albums whil...
An interface used to abstract the usage of the info dialog. An implementing class has to return the i...
Definition: InfoDialogContainer.h:61
Definition: AbstractLibrary.h:36
PlayState
The PlayState enum.
Definition: PlayState.h:28
MetaDataList info_dialog_data() 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:39
IconName
The IconName enum.
Definition: Icons.h:57
This class is used for the actual editing of a RatingLabel While the RatingLabel class is used in pai...
Definition: RatingLabel.h:96