Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
c7cf1f08
Commit
c7cf1f08
authored
Nov 23, 2002
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/gui/wxwindows/*: a few fixes for the win32 build.
parent
d073ae07
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
41 additions
and
29 deletions
+41
-29
modules/gui/wxwindows/interface.cpp
modules/gui/wxwindows/interface.cpp
+12
-7
modules/gui/wxwindows/playlist.cpp
modules/gui/wxwindows/playlist.cpp
+8
-7
modules/gui/wxwindows/timer.cpp
modules/gui/wxwindows/timer.cpp
+9
-8
modules/gui/wxwindows/wxwindows.cpp
modules/gui/wxwindows/wxwindows.cpp
+12
-7
No files found.
modules/gui/wxwindows/interface.cpp
View file @
c7cf1f08
...
...
@@ -2,7 +2,7 @@
* interface.cpp : wxWindows plugin for vlc
*****************************************************************************
* Copyright (C) 2000-2001 VideoLAN
* $Id: interface.cpp,v 1.
7 2002/11/23 14:28:51
gbazin Exp $
* $Id: interface.cpp,v 1.
8 2002/11/23 16:17:12
gbazin Exp $
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
*
...
...
@@ -29,18 +29,19 @@
#include <string.h>
/* strerror() */
#include <stdio.h>
#include <wx/wxprec.h>
#include <wx/wx.h>
/* Let vlc take care of the i18n stuff */
#undef _
#include <vlc/vlc.h>
#ifdef WIN32
/* mingw32 hack */
#undef Yield
#undef CreateDialog
#endif
#include <vlc/vlc.h>
/* Let vlc take care of the i18n stuff */
#define WXINTL_NO_GETTEXT_MACRO
#include <wx/wxprec.h>
#include <wx/wx.h>
#include <vlc/intf.h>
#include "wxwindows.h"
...
...
@@ -58,6 +59,8 @@
#include "bitmaps/previous.xpm"
#include "bitmaps/next.xpm"
#include "bitmaps/playlist.xpm"
#define TOOLBAR_BMP_WIDTH 24
#define TOOLBAR_BMP_HEIGHT 24
/* include the icon graphic */
#include "share/vlc32x32.xpm"
...
...
@@ -252,6 +255,8 @@ void Interface::CreateOurToolBar()
wxToolBar
*
toolbar
=
CreateToolBar
(
wxTB_HORIZONTAL
|
wxTB_TEXT
|
wxTB_FLAT
|
wxTB_DOCKABLE
);
toolbar
->
SetToolBitmapSize
(
wxSize
(
TOOLBAR_BMP_WIDTH
,
TOOLBAR_BMP_HEIGHT
)
);
toolbar
->
AddTool
(
OpenFile_Event
,
_
(
"File"
),
*
p_bmp_file
,
HELP_FILE
);
toolbar
->
AddTool
(
OpenFile_Event
,
_
(
"Disc"
),
*
p_bmp_disc
,
HELP_DISC
);
toolbar
->
AddTool
(
OpenFile_Event
,
_
(
"Net"
),
*
p_bmp_net
,
HELP_NET
);
...
...
modules/gui/wxwindows/playlist.cpp
View file @
c7cf1f08
...
...
@@ -29,19 +29,20 @@
#include <string.h>
/* strerror() */
#include <stdio.h>
#include <wx/wxprec.h>
#include <wx/wx.h>
#include <wx/listctrl.h>
/* Let vlc take care of the i18n stuff */
#undef _
#include <vlc/vlc.h>
#ifdef WIN32
/* mingw32 hack */
#undef Yield
#undef CreateDialog
#endif
#include <vlc/vlc.h>
/* Let vlc take care of the i18n stuff */
#define WXINTL_NO_GETTEXT_MACRO
#include <wx/wxprec.h>
#include <wx/wx.h>
#include <wx/listctrl.h>
#include <vlc/intf.h>
#include "wxwindows.h"
...
...
modules/gui/wxwindows/timer.cpp
View file @
c7cf1f08
...
...
@@ -2,7 +2,7 @@
* timer.cpp : wxWindows plugin for vlc
*****************************************************************************
* Copyright (C) 2000-2001 VideoLAN
* $Id: timer.cpp,v 1.
4 2002/11/23 14:28:51
gbazin Exp $
* $Id: timer.cpp,v 1.
5 2002/11/23 16:17:12
gbazin Exp $
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
*
...
...
@@ -29,19 +29,20 @@
#include <string.h>
/* strerror() */
#include <stdio.h>
#include <wx/wxprec.h>
#include <wx/wx.h>
#include <wx/timer.h>
/* Let vlc take care of the i18n stuff */
#undef _
#include <vlc/vlc.h>
#ifdef WIN32
/* mingw32 hack */
#undef Yield
#undef CreateDialog
#endif
#include <vlc/vlc.h>
/* Let vlc take care of the i18n stuff */
#define WXINTL_NO_GETTEXT_MACRO
#include <wx/wxprec.h>
#include <wx/wx.h>
#include <wx/timer.h>
#include <vlc/intf.h>
#include "wxwindows.h"
...
...
modules/gui/wxwindows/wxwindows.cpp
View file @
c7cf1f08
...
...
@@ -2,7 +2,7 @@
* wxwindows.cpp : wxWindows plugin for vlc
*****************************************************************************
* Copyright (C) 2000-2001 VideoLAN
* $Id: wxwindows.cpp,v 1.
5 2002/11/23 14:28:51
gbazin Exp $
* $Id: wxwindows.cpp,v 1.
6 2002/11/23 16:17:12
gbazin Exp $
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
*
...
...
@@ -29,18 +29,19 @@
#include <string.h>
/* strerror() */
#include <stdio.h>
#include <wx/wxprec.h>
#include <wx/wx.h>
/* Let vlc take care of the i18n stuff */
#undef _
#include <vlc/vlc.h>
#ifdef WIN32
/* mingw32 hack */
#undef Yield
#undef CreateDialog
#endif
#include <vlc/vlc.h>
/* Let vlc take care of the i18n stuff */
#define WXINTL_NO_GETTEXT_MACRO
#include <wx/wxprec.h>
#include <wx/wx.h>
#include <vlc/intf.h>
#include "wxwindows.h"
...
...
@@ -77,6 +78,8 @@ vlc_module_begin();
set_description
(
(
char
*
)
_
(
"wxWindows interface module"
)
);
set_capability
(
"interface"
,
50
);
set_callbacks
(
Open
,
Close
);
add_shortcut
(
"wxwindows"
);
add_shortcut
(
"wxwin"
);
set_program
(
"wxvlc"
);
vlc_module_end
();
...
...
@@ -138,7 +141,9 @@ static void Close( vlc_object_t *p_this )
*****************************************************************************/
static
void
Run
(
intf_thread_t
*
p_intf
)
{
#if !defined( WIN32 )
static
char
*
p_args
[]
=
{
""
};
#endif
/* Hack to pass the p_intf pointer to the new wxWindow Instance object */
wxTheApp
=
new
Instance
(
p_intf
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment