23 #ifndef GUI_CONTROLS_H 24 #define GUI_CONTROLS_H 28 #include "Components/PlayManager/PlayState.h" 30 #include "Utils/Pimpl.h" 31 #include "Utils/MetaData/RadioMode.h" 33 #include "GUI/Utils/Shortcuts/ShortcutWidget.h" 34 #include "GUI/Utils/Widgets/Widget.h" 35 #include "GUI/InfoDialog/InfoDialogContainer.h" 36 #include "GUI/Utils/Icons.h" 53 QIcon icon(Gui::Icons::IconName name);
59 void check_record_button_visible();
61 void set_cover_location(
const MetaData &md);
62 void set_standard_cover();
65 void setup_volume_button(
int percent);
66 void increase_volume();
67 void decrease_volume();
69 void set_cur_pos_label(
int val);
70 void set_total_time_label(int64_t total_time);
71 void set_info_labels(
const MetaData &md);
72 void refresh_info_labels();
74 void setup_shortcuts();
75 void setup_connections();
79 void resizeEvent(QResizeEvent* e)
override;
80 void showEvent(QShowEvent* e)
override;
81 void contextMenuEvent(QContextMenuEvent* e)
override;
87 QString get_shortcut_text(
const QString &shortcut_identifier)
const override;
88 void language_changed()
override;
89 void skin_changed()
override;
91 void file_info_changed();
92 void sr_active_changed();
95 void change_volume_by_tick(
int val);
106 void rec_clicked(
bool b);
107 void rec_changed(
bool b);
109 void buffering(
int progress);
111 void cur_pos_changed(uint64_t pos_ms);
112 void progress_moved(
int val);
113 void progress_hovered(
int val);
115 void volume_slider_moved(
int val);
116 void volume_changed(
int val);
118 void mute_button_clicked();
119 void mute_changed(
bool muted);
121 void track_changed(
const MetaData& md);
122 void id3_tags_changed(
const MetaDataList &v_md_old,
const MetaDataList &v_md_new);
123 void md_changed(
const MetaData &md);
124 void dur_changed(
const MetaData &md);
125 void br_changed(
const MetaData &md);
128 void force_cover(
const QImage &img);
133 MD::Interpretation metadata_interpretation()
const override;
134 MetaDataList info_dialog_data()
const override;
137 #endif // GUI_CONTROLS_H An interface used to abstract the usage of the info dialog. An implementing class has to return the i...
Definition: InfoDialogContainer.h:36
Definition: ComboBoxDelegate.h:26
PlayState
The PlayState enum.
Definition: PlayState.h:28
Definition: GUI_Controls.h:43