]> git.sesse.net Git - vlc/blob - modules/gui/skins/src/dialogs.h
6b0957539cf92602def5c942d9fa7bde85ede27b
[vlc] / modules / gui / skins / src / dialogs.h
1 /*****************************************************************************
2  * dialogs.h: Dialogs class
3  *****************************************************************************
4  * Copyright (C) 2003 VideoLAN
5  * $Id: dialogs.h,v 1.6 2003/06/11 10:42:34 gbazin Exp $
6  *
7  * Authors: Gildas Bazin <gbazin@netcourrier.com>
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,
22  * USA.
23  *****************************************************************************/
24
25 #ifndef VLC_SKIN_DIALOGS
26 #define VLC_SKIN_DIALOGS
27
28 //--- GENERAL ---------------------------------------------------------------
29 #include <string>
30 using namespace std;
31
32 //---------------------------------------------------------------------------
33 struct intf_thread_t;
34
35 #if !defined(MODULE_NAME_IS_basic_skins)
36
37 #ifdef WIN32                                               /* mingw32 hack */
38 #   undef Yield
39 #   undef CreateDialog
40 #endif
41 /* Let vlc take care of the i18n stuff */
42 #define WXINTL_NO_GETTEXT_MACRO
43 #include <wx/wx.h>
44
45 class OpenDialog;
46 class Messages;
47 class SoutDialog;
48 class PrefsDialog;
49 class FileInfo;
50 class wxIcon;
51
52 typedef struct dialogs_thread_t
53 {
54     VLC_COMMON_MEMBERS
55     intf_thread_t * p_intf;
56
57 } dialogs_thread_t;
58
59 #endif
60
61 //---------------------------------------------------------------------------
62 class Dialogs
63 {
64     protected:
65         intf_thread_t *p_intf;
66
67     public:
68         // Constructor
69         Dialogs( intf_thread_t *_p_intf );
70
71         // Destructor
72         virtual ~Dialogs();
73
74         void ShowOpen( bool b_play );
75         void ShowOpenSkin();
76         void ShowMessages();
77         void ShowPrefs();
78         void ShowFileInfo();
79         void ShowPopup();
80
81         vlc_bool_t b_popup_change;
82
83 #if !defined(MODULE_NAME_IS_basic_skins)
84         // Dialogs
85         OpenDialog  *OpenDlg;
86         Messages    *MessagesDlg;
87         PrefsDialog *PrefsDlg;
88         FileInfo    *FileInfoDlg;
89
90         dialogs_thread_t *p_thread;
91
92         void OnShowOpen( wxCommandEvent& event );
93         void OnShowOpenSkin( wxCommandEvent& event );
94         void OnShowMessages( wxCommandEvent& event );
95         void OnShowPrefs( wxCommandEvent& event );
96         void OnShowFileInfo( wxCommandEvent& event );
97         void OnShowPopup( wxCommandEvent& event );
98         void OnExitThread( wxCommandEvent& event );
99 #endif
100 };
101 //---------------------------------------------------------------------------
102
103 #endif