show options dialog
[tomamp] / mainwindow.h
index ede5f62..a18122f 100644 (file)
@@ -85,6 +85,7 @@ private slots:
     void finished();
     void tableClicked(int row, int column);
     void play();
+    void stop();
     void next();
     void previous();
     void cellClicked(int row, int column);
@@ -92,8 +93,19 @@ private slots:
     void loadPlaylist ();
     void playlistChanged (int from);
     void itemUpdated (int index);
-    void setItem (int ind);
+    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();
@@ -126,6 +138,10 @@ private:
     QAction *exitAction;
     QAction *aboutAction;
     QAction *aboutQtAction;
+    QAction *removeSelected;
+    QAction *removeAllButSelected;
+    QAction *optionAction;
+    QMenu   *contextMenu;
     QToolBar *bar;
     QLCDNumber *timeLcd;
     QTableWidget *musicTable;
@@ -133,6 +149,8 @@ private:
     bool        shuffle;
     QSettings settings;
     QList<int>  shuffleList;
+    int lastPlayed;
+    bool isPlaying;
 };
 
 #endif