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
2891094d
Commit
2891094d
authored
Jan 22, 2003
by
Eric Petit
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* Fixed title / chapter menus
* Clean up
parent
d5fe9f34
Changes
8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
289 additions
and
504 deletions
+289
-504
modules/gui/beos/InterfaceWindow.cpp
modules/gui/beos/InterfaceWindow.cpp
+42
-246
modules/gui/beos/InterfaceWindow.h
modules/gui/beos/InterfaceWindow.h
+1
-11
modules/gui/beos/ListViews.cpp
modules/gui/beos/ListViews.cpp
+5
-3
modules/gui/beos/ListViews.h
modules/gui/beos/ListViews.h
+5
-2
modules/gui/beos/MediaControlView.cpp
modules/gui/beos/MediaControlView.cpp
+3
-3
modules/gui/beos/PlayListWindow.cpp
modules/gui/beos/PlayListWindow.cpp
+2
-2
modules/gui/beos/VlcWrapper.cpp
modules/gui/beos/VlcWrapper.cpp
+176
-181
modules/gui/beos/VlcWrapper.h
modules/gui/beos/VlcWrapper.h
+55
-56
No files found.
modules/gui/beos/InterfaceWindow.cpp
View file @
2891094d
This diff is collapsed.
Click to expand it.
modules/gui/beos/InterfaceWindow.h
View file @
2891094d
...
...
@@ -2,7 +2,7 @@
* InterfaceWindow.h: BeOS interface window class prototype
*****************************************************************************
* Copyright (C) 1999, 2000, 2001 VideoLAN
* $Id: InterfaceWindow.h,v 1.
8 2003/01/14 14:48:55
titer Exp $
* $Id: InterfaceWindow.h,v 1.
9 2003/01/22 01:13:22
titer Exp $
*
* Authors: Jean-Marc Dressler <polux@via.ecp.fr>
* Tony Castley <tcastley@mail.powerup.com.au>
...
...
@@ -114,14 +114,6 @@ class InterfaceWindow : public BWindow
bool
hasTitles
=
false
);
void
_UpdateSpeedMenu
(
int
rate
);
void
_InputStreamChanged
();
status_t
_LoadSettings
(
BMessage
*
message
,
const
char
*
fileName
,
const
char
*
subFolder
=
NULL
);
status_t
_SaveSettings
(
BMessage
*
message
,
const
char
*
fileName
,
const
char
*
subFolder
=
NULL
);
void
_RestoreSettings
();
void
_StoreSettings
();
intf_thread_t
*
p_intf
;
es_descriptor_t
*
p_spu_es
;
...
...
@@ -150,8 +142,6 @@ class InterfaceWindow : public BWindow
BMenu
*
fSpeedMenu
;
BMenu
*
fSettingsMenu
;
bigtime_t
fLastUpdateTime
;
BMessage
*
fSettings
;
// we keep the message arround
// for forward compatibility
VlcWrapper
*
p_wrapper
;
};
...
...
modules/gui/beos/ListViews.cpp
View file @
2891094d
...
...
@@ -2,7 +2,7 @@
* ListViews.h: BeOS interface list view class implementation
*****************************************************************************
* Copyright (C) 1999, 2000, 2001 VideoLAN
* $Id: ListViews.cpp,v 1.
1 2002/09/30 18:30:27
titer Exp $
* $Id: ListViews.cpp,v 1.
2 2003/01/22 01:13:22
titer Exp $
*
* Authors: Stephan Aßmus <stippi@yellowbites.com>
*
...
...
@@ -475,7 +475,8 @@ DragSortableListView::DrawItem( BListItem *item, BRect itemFrame, bool complete
/*****************************************************************************
* PlaylistView class
*****************************************************************************/
PlaylistView
::
PlaylistView
(
BRect
frame
,
InterfaceWindow
*
mainWindow
)
PlaylistView
::
PlaylistView
(
BRect
frame
,
InterfaceWindow
*
mainWindow
,
VlcWrapper
*
p_wrapper
)
:
DragSortableListView
(
frame
,
"playlist listview"
,
B_MULTIPLE_SELECTION_LIST
,
B_FOLLOW_ALL_SIDES
,
B_WILL_DRAW
|
B_NAVIGABLE
|
B_PULSE_NEEDED
...
...
@@ -484,6 +485,7 @@ PlaylistView::PlaylistView( BRect frame, InterfaceWindow* mainWindow )
fPlaying
(
false
),
fMainWindow
(
mainWindow
)
{
this
->
p_wrapper
=
p_wrapper
;
}
PlaylistView
::~
PlaylistView
()
...
...
@@ -516,7 +518,7 @@ PlaylistView::MouseDown( BPoint where )
{
if
(
clicks
==
2
)
{
/* Intf_VLCWrapper::playlistJumpTo( i ); */
p_wrapper
->
PlaylistJumpTo
(
i
);
handled
=
true
;
}
else
if
(
i
==
fCurrentIndex
)
...
...
modules/gui/beos/ListViews.h
View file @
2891094d
...
...
@@ -2,7 +2,7 @@
* ListViews.h: BeOS interface list view class prototype
*****************************************************************************
* Copyright (C) 1999, 2000, 2001 VideoLAN
* $Id: ListViews.h,v 1.
1 2002/09/30 18:30:27
titer Exp $
* $Id: ListViews.h,v 1.
2 2003/01/22 01:13:22
titer Exp $
*
* Authors: Stephan Aßmus <stippi@yellowbites.com>
*
...
...
@@ -87,7 +87,8 @@ class PlaylistView : public DragSortableListView
{
public:
PlaylistView
(
BRect
frame
,
InterfaceWindow
*
mainWindow
);
InterfaceWindow
*
mainWindow
,
VlcWrapper
*
p_wrapper
);
~
PlaylistView
();
// BListView
...
...
@@ -110,6 +111,8 @@ class PlaylistView : public DragSortableListView
int32
fCurrentIndex
;
bool
fPlaying
;
InterfaceWindow
*
fMainWindow
;
VlcWrapper
*
p_wrapper
;
};
#endif // LIST_VIEWS_H
modules/gui/beos/MediaControlView.cpp
View file @
2891094d
...
...
@@ -2,7 +2,7 @@
* MediaControlView.cpp: beos interface
*****************************************************************************
* Copyright (C) 1999, 2000, 2001 VideoLAN
* $Id: MediaControlView.cpp,v 1.1
0 2003/01/12 02:08:38
titer Exp $
* $Id: MediaControlView.cpp,v 1.1
1 2003/01/22 01:13:22
titer Exp $
*
* Authors: Tony Castley <tony@castley.net>
* Stephan Aßmus <stippi@yellowbites.com>
...
...
@@ -1311,13 +1311,13 @@ PositionInfoView::Pulse()
if
(
now
-
fLastPulseUpdate
>
900000
)
{
int32
index
,
size
;
p_intf
->
p_sys
->
p_wrapper
->
g
etPlaylistInfo
(
index
,
size
);
p_intf
->
p_sys
->
p_wrapper
->
G
etPlaylistInfo
(
index
,
size
);
SetFile
(
index
,
size
);
p_intf
->
p_sys
->
p_wrapper
->
TitleInfo
(
index
,
size
);
SetTitle
(
index
,
size
);
p_intf
->
p_sys
->
p_wrapper
->
ChapterInfo
(
index
,
size
);
SetChapter
(
index
,
size
);
SetTime
(
p_intf
->
p_sys
->
p_wrapper
->
g
etTimeAsString
()
);
SetTime
(
p_intf
->
p_sys
->
p_wrapper
->
G
etTimeAsString
()
);
fLastPulseUpdate
=
now
;
}
}
...
...
modules/gui/beos/PlayListWindow.cpp
View file @
2891094d
...
...
@@ -2,7 +2,7 @@
* PlayListWindow.cpp: beos interface
*****************************************************************************
* Copyright (C) 1999, 2000, 2001 VideoLAN
* $Id: PlayListWindow.cpp,v 1.
5 2002/12/09 07:57:04
titer Exp $
* $Id: PlayListWindow.cpp,v 1.
6 2003/01/22 01:13:22
titer Exp $
*
* Authors: Jean-Marc Dressler <polux@via.ecp.fr>
* Samuel Hocevar <sam@zoy.org>
...
...
@@ -130,7 +130,7 @@ editMenu->SetEnabled( false );
frame
.
top
+=
fMenuBar
->
Bounds
().
IntegerHeight
()
+
1
;
frame
.
right
-=
B_V_SCROLL_BAR_WIDTH
;
fListView
=
new
PlaylistView
(
frame
,
fMainWindow
);
fListView
=
new
PlaylistView
(
frame
,
fMainWindow
,
p_wrapper
);
fBackgroundView
=
new
BScrollView
(
"playlist scrollview"
,
fListView
,
B_FOLLOW_ALL_SIDES
,
0
,
false
,
true
,
...
...
modules/gui/beos/VlcWrapper.cpp
View file @
2891094d
This diff is collapsed.
Click to expand it.
modules/gui/beos/VlcWrapper.h
View file @
2891094d
...
...
@@ -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
4 2003/01/17 18:19:43
titer Exp $
* $Id: VlcWrapper.h,v 1.1
5 2003/01/22 01:13:22
titer Exp $
*
* Authors: Florian G. Pflug <fgp@phlo.org>
* Jon Lech Johansen <jon-vl@nanocrew.net>
...
...
@@ -62,66 +62,66 @@ public:
bool
UpdateInputAndAOut
();
/* input */
bool
HasInput
();
int
InputStatus
();
int
InputRate
();
void
InputSlower
();
void
InputFaster
();
BList
*
InputGetChannels
(
int
i_cat
);
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
();
float
getTimeAsFloat
();
void
setTimeAsFloat
(
float
i_offset
);
bool
IsPlaying
();
/* Input */
bool
HasInput
();
int
InputStatus
();
int
InputRate
();
void
InputSlower
();
void
InputFaster
();
BList
*
GetChannels
(
int
i_cat
);
void
ToggleLanguage
(
int
i_language
);
void
ToggleSubtitle
(
int
i_subtitle
);
const
char
*
GetTimeAsString
();
float
GetTimeAsFloat
();
void
SetTimeAsFloat
(
float
i_offset
);
bool
IsPlaying
();
/* Playlist */
int
PlaylistSize
();
char
*
PlaylistItemName
(
int
);
int
PlaylistCurrent
();
int
PlaylistStatus
();
bool
PlaylistPlay
();
void
PlaylistPause
();
void
PlaylistStop
();
void
PlaylistNext
();
void
PlaylistPrev
();
void
PlaylistSkip
(
int
i
);
void
PlaylistGoto
(
int
i
);
void
PlaylistLoop
();
BList
*
PlaylistAsArray
();
bool
PlaylistPlaying
();
void
getPlaylistInfo
(
int32
&
currentIndex
,
int32
&
maxIndex
);
void
PlaylistJumpTo
(
int
);
void
getNavCapabilities
(
bool
*
canSkipPrev
,
bool
*
canSkipNext
);
void
navigatePrev
();
void
navigateNext
();
void
OpenFiles
(
BList
*
o_files
,
bool
replace
=
true
);
void
OpenDisc
(
BString
o_type
,
BString
o_device
,
int
i_title
,
int
i_chapter
);
int
PlaylistSize
();
char
*
PlaylistItemName
(
int
);
int
PlaylistCurrent
();
bool
PlaylistPlay
();
void
PlaylistPause
();
void
PlaylistStop
();
void
PlaylistNext
();
void
PlaylistPrev
();
bool
PlaylistPlaying
();
void
GetPlaylistInfo
(
int32
&
currentIndex
,
int32
&
maxIndex
);
void
PlaylistJumpTo
(
int
);
void
GetNavCapabilities
(
bool
*
canSkipPrev
,
bool
*
canSkipNext
);
void
NavigatePrev
();
void
NavigateNext
();
/* audio */
/* Audio */
bool
HasAudio
();
unsigned
short
GetVolume
();
void
SetVolume
(
int
value
);
void
VolumeMute
();
void
VolumeRestore
();
bool
IsMuted
();
bool
HasAudio
();
void
SetVolume
(
int
value
);
void
VolumeMute
();
void
VolumeRestore
();
bool
IsMuted
();
/* DVD */
bool
HasTitles
();
void
PrevTitle
();
void
NextTitle
();
bool
HasChapters
();
void
PrevChapter
();
void
NextChapter
();
void
TitleInfo
(
int32
&
currentIndex
,
int32
&
maxIndex
);
void
ChapterInfo
(
int32
&
currentIndex
,
int32
&
maxIndex
);
void
toggleTitle
(
int
i_title
);
void
toggleChapter
(
int
i_chapter
);
bool
HasTitles
();
BList
*
GetTitles
();
void
PrevTitle
();
void
NextTitle
();
void
ToggleTitle
(
int
i_title
);
void
TitleInfo
(
int32
&
currentIndex
,
int32
&
maxIndex
);
bool
HasChapters
();
BList
*
GetChapters
();
void
PrevChapter
();
void
NextChapter
();
void
ToggleChapter
(
int
i_chapter
);
void
ChapterInfo
(
int32
&
currentIndex
,
int32
&
maxIndex
);
/* Miscellanous */
void
LoadSubFile
(
char
*
psz_file
);
private:
intf_thread_t
*
p_intf
;
...
...
@@ -129,4 +129,3 @@ private:
playlist_t
*
p_playlist
;
aout_instance_t
*
p_aout
;
};
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