X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=src%2Fplayerform.h;h=bd66e8dae6bb2b10bb23270ac44a244920846f58;hb=refs%2Ftags%2F1.4.0;hp=612904985ee27f4c3538631f73435889f7935351;hpb=0b048cf534be4899cb6a993cf67cb79662ac4af5;p=someplayer diff --git a/src/playerform.h b/src/playerform.h index 6129049..bd66e8d 100644 --- a/src/playerform.h +++ b/src/playerform.h @@ -28,8 +28,13 @@ #include #include #include +#include #include "trackrenderer.h" #include "tagresolver.h" +#include "dbusadaptor.h" +#include "toolswidget.h" +#include "coverfinder.h" +#include "clickablelabel.h" namespace Ui { class PlayerForm; @@ -48,52 +53,89 @@ class PlayerForm : public QWidget public: explicit PlayerForm(Library *lib, QWidget *parent = 0); - ~PlayerForm(); + ~PlayerForm(); + bool isEqualizerEnabled() { return _player->equalizerEnabled(); } + bool isEqualizerAvailable() { return _player->equalizerAvailable(); } + signals: void library(); - void showSearchPanel(); - void hideSearchPanel(); + void fullscreen(bool); + void clearPlaylist(); + void refreshLibrary(); + void dirView(); public slots: - void reload(); - void search(QString &); + void reload(bool); + void search(QString); void nextItem(); void prevItem(); void cancelSearch(); void addFiles(QList files); + void stop(); + void setEqualizerValue(int band, double value) { _player->setEqualizerValue(band, value); } + void equalizerValue(int band, double *value) { _player->equalizerValue(band, value); } + void enableEqualizer() { _player->enableEqualizer(); } + void disableEqualizer() { _player->disableEqualizer(); } + void portraitMode(); + void landscapeMode(); + void updateIcons(); + void checkGradient(); + void play(Track); + void showCountdown(QString); + void hideCountdown(); 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_venu_requested ( const QPoint & pos ); + 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(); 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 _search_pattern; + ToolsWidget *_tools_widget; + QPushButton *_fscreen_button; + bool landscape; + QString _icons_theme; + QString _top_gradient; + QString _bottom_gradient; + bool _show_extra_buttons; TrackRenderer *_track_renderer; TagResolver *_tag_resolver; void _display_track(Track); int _search_current_id; + + DBusAdaptop *_dbusadaptor; }; #endif // PLAYERFORM_H