22 #ifndef GUI_SIMPLEPLAYER_H
23 #define GUI_SIMPLEPLAYER_H
25 #include "GUI/Player/ui_GUI_Player.h"
27 #include "Components/PlayManager/PlayManager.h"
29 #include "GUI/Player/GUI_TrayIcon.h"
30 #include "GUI/Helper/Message/GlobalMessageReceiverInterface.h"
32 #include "GUI/Helper/SayonaraWidget/SayonaraWidget.h"
33 #include "GUI/Helper/Shortcuts/ShortcutWidget.h"
36 #include <QMessageBox>
37 #include <QMainWindow>
39 #include <QCloseEvent>
40 #include <QTranslator>
41 #include <QKeySequence>
42 #include <QFileSystemWatcher>
74 GUI_Player(QTranslator* translator, QWidget *parent=
nullptr);
86 void read_filelist(
const QString& filename);
89 QString get_shortcut_text(
const QString &shortcut_identifier)
const override;
94 void set_cur_pos_ms(quint64 pos_ms);
105 void tray_icon_activated(QSystemTrayIcon::ActivationReason reason);
109 void hide_all_plugins();
114 QWidget* _cur_library=
nullptr;
131 QTranslator* _translator=
nullptr;
132 QStringList _translators;
135 QMessageBox* _about_box=
nullptr;
144 void setup_tray_actions ();
145 void setup_volume_button(
int percent);
146 void setup_connections();
148 void set_album_label();
149 void set_artist_label();
150 void set_title_label();
151 void set_info_labels();
155 bool check_library_path();
157 void closeEvent(QCloseEvent* e)
override;
158 void keyPressEvent(QKeyEvent* e)
override;
159 void resizeEvent(QResizeEvent* e)
override;
160 void moveEvent(QMoveEvent* e)
override;
162 void language_changed()
override;
163 void skin_changed()
override;
165 void set_total_time_label(qint64 length_ms);
166 void set_cur_pos_label(
int val);
169 void init_action(QAction* action, T setting_key){
170 bool b = _settings->get(setting_key);
171 action->setChecked(b);
176 GlobalMessage::Answer error_received(
const QString &error,
const QString &sender_name=QString())
override;
177 GlobalMessage::Answer warning_received(
const QString &error,
const QString &sender_name=QString())
override;
178 GlobalMessage::Answer info_received(
const QString &error,
const QString &sender_name=QString())
override;
179 GlobalMessage::Answer question_received(
const QString &info,
const QString &sender_name=QString(), GlobalMessage::QuestionType type=GlobalMessage::QuestionType::YesNo)
override;
190 void rec_clicked(
bool);
191 void buffering(
int progress);
198 void track_changed(
const MetaData& md);
200 void cover_clicked();
203 void jump_backward();
204 void jump_forward_ms();
205 void jump_backward_ms();
207 void mute_button_clicked();
208 void volume_slider_moved(
int val);
209 void volume_changed(
int val);
210 void mute_changed(
bool mute);
211 void change_volume_by_tick(
int val);
212 void increase_volume();
213 void decrease_volume();
216 void open_files_clicked();
217 void open_dir_clicked();
221 void show_library(
bool);
222 void show_notification_toggled(
bool);
223 void show_fullscreen_toggled(
bool);
224 void _sl_fullscreen_toggled();
225 void skin_toggled(
bool);
227 void set_library_path_clicked();
229 void min2tray_toggled(
bool);
230 void only_one_instance_toggled(
bool);
231 void live_search_toggled(
bool);
232 void notify_new_version_toggled(
bool);
234 void main_splitter_moved(
int pos,
int idx);
236 void library_idx_changed(
int idx);
237 void check_library_menu_action();
243 void set_standard_cover();
247 void awa_version_finished(
bool success);
248 void awa_translators_finished(
bool success);
250 void _sl_sr_active_changed();
256 #endif // GUI_SIMPLEPLAYER_H
Abstract Interface you should use when creating a preference dialog.
Definition: PreferenceDialogInterface.h:40
Definition: GUI_TrayIcon.h:38
Definition: GUI_Player.h:63
Definition: ui_GUI_Player.h:704
PlayState
Current Playing state.
Definition: PlayManager.h:79
Definition: LocalLibrary.h:31
Definition: GUI_Playlist.h:42
Definition: IconLoader.h:35
Global handler for current playback state (Singleton)
Definition: PlayManager.h:67
Library Plugin Manager.
Definition: LibraryPluginHandler.h:38
The CoverLocation class.
Definition: CoverLocation.h:37
Definition: EngineHandler.h:36
Definition: GUI_AlternativeCovers.h:46
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:48
Asynchgronous web access class.
Definition: AsyncWebAccess.h:37
The CoverLookup class.
Definition: CoverLookup.h:65
Definition: PlayerPluginHandler.h:34
Definition: SayonaraWidget.h:62