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
adce9d32
Commit
adce9d32
authored
Apr 09, 2004
by
Clément Stenac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Beginning of an improved streaming wizard. Do not use at the moment
parent
7a43f27a
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
1467 additions
and
1 deletion
+1467
-1
modules/gui/wxwindows/Modules.am
modules/gui/wxwindows/Modules.am
+1
-0
modules/gui/wxwindows/dialogs.cpp
modules/gui/wxwindows/dialogs.cpp
+18
-0
modules/gui/wxwindows/interface.cpp
modules/gui/wxwindows/interface.cpp
+7
-0
modules/gui/wxwindows/streamwizard.cpp
modules/gui/wxwindows/streamwizard.cpp
+2
-1
modules/gui/wxwindows/wizard.cpp
modules/gui/wxwindows/wizard.cpp
+1409
-0
modules/gui/wxwindows/wxwindows.h
modules/gui/wxwindows/wxwindows.h
+30
-0
No files found.
modules/gui/wxwindows/Modules.am
View file @
adce9d32
...
...
@@ -6,6 +6,7 @@ SOURCES_wxwindows = \
open.cpp \
streamout.cpp \
streamwizard.cpp \
wizard.cpp \
messages.cpp \
playlist.cpp \
iteminfo.cpp \
...
...
modules/gui/wxwindows/dialogs.cpp
View file @
adce9d32
...
...
@@ -62,6 +62,8 @@ BEGIN_EVENT_TABLE(DialogsProvider, wxFrame)
DialogsProvider
::
OnPreferences
)
EVT_COMMAND
(
INTF_DIALOG_STREAMWIZARD
,
wxEVT_DIALOG
,
DialogsProvider
::
OnStreamWizardDialog
)
EVT_COMMAND
(
INTF_DIALOG_WIZARD
,
wxEVT_DIALOG
,
DialogsProvider
::
OnWizardDialog
)
EVT_COMMAND
(
INTF_DIALOG_FILEINFO
,
wxEVT_DIALOG
,
DialogsProvider
::
OnFileInfo
)
EVT_COMMAND
(
INTF_DIALOG_BOOKMARKS
,
wxEVT_DIALOG
,
...
...
@@ -88,6 +90,7 @@ DialogsProvider::DialogsProvider( intf_thread_t *_p_intf, wxWindow *p_parent )
p_prefs_dialog
=
NULL
;
p_file_generic_dialog
=
NULL
;
p_streamwizard_dialog
=
NULL
;
p_wizard_dialog
=
NULL
;
p_bookmarks_dialog
=
NULL
;
/* Give our interface a nice little icon */
...
...
@@ -116,6 +119,7 @@ DialogsProvider::~DialogsProvider()
if
(
p_fileinfo_dialog
)
delete
p_fileinfo_dialog
;
if
(
p_file_generic_dialog
)
delete
p_file_generic_dialog
;
if
(
p_streamwizard_dialog
)
delete
p_streamwizard_dialog
;
if
(
p_wizard_dialog
)
delete
p_wizard_dialog
;
if
(
p_bookmarks_dialog
)
delete
p_bookmarks_dialog
;
...
...
@@ -203,6 +207,20 @@ void DialogsProvider::OnStreamWizardDialog( wxCommandEvent& WXUNUSED(event) )
}
}
void
DialogsProvider
::
OnWizardDialog
(
wxCommandEvent
&
WXUNUSED
(
event
)
)
{
fprintf
(
stderr
,
"AHAH %p
\n
"
,
p_intf
);
p_wizard_dialog
=
new
WizardDialog
(
p_intf
,
this
);
if
(
p_wizard_dialog
)
{
p_wizard_dialog
->
Run
();
}
delete
p_wizard_dialog
;
p_wizard_dialog
=
NULL
;
}
void
DialogsProvider
::
OnBookmarks
(
wxCommandEvent
&
WXUNUSED
(
event
)
)
{
/* Show/hide the open dialog */
...
...
modules/gui/wxwindows/interface.cpp
View file @
adce9d32
...
...
@@ -118,6 +118,7 @@ enum
EjectDisc_Event
,
StreamWizard_Event
,
Wizard_Event
,
Playlist_Event
,
Logs_Event
,
...
...
@@ -184,6 +185,7 @@ BEGIN_EVENT_TABLE(Interface, wxFrame)
EVT_MENU
(
OpenNet_Event
,
Interface
::
OnShowDialog
)
EVT_MENU
(
OpenSat_Event
,
Interface
::
OnShowDialog
)
EVT_MENU
(
StreamWizard_Event
,
Interface
::
OnShowDialog
)
EVT_MENU
(
Wizard_Event
,
Interface
::
OnShowDialog
)
EVT_MENU
(
StopStream_Event
,
Interface
::
OnStopStream
)
EVT_MENU
(
PlayStream_Event
,
Interface
::
OnPlayStream
)
EVT_MENU
(
PrevStream_Event
,
Interface
::
OnPrevStream
)
...
...
@@ -354,6 +356,8 @@ void Interface::CreateOurMenuBar()
file_menu
->
Append
(
StreamWizard_Event
,
wxU
(
_
(
"Streaming &Wizard...
\t
Ctrl-W"
)),
wxU
(
_
(
HELP_STREAMWIZARD
))
);
file_menu
->
Append
(
Wizard_Event
,
wxU
(
_
(
"New Wizard..."
)),
wxU
(
_
(
HELP_STREAMWIZARD
))
);
file_menu
->
AppendSeparator
();
file_menu
->
Append
(
Exit_Event
,
wxU
(
_
(
"E&xit
\t
Ctrl-X"
)),
wxU
(
_
(
HELP_EXIT
))
);
...
...
@@ -874,6 +878,9 @@ void Interface::OnShowDialog( wxCommandEvent& event )
case
StreamWizard_Event
:
i_id
=
INTF_DIALOG_STREAMWIZARD
;
break
;
case
Wizard_Event
:
i_id
=
INTF_DIALOG_WIZARD
;
break
;
case
Bookmarks_Event
:
i_id
=
INTF_DIALOG_BOOKMARKS
;
break
;
...
...
modules/gui/wxwindows/streamwizard.cpp
View file @
adce9d32
...
...
@@ -2,7 +2,7 @@
* stream.cpp : wxWindows plugin for vlc
*****************************************************************************
* Copyright (C) 2000-2004 VideoLAN
* $Id
: streamwizard.cpp,v 1.7 2004/03/01 18:31:13 gbazin Exp
$
* $Id$
*
* Authors: Clment Stenac <zorglub@videolan.org>
*
...
...
@@ -171,6 +171,7 @@ void StreamDialog::OnOpen( wxCommandEvent& event )
if
(
p_open_dialog
)
{
p_open_dialog
->
Show
();
p_open_dialog
->
Enable
();
mrl
=
p_open_dialog
->
mrl
;
sout_button
->
Enable
();
step2_label
->
Enable
();
...
...
modules/gui/wxwindows/wizard.cpp
0 → 100644
View file @
adce9d32
This diff is collapsed.
Click to expand it.
modules/gui/wxwindows/wxwindows.h
View file @
adce9d32
...
...
@@ -41,6 +41,7 @@
#include <wx/gauge.h>
#include <wx/accel.h>
#include <wx/checkbox.h>
#include <wx/wizard.h>
#include "vlc_keys.h"
/* Hmmm, work-around for newest wxWin */
...
...
@@ -150,6 +151,7 @@ class Playlist;
class
Messages
;
class
FileInfo
;
class
StreamDialog
;
class
WizardDialog
;
class
ItemInfoDialog
;
class
NewGroup
;
class
ExportPlaylist
;
...
...
@@ -267,6 +269,8 @@ private:
wxMenu
*
p_navig_menu
;
};
/*class BookmarksDialog;
*/
/* Dialogs Provider */
class
DialogsProvider
:
public
wxFrame
{
...
...
@@ -285,6 +289,7 @@ private:
void
OnFileInfo
(
wxCommandEvent
&
event
);
void
OnPreferences
(
wxCommandEvent
&
event
);
void
OnStreamWizardDialog
(
wxCommandEvent
&
event
);
void
OnWizardDialog
(
wxCommandEvent
&
event
);
void
OnBookmarks
(
wxCommandEvent
&
event
);
void
OnOpenFileGeneric
(
wxCommandEvent
&
event
);
...
...
@@ -312,6 +317,7 @@ public:
Messages
*
p_messages_dialog
;
FileInfo
*
p_fileinfo_dialog
;
StreamDialog
*
p_streamwizard_dialog
;
WizardDialog
*
p_wizard_dialog
;
wxFrame
*
p_prefs_dialog
;
wxWindow
*
p_bookmarks_dialog
;
wxFileDialog
*
p_file_generic_dialog
;
...
...
@@ -696,6 +702,30 @@ private:
SoutDialog
*
p_sout_dialog
;
};
/* Wizard */
class
WizardDialog
:
public
wxWizard
{
public:
/* Constructor */
WizardDialog
(
intf_thread_t
*
p_intf
,
wxWindow
*
p_parent
);
virtual
~
WizardDialog
();
void
SetTranscode
(
char
*
vcodec
,
int
vb
,
char
*
acodec
,
int
ab
);
void
SetMrl
(
const
char
*
mrl
);
void
SetStream
(
char
*
method
,
char
*
address
);
void
SetTranscodeOut
(
char
*
address
);
void
SetAction
(
int
i_action
);
int
GetAction
();
void
SetMux
(
char
*
mux
);
void
Run
();
int
i_action
;
private:
int
vb
,
ab
;
char
*
vcodec
,
*
acodec
,
*
method
,
*
address
,
*
mrl
,
*
mux
;
DECLARE_EVENT_TABLE
();
intf_thread_t
*
p_intf
;
};
/* Preferences Dialog */
...
...
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