]> git.sesse.net Git - vlc/blob - modules/gui/skins2/macosx/macosx_factory.cpp
Qt: don't check if a variable is a command. This will show radio buttons for zzom...
[vlc] / modules / gui / skins2 / macosx / macosx_factory.cpp
1 /*****************************************************************************
2  * macosx_factory.cpp
3  *****************************************************************************
4  * Copyright (C) 2003 the VideoLAN team
5  * $Id$
6  *
7  * Authors: Cyril Deguet     <asmax@via.ecp.fr>
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., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
22  *****************************************************************************/
23
24 #ifdef MACOSX_SKINS
25
26 #include "macosx_factory.hpp"
27 #include "macosx_graphics.hpp"
28 #include "macosx_loop.hpp"
29 #include "macosx_popup.hpp"
30 #include "macosx_timer.hpp"
31 #include "macosx_window.hpp"
32 #include "macosx_tooltip.hpp"
33
34
35 MacOSXFactory::MacOSXFactory( intf_thread_t *pIntf ): OSFactory( pIntf ),
36     m_dirSep( "/" )
37 {
38     // TODO
39 }
40
41
42 MacOSXFactory::~MacOSXFactory()
43 {
44     // TODO
45 }
46
47
48 bool MacOSXFactory::init()
49 {
50     // TODO
51     return true;
52 }
53
54
55 OSGraphics *MacOSXFactory::createOSGraphics( int width, int height )
56 {
57     return new MacOSXGraphics( getIntf(), width, height );
58 }
59
60
61 OSLoop *MacOSXFactory::getOSLoop()
62 {
63     return MacOSXLoop::instance( getIntf() );
64 }
65
66
67 void MacOSXFactory::destroyOSLoop()
68 {
69     MacOSXLoop::destroy( getIntf() );
70 }
71
72 void MacOSXFactory::minimize()
73 {
74     // TODO
75 }
76
77 void MacOSXFactory::restore()
78 {
79     // TODO
80 }
81
82 void MacOSXFactory::addInTray()
83 {
84     // TODO
85 }
86
87 void MacOSXFactory::removeFromTray()
88 {
89     // TODO
90 }
91
92 void MacOSXFactory::addInTaskBar()
93 {
94     // TODO
95 }
96
97 void MacOSXFactory::removeFromTaskBar()
98 {
99     // TODO
100 }
101
102 OSTimer *MacOSXFactory::createOSTimer( CmdGeneric &rCmd )
103 {
104     return new MacOSXTimer( getIntf(), rCmd );
105 }
106
107
108 OSWindow *MacOSXFactory::createOSWindow( GenericWindow &rWindow, bool dragDrop,
109                                       bool playOnDrop, OSWindow *pParent )
110 {
111     return new MacOSXWindow( getIntf(), rWindow, dragDrop,
112                              playOnDrop, (MacOSXWindow*)pParent );
113 }
114
115
116 OSTooltip *MacOSXFactory::createOSTooltip()
117 {
118     return new MacOSXTooltip( getIntf() );
119 }
120
121
122 OSPopup *MacOSXFactory::createOSPopup()
123 {
124     return new MacOSXPopup( getIntf() );
125 }
126
127
128 int MacOSXFactory::getScreenWidth() const
129 {
130     // TODO
131     return 0;
132 }
133
134
135 int MacOSXFactory::getScreenHeight() const
136 {
137     // TODO
138     return 0;
139 }
140
141
142 SkinsRect MacOSXFactory::getWorkArea() const
143 {
144     // XXX
145     return SkinsRect( 0, 0, getScreenWidth(), getScreenHeight() );
146 }
147
148
149 void MacOSXFactory::getMousePos( int &rXPos, int &rYPos ) const
150 {
151     // TODO
152 }
153
154
155 void MacOSXFactory::rmDir( const string &rPath )
156 {
157     // TODO
158 }
159
160
161 #endif