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
803b6303
Commit
803b6303
authored
Dec 25, 2012
by
David Fuhrmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: video effects: restore correct state of clone and wall filter controls on reset
parent
d28b2ffd
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
804 additions
and
20 deletions
+804
-20
extras/package/macosx/Resources/English.lproj/VideoEffects.xib
...s/package/macosx/Resources/English.lproj/VideoEffects.xib
+771
-16
modules/gui/macosx/VideoEffects.h
modules/gui/macosx/VideoEffects.h
+3
-0
modules/gui/macosx/VideoEffects.m
modules/gui/macosx/VideoEffects.m
+30
-4
No files found.
extras/package/macosx/Resources/English.lproj/VideoEffects.xib
View file @
803b6303
This diff is collapsed.
Click to expand it.
modules/gui/macosx/VideoEffects.h
View file @
803b6303
...
...
@@ -83,11 +83,14 @@
IBOutlet
id
o_puzzle_blackslot_ckb
;
IBOutlet
id
o_clone_ckb
;
IBOutlet
id
o_clone_number_fld
;
IBOutlet
id
o_clone_number_stp
;
IBOutlet
id
o_clone_number_lbl
;
IBOutlet
id
o_wall_ckb
;
IBOutlet
id
o_wall_numofrows_fld
;
IBOutlet
id
o_wall_numofrows_stp
;
IBOutlet
id
o_wall_numofrows_lbl
;
IBOutlet
id
o_wall_numofcols_fld
;
IBOutlet
id
o_wall_numofcols_stp
;
IBOutlet
id
o_wall_numofcols_lbl
;
/* color */
...
...
modules/gui/macosx/VideoEffects.m
View file @
803b6303
...
...
@@ -246,8 +246,6 @@ static VLCVideoEffects *_o_sharedInstance = nil;
[
o_transform_ckb
setState
:
(
NSInteger
)
strstr
(
psz_vfilters
,
"transform"
)];
[
o_zoom_ckb
setState
:
(
NSInteger
)
strstr
(
psz_vfilters
,
"magnify"
)];
[
o_puzzle_ckb
setState
:
(
NSInteger
)
strstr
(
psz_vfilters
,
"puzzle"
)];
[
o_clone_ckb
setState
:
(
NSInteger
)
strstr
(
psz_vfilters
,
"clone"
)];
[
o_wall_ckb
setState
:
(
NSInteger
)
strstr
(
psz_vfilters
,
"wall"
)];
[
o_threshold_ckb
setState
:
(
NSInteger
)
strstr
(
psz_vfilters
,
"colorthres"
)];
[
o_sepia_ckb
setState
:
(
NSInteger
)
strstr
(
psz_vfilters
,
"sepia"
)];
[
o_noise_ckb
setState
:
(
NSInteger
)
strstr
(
psz_vfilters
,
"noise"
)];
...
...
@@ -270,8 +268,6 @@ static VLCVideoEffects *_o_sharedInstance = nil;
[
o_transform_ckb
setState
:
NSOffState
];
[
o_zoom_ckb
setState
:
NSOffState
];
[
o_puzzle_ckb
setState
:
NSOffState
];
[
o_clone_ckb
setState
:
NSOffState
];
[
o_wall_ckb
setState
:
NSOffState
];
[
o_threshold_ckb
setState
:
NSOffState
];
[
o_sepia_ckb
setState
:
NSOffState
];
[
o_noise_ckb
setState
:
NSOffState
];
...
...
@@ -286,6 +282,7 @@ static VLCVideoEffects *_o_sharedInstance = nil;
[
o_psychedelic_ckb
setState
:
NSOffState
];
[
o_anaglyph_ckb
setState
:
NSOffState
];
}
psz_vfilters
=
config_GetPsz
(
p_intf
,
"sub-source"
);
if
(
psz_vfilters
)
{
[
o_addtext_ckb
setState
:
(
NSInteger
)
strstr
(
psz_vfilters
,
"marq"
)];
...
...
@@ -296,6 +293,17 @@ static VLCVideoEffects *_o_sharedInstance = nil;
[
o_addlogo_ckb
setState
:
NSOffState
];
}
psz_vfilters
=
config_GetPsz
(
p_intf
,
"video-splitter"
);
if
(
psz_vfilters
)
{
[
o_clone_ckb
setState
:
(
NSInteger
)
strstr
(
psz_vfilters
,
"clone"
)];
[
o_wall_ckb
setState
:
(
NSInteger
)
strstr
(
psz_vfilters
,
"wall"
)];
free
(
psz_vfilters
);
}
else
{
[
o_clone_ckb
setState
:
NSOffState
];
[
o_wall_ckb
setState
:
NSOffState
];
}
/* fetch and show the various values */
[
o_adjust_hue_sld
setIntValue
:
config_GetInt
(
p_intf
,
"hue"
)];
[
o_adjust_contrast_sld
setFloatValue
:
config_GetFloat
(
p_intf
,
"contrast"
)];
...
...
@@ -359,9 +367,23 @@ static VLCVideoEffects *_o_sharedInstance = nil;
[
o_puzzle_columns_fld
setEnabled
:
b_state
];
[
o_puzzle_columns_lbl
setEnabled
:
b_state
];
[
o_puzzle_blackslot_ckb
setEnabled
:
b_state
];
[
o_clone_number_fld
setIntValue
:
config_GetInt
(
p_intf
,
"clone-count"
)];
b_state
=
[
o_clone_ckb
state
];
[
o_clone_number_lbl
setEnabled
:
b_state
];
[
o_clone_number_fld
setEnabled
:
b_state
];
[
o_clone_number_stp
setEnabled
:
b_state
];
b_state
=
[
o_wall_ckb
state
];
[
o_wall_numofrows_fld
setIntValue
:
config_GetInt
(
p_intf
,
"wall-rows"
)];
[
o_wall_numofrows_lbl
setEnabled
:
b_state
];
[
o_wall_numofrows_fld
setEnabled
:
b_state
];
[
o_wall_numofrows_stp
setEnabled
:
b_state
];
[
o_wall_numofcols_fld
setIntValue
:
config_GetInt
(
p_intf
,
"wall-cols"
)];
[
o_wall_numofcols_lbl
setEnabled
:
b_state
];
[
o_wall_numofcols_fld
setEnabled
:
b_state
];
[
o_wall_numofcols_stp
setEnabled
:
b_state
];
[
o_threshold_color_fld
setStringValue
:
[[
NSString
stringWithFormat
:
@"%llx"
,
config_GetInt
(
p_intf
,
"colorthres-color"
)]
uppercaseString
]];
[
o_threshold_saturation_sld
setIntValue
:
config_GetInt
(
p_intf
,
"colorthres-saturationthres"
)];
...
...
@@ -1031,6 +1053,7 @@ static VLCVideoEffects *_o_sharedInstance = nil;
[
self
setVideoFilter
:
"clone"
on
:
b_state
];
[
o_clone_number_lbl
setEnabled
:
b_state
];
[
o_clone_number_fld
setEnabled
:
b_state
];
[
o_clone_number_stp
setEnabled
:
b_state
];
}
-
(
IBAction
)
cloneModifierChanged
:(
id
)
sender
...
...
@@ -1044,8 +1067,11 @@ static VLCVideoEffects *_o_sharedInstance = nil;
[
self
setVideoFilter
:
"wall"
on
:
b_state
];
[
o_wall_numofcols_fld
setEnabled
:
b_state
];
[
o_wall_numofcols_stp
setEnabled
:
b_state
];
[
o_wall_numofcols_lbl
setEnabled
:
b_state
];
[
o_wall_numofrows_fld
setEnabled
:
b_state
];
[
o_wall_numofrows_stp
setEnabled
:
b_state
];
[
o_wall_numofrows_lbl
setEnabled
:
b_state
];
}
...
...
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