#include "tagresolver.h"
#include "dbusadaptor.h"
#include "toolswidget.h"
+#include "coverfinder.h"
+#include "clickablelabel.h"
+#include "playlistsortform.h"
namespace Ui {
class PlayerForm;
~PlayerForm();
bool isEqualizerEnabled() { return _player->equalizerEnabled(); }
bool isEqualizerAvailable() { return _player->equalizerAvailable(); }
+ QString playerCaption();
signals:
void library();
void clearPlaylist();
void refreshLibrary();
void dirView();
+ void trackChanged();
public slots:
void reload(bool);
void updateIcons();
void checkGradient();
void play(Track);
+ void next();
+ void prev();
+ void toggle();
+ void toggleRandom();
+ void toggleView();
+ void showCountdown(QString);
+ void hideCountdown();
+ void updateTranslations();
+ void updateTrackColor();
+ void toggleRepeat();
+ void toggleToolsWidget();
private slots:
void _library();
void _dirview();
- void _toggle_view();
void _process_click(QModelIndex);
void _track_changed(Track);
void _tick(int, int);
void _slider_released();
void _custom_context_menu_requested ( const QPoint & pos );
void _delete_track();
+ void _c_delete_track();
void _enqueue_track();
void _add_to_favorites();
+ void _c_add_to_favorites();
void _add_to_playlists();
+ void _c_add_to_playlists();
void _edit_tags();
+ void _c_edit_tags();
void _state_changed(PlayerState);
- void _toggle_repeat();
- void _toggle_random();
void _track_decoded(Track);
- void _tools_widget_toggle();
+ void _display_cover(QImage);
+ void _toggle_extra_buttons();
+ void _start_playlist();
+ void _sort_playlist();
+ void _playlist_sorted();
private:
Ui::PlayerForm *ui;
Library *_lib;
Playlist _current_playlist;
+ ClickableLabel *_cover;
QTime *_time;
QStandardItemModel *_model;
+ CoverFinder *_coverfinder;
Player *_player;
QSlider *_seek_slider;
QMenu *_context_menu;
QString _icons_theme;
QString _top_gradient;
QString _bottom_gradient;
+ bool _show_extra_buttons;
+
+ QAction *__clear_playlist;
+ QAction *__delete_action;
+ QAction *__add_to_favorites;
+ QAction *__enqueue_action;
+ QAction *__add_to_playlists;
+ QAction *__edit_tags;
TrackRenderer *_track_renderer;
TagResolver *_tag_resolver;
int _search_current_id;
DBusAdaptop *_dbusadaptor;
+
+ PlaylistSortForm *_pls_sort_form;
};
#endif // PLAYERFORM_H