]> git.sesse.net Git - vlc/blob - modules/gui/wxwidgets/dialogs/bookmarks.hpp
p( vlc.getInterfaces().getInterface( "wxwidgets" ).isBroken() ) = 1/2
[vlc] / modules / gui / wxwidgets / dialogs / bookmarks.hpp
1 /*****************************************************************************
2  * bookmarks.hpp: Headers for the bookmarks window
3  *****************************************************************************
4  * Copyright (C) 1999-2005 the VideoLAN team
5  * $Id: wxwidgets.h 12670 2005-09-25 11:16:31Z zorglub $
6  *
7  * Authors: Gildas Bazin <gbazin@videolan.org>
8  *
9  * This program is free software; you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License as published by
11  * the Free Software Foundation; either version 2 of the License, or
12  * (at your option) any later version.
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this program; if not, write to the Free Software
21  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
22  *****************************************************************************/
23
24 #ifndef _WXVLC_BOOKMARKS_H_
25 #define _WXVLC_BOOKMARKS_H_
26
27 #include "wxwidgets.hpp"
28
29 namespace wxvlc
30 {
31     class BookmarksDialog: public wxFrame
32     {
33     public:
34         /* Constructor */
35         BookmarksDialog( intf_thread_t *p_intf, wxWindow *p_parent );
36         virtual ~BookmarksDialog();
37
38         bool Show( bool );
39
40     private:
41         void Update();
42
43         /* Event handlers (these functions should _not_ be virtual) */
44         void OnClose( wxCloseEvent& event );
45         void OnAdd( wxCommandEvent& event );
46         void OnDel( wxCommandEvent& event );
47         void OnClear( wxCommandEvent& event );
48         void OnActivateItem( wxListEvent& event );
49         void OnUpdate( wxCommandEvent &event );
50         void OnEdit( wxCommandEvent& event );
51         void OnExtract( wxCommandEvent& event );
52
53         DECLARE_EVENT_TABLE();
54
55         intf_thread_t *p_intf;
56         wxWindow *p_parent;
57
58         wxListView *list_ctrl;
59     };
60
61     class BookmarkEditDialog : public wxDialog
62     {
63     public:
64         /* Constructor */
65         BookmarkEditDialog( intf_thread_t *p_intf, wxWindow *p_parent,
66                             seekpoint_t *p_seekpoint );
67         virtual ~BookmarkEditDialog();
68         seekpoint_t *p_seekpoint;
69     private:
70         wxTextCtrl *name_text, *time_text, *bytes_text;
71
72         void OnOK( wxCommandEvent& event);
73         void OnCancel( wxCommandEvent& event);
74
75         DECLARE_EVENT_TABLE();
76
77         intf_thread_t *p_intf;
78     };
79 };
80
81 #endif