Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
c13d9987
Commit
c13d9987
authored
Jul 06, 2005
by
Clément Stenac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Compile fix - refs #258
parent
6f5fb734
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
47 additions
and
3 deletions
+47
-3
modules/gui/wxwindows/interface.cpp
modules/gui/wxwindows/interface.cpp
+33
-0
modules/gui/wxwindows/wizard.cpp
modules/gui/wxwindows/wizard.cpp
+3
-3
modules/gui/wxwindows/wxwindows.cpp
modules/gui/wxwindows/wxwindows.cpp
+2
-0
modules/gui/wxwindows/wxwindows.h
modules/gui/wxwindows/wxwindows.h
+9
-0
No files found.
modules/gui/wxwindows/interface.cpp
View file @
c13d9987
...
@@ -55,6 +55,8 @@
...
@@ -55,6 +55,8 @@
#include "../../../share/vlc16x16.xpm"
#include "../../../share/vlc16x16.xpm"
#endif
#endif
static
int
Interact
(
intf_thread_t
*
,
user_interaction_t
*
,
vlc_bool_t
);
/*****************************************************************************
/*****************************************************************************
* Local class declarations.
* Local class declarations.
*****************************************************************************/
*****************************************************************************/
...
@@ -228,6 +230,9 @@ Interface::Interface( intf_thread_t *_p_intf, long style ):
...
@@ -228,6 +230,9 @@ Interface::Interface( intf_thread_t *_p_intf, long style ):
b_extra
=
VLC_FALSE
;
b_extra
=
VLC_FALSE
;
// b_undock = VLC_FALSE;
// b_undock = VLC_FALSE;
/* Allow user interaction */
p_intf
->
p_sys
->
p_main_interface
=
this
;
p_intf
->
pf_interact
=
::
Interact
;
extra_window
=
NULL
;
extra_window
=
NULL
;
...
@@ -1329,6 +1334,22 @@ void Interface::OnDiscNext( wxCommandEvent& WXUNUSED(event) )
...
@@ -1329,6 +1334,22 @@ void Interface::OnDiscNext( wxCommandEvent& WXUNUSED(event) )
}
}
#if wxUSE_DRAG_AND_DROP
#if wxUSE_DRAG_AND_DROP
/*****************************************************************************
* Interaction
*****************************************************************************/
int
Interface
::
Interact
(
user_interaction_t
*
p_interact
,
vlc_bool_t
b_block
)
{
if
(
p_interact
->
i_type
==
INTERACT_FATAL
)
{
fprintf
(
stderr
,
"Showing message -%s-
\n
"
,
p_interact
->
psz_description
);
wxFrame
*
p_message
=
new
wxFrame
(
this
,
-
1
,
wxU
(
p_interact
->
psz_description
));
p_message
->
Show
();
}
return
VLC_SUCCESS
;
}
/*****************************************************************************
/*****************************************************************************
* Definition of DragAndDrop class.
* Definition of DragAndDrop class.
*****************************************************************************/
*****************************************************************************/
...
@@ -1557,3 +1578,15 @@ void Systray::UpdateTooltip( const wxChar* tooltip )
...
@@ -1557,3 +1578,15 @@ void Systray::UpdateTooltip( const wxChar* tooltip )
SetIcon
(
wxIcon
(
vlc16x16_xpm
),
tooltip
);
SetIcon
(
wxIcon
(
vlc16x16_xpm
),
tooltip
);
}
}
#endif
#endif
/**
* Interaction entry point
*/
int
Interact
(
intf_thread_t
*
p_intf
,
user_interaction_t
*
p_interact
,
vlc_bool_t
b_block
)
{
fprintf
(
stderr
,
"Asking for interaction
\n
"
);
return
p_intf
->
p_sys
->
p_main_interface
->
Interact
(
p_interact
,
b_block
);
}
modules/gui/wxwindows/wizard.cpp
View file @
c13d9987
...
@@ -1030,8 +1030,8 @@ wizStreamingMethodPage::wizStreamingMethodPage( wxWizard *parent,
...
@@ -1030,8 +1030,8 @@ wizStreamingMethodPage::wizStreamingMethodPage( wxWizard *parent,
TEXTWIDTH
,
false
)
),
TEXTWIDTH
,
false
)
),
wxDefaultPosition
,
wxDefaultSize
);
wxDefaultPosition
,
wxDefaultSize
);
address_txtctrl
=
new
wxTextCtrl
(
this
,
-
1
,
wx
U
(
""
)
,
wxDefaultPosition
,
address_txtctrl
=
new
wxTextCtrl
(
this
,
-
1
,
wx
T
(
""
)
,
wxDefaultPosition
,
wxSize
(
200
,
25
));
wxSize
(
200
,
25
))
;
address_sizer
->
Add
(
address_text
,
0
,
wxALL
,
5
);
address_sizer
->
Add
(
address_text
,
0
,
wxALL
,
5
);
address_sizer
->
Add
(
address_txtctrl
,
0
,
wxALL
,
5
);
address_sizer
->
Add
(
address_txtctrl
,
0
,
wxALL
,
5
);
address_sizer
->
Layout
();
address_sizer
->
Layout
();
...
@@ -1085,7 +1085,7 @@ void wizStreamingMethodPage::OnWizardPageChanging(wxWizardEvent& event)
...
@@ -1085,7 +1085,7 @@ void wizStreamingMethodPage::OnWizardPageChanging(wxWizardEvent& event)
}
}
}
}
p_parent
->
SetStream
(
methods_array
[
i_method
].
psz_access
,
p_parent
->
SetStream
(
methods_array
[
i_method
].
psz_access
,
(
char
*
)
address_txtctrl
->
GetValue
().
mb_str
()
);
address_txtctrl
->
GetValue
().
mb_str
()
);
/* Set the action for the muxer page */
/* Set the action for the muxer page */
((
wizEncapPage
*
)
GetNext
())
->
SetAction
(
p_parent
->
GetAction
()
);
((
wizEncapPage
*
)
GetNext
())
->
SetAction
(
p_parent
->
GetAction
()
);
...
...
modules/gui/wxwindows/wxwindows.cpp
View file @
c13d9987
...
@@ -63,6 +63,7 @@ static void Init ( intf_thread_t * );
...
@@ -63,6 +63,7 @@ static void Init ( intf_thread_t * );
static
void
ShowDialog
(
intf_thread_t
*
,
int
,
int
,
intf_dialog_args_t
*
);
static
void
ShowDialog
(
intf_thread_t
*
,
int
,
int
,
intf_dialog_args_t
*
);
#if (wxCHECK_VERSION(2,5,0))
#if (wxCHECK_VERSION(2,5,0))
void
*
wxClassInfo_sm_classTable_BUGGY
=
0
;
void
*
wxClassInfo_sm_classTable_BUGGY
=
0
;
#endif
#endif
...
@@ -363,6 +364,7 @@ bool Instance::OnInit()
...
@@ -363,6 +364,7 @@ bool Instance::OnInit()
p_intf
->
p_sys
->
pf_show_dialog
=
ShowDialog
;
p_intf
->
p_sys
->
pf_show_dialog
=
ShowDialog
;
/* OK, initialization is over */
/* OK, initialization is over */
vlc_thread_ready
(
p_intf
);
vlc_thread_ready
(
p_intf
);
...
...
modules/gui/wxwindows/wxwindows.h
View file @
c13d9987
...
@@ -44,6 +44,7 @@
...
@@ -44,6 +44,7 @@
#include <wx/wizard.h>
#include <wx/wizard.h>
#include <wx/taskbar.h>
#include <wx/taskbar.h>
#include "vlc_keys.h"
#include "vlc_keys.h"
#include "vlc_interaction.h"
#if (!wxCHECK_VERSION(2,5,0))
#if (!wxCHECK_VERSION(2,5,0))
typedef
long
wxTreeItemIdValue
;
typedef
long
wxTreeItemIdValue
;
...
@@ -98,6 +99,8 @@ class AutoBuiltPanel;
...
@@ -98,6 +99,8 @@ class AutoBuiltPanel;
class
VideoWindow
;
class
VideoWindow
;
class
WindowSettings
;
class
WindowSettings
;
namespace
wxvlc
{
class
Interface
;};
/*****************************************************************************
/*****************************************************************************
* intf_sys_t: description and status of wxwindows interface
* intf_sys_t: description and status of wxwindows interface
*****************************************************************************/
*****************************************************************************/
...
@@ -140,6 +143,9 @@ struct intf_sys_t
...
@@ -140,6 +143,9 @@ struct intf_sys_t
int
i_first_hotkey_event
;
int
i_first_hotkey_event
;
int
i_hotkeys
;
int
i_hotkeys
;
/* Main interface */
wxvlc
::
Interface
*
p_main_interface
;
/* Embedded vout */
/* Embedded vout */
VideoWindow
*
p_video_window
;
VideoWindow
*
p_video_window
;
wxBoxSizer
*
p_video_sizer
;
wxBoxSizer
*
p_video_sizer
;
...
@@ -371,6 +377,9 @@ public:
...
@@ -371,6 +377,9 @@ public:
wxTimer
m_controls_timer
;
wxTimer
m_controls_timer
;
wxTimer
m_slider_timer
;
wxTimer
m_slider_timer
;
/* Interaction */
int
Interact
(
user_interaction_t
*
,
vlc_bool_t
);
private:
private:
void
SetupHotkeys
();
void
SetupHotkeys
();
void
CreateOurMenuBar
();
void
CreateOurMenuBar
();
...
...
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