Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
9ca2cc8e
Commit
9ca2cc8e
authored
Aug 24, 2012
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx/MainMenu: cosmetics
parent
1aacd624
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
31 deletions
+34
-31
modules/gui/macosx/MainMenu.h
modules/gui/macosx/MainMenu.h
+5
-4
modules/gui/macosx/MainMenu.m
modules/gui/macosx/MainMenu.m
+29
-27
No files found.
modules/gui/macosx/MainMenu.h
View file @
9ca2cc8e
...
...
@@ -221,16 +221,17 @@
-
(
IBAction
)
intfOpenNet
:(
id
)
sender
;
-
(
IBAction
)
intfOpenCapture
:(
id
)
sender
;
-
(
IBAction
)
toggleRecord
:(
id
)
sender
;
-
(
void
)
updateRecordState
:(
BOOL
)
b_value
;
-
(
IBAction
)
setPlaybackRate
:(
id
)
sender
;
-
(
void
)
updatePlaybackRate
;
-
(
IBAction
)
toggleJumpButtons
:(
id
)
sender
;
-
(
IBAction
)
togglePlaymodeButtons
:(
id
)
sender
;
-
(
IBAction
)
togglePlaylistColumnTable
:(
id
)
sender
;
-
(
void
)
setPlaylistColumnTableState
:(
NSInteger
)
i_state
forColumn
:(
NSString
*
)
o_column
;
-
(
NSMenu
*
)
setupPlaylistTableColumnsMenu
;
-
(
IBAction
)
toggleRecord
:(
id
)
sender
;
-
(
void
)
updateRecordState
:(
BOOL
)
b_value
;
-
(
IBAction
)
setPlaybackRate
:(
id
)
sender
;
-
(
void
)
updatePlaybackRate
;
-
(
IBAction
)
toggleFullscreen
:(
id
)
sender
;
-
(
IBAction
)
resizeVideoWindow
:(
id
)
sender
;
-
(
IBAction
)
floatOnTop
:(
id
)
sender
;
...
...
modules/gui/macosx/MainMenu.m
View file @
9ca2cc8e
...
...
@@ -627,33 +627,7 @@ static VLCMainMenu *_o_sharedInstance = nil;
}
#pragma mark -
#pragma mark Playback
-
(
IBAction
)
toggleRecord
:(
id
)
sender
{
[[
VLCCoreInteraction
sharedInstance
]
toggleRecord
];
}
-
(
void
)
updateRecordState
:(
BOOL
)
b_value
{
[
o_mi_record
setState
:
b_value
];
}
-
(
IBAction
)
setPlaybackRate
:(
id
)
sender
{
[[
VLCCoreInteraction
sharedInstance
]
setPlaybackRate
:
[
o_mi_rate_sld
intValue
]];
int
i
=
[[
VLCCoreInteraction
sharedInstance
]
playbackRate
];
double
speed
=
pow
(
2
,
(
double
)
i
/
17
);
[
o_mi_rate_fld
setStringValue
:
[
NSString
stringWithFormat
:
@"%.2fx"
,
speed
]];
}
-
(
void
)
updatePlaybackRate
{
int
i
=
[[
VLCCoreInteraction
sharedInstance
]
playbackRate
];
double
speed
=
pow
(
2
,
(
double
)
i
/
17
);
[
o_mi_rate_fld
setStringValue
:
[
NSString
stringWithFormat
:
@"%.2fx"
,
speed
]];
[
o_mi_rate_sld
setIntValue
:
i
];
}
#pragma mark View
-
(
IBAction
)
toggleJumpButtons
:(
id
)
sender
{
BOOL
b_value
=
!
config_GetInt
(
VLCIntf
,
"macosx-show-playback-buttons"
);
...
...
@@ -689,6 +663,34 @@ static VLCMainMenu *_o_sharedInstance = nil;
[[[
VLCMain
sharedInstance
]
playlist
]
setColumn
:
o_column
state
:
i_state
translationDict
:
o_ptc_translation_dict
];
}
#pragma mark -
#pragma mark Playback
-
(
IBAction
)
toggleRecord
:(
id
)
sender
{
[[
VLCCoreInteraction
sharedInstance
]
toggleRecord
];
}
-
(
void
)
updateRecordState
:(
BOOL
)
b_value
{
[
o_mi_record
setState
:
b_value
];
}
-
(
IBAction
)
setPlaybackRate
:(
id
)
sender
{
[[
VLCCoreInteraction
sharedInstance
]
setPlaybackRate
:
[
o_mi_rate_sld
intValue
]];
int
i
=
[[
VLCCoreInteraction
sharedInstance
]
playbackRate
];
double
speed
=
pow
(
2
,
(
double
)
i
/
17
);
[
o_mi_rate_fld
setStringValue
:
[
NSString
stringWithFormat
:
@"%.2fx"
,
speed
]];
}
-
(
void
)
updatePlaybackRate
{
int
i
=
[[
VLCCoreInteraction
sharedInstance
]
playbackRate
];
double
speed
=
pow
(
2
,
(
double
)
i
/
17
);
[
o_mi_rate_fld
setStringValue
:
[
NSString
stringWithFormat
:
@"%.2fx"
,
speed
]];
[
o_mi_rate_sld
setIntValue
:
i
];
}
#pragma mark -
#pragma mark video menu
-
(
IBAction
)
toggleFullscreen
:(
id
)
sender
...
...
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