1 /*****************************************************************************
\r
2 * playlist.h: Interface for the playlist dialog
\r
3 *****************************************************************************
\r
4 * Copyright (C) 2002 VideoLAN
\r
6 * Authors: Olivier Teuliere <ipkiss@via.ecp.fr>
\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
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
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
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
36 struct intf_thread_s;
\r
38 //---------------------------------------------------------------------------
\r
39 class TPlaylistDlg : public TForm
\r
41 __published: // IDE-managed Components
\r
43 TMainMenu *MainMenuPlaylist;
\r
45 TMenuItem *MenuAddFile;
\r
46 TMenuItem *MenuAddDisc;
\r
47 TMenuItem *MenuAddNet;
\r
48 TMenuItem *MenuAddUrl;
\r
49 TMenuItem *MenuDelete;
\r
50 TMenuItem *MenuDeleteAll;
\r
51 TMenuItem *MenuDeleteSelected;
\r
52 TMenuItem *MenuSelection;
\r
53 TMenuItem *MenuSelectionCrop;
\r
54 TMenuItem *MenuSelectionInvert;
\r
55 TListView *ListViewPlaylist;
\r
56 TPopupMenu *PopupMenuPlaylist;
\r
57 TMenuItem *PopupPlay;
\r
59 TMenuItem *PopupDeleteAll;
\r
60 TMenuItem *PopupDeleteSelected;
\r
62 TMenuItem *PopupInvertSelection;
\r
63 TMenuItem *PopupCropSelection;
\r
64 void __fastcall FormShow( TObject *Sender );
\r
65 void __fastcall FormHide( TObject *Sender );
\r
66 void __fastcall BitBtnOkClick( TObject *Sender );
\r
67 void __fastcall ListViewPlaylistDblClick( TObject *Sender );
\r
68 void __fastcall ListViewPlaylistKeyDown( TObject *Sender, WORD &Key,
\r
69 TShiftState Shift );
\r
70 void __fastcall ListViewPlaylistCustomDrawItem( TCustomListView *Sender,
\r
71 TListItem *Item, TCustomDrawState State, bool &DefaultDraw );
\r
72 void __fastcall MenuAddFileClick( TObject *Sender );
\r
73 void __fastcall MenuAddDiscClick( TObject *Sender );
\r
74 void __fastcall MenuAddNetClick( TObject *Sender );
\r
75 void __fastcall MenuAddUrlClick( TObject *Sender );
\r
76 void __fastcall MenuDeleteSelectedClick( TObject *Sender );
\r
77 void __fastcall MenuDeleteAllClick( TObject *Sender );
\r
78 void __fastcall MenuSelectionInvertClick( TObject *Sender );
\r
79 void __fastcall MenuSelectionCropClick( TObject *Sender );
\r
80 void __fastcall PopupPlayClick( TObject *Sender );
\r
81 void __fastcall PopupInvertSelectionClick( TObject *Sender );
\r
82 void __fastcall PopupCropSelectionClick( TObject *Sender );
\r
83 void __fastcall PopupDeleteSelectedClick( TObject *Sender );
\r
84 void __fastcall PopupDeleteAllClick( TObject *Sender );
\r
85 private: // User declarations
\r
86 char * __fastcall rindex( char *s, char c );
\r
87 public: // User declarations
\r
88 __fastcall TPlaylistDlg( TComponent* Owner );
\r
89 void __fastcall UpdateGrid( struct playlist_s * p_playlist );
\r
90 void __fastcall Manage( struct intf_thread_s * p_intf );
\r
91 void __fastcall DeleteItem( int i_pos );
\r
92 void __fastcall Previous();
\r
93 void __fastcall Next();
\r
95 //---------------------------------------------------------------------------
\r