New context menu handler
[someplayer] / src / playerform.h
index 7d5e3db..05555ca 100644 (file)
 #include <QSlider>
 #include <QMenu>
 #include <QTime>
+#include <QPushButton>
 #include "trackrenderer.h"
 #include "tagresolver.h"
+#include "dbusadaptor.h"
+#include "toolswidget.h"
 
 namespace Ui {
     class PlayerForm;
@@ -54,12 +57,13 @@ public:
 
 signals:
        void library();
-       void showSearchPanel();
-       void hideSearchPanel();
+       void fullscreen(bool);
+       void clearPlaylist();
+       void refreshLibrary();
 
 public slots:
        void reload(bool);
-       void search(QString &);
+       void search(QString);
        void nextItem();
        void prevItem();
        void cancelSearch();
@@ -69,18 +73,21 @@ public slots:
        void equalizerValue(int band, double *value) { _player->equalizerValue(band, value); }
        void enableEqualizer() { _player->enableEqualizer(); }
        void disableEqualizer() { _player->disableEqualizer(); }
-       void updateIcons();
        void portraitMode();
        void landscapeMode();
+       void updateIcons();
+       void checkGradient();
+       void play(Track);
 
 private slots:
        void _library();
        void _toggle_view();
        void _process_click(QModelIndex);
+       void _process_dbl_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 _enqueue_track();
        void _add_to_favorites();
@@ -92,6 +99,7 @@ private slots:
        void _toggle_volume();
        void _track_decoded(Track);
        void _volume_changed();
+       void _tools_widget_toggle();
 
 private:
     Ui::PlayerForm *ui;
@@ -103,13 +111,19 @@ private:
        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;
 
        TrackRenderer *_track_renderer;
        TagResolver *_tag_resolver;
        void _display_track(Track);
        int _search_current_id;
 
-       QString _icons_theme;
+       DBusAdaptop *_dbusadaptor;
 };
 
 #endif // PLAYERFORM_H