Commit 05af5dd8 authored by Cyril Deguet's avatar Cyril Deguet

* changed "Window" into "SkinWindow" to prepare X11 port

 (Window is already a Xlib type !)
  *** not tested under win32, please check ! ***
parent 50a6ec06
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* button.cpp: Button control * button.cpp: Button control
***************************************************************************** *****************************************************************************
* Copyright (C) 2003 VideoLAN * Copyright (C) 2003 VideoLAN
* $Id: button.cpp,v 1.10 2003/04/17 13:08:02 karibu Exp $ * $Id: button.cpp,v 1.11 2003/04/21 21:51:16 asmax Exp $
* *
* Authors: Olivier Teulire <ipkiss@via.ecp.fr> * Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr> * Emmanuel Puig <karibu@via.ecp.fr>
...@@ -47,7 +47,7 @@ ControlButton::ControlButton( ...@@ -47,7 +47,7 @@ ControlButton::ControlButton(
string Up, string Down, string Disabled, string Up, string Down, string Disabled,
string onclick, string onmouseover, string onmouseout, string onclick, string onmouseover, string onmouseout,
string tooltiptext, string help, string tooltiptext, string help,
Window *Parent ) : GenericControl( id, visible, help, Parent ) SkinWindow *Parent ) : GenericControl( id, visible, help, Parent )
{ {
// General // General
Left = x; Left = x;
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* button.h: Button control * button.h: Button control
***************************************************************************** *****************************************************************************
* Copyright (C) 2003 VideoLAN * Copyright (C) 2003 VideoLAN
* $Id: button.h,v 1.2 2003/03/19 02:09:56 videolan Exp $ * $Id: button.h,v 1.3 2003/04/21 21:51:16 asmax Exp $
* *
* Authors: Olivier Teulière <ipkiss@via.ecp.fr> * Authors: Olivier Teulière <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr> * Emmanuel Puig <karibu@via.ecp.fr>
...@@ -34,7 +34,7 @@ using namespace std; ...@@ -34,7 +34,7 @@ using namespace std;
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
class Action; class Action;
class Graphics; class Graphics;
class Window; class SkinWindow;
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
class ControlButton : public GenericControl class ControlButton : public GenericControl
...@@ -69,7 +69,7 @@ class ControlButton : public GenericControl ...@@ -69,7 +69,7 @@ class ControlButton : public GenericControl
string Up, string Down, string Disabled, string Up, string Down, string Disabled,
string onclick, string onmousevoer, string onmouseout, string onclick, string onmousevoer, string onmouseout,
string tooltiptext, string help, string tooltiptext, string help,
Window *Parent ); SkinWindow *Parent );
// Destructor // Destructor
virtual ~ControlButton(); virtual ~ControlButton();
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* checkbox.cpp: Checkbox control * checkbox.cpp: Checkbox control
***************************************************************************** *****************************************************************************
* Copyright (C) 2003 VideoLAN * Copyright (C) 2003 VideoLAN
* $Id: checkbox.cpp,v 1.4 2003/04/16 21:40:07 ipkiss Exp $ * $Id: checkbox.cpp,v 1.5 2003/04/21 21:51:16 asmax Exp $
* *
* Authors: Olivier Teulire <ipkiss@via.ecp.fr> * Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr> * Emmanuel Puig <karibu@via.ecp.fr>
...@@ -53,7 +53,7 @@ ControlCheckBox::ControlCheckBox( ...@@ -53,7 +53,7 @@ ControlCheckBox::ControlCheckBox(
string onclick1, string onclick2, string onmouseover1, string onclick1, string onclick2, string onmouseover1,
string onmouseout1, string onmouseover2, string onmouseout2, string onmouseout1, string onmouseover2, string onmouseout2,
string tooltiptext1, string tooltiptext2, string help, string tooltiptext1, string tooltiptext2, string help,
Window *Parent ) : GenericControl( id, visible, help, Parent ) SkinWindow *Parent ) : GenericControl( id, visible, help, Parent )
{ {
Left = x; Left = x;
Top = y; Top = y;
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* checkbox.h: Checkbox control * checkbox.h: Checkbox control
***************************************************************************** *****************************************************************************
* Copyright (C) 2003 VideoLAN * Copyright (C) 2003 VideoLAN
* $Id: checkbox.h,v 1.2 2003/03/19 17:14:50 karibu Exp $ * $Id: checkbox.h,v 1.3 2003/04/21 21:51:16 asmax Exp $
* *
* Authors: Olivier Teulière <ipkiss@via.ecp.fr> * Authors: Olivier Teulière <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr> * Emmanuel Puig <karibu@via.ecp.fr>
...@@ -34,7 +34,7 @@ using namespace std; ...@@ -34,7 +34,7 @@ using namespace std;
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
class Action; class Action;
class Graphics; class Graphics;
class Window; class SkinWindow;
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
class ControlCheckBox : public GenericControl class ControlCheckBox : public GenericControl
...@@ -85,7 +85,7 @@ class ControlCheckBox : public GenericControl ...@@ -85,7 +85,7 @@ class ControlCheckBox : public GenericControl
string onclick1, string onclick2, string onmouseover1, string onclick1, string onclick2, string onmouseover1,
string onmouseout1, string onmouseover2, string onmouseout2, string onmouseout1, string onmouseover2, string onmouseout2,
string tooltiptext1, string tooltiptext2, string help, string tooltiptext1, string tooltiptext2, string help,
Window *Parent ); SkinWindow *Parent );
// Destructor // Destructor
virtual ~ControlCheckBox(); virtual ~ControlCheckBox();
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* generic.cpp: Generic control, parent of the others * generic.cpp: Generic control, parent of the others
***************************************************************************** *****************************************************************************
* Copyright (C) 2003 VideoLAN * Copyright (C) 2003 VideoLAN
* $Id: generic.cpp,v 1.3 2003/04/20 13:14:14 asmax Exp $ * $Id: generic.cpp,v 1.4 2003/04/21 21:51:16 asmax Exp $
* *
* Authors: Olivier Teulire <ipkiss@via.ecp.fr> * Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr> * Emmanuel Puig <karibu@via.ecp.fr>
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
// Generic Control // Generic Control
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
GenericControl::GenericControl( string id, bool visible, string help, GenericControl::GenericControl( string id, bool visible, string help,
Window *Parent ) SkinWindow *Parent )
{ {
ID = id; ID = id;
Visible = visible; Visible = visible;
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* generic.h: Generic control, parent of the others * generic.h: Generic control, parent of the others
***************************************************************************** *****************************************************************************
* Copyright (C) 2003 VideoLAN * Copyright (C) 2003 VideoLAN
* $Id: generic.h,v 1.2 2003/04/20 13:14:14 asmax Exp $ * $Id: generic.h,v 1.3 2003/04/21 21:51:16 asmax Exp $
* *
* Authors: Olivier Teulière <ipkiss@via.ecp.fr> * Authors: Olivier Teulière <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr> * Emmanuel Puig <karibu@via.ecp.fr>
...@@ -33,7 +33,7 @@ using namespace std; ...@@ -33,7 +33,7 @@ using namespace std;
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
struct intf_thread_t; struct intf_thread_t;
class Window; class SkinWindow;
class Bitmap; class Bitmap;
class Graphics; class Graphics;
class Region; class Region;
...@@ -45,7 +45,7 @@ class Event; ...@@ -45,7 +45,7 @@ class Event;
class GenericControl // This is the generic control class class GenericControl // This is the generic control class
{ {
protected: protected:
Window * ParentWindow; SkinWindow * ParentWindow;
bool Visible; bool Visible;
string ID; string ID;
string Help; string Help;
...@@ -54,7 +54,7 @@ class GenericControl // This is the generic control class ...@@ -54,7 +54,7 @@ class GenericControl // This is the generic control class
private: private:
public: public:
// Constructor // Constructor
GenericControl( string id, bool visible, string help, Window *Parent ); GenericControl( string id, bool visible, string help, SkinWindow *Parent );
// Destructor // Destructor
virtual ~GenericControl(); virtual ~GenericControl();
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* image.cpp: Image control * image.cpp: Image control
***************************************************************************** *****************************************************************************
* Copyright (C) 2003 VideoLAN * Copyright (C) 2003 VideoLAN
* $Id: image.cpp,v 1.5 2003/04/16 21:40:07 ipkiss Exp $ * $Id: image.cpp,v 1.6 2003/04/21 21:51:16 asmax Exp $
* *
* Authors: Olivier Teulire <ipkiss@via.ecp.fr> * Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr> * Emmanuel Puig <karibu@via.ecp.fr>
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
// Control Image // Control Image
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
ControlImage::ControlImage( string id, bool visible, int x, int y, string img, ControlImage::ControlImage( string id, bool visible, int x, int y, string img,
string event, string help, Window *Parent ) string event, string help, SkinWindow *Parent )
: GenericControl( id, visible, help, Parent ) : GenericControl( id, visible, help, Parent )
{ {
Left = x; Left = x;
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* image.h: Image control * image.h: Image control
***************************************************************************** *****************************************************************************
* Copyright (C) 2003 VideoLAN * Copyright (C) 2003 VideoLAN
* $Id: image.h,v 1.1 2003/03/18 02:21:47 ipkiss Exp $ * $Id: image.h,v 1.2 2003/04/21 21:51:16 asmax Exp $
* *
* Authors: Olivier Teulière <ipkiss@via.ecp.fr> * Authors: Olivier Teulière <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr> * Emmanuel Puig <karibu@via.ecp.fr>
...@@ -34,7 +34,7 @@ using namespace std; ...@@ -34,7 +34,7 @@ using namespace std;
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
class Action; class Action;
class Graphics; class Graphics;
class Window; class SkinWindow;
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
class ControlImage : public GenericControl class ControlImage : public GenericControl
...@@ -53,7 +53,7 @@ class ControlImage : public GenericControl ...@@ -53,7 +53,7 @@ class ControlImage : public GenericControl
public: public:
// Constructor // Constructor
ControlImage( string id, bool visible, int x, int y, string img, ControlImage( string id, bool visible, int x, int y, string img,
string event, string help, Window *Parent); string event, string help, SkinWindow *Parent);
// Destructor // Destructor
virtual ~ControlImage(); virtual ~ControlImage();
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* playlist.cpp: Playlist control * playlist.cpp: Playlist control
***************************************************************************** *****************************************************************************
* Copyright (C) 2003 VideoLAN * Copyright (C) 2003 VideoLAN
* $Id: playlist.cpp,v 1.7 2003/04/21 14:26:59 asmax Exp $ * $Id: playlist.cpp,v 1.8 2003/04/21 21:51:16 asmax Exp $
* *
* Authors: Olivier Teulire <ipkiss@via.ecp.fr> * Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr> * Emmanuel Puig <karibu@via.ecp.fr>
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
ControlPlayList::ControlPlayList( string id, bool visible, int width, ControlPlayList::ControlPlayList( string id, bool visible, int width,
int infowidth, string font, string playfont, int selcolor, double *ptx, int infowidth, string font, string playfont, int selcolor, double *ptx,
double *pty, int nb, bool longfilename, string help, Window *Parent ) double *pty, int nb, bool longfilename, string help, SkinWindow *Parent )
: GenericControl( id, visible, help, Parent ) : GenericControl( id, visible, help, Parent )
{ {
Left = 0; Left = 0;
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* playlist.h: Playlist control * playlist.h: Playlist control
***************************************************************************** *****************************************************************************
* Copyright (C) 2003 VideoLAN * Copyright (C) 2003 VideoLAN
* $Id: playlist.h,v 1.2 2003/04/20 13:14:14 asmax Exp $ * $Id: playlist.h,v 1.3 2003/04/21 21:51:16 asmax Exp $
* *
* Authors: Olivier Teulire <ipkiss@via.ecp.fr> * Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr> * Emmanuel Puig <karibu@via.ecp.fr>
...@@ -34,7 +34,7 @@ using namespace std; ...@@ -34,7 +34,7 @@ using namespace std;
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
class Event; class Event;
class Graphics; class Graphics;
class Window; class SkinWindow;
class Font; class Font;
class Bezier; class Bezier;
class Region; class Region;
...@@ -101,7 +101,7 @@ class ControlPlayList : public GenericControl ...@@ -101,7 +101,7 @@ class ControlPlayList : public GenericControl
ControlPlayList( string id, bool visible, int width, int infowidth, ControlPlayList( string id, bool visible, int width, int infowidth,
string font, string playfont, int selcolor, string font, string playfont, int selcolor,
double *ptx, double *pty, int nb, bool longfilename, double *ptx, double *pty, int nb, bool longfilename,
string help, Window *Parent ); string help, SkinWindow *Parent );
// Destructor // Destructor
virtual ~ControlPlayList(); virtual ~ControlPlayList();
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* rectangle.cpp: Rectanglee control * rectangle.cpp: Rectanglee control
***************************************************************************** *****************************************************************************
* Copyright (C) 2003 VideoLAN * Copyright (C) 2003 VideoLAN
* $Id: rectangle.cpp,v 1.3 2003/04/16 21:40:07 ipkiss Exp $ * $Id: rectangle.cpp,v 1.4 2003/04/21 21:51:16 asmax Exp $
* *
* Authors: Olivier Teulire <ipkiss@via.ecp.fr> * Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr> * Emmanuel Puig <karibu@via.ecp.fr>
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
// Control Rectangle // Control Rectangle
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
ControlRectangle::ControlRectangle( string id, bool visible, int x, int y, ControlRectangle::ControlRectangle( string id, bool visible, int x, int y,
int w, int h, int color, string event, string help, Window *Parent ) int w, int h, int color, string event, string help, SkinWindow *Parent )
: GenericControl( id, visible, help, Parent ) : GenericControl( id, visible, help, Parent )
{ {
Left = x; Left = x;
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* rectangle.h: Rectangle control * rectangle.h: Rectangle control
***************************************************************************** *****************************************************************************
* Copyright (C) 2003 VideoLAN * Copyright (C) 2003 VideoLAN
* $Id: rectangle.h,v 1.2 2003/03/18 04:08:45 ipkiss Exp $ * $Id: rectangle.h,v 1.3 2003/04/21 21:51:16 asmax Exp $
* *
* Authors: Olivier Teulière <ipkiss@via.ecp.fr> * Authors: Olivier Teulière <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr> * Emmanuel Puig <karibu@via.ecp.fr>
...@@ -34,7 +34,7 @@ using namespace std; ...@@ -34,7 +34,7 @@ using namespace std;
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
class Action; class Action;
class Graphics; class Graphics;
class Window; class SkinWindow;
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
class ControlRectangle : public GenericControl class ControlRectangle : public GenericControl
...@@ -53,7 +53,7 @@ class ControlRectangle : public GenericControl ...@@ -53,7 +53,7 @@ class ControlRectangle : public GenericControl
public: public:
// Constructor // Constructor
ControlRectangle( string id, bool visible, int x, int y, int w, int h, ControlRectangle( string id, bool visible, int x, int y, int w, int h,
int color, string event, string help, Window *Parent); int color, string event, string help, SkinWindow *Parent);
// Destructor // Destructor
virtual ~ControlRectangle(); virtual ~ControlRectangle();
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* slider.cpp: Slider control * slider.cpp: Slider control
***************************************************************************** *****************************************************************************
* Copyright (C) 2003 VideoLAN * Copyright (C) 2003 VideoLAN
* $Id: slider.cpp,v 1.6 2003/04/20 15:00:19 karibu Exp $ * $Id: slider.cpp,v 1.7 2003/04/21 21:51:16 asmax Exp $
* *
* Authors: Olivier Teulire <ipkiss@via.ecp.fr> * Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr> * Emmanuel Puig <karibu@via.ecp.fr>
...@@ -52,7 +52,7 @@ ...@@ -52,7 +52,7 @@
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
ControlSlider::ControlSlider( string id, bool visible, string type, ControlSlider::ControlSlider( string id, bool visible, string type,
string cursorUp, string cursorDown, double *ptx, double *pty, int nb, string cursorUp, string cursorDown, double *ptx, double *pty, int nb,
string tooltiptext, string help, Window *Parent ) string tooltiptext, string help, SkinWindow *Parent )
: GenericControl( id, visible, help, Parent ) : GenericControl( id, visible, help, Parent )
{ {
Type = type; Type = type;
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* slider.h: Slider control * slider.h: Slider control
***************************************************************************** *****************************************************************************
* Copyright (C) 2003 VideoLAN * Copyright (C) 2003 VideoLAN
* $Id: slider.h,v 1.3 2003/04/20 15:00:19 karibu Exp $ * $Id: slider.h,v 1.4 2003/04/21 21:51:16 asmax Exp $
* *
* Authors: Olivier Teulière <ipkiss@via.ecp.fr> * Authors: Olivier Teulière <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr> * Emmanuel Puig <karibu@via.ecp.fr>
...@@ -34,7 +34,7 @@ using namespace std; ...@@ -34,7 +34,7 @@ using namespace std;
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
class Event; class Event;
class Graphics; class Graphics;
class Window; class SkinWindow;
class Bezier; class Bezier;
class Region; class Region;
...@@ -77,7 +77,7 @@ class ControlSlider : public GenericControl ...@@ -77,7 +77,7 @@ class ControlSlider : public GenericControl
// Constructor // Constructor
ControlSlider( string id, bool visible, string type, string cursorUp, ControlSlider( string id, bool visible, string type, string cursorUp,
string cursorDown, double *ptx, double *pty, int nb, string cursorDown, double *ptx, double *pty, int nb,
string tooltiptext, string help, Window *Parent ); string tooltiptext, string help, SkinWindow *Parent );
// Destructor // Destructor
virtual ~ControlSlider(); virtual ~ControlSlider();
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* text.cpp: Text control * text.cpp: Text control
***************************************************************************** *****************************************************************************
* Copyright (C) 2003 VideoLAN * Copyright (C) 2003 VideoLAN
* $Id: text.cpp,v 1.6 2003/04/17 19:56:31 karibu Exp $ * $Id: text.cpp,v 1.7 2003/04/21 21:51:16 asmax Exp $
* *
* Authors: Olivier Teulire <ipkiss@via.ecp.fr> * Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr> * Emmanuel Puig <karibu@via.ecp.fr>
...@@ -122,7 +122,7 @@ ...@@ -122,7 +122,7 @@
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
ControlText::ControlText( string id, bool visible, int x, int y, string text, ControlText::ControlText( string id, bool visible, int x, int y, string text,
string font, int align, int width, string display, bool scroll, string font, int align, int width, string display, bool scroll,
int scrollspace, string help, Window *Parent ) int scrollspace, string help, SkinWindow *Parent )
: GenericControl( id, visible, help, Parent ) : GenericControl( id, visible, help, Parent )
{ {
InitLeft = x; InitLeft = x;
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* text.h: Text control * text.h: Text control
***************************************************************************** *****************************************************************************
* Copyright (C) 2003 VideoLAN * Copyright (C) 2003 VideoLAN
* $Id: text.h,v 1.2 2003/04/17 13:08:02 karibu Exp $ * $Id: text.h,v 1.3 2003/04/21 21:51:16 asmax Exp $
* *
* Authors: Olivier Teulire <ipkiss@via.ecp.fr> * Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr> * Emmanuel Puig <karibu@via.ecp.fr>
...@@ -35,7 +35,7 @@ using namespace std; ...@@ -35,7 +35,7 @@ using namespace std;
class Event; class Event;
class BitmapBank; class BitmapBank;
class Graphics; class Graphics;
class Window; class SkinWindow;
class Region; class Region;
class Font; class Font;
...@@ -78,7 +78,7 @@ class ControlText : public GenericControl ...@@ -78,7 +78,7 @@ class ControlText : public GenericControl
// Constructor // Constructor
ControlText( string id, bool visible, int x, int y, string text, ControlText( string id, bool visible, int x, int y, string text,
string font, int align, int width, string display, string font, int align, int width, string display,
bool scroll, int scrollspace, string help, Window *Parent ); bool scroll, int scrollspace, string help, SkinWindow *Parent );
// initialization // initialization
virtual void Init(); virtual void Init();
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* gtk2_api.cpp: Various gtk2-specific functions * gtk2_api.cpp: Various gtk2-specific functions
***************************************************************************** *****************************************************************************
* Copyright (C) 2003 VideoLAN * Copyright (C) 2003 VideoLAN
* $Id: gtk2_api.cpp,v 1.12 2003/04/21 00:18:37 asmax Exp $ * $Id: gtk2_api.cpp,v 1.13 2003/04/21 21:51:16 asmax Exp $
* *
* Authors: Cyril Deguet <asmax@videolan.org> * Authors: Cyril Deguet <asmax@videolan.org>
* *
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
// Event API // Event API
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
void OSAPI_SendMessage( Window *win, unsigned int message, unsigned int param1, void OSAPI_SendMessage( SkinWindow *win, unsigned int message, unsigned int param1,
long param2 ) long param2 )
{ {
/* if( win == NULL ) /* if( win == NULL )
...@@ -49,7 +49,7 @@ void OSAPI_SendMessage( Window *win, unsigned int message, unsigned int param1, ...@@ -49,7 +49,7 @@ void OSAPI_SendMessage( Window *win, unsigned int message, unsigned int param1,
param2 );*/ param2 );*/
} }
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
void OSAPI_PostMessage( Window *win, unsigned int message, unsigned int param1, void OSAPI_PostMessage( SkinWindow *win, unsigned int message, unsigned int param1,
long param2 ) long param2 )
{ {
GdkEventClient *event = new GdkEventClient; GdkEventClient *event = new GdkEventClient;
...@@ -120,7 +120,7 @@ void OSAPI_GetMousePos( int &x, int &y ) ...@@ -120,7 +120,7 @@ void OSAPI_GetMousePos( int &x, int &y )
gdk_window_get_pointer( gdk_get_default_root_window(), &x, &y, NULL ); gdk_window_get_pointer( gdk_get_default_root_window(), &x, &y, NULL );
} }
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
string OSAPI_GetWindowTitle( Window *win ) string OSAPI_GetWindowTitle( SkinWindow *win )
{ {
return ( (GTK2Window *)win )->GetName(); return ( (GTK2Window *)win )->GetName();
} }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* gtk2_event.cpp: GTK2 implementation of the Event class * gtk2_event.cpp: GTK2 implementation of the Event class
***************************************************************************** *****************************************************************************
* Copyright (C) 2003 VideoLAN * Copyright (C) 2003 VideoLAN
* $Id: gtk2_event.cpp,v 1.10 2003/04/17 17:45:38 asmax Exp $ * $Id: gtk2_event.cpp,v 1.11 2003/04/21 21:51:16 asmax Exp $
* *
* Authors: Cyril Deguet <asmax@videolan.org> * Authors: Cyril Deguet <asmax@videolan.org>
* Emmanuel Puig <karibu@via.ecp.fr> * Emmanuel Puig <karibu@via.ecp.fr>
...@@ -58,7 +58,7 @@ GTK2Event::GTK2Event( intf_thread_t *p_intf, GdkWindow *gwnd, unsigned int msg, ...@@ -58,7 +58,7 @@ GTK2Event::GTK2Event( intf_thread_t *p_intf, GdkWindow *gwnd, unsigned int msg,
gWnd = gwnd; gWnd = gwnd;
} }
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
GTK2Event::GTK2Event( intf_thread_t *p_intf, Window *win, unsigned int msg, GTK2Event::GTK2Event( intf_thread_t *p_intf, SkinWindow *win, unsigned int msg,
unsigned int par1, long par2 ) : Event( p_intf, msg, par1, par2 ) unsigned int par1, long par2 ) : Event( p_intf, msg, par1, par2 )
{ {
gWnd = ( (GTK2Window *)win )->GetHandle(); gWnd = ( (GTK2Window *)win )->GetHandle();
...@@ -73,7 +73,7 @@ bool GTK2Event::SendEvent() ...@@ -73,7 +73,7 @@ bool GTK2Event::SendEvent()
if( Message != VLC_NOTHING ) if( Message != VLC_NOTHING )
{ {
// Find window matching with gwnd // Find window matching with gwnd
list<Window *>::const_iterator win; list<SkinWindow *>::const_iterator win;
for( win = p_intf->p_sys->p_theme->WindowList.begin(); for( win = p_intf->p_sys->p_theme->WindowList.begin();
win != p_intf->p_sys->p_theme->WindowList.end(); win++ ) win != p_intf->p_sys->p_theme->WindowList.end(); win++ )
{ {
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* gtk2_event.h: GTK2 implementation of the Event class * gtk2_event.h: GTK2 implementation of the Event class
***************************************************************************** *****************************************************************************
* Copyright (C) 2003 VideoLAN * Copyright (C) 2003 VideoLAN
* $Id: gtk2_event.h,v 1.1 2003/04/12 21:43:27 asmax Exp $ * $Id: gtk2_event.h,v 1.2 2003/04/21 21:51:16 asmax Exp $
* *
* Authors: Cyril Deguet <asmax@videolan.org> * Authors: Cyril Deguet <asmax@videolan.org>
* *
...@@ -35,7 +35,7 @@ using namespace std; ...@@ -35,7 +35,7 @@ using namespace std;
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
struct intf_thread_t; struct intf_thread_t;
class Window; class SkinWindow;
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
class GTK2Event : Event class GTK2Event : Event
...@@ -48,7 +48,7 @@ class GTK2Event : Event ...@@ -48,7 +48,7 @@ class GTK2Event : Event
GTK2Event( intf_thread_t *p_intf, string Desc, string shortcut ); GTK2Event( intf_thread_t *p_intf, string Desc, string shortcut );
GTK2Event( intf_thread_t *p_intf, GdkWindow *gwnd, unsigned int msg, GTK2Event( intf_thread_t *p_intf, GdkWindow *gwnd, unsigned int msg,
unsigned int par1, long par2 ); unsigned int par1, long par2 );
GTK2Event( intf_thread_t *p_intf, Window *win, unsigned int msg, GTK2Event( intf_thread_t *p_intf, SkinWindow *win, unsigned int msg,
unsigned int par1, long par2 ); unsigned int par1, long par2 );
// Destructor // Destructor
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* gtk2_graphics.cpp: GTK2 implementation of the Graphics and Region classes * gtk2_graphics.cpp: GTK2 implementation of the Graphics and Region classes
***************************************************************************** *****************************************************************************
* Copyright (C) 2003 VideoLAN * Copyright (C) 2003 VideoLAN
* $Id: gtk2_graphics.cpp,v 1.14 2003/04/19 12:39:14 karibu Exp $ * $Id: gtk2_graphics.cpp,v 1.15 2003/04/21 21:51:16 asmax Exp $
* *
* Authors: Cyril Deguet <asmax@videolan.org> * Authors: Cyril Deguet <asmax@videolan.org>
* Emmanuel Puig <karibu@via.ecp.fr> * Emmanuel Puig <karibu@via.ecp.fr>
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
// GTK2 GRAPHICS // GTK2 GRAPHICS
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
GTK2Graphics::GTK2Graphics( int w, int h, Window *from ) : Graphics( w, h ) GTK2Graphics::GTK2Graphics( int w, int h, SkinWindow *from ) : Graphics( w, h )
{ {
if( from != NULL ) if( from != NULL )
{ {
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* gtk2_graphics.h: GTK2 implementation of the Graphics and Region classes * gtk2_graphics.h: GTK2 implementation of the Graphics and Region classes
***************************************************************************** *****************************************************************************
* Copyright (C) 2003 VideoLAN * Copyright (C) 2003 VideoLAN
* $Id: gtk2_graphics.h,v 1.4 2003/04/19 02:34:47 karibu Exp $ * $Id: gtk2_graphics.h,v 1.5 2003/04/21 21:51:16 asmax Exp $
* *
* Authors: Olivier Teulire <ipkiss@via.ecp.fr> * Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr> * Emmanuel Puig <karibu@via.ecp.fr>
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
class Region; class Region;
class Window; class SkinWindow;
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
class GTK2Graphics : public Graphics class GTK2Graphics : public Graphics
...@@ -43,7 +43,7 @@ class GTK2Graphics : public Graphics ...@@ -43,7 +43,7 @@ class GTK2Graphics : public Graphics
public: public:
// Constructor // Constructor
GTK2Graphics( int w, int h, Window *from = NULL ); GTK2Graphics( int w, int h, SkinWindow *from = NULL );
// Destructor // Destructor
virtual ~GTK2Graphics(); virtual ~GTK2Graphics();
// Drawing methods // Drawing methods
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* gtk2_run.cpp: * gtk2_run.cpp:
***************************************************************************** *****************************************************************************
* Copyright (C) 2003 VideoLAN * Copyright (C) 2003 VideoLAN
* $Id: gtk2_run.cpp,v 1.19 2003/04/21 14:26:59 asmax Exp $ * $Id: gtk2_run.cpp,v 1.20 2003/04/21 21:51:16 asmax Exp $
* *
* Authors: Cyril Deguet <asmax@videolan.org> * Authors: Cyril Deguet <asmax@videolan.org>
* *
...@@ -99,7 +99,7 @@ void GTK2Proc( GdkEvent *event, gpointer data ) ...@@ -99,7 +99,7 @@ void GTK2Proc( GdkEvent *event, gpointer data )
// Variables // Variables
unsigned int msg; unsigned int msg;
Event *evt; Event *evt;
list<Window *>::const_iterator win; list<SkinWindow *>::const_iterator win;
GdkWindow *gwnd = ((GdkEventAny *)event)->window; GdkWindow *gwnd = ((GdkEventAny *)event)->window;
// Create event to dispatch in windows // Create event to dispatch in windows
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* gtk2_theme.cpp: GTK2 implementation of the Theme class * gtk2_theme.cpp: GTK2 implementation of the Theme class
***************************************************************************** *****************************************************************************
* Copyright (C) 2003 VideoLAN * Copyright (C) 2003 VideoLAN
* $Id: gtk2_theme.cpp,v 1.22 2003/04/21 14:26:59 asmax Exp $ * $Id: gtk2_theme.cpp,v 1.23 2003/04/21 21:51:16 asmax Exp $
* *
* Authors: Cyril Deguet <asmax@videolan.org> * Authors: Cyril Deguet <asmax@videolan.org>
* *
...@@ -156,7 +156,7 @@ void GTK2Theme::AddWindow( string name, int x, int y, bool visible, ...@@ -156,7 +156,7 @@ void GTK2Theme::AddWindow( string name, int x, int y, bool visible,
gdk_window_show( gwnd ); gdk_window_show( gwnd );
WindowList.push_back( (Window *)new OSWindow( p_intf, gwnd, x, y, visible, WindowList.push_back( (SkinWindow *)new OSWindow( p_intf, gwnd, x, y, visible,
fadetime, alpha, movealpha, dragdrop, name ) ) ; fadetime, alpha, movealpha, dragdrop, name ) ) ;
} }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* gtk2_theme.h: GTK2 implementation of the Theme class * gtk2_theme.h: GTK2 implementation of the Theme class
***************************************************************************** *****************************************************************************
* Copyright (C) 2003 VideoLAN * Copyright (C) 2003 VideoLAN
* $Id: gtk2_theme.h,v 1.3 2003/04/20 20:28:39 ipkiss Exp $ * $Id: gtk2_theme.h,v 1.4 2003/04/21 21:51:16 asmax Exp $
* *
* Authors: Cyril Deguet <asmax@videolan.org> * Authors: Cyril Deguet <asmax@videolan.org>
* *
...@@ -35,7 +35,7 @@ using namespace std; ...@@ -35,7 +35,7 @@ using namespace std;
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
struct intf_thread_t; struct intf_thread_t;
class Window; class SkinWindow;
class EventBank; class EventBank;
class BitmapBank; class BitmapBank;
class FontBank; class FontBank;
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* gtk2_window.cpp: GTK2 implementation of the Window class * gtk2_window.cpp: GTK2 implementation of the Window class
***************************************************************************** *****************************************************************************
* Copyright (C) 2003 VideoLAN * Copyright (C) 2003 VideoLAN
* $Id: gtk2_window.cpp,v 1.26 2003/04/21 18:39:38 asmax Exp $ * $Id: gtk2_window.cpp,v 1.27 2003/04/21 21:51:16 asmax Exp $
* *
* Authors: Cyril Deguet <asmax@videolan.org> * Authors: Cyril Deguet <asmax@videolan.org>
* *
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
GTK2Window::GTK2Window( intf_thread_t *p_intf, GdkWindow *gwnd, int x, int y, GTK2Window::GTK2Window( intf_thread_t *p_intf, GdkWindow *gwnd, int x, int y,
bool visible, int transition, int normalalpha, int movealpha, bool visible, int transition, int normalalpha, int movealpha,
bool dragdrop, string name ) bool dragdrop, string name )
: Window( p_intf, x, y, visible, transition, normalalpha, movealpha, : SkinWindow( p_intf, x, y, visible, transition, normalalpha, movealpha,
dragdrop ) dragdrop )
{ {
// Set handles // Set handles
...@@ -179,7 +179,7 @@ bool GTK2Window::ProcessOSEvent( Event *evt ) ...@@ -179,7 +179,7 @@ bool GTK2Window::ProcessOSEvent( Event *evt )
case GDK_BUTTON_PRESS: case GDK_BUTTON_PRESS:
// Raise all the windows // Raise all the windows
for( list<Window *>::const_iterator win = for( list<SkinWindow *>::const_iterator win =
p_intf->p_sys->p_theme->WindowList.begin(); p_intf->p_sys->p_theme->WindowList.begin();
win != p_intf->p_sys->p_theme->WindowList.end(); win++ ) win != p_intf->p_sys->p_theme->WindowList.end(); win++ )
{ {
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* gtk2_window.h: GTK2 implementation of the Window class * gtk2_window.h: GTK2 implementation of the Window class
***************************************************************************** *****************************************************************************
* Copyright (C) 2003 VideoLAN * Copyright (C) 2003 VideoLAN
* $Id: gtk2_window.h,v 1.6 2003/04/19 11:16:17 asmax Exp $ * $Id: gtk2_window.h,v 1.7 2003/04/21 21:51:16 asmax Exp $
* *
* Authors: Cyril Deguet <asmax@videolan.org> * Authors: Cyril Deguet <asmax@videolan.org>
* *
...@@ -34,7 +34,7 @@ class Graphics; ...@@ -34,7 +34,7 @@ class Graphics;
class Event; class Event;
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
class GTK2Window : public Window class GTK2Window : public SkinWindow
{ {
private: private:
// General parameters // General parameters
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* os_api.h: Wrapper for some os-specific functions * os_api.h: Wrapper for some os-specific functions
***************************************************************************** *****************************************************************************
* Copyright (C) 2003 VideoLAN * Copyright (C) 2003 VideoLAN
* $Id: os_api.h,v 1.2 2003/04/12 21:43:27 asmax Exp $ * $Id: os_api.h,v 1.3 2003/04/21 21:51:16 asmax Exp $
* *
* Authors: Olivier Teulière <ipkiss@via.ecp.fr> * Authors: Olivier Teulière <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr> * Emmanuel Puig <karibu@via.ecp.fr>
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
using namespace std; using namespace std;
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
class Window; class SkinWindow;
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
// Event API // Event API
...@@ -50,9 +50,9 @@ class Window; ...@@ -50,9 +50,9 @@ class Window;
// Other parameters are the arguments of message // Other parameters are the arguments of message
// Send message is supposed to treat the message directly and should not be // Send message is supposed to treat the message directly and should not be
// used if possible // used if possible
void OSAPI_SendMessage( Window *win, unsigned int message, unsigned int param1, void OSAPI_SendMessage( SkinWindow *win, unsigned int message, unsigned int param1,
long param2 ); long param2 );
void OSAPI_PostMessage( Window *win, unsigned int message, unsigned int param1, void OSAPI_PostMessage( SkinWindow *win, unsigned int message, unsigned int param1,
long param2 ); long param2 );
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
...@@ -73,7 +73,7 @@ void OSAPI_GetScreenSize( int &w, int &h ); ...@@ -73,7 +73,7 @@ void OSAPI_GetScreenSize( int &w, int &h );
void OSAPI_GetMousePos( int &x, int &y ); void OSAPI_GetMousePos( int &x, int &y );
// This function returns the Title of the specified window // This function returns the Title of the specified window
string OSAPI_GetWindowTitle( Window *win ); string OSAPI_GetWindowTitle( SkinWindow *win );
// This functions removes a directory and all its contents // This functions removes a directory and all its contents
bool OSAPI_RmDir( string Path ); bool OSAPI_RmDir( string Path );
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* wrappers.cpp: Wrappers around C++ objects * wrappers.cpp: Wrappers around C++ objects
***************************************************************************** *****************************************************************************
* Copyright (C) 2003 VideoLAN * Copyright (C) 2003 VideoLAN
* $Id: wrappers.cpp,v 1.9 2003/04/20 20:28:39 ipkiss Exp $ * $Id: wrappers.cpp,v 1.10 2003/04/21 21:51:16 asmax Exp $
* *
* Authors: Olivier Teulire <ipkiss@via.ecp.fr> * Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr> * Emmanuel Puig <karibu@via.ecp.fr>
...@@ -117,7 +117,7 @@ void EndControlGroup() ...@@ -117,7 +117,7 @@ void EndControlGroup()
void AddAnchor( char *x, char *y, char *len, char *priority ) void AddAnchor( char *x, char *y, char *len, char *priority )
{ {
int XOff, YOff; int XOff, YOff;
Window *vlcWin = g_pIntf->p_sys->p_theme->WindowList.back(); SkinWindow *vlcWin = g_pIntf->p_sys->p_theme->WindowList.back();
g_pIntf->p_sys->p_theme->OffBank->GetOffSet( XOff, YOff ); g_pIntf->p_sys->p_theme->OffBank->GetOffSet( XOff, YOff );
...@@ -137,7 +137,7 @@ void AddImage( char *id, char *visible, char *x, char *y, char *image, ...@@ -137,7 +137,7 @@ void AddImage( char *id, char *visible, char *x, char *y, char *image,
char *event, char *help ) char *event, char *help )
{ {
int XOff, YOff; int XOff, YOff;
Window *vlcWin = g_pIntf->p_sys->p_theme->WindowList.back(); SkinWindow *vlcWin = g_pIntf->p_sys->p_theme->WindowList.back();
g_pIntf->p_sys->p_theme->OffBank->GetOffSet( XOff, YOff ); g_pIntf->p_sys->p_theme->OffBank->GetOffSet( XOff, YOff );
...@@ -150,7 +150,7 @@ void AddRectangle( char *id, char *visible, char *x, char *y, char *w, char *h, ...@@ -150,7 +150,7 @@ void AddRectangle( char *id, char *visible, char *x, char *y, char *w, char *h,
char *color, char *event, char *help ) char *color, char *event, char *help )
{ {
int XOff, YOff; int XOff, YOff;
Window *vlcWin = g_pIntf->p_sys->p_theme->WindowList.back(); SkinWindow *vlcWin = g_pIntf->p_sys->p_theme->WindowList.back();
g_pIntf->p_sys->p_theme->OffBank->GetOffSet( XOff, YOff ); g_pIntf->p_sys->p_theme->OffBank->GetOffSet( XOff, YOff );
...@@ -168,7 +168,7 @@ void AddButton( ...@@ -168,7 +168,7 @@ void AddButton(
char *tooltiptext, char *help ) char *tooltiptext, char *help )
{ {
int XOff, YOff; int XOff, YOff;
Window *vlcWin = g_pIntf->p_sys->p_theme->WindowList.back(); SkinWindow *vlcWin = g_pIntf->p_sys->p_theme->WindowList.back();
g_pIntf->p_sys->p_theme->OffBank->GetOffSet( XOff, YOff ); g_pIntf->p_sys->p_theme->OffBank->GetOffSet( XOff, YOff );
...@@ -193,7 +193,7 @@ void AddCheckBox( ...@@ -193,7 +193,7 @@ void AddCheckBox(
char *tooltiptext1, char *tooltiptext2, char *help ) char *tooltiptext1, char *tooltiptext2, char *help )
{ {
int XOff, YOff; int XOff, YOff;
Window *vlcWin = g_pIntf->p_sys->p_theme->WindowList.back(); SkinWindow *vlcWin = g_pIntf->p_sys->p_theme->WindowList.back();
g_pIntf->p_sys->p_theme->OffBank->GetOffSet( XOff, YOff ); g_pIntf->p_sys->p_theme->OffBank->GetOffSet( XOff, YOff );
...@@ -231,7 +231,7 @@ void AddSlider( char *id, char *visible, char *x, char *y, char *type, char *up, ...@@ -231,7 +231,7 @@ void AddSlider( char *id, char *visible, char *x, char *y, char *type, char *up,
ConvertCoords( abs, p_abs ); ConvertCoords( abs, p_abs );
ConvertCoords( ord, p_ord ); ConvertCoords( ord, p_ord );
Window *vlcWin = g_pIntf->p_sys->p_theme->WindowList.back(); SkinWindow *vlcWin = g_pIntf->p_sys->p_theme->WindowList.back();
// Move control // Move control
g_pIntf->p_sys->p_theme->OffBank->GetOffSet( XOff, YOff ); g_pIntf->p_sys->p_theme->OffBank->GetOffSet( XOff, YOff );
...@@ -286,7 +286,7 @@ void AddPlayList( char *id, char *visible, char *x, char *y, char *width, ...@@ -286,7 +286,7 @@ void AddPlayList( char *id, char *visible, char *x, char *y, char *width,
ConvertCoords( abs, p_abs ); ConvertCoords( abs, p_abs );
ConvertCoords( ord, p_ord ); ConvertCoords( ord, p_ord );
Window *vlcWin = g_pIntf->p_sys->p_theme->WindowList.back(); SkinWindow *vlcWin = g_pIntf->p_sys->p_theme->WindowList.back();
// Move control // Move control
g_pIntf->p_sys->p_theme->OffBank->GetOffSet( XOff, YOff ); g_pIntf->p_sys->p_theme->OffBank->GetOffSet( XOff, YOff );
...@@ -319,7 +319,7 @@ void AddText( char *id, char *visible, char *x, char *y, char *text, char *font, ...@@ -319,7 +319,7 @@ void AddText( char *id, char *visible, char *x, char *y, char *text, char *font,
char *help ) char *help )
{ {
int XOff, YOff; int XOff, YOff;
Window *vlcWin = g_pIntf->p_sys->p_theme->WindowList.back(); SkinWindow *vlcWin = g_pIntf->p_sys->p_theme->WindowList.back();
g_pIntf->p_sys->p_theme->OffBank->GetOffSet( XOff, YOff ); g_pIntf->p_sys->p_theme->OffBank->GetOffSet( XOff, YOff );
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* anchor.cpp: Anchor class * anchor.cpp: Anchor class
***************************************************************************** *****************************************************************************
* Copyright (C) 2003 VideoLAN * Copyright (C) 2003 VideoLAN
* $Id: anchor.cpp,v 1.1 2003/03/18 02:21:47 ipkiss Exp $ * $Id: anchor.cpp,v 1.2 2003/04/21 21:51:16 asmax Exp $
* *
* Authors: Olivier Teulière <ipkiss@via.ecp.fr> * Authors: Olivier Teulière <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr> * Emmanuel Puig <karibu@via.ecp.fr>
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
// Anchors // Anchors
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
Anchor::Anchor( intf_thread_t *_p_intf, int x, int y, int len, int priority, Anchor::Anchor( intf_thread_t *_p_intf, int x, int y, int len, int priority,
Window *parent ) SkinWindow *parent )
{ {
p_intf = _p_intf; p_intf = _p_intf;
Parent = parent; Parent = parent;
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* anchor.h: Anchor class * anchor.h: Anchor class
***************************************************************************** *****************************************************************************
* Copyright (C) 2003 VideoLAN * Copyright (C) 2003 VideoLAN
* $Id: anchor.h,v 1.1 2003/03/18 02:21:47 ipkiss Exp $ * $Id: anchor.h,v 1.2 2003/04/21 21:51:16 asmax Exp $
* *
* Authors: Olivier Teulière <ipkiss@via.ecp.fr> * Authors: Olivier Teulière <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr> * Emmanuel Puig <karibu@via.ecp.fr>
...@@ -33,7 +33,7 @@ using namespace std; ...@@ -33,7 +33,7 @@ using namespace std;
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
struct intf_thread_t; struct intf_thread_t;
class Window; class SkinWindow;
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
class Anchor class Anchor
{ {
...@@ -49,7 +49,7 @@ class Anchor ...@@ -49,7 +49,7 @@ class Anchor
int Priority; int Priority;
// Parent window // Parent window
Window *Parent; SkinWindow *Parent;
// Interface thread // Interface thread
intf_thread_t *p_intf; intf_thread_t *p_intf;
...@@ -57,7 +57,7 @@ class Anchor ...@@ -57,7 +57,7 @@ class Anchor
public: public:
// Constructor // Constructor
Anchor( intf_thread_t *_p_intf, int x, int y, int len, int priority, Anchor( intf_thread_t *_p_intf, int x, int y, int len, int priority,
Window *parent ); SkinWindow *parent );
// Hang to anchor if in neighbourhood // Hang to anchor if in neighbourhood
bool Hang( Anchor *anc, int mx, int my ); bool Hang( Anchor *anc, int mx, int my );
...@@ -73,7 +73,7 @@ class Anchor ...@@ -73,7 +73,7 @@ class Anchor
// Getters // Getters
int GetPriority() { return Priority; } int GetPriority() { return Priority; }
Window *GetParent() { return Parent; } SkinWindow *GetParent() { return Parent; }
}; };
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* event.cpp: Event class * event.cpp: Event class
***************************************************************************** *****************************************************************************
* Copyright (C) 2003 VideoLAN * Copyright (C) 2003 VideoLAN
* $Id: event.cpp,v 1.12 2003/04/21 00:54:26 ipkiss Exp $ * $Id: event.cpp,v 1.13 2003/04/21 21:51:16 asmax Exp $
* *
* Authors: Olivier Teulire <ipkiss@via.ecp.fr> * Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr> * Emmanuel Puig <karibu@via.ecp.fr>
...@@ -356,7 +356,7 @@ void Event::CreateEvent() ...@@ -356,7 +356,7 @@ void Event::CreateEvent()
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
GenericControl * Event::FindControl( string id ) GenericControl * Event::FindControl( string id )
{ {
list<Window *>::const_iterator win; list<SkinWindow *>::const_iterator win;
unsigned int i; unsigned int i;
for( win = p_intf->p_sys->p_theme->WindowList.begin(); for( win = p_intf->p_sys->p_theme->WindowList.begin();
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* theme.cpp: Theme class * theme.cpp: Theme class
***************************************************************************** *****************************************************************************
* Copyright (C) 2003 VideoLAN * Copyright (C) 2003 VideoLAN
* $Id: theme.cpp,v 1.10 2003/04/21 02:12:06 ipkiss Exp $ * $Id: theme.cpp,v 1.11 2003/04/21 21:51:16 asmax Exp $
* *
* Authors: Olivier Teulire <ipkiss@via.ecp.fr> * Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr> * Emmanuel Puig <karibu@via.ecp.fr>
...@@ -62,7 +62,7 @@ Theme::Theme( intf_thread_t *_p_intf ) ...@@ -62,7 +62,7 @@ Theme::Theme( intf_thread_t *_p_intf )
Theme::~Theme() Theme::~Theme()
{ {
// Delete the windows // Delete the windows
list<Window *>::const_iterator win; list<SkinWindow *>::const_iterator win;
for( win = WindowList.begin(); win != WindowList.end(); win++ ) for( win = WindowList.begin(); win != WindowList.end(); win++ )
{ {
delete (OSWindow *)(*win); delete (OSWindow *)(*win);
...@@ -82,7 +82,7 @@ void Theme::ShowTheme() ...@@ -82,7 +82,7 @@ void Theme::ShowTheme()
if( ShowInTaskbar != (bool)config_GetInt( p_intf, "show_in_taskbar" ) ) if( ShowInTaskbar != (bool)config_GetInt( p_intf, "show_in_taskbar" ) )
ChangeTaskbar(); ChangeTaskbar();
list<Window *>::const_iterator win; list<SkinWindow *>::const_iterator win;
Event *evt1; Event *evt1;
Event *evt2; Event *evt2;
...@@ -128,7 +128,7 @@ void Theme::LoadConfig() ...@@ -128,7 +128,7 @@ void Theme::LoadConfig()
return; return;
// Initialization // Initialization
list<Window *>::const_iterator win; list<SkinWindow *>::const_iterator win;
int i = 0; int i = 0;
int x, y, v, scan; int x, y, v, scan;
...@@ -154,7 +154,7 @@ void Theme::SaveConfig() ...@@ -154,7 +154,7 @@ void Theme::SaveConfig()
{ {
// Initialize char where config is stored // Initialize char where config is stored
char *save = new char[400]; char *save = new char[400];
list<Window *>::const_iterator win; list<SkinWindow *>::const_iterator win;
int i = 0; int i = 0;
int x, y; int x, y;
...@@ -198,7 +198,7 @@ void Theme::InitTheme() ...@@ -198,7 +198,7 @@ void Theme::InitTheme()
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
void Theme::InitWindows() void Theme::InitWindows()
{ {
for( list<Window *>::const_iterator win = WindowList.begin(); for( list<SkinWindow *>::const_iterator win = WindowList.begin();
win != WindowList.end(); win++ ) win != WindowList.end(); win++ )
{ {
(*win)->Init(); (*win)->Init();
...@@ -207,7 +207,7 @@ void Theme::InitWindows() ...@@ -207,7 +207,7 @@ void Theme::InitWindows()
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
void Theme::InitControls() void Theme::InitControls()
{ {
for( list<Window *>::const_iterator win = WindowList.begin(); for( list<SkinWindow *>::const_iterator win = WindowList.begin();
win != WindowList.end(); win++ ) win != WindowList.end(); win++ )
{ {
for( unsigned int i = 0; i < (*win)->ControlList.size(); i++ ) for( unsigned int i = 0; i < (*win)->ControlList.size(); i++ )
...@@ -217,9 +217,9 @@ void Theme::InitControls() ...@@ -217,9 +217,9 @@ void Theme::InitControls()
} }
} }
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
Window * Theme::GetWindow( string name ) SkinWindow * Theme::GetWindow( string name )
{ {
for( list<Window *>::const_iterator win = WindowList.begin(); for( list<SkinWindow *>::const_iterator win = WindowList.begin();
win != WindowList.end(); win++ ) win != WindowList.end(); win++ )
{ {
if( name == OSAPI_GetWindowTitle( *win ) ) if( name == OSAPI_GetWindowTitle( *win ) )
...@@ -230,10 +230,10 @@ Window * Theme::GetWindow( string name ) ...@@ -230,10 +230,10 @@ Window * Theme::GetWindow( string name )
return NULL; return NULL;
} }
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
void Theme::MoveSkin( Window *wnd, int left, int top ) void Theme::MoveSkin( SkinWindow *wnd, int left, int top )
{ {
int x, y, oldx, oldy; int x, y, oldx, oldy;
Window *win; SkinWindow *win;
list<Anchor *>::const_iterator anc; list<Anchor *>::const_iterator anc;
list<Anchor *>::const_iterator hang; list<Anchor *>::const_iterator hang;
wnd->GetPos( oldx, oldy ); wnd->GetPos( oldx, oldy );
...@@ -258,7 +258,7 @@ void Theme::MoveSkin( Window *wnd, int left, int top ) ...@@ -258,7 +258,7 @@ void Theme::MoveSkin( Window *wnd, int left, int top )
} }
} }
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
bool Theme::MoveSkinMagnet( Window *wnd, int left, int top ) bool Theme::MoveSkinMagnet( SkinWindow *wnd, int left, int top )
{ {
// If magnetism not activate // If magnetism not activate
...@@ -291,7 +291,7 @@ bool Theme::MoveSkinMagnet( Window *wnd, int left, int top ) ...@@ -291,7 +291,7 @@ bool Theme::MoveSkinMagnet( Window *wnd, int left, int top )
HangToAnchors( wnd, NewLeft, NewTop ); HangToAnchors( wnd, NewLeft, NewTop );
// All windows can be moved // All windows can be moved
list<Window *>::const_iterator win; list<SkinWindow *>::const_iterator win;
for( win = WindowList.begin(); win != WindowList.end(); win++ ) for( win = WindowList.begin(); win != WindowList.end(); win++ )
(*win)->Moved = false; (*win)->Moved = false;
...@@ -301,11 +301,11 @@ bool Theme::MoveSkinMagnet( Window *wnd, int left, int top ) ...@@ -301,11 +301,11 @@ bool Theme::MoveSkinMagnet( Window *wnd, int left, int top )
return true; return true;
} }
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
void Theme::HangToAnchors( Window *wnd, int &x, int &y, bool init ) void Theme::HangToAnchors( SkinWindow *wnd, int &x, int &y, bool init )
{ {
// Magnetism initialization // Magnetism initialization
int win_x, win_y, win_anchor_x, win_anchor_y, wnd_anchor_x, wnd_anchor_y; int win_x, win_y, win_anchor_x, win_anchor_y, wnd_anchor_x, wnd_anchor_y;
list<Window *>::const_iterator win; list<SkinWindow *>::const_iterator win;
list<Anchor *>::const_iterator win_anchor, wnd_anchor; list<Anchor *>::const_iterator win_anchor, wnd_anchor;
// Parse list of windows // Parse list of windows
...@@ -385,7 +385,7 @@ void Theme::HangToAnchors( Window *wnd, int &x, int &y, bool init ) ...@@ -385,7 +385,7 @@ void Theme::HangToAnchors( Window *wnd, int &x, int &y, bool init )
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
void Theme::CheckAnchors() void Theme::CheckAnchors()
{ {
list<Window *>::const_iterator win; list<SkinWindow *>::const_iterator win;
int x, y; int x, y;
for( win = WindowList.begin(); win != WindowList.end(); win++ ) for( win = WindowList.begin(); win != WindowList.end(); win++ )
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* theme.h: Theme class * theme.h: Theme class
***************************************************************************** *****************************************************************************
* Copyright (C) 2003 VideoLAN * Copyright (C) 2003 VideoLAN
* $Id: theme.h,v 1.2 2003/04/20 20:28:39 ipkiss Exp $ * $Id: theme.h,v 1.3 2003/04/21 21:51:16 asmax Exp $
* *
* Authors: Olivier Teulire <ipkiss@via.ecp.fr> * Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr> * Emmanuel Puig <karibu@via.ecp.fr>
...@@ -34,7 +34,7 @@ using namespace std; ...@@ -34,7 +34,7 @@ using namespace std;
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
struct intf_thread_t; struct intf_thread_t;
class Window; class SkinWindow;
class EventBank; class EventBank;
class BitmapBank; class BitmapBank;
class FontBank; class FontBank;
...@@ -72,7 +72,7 @@ class Theme ...@@ -72,7 +72,7 @@ class Theme
int fadetime, int alpha, int movealpha, bool dragdrop ) = 0; int fadetime, int alpha, int movealpha, bool dragdrop ) = 0;
virtual void ChangeClientWindowName( string name ) = 0; virtual void ChangeClientWindowName( string name ) = 0;
Window * GetWindow( string name ); SkinWindow * GetWindow( string name );
// Banks // Banks
BitmapBank *BmpBank; BitmapBank *BmpBank;
...@@ -81,12 +81,12 @@ class Theme ...@@ -81,12 +81,12 @@ class Theme
OffSetBank *OffBank; OffSetBank *OffBank;
// List of the windows of the skin // List of the windows of the skin
list<Window *> WindowList; list<SkinWindow *> WindowList;
// Magetism // Magetism
void HangToAnchors( Window *wnd, int &x, int &y, bool init = false ); void HangToAnchors( SkinWindow *wnd, int &x, int &y, bool init = false );
bool MoveSkinMagnet( Window *wnd, int left, int top ); bool MoveSkinMagnet( SkinWindow *wnd, int left, int top );
void MoveSkin( Window *wnd, int left, int top ); void MoveSkin( SkinWindow *wnd, int left, int top );
void CheckAnchors(); void CheckAnchors();
bool ConstructPlaylist; bool ConstructPlaylist;
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* vlcproc.cpp: VlcProc class * vlcproc.cpp: VlcProc class
***************************************************************************** *****************************************************************************
* Copyright (C) 2003 VideoLAN * Copyright (C) 2003 VideoLAN
* $Id: vlcproc.cpp,v 1.13 2003/04/21 02:12:06 ipkiss Exp $ * $Id: vlcproc.cpp,v 1.14 2003/04/21 21:51:16 asmax Exp $
* *
* Authors: Olivier Teulire <ipkiss@via.ecp.fr> * Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr> * Emmanuel Puig <karibu@via.ecp.fr>
...@@ -71,7 +71,7 @@ bool VlcProc::EventProc( Event *evt ) ...@@ -71,7 +71,7 @@ bool VlcProc::EventProc( Event *evt )
return true; return true;
case VLC_HIDE: case VLC_HIDE:
for( list<Window *>::const_iterator win = for( list<SkinWindow *>::const_iterator win =
p_intf->p_sys->p_theme->WindowList.begin(); p_intf->p_sys->p_theme->WindowList.begin();
win != p_intf->p_sys->p_theme->WindowList.end(); win++ ) win != p_intf->p_sys->p_theme->WindowList.end(); win++ )
{ {
...@@ -82,7 +82,7 @@ bool VlcProc::EventProc( Event *evt ) ...@@ -82,7 +82,7 @@ bool VlcProc::EventProc( Event *evt )
return true; return true;
case VLC_SHOW: case VLC_SHOW:
for( list<Window *>::const_iterator win = for( list<SkinWindow *>::const_iterator win =
p_intf->p_sys->p_theme->WindowList.begin(); p_intf->p_sys->p_theme->WindowList.begin();
win != p_intf->p_sys->p_theme->WindowList.end(); win++ ) win != p_intf->p_sys->p_theme->WindowList.end(); win++ )
{ {
...@@ -182,7 +182,7 @@ bool VlcProc::EventProcEnd() ...@@ -182,7 +182,7 @@ bool VlcProc::EventProcEnd()
if( p_intf->p_sys->b_all_win_closed ) if( p_intf->p_sys->b_all_win_closed )
return true; return true;
list<Window *>::const_iterator win; list<SkinWindow *>::const_iterator win;
// If a window has been closed, test if all are closed ! // If a window has been closed, test if all are closed !
for( win = p_intf->p_sys->p_theme->WindowList.begin(); for( win = p_intf->p_sys->p_theme->WindowList.begin();
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* window.cpp: Window class * window.cpp: Window class
***************************************************************************** *****************************************************************************
* Copyright (C) 2003 VideoLAN * Copyright (C) 2003 VideoLAN
* $Id: window.cpp,v 1.18 2003/04/20 15:00:19 karibu Exp $ * $Id: window.cpp,v 1.19 2003/04/21 21:51:16 asmax Exp $
* *
* Authors: Olivier Teulire <ipkiss@via.ecp.fr> * Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr> * Emmanuel Puig <karibu@via.ecp.fr>
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
// Skinable Window // Skinable Window
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
Window::Window( intf_thread_t *_p_intf, int x, int y, bool visible, SkinWindow::SkinWindow( intf_thread_t *_p_intf, int x, int y, bool visible,
int transition, int normalalpha, int movealpha, bool dragdrop ) int transition, int normalalpha, int movealpha, bool dragdrop )
{ {
p_intf = _p_intf; p_intf = _p_intf;
...@@ -84,14 +84,14 @@ Window::Window( intf_thread_t *_p_intf, int x, int y, bool visible, ...@@ -84,14 +84,14 @@ Window::Window( intf_thread_t *_p_intf, int x, int y, bool visible,
ToolTipText = "none"; ToolTipText = "none";
} }
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
Window::~Window() SkinWindow::~SkinWindow()
{ {
// Destroy the controls // Destroy the controls
for( unsigned int i = 0; i < ControlList.size(); i++ ) for( unsigned int i = 0; i < ControlList.size(); i++ )
delete ControlList[i]; delete ControlList[i];
} }
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
void Window::Open() void SkinWindow::Open()
{ {
if( !Hidden ) if( !Hidden )
return; return;
...@@ -110,7 +110,7 @@ void Window::Open() ...@@ -110,7 +110,7 @@ void Window::Open()
} }
} }
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
void Window::Close() void SkinWindow::Close()
{ {
Changing = true; Changing = true;
...@@ -120,14 +120,14 @@ void Window::Close() ...@@ -120,14 +120,14 @@ void Window::Close()
OSAPI_PostMessage( this, WINDOW_FADE, WINDOW_HIDE, 1242 ); OSAPI_PostMessage( this, WINDOW_FADE, WINDOW_HIDE, 1242 );
} }
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
void Window::Show() void SkinWindow::Show()
{ {
Changing = false; Changing = false;
Hidden = false; Hidden = false;
OSShow( true ); OSShow( true );
} }
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
void Window::Hide() void SkinWindow::Hide()
{ {
if( Hidden ) if( Hidden )
return; return;
...@@ -138,7 +138,7 @@ void Window::Hide() ...@@ -138,7 +138,7 @@ void Window::Hide()
OSAPI_PostMessage( NULL, VLC_TEST_ALL_CLOSED, 0, 0 ); OSAPI_PostMessage( NULL, VLC_TEST_ALL_CLOSED, 0, 0 );
} }
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
void Window::Fade( int To, int Time, unsigned int evt ) void SkinWindow::Fade( int To, int Time, unsigned int evt )
{ {
StartAlpha = Alpha; StartAlpha = Alpha;
EndAlpha = To; EndAlpha = To;
...@@ -149,7 +149,7 @@ void Window::Fade( int To, int Time, unsigned int evt ) ...@@ -149,7 +149,7 @@ void Window::Fade( int To, int Time, unsigned int evt )
OSAPI_PostMessage( this, WINDOW_FADE, evt, Lock ); OSAPI_PostMessage( this, WINDOW_FADE, evt, Lock );
} }
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
bool Window::ProcessEvent( Event *evt ) bool SkinWindow::ProcessEvent( Event *evt )
{ {
unsigned int i; unsigned int i;
unsigned int msg = evt->GetMessage(); unsigned int msg = evt->GetMessage();
...@@ -243,7 +243,7 @@ bool Window::ProcessEvent( Event *evt ) ...@@ -243,7 +243,7 @@ bool Window::ProcessEvent( Event *evt )
} }
} }
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
bool Window::ChangeAlpha( int time ) bool SkinWindow::ChangeAlpha( int time )
{ {
if( time >= EndTime ) if( time >= EndTime )
{ {
...@@ -267,7 +267,7 @@ bool Window::ChangeAlpha( int time ) ...@@ -267,7 +267,7 @@ bool Window::ChangeAlpha( int time )
return true; return true;
} }
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
void Window::RefreshImage( int x, int y, int w, int h ) void SkinWindow::RefreshImage( int x, int y, int w, int h )
{ {
unsigned int i; unsigned int i;
...@@ -285,7 +285,7 @@ void Window::RefreshImage( int x, int y, int w, int h ) ...@@ -285,7 +285,7 @@ void Window::RefreshImage( int x, int y, int w, int h )
delete Buffer; delete Buffer;
} }
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
void Window::Refresh( int x, int y, int w, int h ) void SkinWindow::Refresh( int x, int y, int w, int h )
{ {
if( Image == NULL ) if( Image == NULL )
return; return;
...@@ -301,12 +301,12 @@ void Window::Refresh( int x, int y, int w, int h ) ...@@ -301,12 +301,12 @@ void Window::Refresh( int x, int y, int w, int h )
} }
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
void Window::RefreshAll() void SkinWindow::RefreshAll()
{ {
Refresh( 0, 0, Width, Height ); Refresh( 0, 0, Width, Height );
} }
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
void Window::MouseDown( int x, int y, int button ) void SkinWindow::MouseDown( int x, int y, int button )
{ {
// Checking event in controls // Checking event in controls
for( int i = ControlList.size() - 1; i >= 0 ; i-- ) for( int i = ControlList.size() - 1; i >= 0 ; i-- )
...@@ -319,7 +319,7 @@ void Window::MouseDown( int x, int y, int button ) ...@@ -319,7 +319,7 @@ void Window::MouseDown( int x, int y, int button )
} }
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
void Window::MouseMove( int x, int y, int button ) void SkinWindow::MouseMove( int x, int y, int button )
{ {
int i; int i;
...@@ -366,7 +366,7 @@ void Window::MouseMove( int x, int y, int button ) ...@@ -366,7 +366,7 @@ void Window::MouseMove( int x, int y, int button )
ChangeToolTipText( "none" ); ChangeToolTipText( "none" );
} }
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
void Window::MouseUp( int x, int y, int button ) void SkinWindow::MouseUp( int x, int y, int button )
{ {
int i; int i;
...@@ -392,7 +392,7 @@ void Window::MouseUp( int x, int y, int button ) ...@@ -392,7 +392,7 @@ void Window::MouseUp( int x, int y, int button )
} }
} }
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
void Window::MouseDblClick( int x, int y, int button ) void SkinWindow::MouseDblClick( int x, int y, int button )
{ {
int i; int i;
...@@ -404,7 +404,7 @@ void Window::MouseDblClick( int x, int y, int button ) ...@@ -404,7 +404,7 @@ void Window::MouseDblClick( int x, int y, int button )
} }
} }
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
void Window::MouseScroll( int x, int y, int direction ) void SkinWindow::MouseScroll( int x, int y, int direction )
{ {
// Checking event in controls // Checking event in controls
for( int i = ControlList.size() - 1; i >= 0 ; i-- ) for( int i = ControlList.size() - 1; i >= 0 ; i-- )
...@@ -416,7 +416,7 @@ void Window::MouseScroll( int x, int y, int direction ) ...@@ -416,7 +416,7 @@ void Window::MouseScroll( int x, int y, int direction )
} }
} }
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
void Window::Init() void SkinWindow::Init()
{ {
// Get size of window // Get size of window
ReSize(); ReSize();
...@@ -428,7 +428,7 @@ void Window::Init() ...@@ -428,7 +428,7 @@ void Window::Init()
Move( Left, Top ); Move( Left, Top );
} }
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
void Window::ReSize() void SkinWindow::ReSize()
{ {
// Initialization // Initialization
unsigned int i; unsigned int i;
...@@ -480,13 +480,13 @@ void Window::ReSize() ...@@ -480,13 +480,13 @@ void Window::ReSize()
} }
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
void Window::GetSize( int &w, int &h ) void SkinWindow::GetSize( int &w, int &h )
{ {
w = Width; w = Width;
h = Height; h = Height;
} }
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
void Window::GetPos( int &x, int &y ) void SkinWindow::GetPos( int &x, int &y )
{ {
x = Left; x = Left;
y = Top; y = Top;
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* window.h: Window class * window.h: Window class
***************************************************************************** *****************************************************************************
* Copyright (C) 2003 VideoLAN * Copyright (C) 2003 VideoLAN
* $Id: window.h,v 1.2 2003/04/20 13:14:14 asmax Exp $ * $Id: window.h,v 1.3 2003/04/21 21:51:16 asmax Exp $
* *
* Authors: Olivier Teulire <ipkiss@via.ecp.fr> * Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr> * Emmanuel Puig <karibu@via.ecp.fr>
...@@ -46,7 +46,7 @@ class Event; ...@@ -46,7 +46,7 @@ class Event;
#define MOUSE_SCROLL_DOWN 1 #define MOUSE_SCROLL_DOWN 1
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
class Window class SkinWindow
{ {
protected: protected:
// Interface thread // Interface thread
...@@ -86,11 +86,11 @@ class Window ...@@ -86,11 +86,11 @@ class Window
vector<GenericControl *> ControlList; vector<GenericControl *> ControlList;
// Constructors // Constructors
Window( intf_thread_t *_p_intf, int x, int y, bool visible, SkinWindow( intf_thread_t *_p_intf, int x, int y, bool visible,
int transition, int normalalpha, int movealpha, bool dragdrop ); int transition, int normalalpha, int movealpha, bool dragdrop );
// Destructors // Destructors
virtual ~Window(); virtual ~SkinWindow();
// Event processing // Event processing
bool ProcessEvent( Event *evt ); bool ProcessEvent( Event *evt );
...@@ -101,7 +101,7 @@ class Window ...@@ -101,7 +101,7 @@ class Window
void MouseDown( int x, int y, int button ); void MouseDown( int x, int y, int button );
void MouseMove( int x, int y, int button ); void MouseMove( int x, int y, int button );
void MouseDblClick( int x, int y, int button ); void MouseDblClick( int x, int y, int button );
void Window::MouseScroll( int x, int y, int direction ); void SkinWindow::MouseScroll( int x, int y, int direction );
// Window graphic aspect // Window graphic aspect
bool OnStartThemeVisible; bool OnStartThemeVisible;
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* win32_api.cpp: Various win32-specific functions * win32_api.cpp: Various win32-specific functions
***************************************************************************** *****************************************************************************
* Copyright (C) 2003 VideoLAN * Copyright (C) 2003 VideoLAN
* $Id: win32_api.cpp,v 1.3 2003/04/16 21:40:07 ipkiss Exp $ * $Id: win32_api.cpp,v 1.4 2003/04/21 21:51:16 asmax Exp $
* *
* Authors: Olivier Teulire <ipkiss@via.ecp.fr> * Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr> * Emmanuel Puig <karibu@via.ecp.fr>
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
// Event API // Event API
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
void OSAPI_SendMessage( Window *win, unsigned int message, unsigned int param1, void OSAPI_SendMessage( SkinWindow *win, unsigned int message, unsigned int param1,
long param2 ) long param2 )
{ {
if( win == NULL ) if( win == NULL )
...@@ -49,7 +49,7 @@ void OSAPI_SendMessage( Window *win, unsigned int message, unsigned int param1, ...@@ -49,7 +49,7 @@ void OSAPI_SendMessage( Window *win, unsigned int message, unsigned int param1,
param2 ); param2 );
} }
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
void OSAPI_PostMessage( Window *win, unsigned int message, unsigned int param1, void OSAPI_PostMessage( SkinWindow *win, unsigned int message, unsigned int param1,
long param2 ) long param2 )
{ {
if( win == NULL ) if( win == NULL )
...@@ -110,7 +110,7 @@ void OSAPI_GetMousePos( int &x, int &y ) ...@@ -110,7 +110,7 @@ void OSAPI_GetMousePos( int &x, int &y )
delete MousePos; delete MousePos;
} }
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
string OSAPI_GetWindowTitle( Window *win ) string OSAPI_GetWindowTitle( SkinWindow *win )
{ {
char *buffer = new char[MAX_PARAM_SIZE]; char *buffer = new char[MAX_PARAM_SIZE];
GetWindowText( ((Win32Window *)win)->GetHandle(), buffer, MAX_PARAM_SIZE ); GetWindowText( ((Win32Window *)win)->GetHandle(), buffer, MAX_PARAM_SIZE );
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* win32_event.cpp: Win32 implementation of the Event class * win32_event.cpp: Win32 implementation of the Event class
***************************************************************************** *****************************************************************************
* Copyright (C) 2003 VideoLAN * Copyright (C) 2003 VideoLAN
* $Id: win32_event.cpp,v 1.4 2003/04/16 21:40:07 ipkiss Exp $ * $Id: win32_event.cpp,v 1.5 2003/04/21 21:51:16 asmax Exp $
* *
* Authors: Olivier Teulire <ipkiss@via.ecp.fr> * Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr> * Emmanuel Puig <karibu@via.ecp.fr>
...@@ -57,7 +57,7 @@ Win32Event::Win32Event( intf_thread_t *p_intf, HWND hwnd, unsigned int msg, ...@@ -57,7 +57,7 @@ Win32Event::Win32Event( intf_thread_t *p_intf, HWND hwnd, unsigned int msg,
hWnd = hwnd; hWnd = hwnd;
} }
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
Win32Event::Win32Event( intf_thread_t *p_intf, Window *win, unsigned int msg, Win32Event::Win32Event( intf_thread_t *p_intf, SkinWindow *win, unsigned int msg,
unsigned int par1, long par2 ) : Event( p_intf, msg, par1, par2 ) unsigned int par1, long par2 ) : Event( p_intf, msg, par1, par2 )
{ {
hWnd = ( (Win32Window *)win )->GetHandle(); hWnd = ( (Win32Window *)win )->GetHandle();
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* win32_event.h: Win32 implementation of the Event class * win32_event.h: Win32 implementation of the Event class
***************************************************************************** *****************************************************************************
* Copyright (C) 2003 VideoLAN * Copyright (C) 2003 VideoLAN
* $Id: win32_event.h,v 1.2 2003/04/12 21:43:27 asmax Exp $ * $Id: win32_event.h,v 1.3 2003/04/21 21:51:16 asmax Exp $
* *
* Authors: Olivier Teulière <ipkiss@via.ecp.fr> * Authors: Olivier Teulière <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr> * Emmanuel Puig <karibu@via.ecp.fr>
...@@ -34,7 +34,7 @@ using namespace std; ...@@ -34,7 +34,7 @@ using namespace std;
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
struct intf_thread_t; struct intf_thread_t;
class Window; class SkinWindow;
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
class Win32Event : Event class Win32Event : Event
...@@ -47,7 +47,7 @@ class Win32Event : Event ...@@ -47,7 +47,7 @@ class Win32Event : Event
Win32Event( intf_thread_t *p_intf, string Desc, string shortcut ); Win32Event( intf_thread_t *p_intf, string Desc, string shortcut );
Win32Event( intf_thread_t *p_intf, HWND hwnd, unsigned int msg, Win32Event( intf_thread_t *p_intf, HWND hwnd, unsigned int msg,
unsigned int par1, long par2 ); unsigned int par1, long par2 );
Win32Event( intf_thread_t *p_intf, Window *win, unsigned int msg, Win32Event( intf_thread_t *p_intf, SkinWindow *win, unsigned int msg,
unsigned int par1, long par2 ); unsigned int par1, long par2 );
// Destructor // Destructor
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* win32_graphics.cpp: Win32 implementation of the Graphics and Region classes * win32_graphics.cpp: Win32 implementation of the Graphics and Region classes
***************************************************************************** *****************************************************************************
* Copyright (C) 2003 VideoLAN * Copyright (C) 2003 VideoLAN
* $Id: win32_graphics.cpp,v 1.4 2003/04/19 02:34:47 karibu Exp $ * $Id: win32_graphics.cpp,v 1.5 2003/04/21 21:51:16 asmax Exp $
* *
* Authors: Olivier Teulire <ipkiss@via.ecp.fr> * Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr> * Emmanuel Puig <karibu@via.ecp.fr>
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
// WIN32 GRAPHICS // WIN32 GRAPHICS
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
Win32Graphics::Win32Graphics( int w, int h, Window *from ) : Graphics( w, h ) Win32Graphics::Win32Graphics( int w, int h, SkinWindow *from ) : Graphics( w, h )
{ {
HBITMAP HImage ; HBITMAP HImage ;
Image = CreateCompatibleDC( NULL ); Image = CreateCompatibleDC( NULL );
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* win32_graphics.h: Win32 implementation of the Graphics and Region classes * win32_graphics.h: Win32 implementation of the Graphics and Region classes
***************************************************************************** *****************************************************************************
* Copyright (C) 2003 VideoLAN * Copyright (C) 2003 VideoLAN
* $Id: win32_graphics.h,v 1.3 2003/04/19 02:34:47 karibu Exp $ * $Id: win32_graphics.h,v 1.4 2003/04/21 21:51:16 asmax Exp $
* *
* Authors: Olivier Teulière <ipkiss@via.ecp.fr> * Authors: Olivier Teulière <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr> * Emmanuel Puig <karibu@via.ecp.fr>
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
class Region; class Region;
class Window; class SkinWindow;
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
class Win32Graphics : public Graphics class Win32Graphics : public Graphics
...@@ -40,7 +40,7 @@ class Win32Graphics : public Graphics ...@@ -40,7 +40,7 @@ class Win32Graphics : public Graphics
public: public:
// Constructor // Constructor
Win32Graphics( int w, int h, Window *from = NULL ); Win32Graphics( int w, int h, SkinWindow *from = NULL );
// Destructor // Destructor
virtual ~Win32Graphics(); virtual ~Win32Graphics();
// Drawing methods // Drawing methods
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* win32_run.cpp: * win32_run.cpp:
***************************************************************************** *****************************************************************************
* Copyright (C) 2003 VideoLAN * Copyright (C) 2003 VideoLAN
* $Id: win32_run.cpp,v 1.8 2003/04/21 02:50:49 asmax Exp $ * $Id: win32_run.cpp,v 1.9 2003/04/21 21:51:16 asmax Exp $
* *
* Authors: Olivier Teulire <ipkiss@via.ecp.fr> * Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr> * Emmanuel Puig <karibu@via.ecp.fr>
...@@ -162,7 +162,7 @@ void OSRun( intf_thread_t *p_intf ) ...@@ -162,7 +162,7 @@ void OSRun( intf_thread_t *p_intf )
{ {
VlcProc *Proc = new VlcProc( p_intf ); VlcProc *Proc = new VlcProc( p_intf );
MSG msg; MSG msg;
list<Window *>::const_iterator win; list<SkinWindow *>::const_iterator win;
Event *ProcessEvent; Event *ProcessEvent;
int KeyModifier = 0; int KeyModifier = 0;
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* win32_theme.cpp: Win32 implementation of the Theme class * win32_theme.cpp: Win32 implementation of the Theme class
***************************************************************************** *****************************************************************************
* Copyright (C) 2003 VideoLAN * Copyright (C) 2003 VideoLAN
* $Id: win32_theme.cpp,v 1.5 2003/04/21 02:12:06 ipkiss Exp $ * $Id: win32_theme.cpp,v 1.6 2003/04/21 21:51:16 asmax Exp $
* *
* Authors: Olivier Teulire <ipkiss@via.ecp.fr> * Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr> * Emmanuel Puig <karibu@via.ecp.fr>
...@@ -71,7 +71,7 @@ LRESULT CALLBACK Win32Proc( HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam ) ...@@ -71,7 +71,7 @@ LRESULT CALLBACK Win32Proc( HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam )
// Find window matching with hwnd // Find window matching with hwnd
list<Window *>::const_iterator win; list<SkinWindow *>::const_iterator win;
for( win = p_intf->p_sys->p_theme->WindowList.begin(); for( win = p_intf->p_sys->p_theme->WindowList.begin();
win != p_intf->p_sys->p_theme->WindowList.end(); win++ ) win != p_intf->p_sys->p_theme->WindowList.end(); win++ )
{ {
...@@ -293,7 +293,7 @@ void Win32Theme::AddWindow( string name, int x, int y, bool visible, ...@@ -293,7 +293,7 @@ void Win32Theme::AddWindow( string name, int x, int y, bool visible,
SetWindowLongPtr( hwnd, GWLP_USERDATA, (LONG_PTR)p_intf ); SetWindowLongPtr( hwnd, GWLP_USERDATA, (LONG_PTR)p_intf );
WindowList.push_back( (Window *)new OSWindow( p_intf, hwnd, x, y, visible, WindowList.push_back( (SkinWindow *)new OSWindow( p_intf, hwnd, x, y, visible,
fadetime, alpha, movealpha, dragdrop ) ) ; fadetime, alpha, movealpha, dragdrop ) ) ;
} }
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* win32_theme.h: Win32 implementation of the Theme class * win32_theme.h: Win32 implementation of the Theme class
***************************************************************************** *****************************************************************************
* Copyright (C) 2003 VideoLAN * Copyright (C) 2003 VideoLAN
* $Id: win32_theme.h,v 1.3 2003/04/20 20:28:39 ipkiss Exp $ * $Id: win32_theme.h,v 1.4 2003/04/21 21:51:16 asmax Exp $
* *
* Authors: Olivier Teulire <ipkiss@via.ecp.fr> * Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr> * Emmanuel Puig <karibu@via.ecp.fr>
...@@ -37,7 +37,7 @@ using namespace std; ...@@ -37,7 +37,7 @@ using namespace std;
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
struct intf_thread_t; struct intf_thread_t;
class Window; class SkinWindow;
class EventBank; class EventBank;
class BitmapBank; class BitmapBank;
class FontBank; class FontBank;
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* win32_window.cpp: Win32 implementation of the Window class * win32_window.cpp: Win32 implementation of the Window class
***************************************************************************** *****************************************************************************
* Copyright (C) 2003 VideoLAN * Copyright (C) 2003 VideoLAN
* $Id: win32_window.cpp,v 1.9 2003/04/20 16:45:44 karibu Exp $ * $Id: win32_window.cpp,v 1.10 2003/04/21 21:51:16 asmax Exp $
* *
* Authors: Olivier Teulire <ipkiss@via.ecp.fr> * Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr> * Emmanuel Puig <karibu@via.ecp.fr>
...@@ -66,7 +66,7 @@ SLWA SetLayeredWindowAttributes = ...@@ -66,7 +66,7 @@ SLWA SetLayeredWindowAttributes =
Win32Window::Win32Window( intf_thread_t *p_intf, HWND hwnd, int x, int y, Win32Window::Win32Window( intf_thread_t *p_intf, HWND hwnd, int x, int y,
bool visible, int transition, int normalalpha, int movealpha, bool visible, int transition, int normalalpha, int movealpha,
bool dragdrop ) bool dragdrop )
: Window( p_intf, x, y, visible, transition, normalalpha, movealpha, : SkinWindow( p_intf, x, y, visible, transition, normalalpha, movealpha,
dragdrop ) dragdrop )
{ {
// Set handles // Set handles
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* win32_window.h: Win32 implementation of the Window class * win32_window.h: Win32 implementation of the Window class
***************************************************************************** *****************************************************************************
* Copyright (C) 2003 VideoLAN * Copyright (C) 2003 VideoLAN
* $Id: win32_window.h,v 1.2 2003/04/12 21:43:27 asmax Exp $ * $Id: win32_window.h,v 1.3 2003/04/21 21:51:16 asmax Exp $
* *
* Authors: Olivier Teulire <ipkiss@via.ecp.fr> * Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr> * Emmanuel Puig <karibu@via.ecp.fr>
...@@ -36,7 +36,7 @@ class Graphics; ...@@ -36,7 +36,7 @@ class Graphics;
class Event; class Event;
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
class Win32Window : public Window class Win32Window : public SkinWindow
{ {
private: private:
// General parameters // General parameters
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment