show options dialog
[tomamp] / mainwindow.h
index 932249f..a18122f 100644 (file)
@@ -85,15 +85,33 @@ private slots:
     void finished();
     void tableClicked(int row, int column);
     void play();
+    void stop();
     void next();
     void previous();
     void cellClicked(int row, int column);
+    void savePlaylist ();
+    void loadPlaylist ();
+    void playlistChanged (int from);
+    void itemUpdated (int index);
+    void setItem (int ind, bool doplay);
+    void removeSelectedItem ();
+    void removeAllButSelectedItem ();
+    void highlightRow (int i);
+    void unhighlightRow (int i);
+    void buttonUp ();
+    void buttonDown ();
+    void buttonDel ();
+    void itemRemoved (int i);
+    void showOptions ();
 
+protected:
+    void contextMenuEvent (QContextMenuEvent*e);
 private:
     void setupActions();
     void setupMenus();
     void setupUi();
     void setupShuffleList();
+    void setRowFromItem (int row, const PlaylistItem& item);
 
     Phonon::SeekSlider *seekSlider;
     Phonon::MediaObject *mediaObject;
@@ -120,6 +138,10 @@ private:
     QAction *exitAction;
     QAction *aboutAction;
     QAction *aboutQtAction;
+    QAction *removeSelected;
+    QAction *removeAllButSelected;
+    QAction *optionAction;
+    QMenu   *contextMenu;
     QToolBar *bar;
     QLCDNumber *timeLcd;
     QTableWidget *musicTable;
@@ -127,6 +149,8 @@ private:
     bool        shuffle;
     QSettings settings;
     QList<int>  shuffleList;
+    int lastPlayed;
+    bool isPlaying;
 };
 
 #endif