/*****************************************************************************
* macosx_factory.cpp
*****************************************************************************
- * Copyright (C) 2003 VideoLAN
+ * Copyright (C) 2003 the VideoLAN team
* $Id$
*
* Authors: Cyril Deguet <asmax@via.ecp.fr>
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#ifdef MACOSX_SKINS
#include "macosx_factory.hpp"
#include "macosx_graphics.hpp"
#include "macosx_loop.hpp"
+#include "macosx_popup.hpp"
#include "macosx_timer.hpp"
#include "macosx_window.hpp"
#include "macosx_tooltip.hpp"
// TODO
}
-OSTimer *MacOSXFactory::createOSTimer( const Callback &rCallback )
+void MacOSXFactory::restore()
{
- return new MacOSXTimer( getIntf(), rCallback );
+ // TODO
+}
+
+void MacOSXFactory::addInTray()
+{
+ // TODO
+}
+
+void MacOSXFactory::removeFromTray()
+{
+ // TODO
+}
+
+void MacOSXFactory::addInTaskBar()
+{
+ // TODO
+}
+
+void MacOSXFactory::removeFromTaskBar()
+{
+ // TODO
+}
+
+OSTimer *MacOSXFactory::createOSTimer( CmdGeneric &rCmd )
+{
+ return new MacOSXTimer( getIntf(), rCmd );
}
bool playOnDrop, OSWindow *pParent )
{
return new MacOSXWindow( getIntf(), rWindow, dragDrop,
- playOnDrop, (MacOSXWindow*)pParent );
+ playOnDrop, (MacOSXWindow*)pParent );
}
}
+OSPopup *MacOSXFactory::createOSPopup()
+{
+ return new MacOSXPopup( getIntf() );
+}
+
+
int MacOSXFactory::getScreenWidth() const
{
// TODO
}
-Rect MacOSXFactory::getWorkArea() const
+SkinsRect MacOSXFactory::getWorkArea() const
{
// XXX
- return Rect( 0, 0, getScreenWidth(), getScreenHeight() );
+ return SkinsRect( 0, 0, getScreenWidth(), getScreenHeight() );
}