Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
1129e6cb
Commit
1129e6cb
authored
Aug 03, 2005
by
Christophe Mutricy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Renaming of wxwidgets options. Close the renaming (refs #80)
parent
0bd43e4c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
19 deletions
+28
-19
NEWS
NEWS
+2
-0
modules/gui/wxwidgets/wxwidgets.cpp
modules/gui/wxwidgets/wxwidgets.cpp
+25
-18
modules/gui/wxwidgets/wxwidgets.h
modules/gui/wxwidgets/wxwidgets.h
+1
-1
No files found.
NEWS
View file @
1129e6cb
...
...
@@ -16,6 +16,8 @@ Interfaces:
* Mac OS X
- new streaming and transcoding wizard with the same functionality as the WxWidgets one
* wxWidgets
- Rename wxWindows interface in wxWidgets.
- All the --wxwin-* options are now --wx-*
- VLC update checker
Changes between 0.8.1 and 0.8.2:
...
...
modules/gui/wxwidgets/wxwidgets.cpp
View file @
1129e6cb
/*****************************************************************************
* wxwi
ndow
s.cpp : wxWidgets plugin for vlc
* wxwi
dget
s.cpp : wxWidgets plugin for vlc
*****************************************************************************
* Copyright (C) 2000-2005 the VideoLAN team
* $Id$
...
...
@@ -41,7 +41,7 @@
/* Temporary hack */
#if defined(WIN32) && defined(_WX_INIT_H_)
#if (wxMAJOR_VERSION <= 2) && (wxMINOR_VERSION <= 5) && (wxRELEASE_NUMBER < 3)
/* Hack to detect wxWi
ndow
s 2.5 which has a different wxEntry() prototype */
/* Hack to detect wxWi
dget
s 2.5 which has a different wxEntry() prototype */
extern
int
wxEntry
(
HINSTANCE
hInstance
,
HINSTANCE
hPrevInstance
=
NULL
,
char
*
pCmdLine
=
NULL
,
int
nCmdShow
=
SW_NORMAL
);
#endif
...
...
@@ -120,23 +120,30 @@ vlc_module_begin();
add_shortcut
(
"wxwidgets"
);
set_program
(
"wxvlc"
);
add_bool
(
"wx
win
-embed"
,
1
,
NULL
,
add_bool
(
"wx-embed"
,
1
,
NULL
,
EMBED_TEXT
,
EMBED_LONGTEXT
,
VLC_FALSE
);
add_bool
(
"wxwin-bookmarks"
,
0
,
NULL
,
add_deprecated
(
"wxwin-enbed"
,
VLC_FALSE
);
/*Deprecated since 0.8.4*/
add_bool
(
"wx-bookmarks"
,
0
,
NULL
,
BOOKMARKS_TEXT
,
BOOKMARKS_LONGTEXT
,
VLC_FALSE
);
add_bool
(
"wxwin-taskbar"
,
1
,
NULL
,
add_deprecated
(
"wxwin-bookmarks"
,
VLC_FALSE
);
/*Deprecated since 0.8.4*/
add_bool
(
"wx-taskbar"
,
1
,
NULL
,
TASKBAR_TEXT
,
TASKBAR_LONGTEXT
,
VLC_FALSE
);
add_bool
(
"wxwin-minimal"
,
0
,
NULL
,
add_deprecated
(
"wxwin-taskbar"
,
VLC_FALSE
);
/*Deprecated since 0.8.4*/
add_bool
(
"wx-minimal"
,
0
,
NULL
,
MINIMAL_TEXT
,
MINIMAL_LONGTEXT
,
VLC_TRUE
);
add_bool
(
"wxwin-autosize"
,
1
,
NULL
,
add_deprecated
(
"wxwin-minimal"
,
VLC_FALSE
);
/*Deprecated since 0.8.4*/
add_bool
(
"wx-autosize"
,
1
,
NULL
,
SIZE_TO_VIDEO_TEXT
,
SIZE_TO_VIDEO_LONGTEXT
,
VLC_TRUE
);
add_deprecated
(
"wxwin-autosize"
,
VLC_FALSE
);
/*Deprecated since 0.8.4*/
#ifdef wxHAS_TASK_BAR_ICON
add_bool
(
"wx
win
-systray"
,
0
,
NULL
,
add_bool
(
"wx-systray"
,
0
,
NULL
,
SYSTRAY_TEXT
,
SYSTRAY_LONGTEXT
,
VLC_FALSE
);
add_deprecated
(
"wxwin-systray"
,
VLC_FALSE
);
/*Deprecated since 0.8.4*/
#endif
add_string
(
"wx
win
-config-last"
,
NULL
,
NULL
,
add_string
(
"wx-config-last"
,
NULL
,
NULL
,
"last config"
,
"last config"
,
VLC_TRUE
);
change_autosave
();
add_deprecated
(
"wxwin-config-last"
,
VLC_FALSE
);
/*Deprecated since 0.8.4*/
add_submodule
();
set_description
(
_
(
"wxWidgets dialogs provider"
)
);
...
...
@@ -168,7 +175,7 @@ static int Open( vlc_object_t *p_this )
p_intf
->
p_sys
->
p_sub
=
msg_Subscribe
(
p_intf
);
/* Initialize wxWi
ndow
s thread */
/* Initialize wxWi
dget
s thread */
p_intf
->
p_sys
->
b_playing
=
0
;
p_intf
->
p_sys
->
p_input
=
NULL
;
...
...
@@ -185,7 +192,7 @@ static int Open( vlc_object_t *p_this )
p_intf
->
b_play
=
VLC_TRUE
;
p_intf
->
p_sys
->
b_video_autosize
=
config_GetInt
(
p_intf
,
"wx
win
-autosize"
);
config_GetInt
(
p_intf
,
"wx-autosize"
);
return
VLC_SUCCESS
;
}
...
...
@@ -233,7 +240,7 @@ static void Close( vlc_object_t *p_this )
}
/*****************************************************************************
* Run: wxWi
ndow
s thread
* Run: wxWi
dget
s thread
*****************************************************************************/
//when is this called?
...
...
@@ -253,7 +260,7 @@ static void Run( intf_thread_t *p_intf )
{
/* The module is used in dialog provider mode */
/* Create a new thread for wxWi
ndow
s */
/* Create a new thread for wxWi
dget
s */
if
(
vlc_thread_create
(
p_intf
,
"Skins Dialogs Thread"
,
Init
,
0
,
VLC_TRUE
)
)
{
...
...
@@ -275,7 +282,7 @@ static void Init( intf_thread_t *p_intf )
int
i_args
=
1
;
#endif
/* Hack to pass the p_intf pointer to the new wxWi
ndow
Instance object */
/* Hack to pass the p_intf pointer to the new wxWi
dgets
Instance object */
#ifdef wxTheApp
wxApp
::
SetInstance
(
new
Instance
(
p_intf
)
);
#else
...
...
@@ -324,7 +331,7 @@ IMPLEMENT_APP_NO_MAIN(Instance)
bool
Instance
::
OnInit
()
{
/* Initialization of i18n stuff.
* Usefull for things we don't have any control over, like wxWi
ndow
s
* Usefull for things we don't have any control over, like wxWi
dget
s
* provided facilities (eg. open file dialog) */
locale
.
Init
(
wxLANGUAGE_DEFAULT
);
...
...
@@ -343,7 +350,7 @@ bool Instance::OnInit()
{
/* The module is used in interface mode */
long
style
=
wxDEFAULT_FRAME_STYLE
;
if
(
!
config_GetInt
(
p_intf
,
"wx
win
-taskbar"
)
)
if
(
!
config_GetInt
(
p_intf
,
"wx-taskbar"
)
)
{
style
=
wxDEFAULT_FRAME_STYLE
|
wxFRAME_NO_TASKBAR
;
}
...
...
@@ -450,7 +457,7 @@ WindowSettings::WindowSettings( intf_thread_t *_p_intf )
if
(
p_intf
->
pf_show_dialog
)
return
;
/* Parse the configuration */
psz_org
=
psz
=
config_GetPsz
(
p_intf
,
"wx
win
-config-last"
);
psz_org
=
psz
=
config_GetPsz
(
p_intf
,
"wx-config-last"
);
if
(
!
psz
||
*
psz
==
'\0'
)
return
;
msg_Dbg
(
p_intf
,
"Using last windows config '%s'"
,
psz
);
...
...
@@ -557,7 +564,7 @@ WindowSettings::~WindowSettings( )
size
[
i
].
x
,
size
[
i
].
y
);
}
config_PutPsz
(
p_intf
,
"wx
win
-config-last"
,
sCfg
.
mb_str
()
);
config_PutPsz
(
p_intf
,
"wx-config-last"
,
sCfg
.
mb_str
()
);
}
void
WindowSettings
::
SetScreen
(
int
i_screen_w
,
int
i_screen_h
)
...
...
modules/gui/wxwidgets/wxwidgets.h
View file @
1129e6cb
/*****************************************************************************
* wxwi
ndow
s.h: private wxWindows interface description
* wxwi
dget
s.h: private wxWindows interface description
*****************************************************************************
* Copyright (C) 1999-2005 the VideoLAN team
* $Id$
...
...
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