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
c750b4b0
Commit
c750b4b0
authored
Jan 14, 2003
by
Eric Petit
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* Added a file panel for subtitles file selection.
parent
ae073a12
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
41 additions
and
6 deletions
+41
-6
modules/gui/beos/InterfaceWindow.cpp
modules/gui/beos/InterfaceWindow.cpp
+29
-1
modules/gui/beos/InterfaceWindow.h
modules/gui/beos/InterfaceWindow.h
+2
-1
modules/gui/beos/MsgVals.h
modules/gui/beos/MsgVals.h
+3
-1
modules/gui/beos/VlcWrapper.cpp
modules/gui/beos/VlcWrapper.cpp
+5
-2
modules/gui/beos/VlcWrapper.h
modules/gui/beos/VlcWrapper.h
+2
-1
No files found.
modules/gui/beos/InterfaceWindow.cpp
View file @
c750b4b0
...
...
@@ -2,7 +2,7 @@
* InterfaceWindow.cpp: beos interface
*****************************************************************************
* Copyright (C) 1999, 2000, 2001 VideoLAN
* $Id: InterfaceWindow.cpp,v 1.1
5 2003/01/12 02:08:38
titer Exp $
* $Id: InterfaceWindow.cpp,v 1.1
6 2003/01/14 14:48:55
titer Exp $
*
* Authors: Jean-Marc Dressler <polux@via.ecp.fr>
* Samuel Hocevar <sam@zoy.org>
...
...
@@ -63,6 +63,7 @@ InterfaceWindow::InterfaceWindow( BRect frame, const char *name,
B_NOT_ZOOMABLE
|
B_WILL_ACCEPT_FIRST_CLICK
|
B_ASYNCHRONOUS_CONTROLS
),
p_intf
(
p_interface
),
fFilePanel
(
NULL
),
fSubtitlesPanel
(
NULL
),
fLastUpdateTime
(
system_time
()
),
fSettings
(
new
BMessage
(
'
sett
'
)
)
{
...
...
@@ -124,6 +125,9 @@ InterfaceWindow::InterfaceWindow( BRect frame, const char *name,
fileMenu
->
AddItem
(
new
CDMenu
(
"Open Disc"
)
);
fileMenu
->
AddItem
(
new
BMenuItem
(
"Load a subtitle file"
B_UTF8_ELLIPSIS
,
new
BMessage
(
LOAD_SUBFILE
)
)
);
fileMenu
->
AddSeparatorItem
();
fileMenu
->
AddItem
(
new
BMenuItem
(
"Play List"
B_UTF8_ELLIPSIS
,
new
BMessage
(
OPEN_PLAYLIST
),
'P'
)
);
...
...
@@ -261,6 +265,30 @@ void InterfaceWindow::MessageReceived( BMessage * p_message )
}
break
;
case
LOAD_SUBFILE
:
if
(
fSubtitlesPanel
)
{
fSubtitlesPanel
->
Show
();
break
;
}
fSubtitlesPanel
=
new
BFilePanel
();
fSubtitlesPanel
->
SetTarget
(
this
);
fSubtitlesPanel
->
SetMessage
(
new
BMessage
(
SUBFILE_RECEIVED
)
);
fSubtitlesPanel
->
Show
();
break
;
case
SUBFILE_RECEIVED
:
{
entry_ref
ref
;
if
(
p_message
->
FindRef
(
"refs"
,
0
,
&
ref
)
==
B_OK
)
{
BPath
path
(
&
ref
);
if
(
path
.
InitCheck
()
==
B_OK
)
p_wrapper
->
LoadSubFile
(
(
char
*
)
path
.
Path
()
);
}
break
;
}
case
STOP_PLAYBACK
:
// this currently stops playback not nicely
if
(
playback_status
>
UNDEF_S
)
...
...
modules/gui/beos/InterfaceWindow.h
View file @
c750b4b0
...
...
@@ -2,7 +2,7 @@
* InterfaceWindow.h: BeOS interface window class prototype
*****************************************************************************
* Copyright (C) 1999, 2000, 2001 VideoLAN
* $Id: InterfaceWindow.h,v 1.
7 2003/01/08 02:09:1
5 titer Exp $
* $Id: InterfaceWindow.h,v 1.
8 2003/01/14 14:48:5
5 titer Exp $
*
* Authors: Jean-Marc Dressler <polux@via.ecp.fr>
* Tony Castley <tcastley@mail.powerup.com.au>
...
...
@@ -128,6 +128,7 @@ class InterfaceWindow : public BWindow
bool
fPlaylistIsEmpty
;
BFilePanel
*
fFilePanel
;
BFilePanel
*
fSubtitlesPanel
;
PlayListWindow
*
fPlaylistWindow
;
PreferencesWindow
*
fPreferencesWindow
;
BMenuBar
*
fMenuBar
;
...
...
modules/gui/beos/MsgVals.h
View file @
c750b4b0
...
...
@@ -2,7 +2,7 @@
* MsgVals.h
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: MsgVals.h,v 1.
3 2002/10/28 16:55:0
5 titer Exp $
* $Id: MsgVals.h,v 1.
4 2003/01/14 14:48:5
5 titer Exp $
*
* Authors: Tony Castley <tcastley@mail.powerup.com.au>
* Stephan Aßmus <stippi@yellowbites.com>
...
...
@@ -30,6 +30,8 @@
const
uint32
OPEN_FILE
=
'
opfl
'
;
const
uint32
OPEN_DVD
=
'
opdv
'
;
const
uint32
LOAD_SUBFILE
=
'
losu
'
;
const
uint32
SUBFILE_RECEIVED
=
'
sure
'
;
const
uint32
OPEN_PLAYLIST
=
'
oppl
'
;
const
uint32
STOP_PLAYBACK
=
'
stpl
'
;
const
uint32
START_PLAYBACK
=
'
play
'
;
...
...
modules/gui/beos/VlcWrapper.cpp
View file @
c750b4b0
...
...
@@ -2,7 +2,7 @@
* VlcWrapper.cpp: BeOS plugin for vlc (derived from MacOS X port)
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: VlcWrapper.cpp,v 1.1
7 2003/01/12 02:08:39
titer Exp $
* $Id: VlcWrapper.cpp,v 1.1
8 2003/01/14 14:48:55
titer Exp $
*
* Authors: Florian G. Pflug <fgp@phlo.org>
* Jon Lech Johansen <jon-vl@nanocrew.net>
...
...
@@ -241,7 +241,10 @@ void VlcWrapper::openDisc(BString o_type, BString o_device, int i_title, int i_c
PLAYLIST_APPEND
|
PLAYLIST_GO
,
PLAYLIST_END
);
}
void
VlcWrapper
::
LoadSubFile
(
char
*
psz_file
)
{
config_PutPsz
(
p_intf
,
"sub-file"
,
strdup
(
psz_file
)
);
}
void
VlcWrapper
::
ToggleLanguage
(
int
i_language
)
{
...
...
modules/gui/beos/VlcWrapper.h
View file @
c750b4b0
...
...
@@ -2,7 +2,7 @@
* VlcWrapper.h: BeOS plugin for vlc (derived from MacOS X port)
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: VlcWrapper.h,v 1.1
2 2003/01/12 02:08:39
titer Exp $
* $Id: VlcWrapper.h,v 1.1
3 2003/01/14 14:48:55
titer Exp $
*
* Authors: Florian G. Pflug <fgp@phlo.org>
* Jon Lech Johansen <jon-vl@nanocrew.net>
...
...
@@ -71,6 +71,7 @@ public:
void
openFiles
(
BList
*
o_files
,
bool
replace
=
true
);
void
openDisc
(
BString
o_type
,
BString
o_device
,
int
i_title
,
int
i_chapter
);
void
LoadSubFile
(
char
*
psz_file
);
void
ToggleLanguage
(
int
i_language
);
void
ToggleSubtitle
(
int
i_subtitle
);
const
char
*
getTimeAsString
();
...
...
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