]> git.sesse.net Git - vlc/blob - modules/gui/skins/win32/win32_dialog.h
* Fixing a refresh bug when opening an open file dialog box
[vlc] / modules / gui / skins / win32 / win32_dialog.h
1 /*****************************************************************************
2  * win32_dialog.h: Win32 implementation of some dialog boxes
3  *****************************************************************************
4  * Copyright (C) 2003 VideoLAN
5  * $Id: win32_dialog.h,v 1.2 2003/03/20 09:29:07 karibu Exp $
6  *
7  * Authors: Olivier Teulière <ipkiss@via.ecp.fr>
8  *          Emmanuel Puig    <karibu@via.ecp.fr>
9  *
10  * This program is free software; you can redistribute it and/or modify
11  * it under the terms of the GNU General Public License as published by
12  * the Free Software Foundation; either version 2 of the License, or
13  * (at your option) any later version.
14  *
15  * This program is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU General Public License for more details.
19  *
20  * You should have received a copy of the GNU General Public License
21  * along with this program; if not, write to the Free Software
22  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111,
23  * USA.
24  *****************************************************************************/
25
26
27 #ifndef VLC_SKIN_WIN32_DIALOG
28 #define VLC_SKIN_WIN32_DIALOG
29
30 //--- GENERAL ---------------------------------------------------------------
31 #include <string>
32 using namespace std;
33
34
35
36 //---------------------------------------------------------------------------
37 class Win32OpenFileDialog : OpenFileDialog
38 {
39     private:
40
41     protected:
42
43     public:
44         // Constructors
45         Win32OpenFileDialog( intf_thread_t *_p_intf, string title,
46                              bool multiselect );
47
48         // Destructors
49         virtual ~Win32OpenFileDialog();
50
51         virtual void AddFilter( string name, string type );
52         virtual bool Open();
53 };
54 //---------------------------------------------------------------------------
55 class Win32LogWindow : LogWindow
56 {
57     private:
58         HWND hWindow;
59         HWND hRichCtrl;
60         string RtfHeader;
61
62     public:
63         // Constructors
64         Win32LogWindow( intf_thread_t *_p_intf );
65
66         // Destructors
67         virtual ~Win32LogWindow();
68
69         virtual void Clear();
70         virtual void AddLine( string line );
71         virtual void ChangeColor( int color, bool bold = false );
72         virtual void Show();
73         virtual void Hide();
74
75         // Specific methods
76         HWND GetRichCtrl() { return hRichCtrl; };
77         HWND GetWindow()   { return hWindow; };
78
79 };
80 //---------------------------------------------------------------------------
81
82 #endif
83