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
c3ce15c7
Commit
c3ce15c7
authored
Feb 23, 2009
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: display the remaining time if the field was clicked once
parent
344560c7
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
37 additions
and
11 deletions
+37
-11
extras/package/macosx/Resources/English.lproj/MainMenu.nib/classes.nib
...e/macosx/Resources/English.lproj/MainMenu.nib/classes.nib
+1
-0
extras/package/macosx/Resources/English.lproj/MainMenu.nib/info.nib
...kage/macosx/Resources/English.lproj/MainMenu.nib/info.nib
+2
-0
extras/package/macosx/Resources/English.lproj/MainMenu.nib/keyedobjects.nib
...osx/Resources/English.lproj/MainMenu.nib/keyedobjects.nib
+0
-0
modules/gui/macosx/controls.m
modules/gui/macosx/controls.m
+2
-0
modules/gui/macosx/intf.h
modules/gui/macosx/intf.h
+11
-9
modules/gui/macosx/intf.m
modules/gui/macosx/intf.m
+21
-2
No files found.
extras/package/macosx/Resources/English.lproj/MainMenu.nib/classes.nib
View file @
c3ce15c7
...
...
@@ -172,6 +172,7 @@
showMessagesPanel = id;
showVLM = id;
showWizard = id;
timeFieldWasClicked = id;
timesliderUpdate = id;
togglePlaylist = id;
viewAbout = id;
...
...
extras/package/macosx/Resources/English.lproj/MainMenu.nib/info.nib
View file @
c3ce15c7
...
...
@@ -21,6 +21,8 @@
<integer>
4
</integer>
<key>
IBOpenObjects
</key>
<array>
<integer>
21
</integer>
<integer>
2416
</integer>
<integer>
3568
</integer>
<integer>
29
</integer>
</array>
...
...
extras/package/macosx/Resources/English.lproj/MainMenu.nib/keyedobjects.nib
View file @
c3ce15c7
No preview for this file type
modules/gui/macosx/controls.m
View file @
c3ce15c7
...
...
@@ -1180,5 +1180,7 @@
{
if
(
[
ourEvent
clickCount
]
>
1
)
[[[
VLCMain
sharedInstance
]
getControls
]
goToSpecificTime
:
nil
];
else
[[
VLCMain
sharedInstance
]
timeFieldWasClicked
:
self
];
}
@end
modules/gui/macosx/intf.h
View file @
c3ce15c7
...
...
@@ -124,10 +124,11 @@ static void MsgCallback( msg_cb_data_t *, msg_item_t *, unsigned );
BOOL
nib_vlm_loaded
;
/* VLM Panel nibfile */
IBOutlet
VLControllerWindow
*
o_window
;
/* main window */
IBOutlet
NSView
*
o_playlist_view
;
/* playlist view */
IBOutlet
NSView
*
o_playlist_view
;
/* playlist view */
IBOutlet
id
o_scrollfield
;
/* info field */
IBOutlet
NSTextField
*
o_timefield
;
/* time field */
IBOutlet
NSSlider
*
o_timeslider
;
/* time slider */
BOOL
b_time_remaining
;
/* show remaining time or playtime ? */
IBOutlet
VLCEmbeddedWindow
*
o_embedded_window
;
/* Embedded Vout Window */
float
f_slider
;
/* slider value */
float
f_slider_old
;
/* old slider val */
...
...
@@ -378,6 +379,7 @@ static void MsgCallback( msg_cb_data_t *, msg_item_t *, unsigned );
-
(
void
)
setSubmenusEnabled
:(
BOOL
)
b_enabled
;
-
(
void
)
manageVolumeSlider
;
-
(
IBAction
)
timesliderUpdate
:(
id
)
sender
;
-
(
IBAction
)
timeFieldWasClicked
:(
id
)
sender
;
-
(
IBAction
)
clearRecentItems
:(
id
)
sender
;
-
(
void
)
openRecentItem
:(
id
)
sender
;
...
...
modules/gui/macosx/intf.m
View file @
c3ce15c7
...
...
@@ -1672,6 +1672,12 @@ static void * manage_cleanup( void * args )
var_Get
(
p_input
,
"time"
,
&
time
);
mtime_t
dur
=
input_item_GetDuration
(
input_GetItem
(
p_input
)
);
if
(
b_time_remaining
&&
dur
!=
-
1
)
{
o_time
=
[
NSString
stringWithFormat
:
@"-%s"
,
secstotimestr
(
psz_time
,
((
dur
-
time
.
i_time
)
/
1000000
))];
}
else
o_time
=
[
NSString
stringWithUTF8String
:
secstotimestr
(
psz_time
,
(
time
.
i_time
/
1000000
)
)];
[
o_timefield
setStringValue
:
o_time
];
...
...
@@ -1950,7 +1956,14 @@ end:
var_Get
(
p_input
,
"time"
,
&
time
);
mtime_t
dur
=
input_item_GetDuration
(
input_GetItem
(
p_input
)
);
if
(
b_time_remaining
&&
dur
!=
-
1
)
{
o_time
=
[
NSString
stringWithFormat
:
@"-%s"
,
secstotimestr
(
psz_time
,
((
dur
-
time
.
i_time
)
/
1000000
)
)];
}
else
o_time
=
[
NSString
stringWithUTF8String
:
secstotimestr
(
psz_time
,
(
time
.
i_time
/
1000000
)
)];
[
o_timefield
setStringValue
:
o_time
];
[[[
self
getControls
]
getFSPanel
]
setStreamPos
:
f_updated
andTime
:
o_time
];
[
o_embedded_window
setTime
:
o_time
position
:
f_updated
];
...
...
@@ -1959,6 +1972,12 @@ end:
pl_Release
(
p_intf
);
}
-
(
IBAction
)
timeFieldWasClicked
:(
id
)
sender
{
b_time_remaining
=
!
b_time_remaining
;
}
#pragma mark -
#pragma mark Recent Items
...
...
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