21 #ifndef GUI_SIMPLEPLAYER_H 22 #define GUI_SIMPLEPLAYER_H 24 #include "GUI/Player/ui_GUI_Player.h" 26 #include "Components/PlayManager/PlayState.h" 27 #include "Helper/MetaData/MetaData.h" 29 #include "Helper/Message/GlobalMessageReceiverInterface.h" 30 #include "GUI/Helper/SayonaraWidget/SayonaraWidget.h" 31 #include "GUI/Helper/Shortcuts/ShortcutWidget.h" 33 #include <QSystemTrayIcon> 58 void sig_player_closed();
61 explicit GUI_Player(QTranslator* translator, QWidget *parent=
nullptr);
70 QString get_shortcut_text(
const QString &shortcut_identifier)
const override;
83 QTranslator* _translator=
nullptr;
84 QStringList _translators;
87 QMessageBox* _about_box=
nullptr;
96 void setup_tray_actions ();
97 void setup_volume_button(
int percent);
98 void setup_connections();
100 void set_album_label();
101 void set_artist_label();
102 void set_title_label();
103 void set_info_labels();
107 void closeEvent(QCloseEvent* e)
override;
108 void keyPressEvent(QKeyEvent* e)
override;
109 void resizeEvent(QResizeEvent* e)
override;
110 void moveEvent(QMoveEvent* e)
override;
112 void language_changed()
override;
113 void skin_changed()
override;
115 void set_total_time_label(qint64 length_ms);
116 void set_cur_pos_label(
int val);
117 void set_cover_location();
118 void set_standard_cover();
121 GlobalMessage::Answer error_received(
const QString &error,
const QString &sender_name=QString())
override;
122 GlobalMessage::Answer warning_received(
const QString &error,
const QString &sender_name=QString())
override;
123 GlobalMessage::Answer info_received(
const QString &error,
const QString &sender_name=QString())
override;
124 GlobalMessage::Answer question_received(
const QString &info,
const QString &sender_name=QString(), GlobalMessage::QuestionType type=GlobalMessage::QuestionType::YesNo)
override;
132 void rec_clicked(
bool);
133 void buffering(
int progress);
134 void set_progress_tooltip(
int val);
141 void track_changed(
const MetaData& md);
145 void mute_button_clicked();
146 void volume_slider_moved(
int val);
147 void volume_changed(
int val);
148 void mute_changed(
bool mute);
149 void rec_changed(
bool on);
150 void change_volume_by_tick(
int val);
151 void increase_volume();
152 void decrease_volume();
155 void open_files_clicked();
156 void open_dir_clicked();
160 void show_library(
bool);
161 void show_fullscreen_toggled(
bool);
162 void skin_toggled(
bool);
165 void main_splitter_moved(
int pos,
int idx);
167 void library_idx_changed(
int idx);
168 void check_library_menu_action();
173 void cover_changed(
const QImage& cover);
175 void awa_version_finished();
176 void awa_translators_finished();
180 void cur_pos_changed(quint64 pos_ms);
181 void file_info_changed();
183 void md_changed(
const MetaData& md);
184 void dur_changed(
const MetaData& md);
185 void br_changed(
const MetaData& md);
189 void tray_icon_activated(QSystemTrayIcon::ActivationReason reason);
193 void hide_all_plugins();
195 void _sl_sr_active_changed();
198 #endif // GUI_SIMPLEPLAYER_H Abstract Interface you should use when creating a preference dialog.
Definition: PreferenceDialogInterface.h:38
Definition: GUI_TrayIcon.h:38
Definition: GUI_Player.h:49
Definition: ui_GUI_Player.h:647
Definition: GUI_Logger.h:55
Global handler for current playback state (Singleton)
Definition: PlayManager.h:37
Library Plugin Manager.
Definition: LibraryPluginHandler.h:35
The GlobalMessageReceiverInterface class implement this class in order to have the possibility to sho...
Definition: GlobalMessageReceiverInterface.h:33
Interface for PlayerPlugin classes. get_name() and language_changed() must be overwritten.
Definition: PlayerPlugin.h:38
Definition: PlayerPluginHandler.h:32
The SayonaraMainWindow class.
Definition: SayonaraWidget.h:60
PlayState
The PlayState enum.
Definition: PlayState.h:30