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
13695e60
Commit
13695e60
authored
Sep 06, 2004
by
Eric Petit
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
beos/*: fixed title/chapter navigation
parent
0824f497
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
17 deletions
+11
-17
modules/gui/beos/InterfaceWindow.cpp
modules/gui/beos/InterfaceWindow.cpp
+10
-15
modules/gui/beos/MsgVals.h
modules/gui/beos/MsgVals.h
+1
-2
No files found.
modules/gui/beos/InterfaceWindow.cpp
View file @
13695e60
...
...
@@ -269,13 +269,10 @@ InterfaceWindow::InterfaceWindow( intf_thread_t * _p_intf, BRect frame,
fNextTitleMI
=
new
BMenuItem
(
_
(
"Next Title"
),
new
BMessage
(
NEXT_TITLE
)
);
fPrevChapterMI
=
new
BMenuItem
(
_
(
"Previous chapter"
),
new
BMessage
(
PREV_CHAPTER
)
);
fNextChapterMI
=
new
BMenuItem
(
_
(
"Next chapter"
),
new
BMessage
(
NEXT_CHAPTER
)
);
fGotoMenuMI
=
new
BMenuItem
(
_
(
"Goto Menu"
),
new
BMessage
(
NAVIGATE_MENU
)
);
/* Add the Navigation menu */
fNavigationMenu
=
new
BMenu
(
_
(
"Navigation"
)
);
fMenuBar
->
AddItem
(
fNavigationMenu
);
fNavigationMenu
->
AddItem
(
fGotoMenuMI
);
fNavigationMenu
->
AddSeparatorItem
();
fNavigationMenu
->
AddItem
(
fPrevTitleMI
);
fNavigationMenu
->
AddItem
(
fNextTitleMI
);
fNavigationMenu
->
AddItem
(
fTitleMenu
=
new
TitleMenu
(
_
(
"Go to Title"
),
p_intf
)
);
...
...
@@ -555,13 +552,6 @@ void InterfaceWindow::MessageReceived( BMessage * p_message )
}
break
;
case
NAVIGATE_MENU
:
if
(
p_input
)
{
var_SetInteger
(
p_input
,
"title"
,
0
);
}
break
;
case
TOGGLE_TITLE
:
{
int32
index
;
...
...
@@ -833,8 +823,8 @@ void InterfaceWindow::UpdateInterface()
{
vlc_value_t
val
;
p_mediaControl
->
SetEnabled
(
true
);
bool
hasTitles
=
var_Get
(
p_input
,
"title"
,
&
val
);
bool
hasChapters
=
var_Get
(
p_input
,
"chapter"
,
&
val
);
bool
hasTitles
=
!
var_Get
(
p_input
,
"title"
,
&
val
);
bool
hasChapters
=
!
var_Get
(
p_input
,
"chapter"
,
&
val
);
p_mediaControl
->
SetStatus
(
var_GetInteger
(
p_input
,
"state"
),
var_GetInteger
(
p_input
,
"rate"
)
);
var_Get
(
p_input
,
"position"
,
&
val
);
...
...
@@ -948,7 +938,6 @@ InterfaceWindow::_SetMenusEnabled(bool hasFile, bool hasChapters, bool hasTitles
fSubtitlesMenu
->
SetEnabled
(
hasFile
);
if
(
fSpeedMenu
->
IsEnabled
()
!=
hasFile
)
fSpeedMenu
->
SetEnabled
(
hasFile
);
fGotoMenuMI
->
SetEnabled
(
true
);
Unlock
();
}
}
...
...
@@ -1296,6 +1285,7 @@ void TitleMenu::AttachedToWindow()
}
vlc_value_t
val
;
BMessage
*
message
;
if
(
!
var_Get
(
p_input
,
"title"
,
&
val
)
)
{
vlc_value_t
val_list
,
text_list
;
...
...
@@ -1304,8 +1294,10 @@ void TitleMenu::AttachedToWindow()
for
(
int
i
=
0
;
i
<
val_list
.
p_list
->
i_count
;
i
++
)
{
message
=
new
BMessage
(
TOGGLE_TITLE
);
message
->
AddInt32
(
"index"
,
val_list
.
p_list
->
p_values
[
i
].
i_int
);
item
=
new
BMenuItem
(
text_list
.
p_list
->
p_values
[
i
].
psz_string
,
NULL
);
message
);
if
(
val_list
.
p_list
->
p_values
[
i
].
i_int
==
val
.
i_int
)
{
item
->
SetMarked
(
true
);
...
...
@@ -1356,6 +1348,7 @@ void ChapterMenu::AttachedToWindow()
}
vlc_value_t
val
;
BMessage
*
message
;
if
(
!
var_Get
(
p_input
,
"chapter"
,
&
val
)
)
{
vlc_value_t
val_list
,
text_list
;
...
...
@@ -1364,8 +1357,10 @@ void ChapterMenu::AttachedToWindow()
for
(
int
i
=
0
;
i
<
val_list
.
p_list
->
i_count
;
i
++
)
{
message
=
new
BMessage
(
TOGGLE_CHAPTER
);
message
->
AddInt32
(
"index"
,
val_list
.
p_list
->
p_values
[
i
].
i_int
);
item
=
new
BMenuItem
(
text_list
.
p_list
->
p_values
[
i
].
psz_string
,
NULL
);
message
);
if
(
val_list
.
p_list
->
p_values
[
i
].
i_int
==
val
.
i_int
)
{
item
->
SetMarked
(
true
);
...
...
modules/gui/beos/MsgVals.h
View file @
13695e60
...
...
@@ -2,7 +2,7 @@
* MsgVals.h
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id
: MsgVals.h,v 1.11 2004/01/26 16:52:31 zorglub Exp
$
* $Id$
*
* Authors: Tony Castley <tcastley@mail.powerup.com.au>
* Stephan Aßmus <stippi@yellowbites.com>
...
...
@@ -51,7 +51,6 @@
#define PREV_TITLE 'prti'
#define NEXT_TITLE 'nxti'
#define TOGGLE_TITLE 'tgti'
#define NAVIGATE_MENU 'navm'
#define PREV_CHAPTER 'prch'
#define NEXT_CHAPTER 'nxch'
#define TOGGLE_CHAPTER 'tgch'
...
...
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