]> git.sesse.net Git - vlc/blob - modules/gui/win32/playlist.h
* all: Unified behaviours using "action list" objects
[vlc] / modules / gui / win32 / playlist.h
1 /*****************************************************************************\r
2  * playlist.h: Interface for the playlist dialog\r
3  *****************************************************************************\r
4  * Copyright (C) 2002 VideoLAN\r
5  *\r
6  * Authors: Olivier Teuliere <ipkiss@via.ecp.fr>\r
7  *\r
8  * This program is free software; you can redistribute it and/or modify\r
9  * it under the terms of the GNU General Public License as published by\r
10  * the Free Software Foundation; either version 2 of the License, or\r
11  * (at your option) any later version.\r
12  * \r
13  * This program is distributed in the hope that it will be useful,\r
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of\r
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
16  * GNU General Public License for more details.\r
17  *\r
18  * You should have received a copy of the GNU General Public License\r
19  * along with this program; if not, write to the Free Software\r
20  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.\r
21  *****************************************************************************/\r
22 \r
23 #ifndef playlistH\r
24 #define playlistH\r
25 //---------------------------------------------------------------------------\r
26 #include <Classes.hpp>\r
27 #include <Controls.hpp>\r
28 #include <StdCtrls.hpp>\r
29 #include <Forms.hpp>\r
30 #include <Buttons.hpp>\r
31 #include <Menus.hpp>\r
32 #include <Grids.hpp>\r
33 #include <ComCtrls.hpp>\r
34 #include <ActnList.hpp>\r
35 \r
36 //---------------------------------------------------------------------------\r
37 class TPlaylistDlg : public TForm\r
38 {\r
39 __published:    // IDE-managed Components\r
40     TBitBtn *BitBtnOk;\r
41     TMainMenu *MainMenuPlaylist;\r
42     TMenuItem *MenuAdd;\r
43     TMenuItem *MenuAddFile;\r
44     TMenuItem *MenuAddDisc;\r
45     TMenuItem *MenuAddNet;\r
46     TMenuItem *MenuAddUrl;\r
47     TMenuItem *MenuDelete;\r
48     TMenuItem *MenuDeleteAll;\r
49     TMenuItem *MenuDeleteSelected;\r
50     TMenuItem *MenuSelection;\r
51     TMenuItem *MenuSelectionCrop;\r
52     TMenuItem *MenuSelectionInvert;\r
53     TListView *ListViewPlaylist;\r
54     TPopupMenu *PopupMenuPlaylist;\r
55     TMenuItem *PopupPlay;\r
56     TMenuItem *N1;\r
57     TMenuItem *PopupDeleteAll;\r
58     TMenuItem *PopupDeleteSelected;\r
59     TMenuItem *N2;\r
60     TMenuItem *PopupInvertSelection;\r
61     TMenuItem *PopupCropSelection;\r
62     TActionList *ActionList1;\r
63     TAction *InvertSelectionAction;\r
64     TAction *CropSelectionAction;\r
65     TAction *DeleteSelectionAction;\r
66     TAction *DeleteAllAction;\r
67     TAction *PlayStreamAction;\r
68     void __fastcall FormShow( TObject *Sender );\r
69     void __fastcall FormHide( TObject *Sender );\r
70     void __fastcall BitBtnOkClick( TObject *Sender );\r
71     void __fastcall ListViewPlaylistKeyDown( TObject *Sender, WORD &Key,\r
72             TShiftState Shift );\r
73     void __fastcall ListViewPlaylistCustomDrawItem( TCustomListView *Sender,\r
74             TListItem *Item, TCustomDrawState State, bool &DefaultDraw );\r
75     void __fastcall MenuAddFileClick( TObject *Sender );\r
76     void __fastcall MenuAddDiscClick( TObject *Sender );\r
77     void __fastcall MenuAddNetClick( TObject *Sender );\r
78     void __fastcall MenuAddUrlClick( TObject *Sender );\r
79     void __fastcall InvertSelectionActionExecute( TObject *Sender );\r
80     void __fastcall CropSelectionActionExecute( TObject *Sender );\r
81     void __fastcall DeleteSelectionActionExecute( TObject *Sender );\r
82     void __fastcall DeleteAllActionExecute( TObject *Sender );\r
83     void __fastcall PlayStreamActionExecute( TObject *Sender );\r
84 private:        // User declarations\r
85     char * __fastcall rindex( char *s, char c );\r
86 public:         // User declarations\r
87     __fastcall TPlaylistDlg( TComponent* Owner );\r
88     void __fastcall UpdateGrid( playlist_t * p_playlist );\r
89     void __fastcall Manage( intf_thread_t * p_intf );\r
90     void __fastcall DeleteItem( int i_pos );\r
91     void __fastcall Previous();\r
92     void __fastcall Next();\r
93 };\r
94 //---------------------------------------------------------------------------\r
95 #endif\r