23 #ifndef GUI_CONTROLSBASE_H 24 #define GUI_CONTROLSBASE_H 26 #include "Components/PlayManager/PlayState.h" 28 #include "Gui/InfoDialog/InfoDialogContainer.h" 29 #include "Gui/Utils/Shortcuts/ShortcutWidget.h" 30 #include "Gui/Utils/Widgets/Widget.h" 31 #include "Gui/Utils/Icons.h" 33 #include "Utils/MetaData/RadioMode.h" 34 #include "Utils/Pimpl.h" 61 virtual QLabel* lab_sayonara()
const=0;
62 virtual QLabel* lab_title()
const=0;
63 virtual QLabel* lab_version()
const=0;
64 virtual QLabel* lab_album()
const=0;
65 virtual QLabel* lab_artist()
const=0;
66 virtual QLabel* lab_writtenby()
const=0;
67 virtual QLabel* lab_bitrate()
const=0;
68 virtual QLabel* lab_filesize()
const=0;
69 virtual QLabel* lab_copyright()
const=0;
70 virtual QLabel* lab_current_time()
const=0;
71 virtual QLabel* lab_max_time()
const=0;
73 virtual QWidget* widget_details()
const=0;
78 virtual QPushButton* btn_mute()
const=0;
79 virtual QPushButton* btn_play()
const=0;
80 virtual QPushButton* btn_rec()
const=0;
81 virtual QPushButton* btn_bwd()
const=0;
82 virtual QPushButton* btn_fwd()
const=0;
83 virtual QPushButton* btn_stop()
const=0;
86 virtual void toggle_buffer_mode(
bool buffering)=0;
87 virtual bool is_resizable()
const=0;
91 QIcon icon(Gui::Icons::IconName name);
97 void check_record_button_visible();
99 void set_cover_location(
const MetaData &md);
100 void set_standard_cover();
103 void setup_volume_button(
int percent);
104 void increase_volume();
105 void decrease_volume();
107 void set_cur_pos_label(
int val);
108 void set_total_time_label(MilliSeconds total_time);
109 void set_info_labels(
const MetaData &md);
110 void refresh_info_labels();
112 void setup_shortcuts();
113 void setup_connections();
117 void resizeEvent(QResizeEvent* e)
override;
118 void showEvent(QShowEvent* e)
override;
119 void contextMenuEvent(QContextMenuEvent* e)
override;
120 void skin_changed()
override;
123 void file_info_changed();
124 void sr_active_changed();
127 void change_volume_by_tick(
int val);
132 void rec_changed(
bool b);
134 void buffering(
int progress);
136 void cur_pos_changed(MilliSeconds pos_ms);
137 void progress_moved(
int val);
138 void progress_hovered(
int val);
139 void volume_changed(
int val);
141 void mute_changed(
bool muted);
143 void track_changed(
const MetaData& md);
145 void md_changed(
const MetaData &md);
146 void dur_changed(
const MetaData &md);
147 void br_changed(
const MetaData &md);
150 void force_cover(
const QImage &img);
159 #endif // GUI_CONTROLSBASE_H Definition: SearchSlider.h:30
Definition: GUI_ControlsBase.h:48
The ProgressBar class.
Definition: ProgressBar.h:36
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:35
Definition: GUI_ControlsBase.h:43
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...
The RatingLabel class.
Definition: RatingLabel.h:34