| 1 | /* |
|---|
| 2 | * Hydrogen |
|---|
| 3 | * Copyright(c) 2002-2008 by Alex >Comix< Cominu [comix@users.sourceforge.net] |
|---|
| 4 | * |
|---|
| 5 | * http://www.hydrogen-music.org |
|---|
| 6 | * |
|---|
| 7 | * This program is free software; you can redistribute it and/or modify |
|---|
| 8 | * it under the terms of the GNU General Public License as published by |
|---|
| 9 | * the Free Software Foundation; either version 2 of the License, or |
|---|
| 10 | * (at your option) any later version. |
|---|
| 11 | * |
|---|
| 12 | * This program is distributed in the hope that it will be useful, |
|---|
| 13 | * but WITHOUT ANY WARRANTY, without even the implied warranty of |
|---|
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 15 | * GNU General Public License for more details. |
|---|
| 16 | * |
|---|
| 17 | * You should have received a copy of the GNU General Public License |
|---|
| 18 | * along with this program; if not, write to the Free Software |
|---|
| 19 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|---|
| 20 | * |
|---|
| 21 | */ |
|---|
| 22 | |
|---|
| 23 | #ifndef PLAYLIST_DIALOG_H |
|---|
| 24 | #define PLAYLIST_DIALOG_H |
|---|
| 25 | |
|---|
| 26 | #include "config.h" |
|---|
| 27 | |
|---|
| 28 | #include <QDialog> |
|---|
| 29 | #include "ui_PlaylistDialog_UI.h" |
|---|
| 30 | #include <hydrogen/Object.h> |
|---|
| 31 | #include <hydrogen/Preferences.h> |
|---|
| 32 | #include <hydrogen/hydrogen.h> |
|---|
| 33 | #include <hydrogen/playlist.h> |
|---|
| 34 | |
|---|
| 35 | |
|---|
| 36 | //#include <vector> |
|---|
| 37 | class Button; |
|---|
| 38 | |
|---|
| 39 | /// |
|---|
| 40 | /// This dialog is used to use the H2PlayList |
|---|
| 41 | /// |
|---|
| 42 | class PlaylistDialog : public QDialog, public Ui_PlaylistDialog_UI, public Object |
|---|
| 43 | |
|---|
| 44 | { |
|---|
| 45 | Q_OBJECT |
|---|
| 46 | public: |
|---|
| 47 | |
|---|
| 48 | PlaylistDialog( QWidget* pParent ); |
|---|
| 49 | ~PlaylistDialog(); |
|---|
| 50 | |
|---|
| 51 | |
|---|
| 52 | |
|---|
| 53 | private slots: |
|---|
| 54 | void on_addSongBTN_clicked(); |
|---|
| 55 | void on_removeFromListBTN_clicked(); |
|---|
| 56 | void on_removeScriptBTN_clicked(); |
|---|
| 57 | void on_clearPlBTN_clicked(); |
|---|
| 58 | void on_loadListBTN_clicked(); |
|---|
| 59 | void on_saveListBTN_clicked(); |
|---|
| 60 | void on_loadScriptBTN_clicked(); |
|---|
| 61 | void on_nodePlayBTN_clicked(); |
|---|
| 62 | void on_nodeStopBTN_clicked(); |
|---|
| 63 | void on_editScriptBTN_clicked(); |
|---|
| 64 | void on_newScriptBTN_clicked(); |
|---|
| 65 | void on_m_pPlaylistTree_itemClicked ( QTreeWidgetItem * item, int column ); |
|---|
| 66 | void on_upBTN_clicked(); |
|---|
| 67 | void on_downBTN_clicked(); |
|---|
| 68 | void on_m_pPlaylistTree_itemDoubleClicked (); |
|---|
| 69 | void updateActiveSongNumber(); |
|---|
| 70 | |
|---|
| 71 | |
|---|
| 72 | private: |
|---|
| 73 | |
|---|
| 74 | void updatePlayListNode( QString file ); |
|---|
| 75 | void updatePlayListVector(); |
|---|
| 76 | void setFirstItemCurrent(); |
|---|
| 77 | Button *zoom_in_btn; |
|---|
| 78 | }; |
|---|
| 79 | |
|---|
| 80 | |
|---|
| 81 | #endif |
|---|