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
a75b97ad
Commit
a75b97ad
authored
Nov 19, 2011
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: fixed confusing interface behavior of the crop filter controls
parent
23927fbb
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
132 additions
and
97 deletions
+132
-97
extras/package/macosx/Resources/English.lproj/VideoEffects.xib
...s/package/macosx/Resources/English.lproj/VideoEffects.xib
+90
-93
modules/gui/macosx/VideoEffects.h
modules/gui/macosx/VideoEffects.h
+4
-0
modules/gui/macosx/VideoEffects.m
modules/gui/macosx/VideoEffects.m
+38
-4
No files found.
extras/package/macosx/Resources/English.lproj/VideoEffects.xib
View file @
a75b97ad
This diff is collapsed.
Click to expand it.
modules/gui/macosx/VideoEffects.h
View file @
a75b97ad
...
@@ -58,12 +58,16 @@
...
@@ -58,12 +58,16 @@
/* crop */
/* crop */
IBOutlet
id
o_crop_top_lbl
;
IBOutlet
id
o_crop_top_lbl
;
IBOutlet
id
o_crop_top_fld
;
IBOutlet
id
o_crop_top_fld
;
IBOutlet
id
o_crop_top_stp
;
IBOutlet
id
o_crop_left_lbl
;
IBOutlet
id
o_crop_left_lbl
;
IBOutlet
id
o_crop_left_fld
;
IBOutlet
id
o_crop_left_fld
;
IBOutlet
id
o_crop_left_stp
;
IBOutlet
id
o_crop_right_lbl
;
IBOutlet
id
o_crop_right_lbl
;
IBOutlet
id
o_crop_right_fld
;
IBOutlet
id
o_crop_right_fld
;
IBOutlet
id
o_crop_right_stp
;
IBOutlet
id
o_crop_bottom_lbl
;
IBOutlet
id
o_crop_bottom_lbl
;
IBOutlet
id
o_crop_bottom_fld
;
IBOutlet
id
o_crop_bottom_fld
;
IBOutlet
id
o_crop_bottom_stp
;
IBOutlet
id
o_crop_sync_top_bottom_ckb
;
IBOutlet
id
o_crop_sync_top_bottom_ckb
;
IBOutlet
id
o_crop_sync_left_right_ckb
;
IBOutlet
id
o_crop_sync_left_right_ckb
;
...
...
modules/gui/macosx/VideoEffects.m
View file @
a75b97ad
...
@@ -564,12 +564,44 @@ static VLCVideoEffects *_o_sharedInstance = nil;
...
@@ -564,12 +564,44 @@ static VLCVideoEffects *_o_sharedInstance = nil;
#pragma mark -
#pragma mark -
#pragma mark crop
#pragma mark crop
#define updateopposite( giver, taker ) \
if (sender == giver) \
[taker setIntValue: [giver intValue]]
-
(
IBAction
)
cropObjectChanged
:(
id
)
sender
-
(
IBAction
)
cropObjectChanged
:(
id
)
sender
{
{
if
(
[
o_crop_sync_top_bottom_ckb
state
]
)
updateopposite
(
o_crop_top_fld
,
o_crop_top_stp
);
updateopposite
(
o_crop_top_stp
,
o_crop_top_fld
);
updateopposite
(
o_crop_left_fld
,
o_crop_left_stp
);
updateopposite
(
o_crop_left_stp
,
o_crop_left_fld
);
updateopposite
(
o_crop_right_fld
,
o_crop_right_stp
);
updateopposite
(
o_crop_right_stp
,
o_crop_right_fld
);
updateopposite
(
o_crop_bottom_fld
,
o_crop_bottom_stp
);
updateopposite
(
o_crop_bottom_stp
,
o_crop_bottom_fld
);
if
(
[
o_crop_sync_top_bottom_ckb
state
]
)
{
if
(
sender
==
o_crop_top_fld
||
sender
==
o_crop_top_stp
)
{
[
o_crop_bottom_fld
setIntValue
:
[
o_crop_top_fld
intValue
]];
[
o_crop_bottom_fld
setIntValue
:
[
o_crop_top_fld
intValue
]];
if
(
[
o_crop_sync_left_right_ckb
state
]
)
[
o_crop_bottom_stp
setIntValue
:
[
o_crop_top_fld
intValue
]];
}
else
{
[
o_crop_top_fld
setIntValue
:
[
o_crop_bottom_fld
intValue
]];
[
o_crop_top_stp
setIntValue
:
[
o_crop_bottom_fld
intValue
]];
}
}
if
(
[
o_crop_sync_left_right_ckb
state
]
)
{
if
(
sender
==
o_crop_left_fld
||
sender
==
o_crop_left_stp
)
{
[
o_crop_right_fld
setIntValue
:
[
o_crop_left_fld
intValue
]];
[
o_crop_right_fld
setIntValue
:
[
o_crop_left_fld
intValue
]];
[
o_crop_right_stp
setIntValue
:
[
o_crop_left_fld
intValue
]];
}
else
{
[
o_crop_left_fld
setIntValue
:
[
o_crop_right_fld
intValue
]];
[
o_crop_left_stp
setIntValue
:
[
o_crop_right_fld
intValue
]];
}
}
vout_thread_t
*
p_vout
=
getVout
();
vout_thread_t
*
p_vout
=
getVout
();
if
(
p_vout
)
{
if
(
p_vout
)
{
...
@@ -581,6 +613,8 @@ static VLCVideoEffects *_o_sharedInstance = nil;
...
@@ -581,6 +613,8 @@ static VLCVideoEffects *_o_sharedInstance = nil;
}
}
}
}
#undef updateopposite
#pragma mark -
#pragma mark -
#pragma mark geometry
#pragma mark geometry
-
(
IBAction
)
enableTransform
:(
id
)
sender
-
(
IBAction
)
enableTransform
:(
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