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> 70 void sig_player_closed();
75 GUI_Player(QTranslator* translator, QWidget *parent=
nullptr);
86 QString get_shortcut_text(
const QString &shortcut_identifier)
const override;
91 void set_cur_pos_ms(quint64 pos_ms);
101 void tray_icon_activated(QSystemTrayIcon::ActivationReason reason);
105 void hide_all_plugins();
110 QWidget* _cur_library=
nullptr;
122 QTranslator* _translator=
nullptr;
123 QStringList _translators;
126 QMessageBox* _about_box=
nullptr;
135 void setup_tray_actions ();
136 void setup_volume_button(
int percent);
137 void setup_connections();
139 void set_album_label();
140 void set_artist_label();
141 void set_title_label();
142 void set_info_labels();
146 bool check_library_path();
148 void closeEvent(QCloseEvent* e)
override;
149 void keyPressEvent(QKeyEvent* e)
override;
150 void resizeEvent(QResizeEvent* e)
override;
151 void moveEvent(QMoveEvent* e)
override;
153 void language_changed()
override;
154 void skin_changed()
override;
156 void set_total_time_label(qint64 length_ms);
157 void set_cur_pos_label(
int val);
158 void set_cover_location();
161 void init_action(QAction* action, T setting_key){
162 bool b = _settings->get(setting_key);
163 action->setChecked(b);
168 GlobalMessage::Answer error_received(
const QString &error,
const QString &sender_name=QString())
override;
169 GlobalMessage::Answer warning_received(
const QString &error,
const QString &sender_name=QString())
override;
170 GlobalMessage::Answer info_received(
const QString &error,
const QString &sender_name=QString())
override;
171 GlobalMessage::Answer question_received(
const QString &info,
const QString &sender_name=QString(), GlobalMessage::QuestionType type=GlobalMessage::QuestionType::YesNo)
override;
182 void rec_clicked(
bool);
183 void buffering(
int progress);
184 void set_progress_tooltip(
int val);
191 void track_changed(
const MetaData& md);
195 void jump_backward();
196 void jump_forward_ms();
197 void jump_backward_ms();
199 void mute_button_clicked();
200 void volume_slider_moved(
int val);
201 void volume_changed(
int val);
202 void mute_changed(
bool mute);
203 void change_volume_by_tick(
int val);
204 void increase_volume();
205 void decrease_volume();
208 void open_files_clicked();
209 void open_dir_clicked();
213 void show_library(
bool);
214 void show_notification_toggled(
bool);
215 void show_fullscreen_toggled(
bool);
216 void _sl_fullscreen_toggled();
217 void skin_toggled(
bool);
219 void set_library_path_clicked();
221 void min2tray_toggled(
bool);
222 void only_one_instance_toggled(
bool);
223 void live_search_toggled(
bool);
224 void notify_new_version_toggled(
bool);
226 void main_splitter_moved(
int pos,
int idx);
228 void library_idx_changed(
int idx);
229 void check_library_menu_action();
235 void set_standard_cover();
236 void cover_changed(
const QImage& cover);
238 void awa_version_finished(
bool success);
239 void awa_translators_finished(
bool success);
241 void _sl_sr_active_changed();
247 #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:60
Definition: ui_GUI_Player.h:701
PlayState
Current Playing state.
Definition: PlayManager.h:89
Definition: LocalLibrary.h:31
Definition: GUI_Playlist.h:42
The IconLoader class.
Definition: IconLoader.h:39
Global handler for current playback state (Singleton)
Definition: PlayManager.h:77
Library Plugin Manager.
Definition: LibraryPluginHandler.h:38
The CoverLocation class.
Definition: CoverLocation.h:38
The GlobalMessageReceiverInterface class implement this class in order to have the possibility to sho...
Definition: GlobalMessageReceiverInterface.h:35
Interface for PlayerPlugin classes. get_name() and language_changed() must be overwritten.
Definition: PlayerPlugin.h:49
Asynchgronous web access class.
Definition: AsyncWebAccess.h:37
Definition: PlayerPluginHandler.h:34
The SayonaraMainWindow class.
Definition: SayonaraWidget.h:66