Commit a75b97ad authored by Felix Paul Kühne's avatar Felix Paul Kühne

macosx: fixed confusing interface behavior of the crop filter controls

parent 23927fbb
...@@ -717,7 +717,7 @@ ...@@ -717,7 +717,7 @@
<object class="BGHUDTabViewItem" id="52756061"> <object class="BGHUDTabViewItem" id="52756061">
<string key="NSIdentifier">crop</string> <string key="NSIdentifier">crop</string>
<object class="NSView" key="NSView" id="838226260"> <object class="NSView" key="NSView" id="838226260">
<nil key="NSNextResponder"/> <reference key="NSNextResponder" ref="898819366"/>
<int key="NSvFlags">256</int> <int key="NSvFlags">256</int>
<object class="NSMutableArray" key="NSSubviews"> <object class="NSMutableArray" key="NSSubviews">
<bool key="EncodedWithXMLCoder">YES</bool> <bool key="EncodedWithXMLCoder">YES</bool>
...@@ -1220,6 +1220,7 @@ ...@@ -1220,6 +1220,7 @@
</object> </object>
</object> </object>
<string key="NSFrame">{{10, 33}, {638, 197}}</string> <string key="NSFrame">{{10, 33}, {638, 197}}</string>
<reference key="NSSuperview" ref="898819366"/>
</object> </object>
<string key="NSLabel">Crop</string> <string key="NSLabel">Crop</string>
<reference key="NSColor" ref="279270326"/> <reference key="NSColor" ref="279270326"/>
...@@ -1698,7 +1699,7 @@ ...@@ -1698,7 +1699,7 @@
<object class="NSTabViewItem" id="133975353"> <object class="NSTabViewItem" id="133975353">
<string key="NSIdentifier">color</string> <string key="NSIdentifier">color</string>
<object class="NSView" key="NSView" id="10628740"> <object class="NSView" key="NSView" id="10628740">
<reference key="NSNextResponder" ref="898819366"/> <nil key="NSNextResponder"/>
<int key="NSvFlags">256</int> <int key="NSvFlags">256</int>
<object class="NSMutableArray" key="NSSubviews"> <object class="NSMutableArray" key="NSSubviews">
<bool key="EncodedWithXMLCoder">YES</bool> <bool key="EncodedWithXMLCoder">YES</bool>
...@@ -2743,7 +2744,6 @@ ...@@ -2743,7 +2744,6 @@
</object> </object>
</object> </object>
<string key="NSFrame">{{10, 33}, {638, 197}}</string> <string key="NSFrame">{{10, 33}, {638, 197}}</string>
<reference key="NSSuperview" ref="898819366"/>
</object> </object>
<string key="NSLabel">Color</string> <string key="NSLabel">Color</string>
<reference key="NSColor" ref="279270326"/> <reference key="NSColor" ref="279270326"/>
...@@ -3457,7 +3457,7 @@ ...@@ -3457,7 +3457,7 @@
<reference key="NSTabView" ref="898819366"/> <reference key="NSTabView" ref="898819366"/>
</object> </object>
</object> </object>
<reference key="NSSelectedTabViewItem" ref="133975353"/> <reference key="NSSelectedTabViewItem" ref="52756061"/>
<object class="NSFont" key="NSFont"> <object class="NSFont" key="NSFont">
<string key="NSName">LucidaGrande</string> <string key="NSName">LucidaGrande</string>
<double key="NSSize">13</double> <double key="NSSize">13</double>
...@@ -3469,7 +3469,7 @@ ...@@ -3469,7 +3469,7 @@
<nil key="themeKey"/> <nil key="themeKey"/>
<object class="NSMutableArray" key="NSSubviews"> <object class="NSMutableArray" key="NSSubviews">
<bool key="EncodedWithXMLCoder">YES</bool> <bool key="EncodedWithXMLCoder">YES</bool>
<reference ref="10628740"/> <reference ref="838226260"/>
</object> </object>
</object> </object>
</object> </object>
...@@ -3488,38 +3488,6 @@ ...@@ -3488,38 +3488,6 @@
<object class="IBObjectContainer" key="IBDocument.Objects"> <object class="IBObjectContainer" key="IBDocument.Objects">
<object class="NSMutableArray" key="connectionRecords"> <object class="NSMutableArray" key="connectionRecords">
<bool key="EncodedWithXMLCoder">YES</bool> <bool key="EncodedWithXMLCoder">YES</bool>
<object class="IBConnectionRecord">
<object class="IBActionConnection" key="connection">
<string key="label">takeIntegerValueFrom:</string>
<reference key="source" ref="411363183"/>
<reference key="destination" ref="726085921"/>
</object>
<int key="connectionID">82</int>
</object>
<object class="IBConnectionRecord">
<object class="IBActionConnection" key="connection">
<string key="label">takeIntegerValueFrom:</string>
<reference key="source" ref="190644777"/>
<reference key="destination" ref="308507287"/>
</object>
<int key="connectionID">91</int>
</object>
<object class="IBConnectionRecord">
<object class="IBActionConnection" key="connection">
<string key="label">takeIntegerValueFrom:</string>
<reference key="source" ref="950709956"/>
<reference key="destination" ref="1010555455"/>
</object>
<int key="connectionID">99</int>
</object>
<object class="IBConnectionRecord">
<object class="IBActionConnection" key="connection">
<string key="label">takeIntegerValueFrom:</string>
<reference key="source" ref="785525140"/>
<reference key="destination" ref="764981534"/>
</object>
<int key="connectionID">108</int>
</object>
<object class="IBConnectionRecord"> <object class="IBConnectionRecord">
<object class="IBActionConnection" key="connection"> <object class="IBActionConnection" key="connection">
<string key="label">takeIntegerValueFrom:</string> <string key="label">takeIntegerValueFrom:</string>
...@@ -4776,6 +4744,70 @@ ...@@ -4776,6 +4744,70 @@
</object> </object>
<int key="connectionID">683</int> <int key="connectionID">683</int>
</object> </object>
<object class="IBConnectionRecord">
<object class="IBActionConnection" key="connection">
<string key="label">cropObjectChanged:</string>
<reference key="source" ref="707254443"/>
<reference key="destination" ref="37947909"/>
</object>
<int key="connectionID">684</int>
</object>
<object class="IBConnectionRecord">
<object class="IBActionConnection" key="connection">
<string key="label">cropObjectChanged:</string>
<reference key="source" ref="707254443"/>
<reference key="destination" ref="726085921"/>
</object>
<int key="connectionID">685</int>
</object>
<object class="IBConnectionRecord">
<object class="IBActionConnection" key="connection">
<string key="label">cropObjectChanged:</string>
<reference key="source" ref="707254443"/>
<reference key="destination" ref="718775388"/>
</object>
<int key="connectionID">686</int>
</object>
<object class="IBConnectionRecord">
<object class="IBActionConnection" key="connection">
<string key="label">cropObjectChanged:</string>
<reference key="source" ref="707254443"/>
<reference key="destination" ref="147696409"/>
</object>
<int key="connectionID">687</int>
</object>
<object class="IBConnectionRecord">
<object class="IBOutletConnection" key="connection">
<string key="label">o_crop_bottom_stp</string>
<reference key="source" ref="707254443"/>
<reference key="destination" ref="308507287"/>
</object>
<int key="connectionID">688</int>
</object>
<object class="IBConnectionRecord">
<object class="IBOutletConnection" key="connection">
<string key="label">o_crop_left_stp</string>
<reference key="source" ref="707254443"/>
<reference key="destination" ref="764981534"/>
</object>
<int key="connectionID">689</int>
</object>
<object class="IBConnectionRecord">
<object class="IBOutletConnection" key="connection">
<string key="label">o_crop_right_stp</string>
<reference key="source" ref="707254443"/>
<reference key="destination" ref="1010555455"/>
</object>
<int key="connectionID">690</int>
</object>
<object class="IBConnectionRecord">
<object class="IBOutletConnection" key="connection">
<string key="label">o_crop_top_stp</string>
<reference key="source" ref="707254443"/>
<reference key="destination" ref="726085921"/>
</object>
<int key="connectionID">691</int>
</object>
</object> </object>
<object class="IBMutableOrderedSet" key="objectRecords"> <object class="IBMutableOrderedSet" key="objectRecords">
<object class="NSArray" key="orderedObjects"> <object class="NSArray" key="orderedObjects">
...@@ -7847,7 +7879,7 @@ ...@@ -7847,7 +7879,7 @@
</object> </object>
</object> </object>
<nil key="sourceID"/> <nil key="sourceID"/>
<int key="maxID">683</int> <int key="maxID">691</int>
</object> </object>
<object class="IBClassDescriber" key="IBDocument.Classes"> <object class="IBClassDescriber" key="IBDocument.Classes">
<object class="NSMutableArray" key="referencedPartialClassDescriptionsV3.1+"> <object class="NSMutableArray" key="referencedPartialClassDescriptionsV3.1+">
...@@ -7873,7 +7905,6 @@ ...@@ -7873,7 +7905,6 @@
<string>enableBanding:</string> <string>enableBanding:</string>
<string>enableBlur:</string> <string>enableBlur:</string>
<string>enableClone:</string> <string>enableClone:</string>
<string>enableEraseLogo:</string>
<string>enableExtract:</string> <string>enableExtract:</string>
<string>enableGradient:</string> <string>enableGradient:</string>
<string>enableGrain:</string> <string>enableGrain:</string>
...@@ -7890,7 +7921,6 @@ ...@@ -7890,7 +7921,6 @@
<string>enableWaterEffect:</string> <string>enableWaterEffect:</string>
<string>enableWaves:</string> <string>enableWaves:</string>
<string>enableZoom:</string> <string>enableZoom:</string>
<string>eraseLogoModifierChanged:</string>
<string>extractModifierChanged:</string> <string>extractModifierChanged:</string>
<string>gradientModifierChanged:</string> <string>gradientModifierChanged:</string>
<string>grainSliderChanged:</string> <string>grainSliderChanged:</string>
...@@ -7944,8 +7974,6 @@ ...@@ -7944,8 +7974,6 @@
<string>id</string> <string>id</string>
<string>id</string> <string>id</string>
<string>id</string> <string>id</string>
<string>id</string>
<string>id</string>
</object> </object>
</object> </object>
<object class="NSMutableDictionary" key="actionInfosByName"> <object class="NSMutableDictionary" key="actionInfosByName">
...@@ -7966,7 +7994,6 @@ ...@@ -7966,7 +7994,6 @@
<string>enableBanding:</string> <string>enableBanding:</string>
<string>enableBlur:</string> <string>enableBlur:</string>
<string>enableClone:</string> <string>enableClone:</string>
<string>enableEraseLogo:</string>
<string>enableExtract:</string> <string>enableExtract:</string>
<string>enableGradient:</string> <string>enableGradient:</string>
<string>enableGrain:</string> <string>enableGrain:</string>
...@@ -7983,7 +8010,6 @@ ...@@ -7983,7 +8010,6 @@
<string>enableWaterEffect:</string> <string>enableWaterEffect:</string>
<string>enableWaves:</string> <string>enableWaves:</string>
<string>enableZoom:</string> <string>enableZoom:</string>
<string>eraseLogoModifierChanged:</string>
<string>extractModifierChanged:</string> <string>extractModifierChanged:</string>
<string>gradientModifierChanged:</string> <string>gradientModifierChanged:</string>
<string>grainSliderChanged:</string> <string>grainSliderChanged:</string>
...@@ -8053,10 +8079,6 @@ ...@@ -8053,10 +8079,6 @@
<string key="name">enableClone:</string> <string key="name">enableClone:</string>
<string key="candidateClassName">id</string> <string key="candidateClassName">id</string>
</object> </object>
<object class="IBActionInfo">
<string key="name">enableEraseLogo:</string>
<string key="candidateClassName">id</string>
</object>
<object class="IBActionInfo"> <object class="IBActionInfo">
<string key="name">enableExtract:</string> <string key="name">enableExtract:</string>
<string key="candidateClassName">id</string> <string key="candidateClassName">id</string>
...@@ -8121,10 +8143,6 @@ ...@@ -8121,10 +8143,6 @@
<string key="name">enableZoom:</string> <string key="name">enableZoom:</string>
<string key="candidateClassName">id</string> <string key="candidateClassName">id</string>
</object> </object>
<object class="IBActionInfo">
<string key="name">eraseLogoModifierChanged:</string>
<string key="candidateClassName">id</string>
</object>
<object class="IBActionInfo"> <object class="IBActionInfo">
<string key="name">extractModifierChanged:</string> <string key="name">extractModifierChanged:</string>
<string key="candidateClassName">id</string> <string key="candidateClassName">id</string>
...@@ -8210,21 +8228,18 @@ ...@@ -8210,21 +8228,18 @@
<string>o_clone_lbl</string> <string>o_clone_lbl</string>
<string>o_crop_bottom_fld</string> <string>o_crop_bottom_fld</string>
<string>o_crop_bottom_lbl</string> <string>o_crop_bottom_lbl</string>
<string>o_crop_bottom_stp</string>
<string>o_crop_left_fld</string> <string>o_crop_left_fld</string>
<string>o_crop_left_lbl</string> <string>o_crop_left_lbl</string>
<string>o_crop_left_stp</string>
<string>o_crop_right_fld</string> <string>o_crop_right_fld</string>
<string>o_crop_right_lbl</string> <string>o_crop_right_lbl</string>
<string>o_crop_right_stp</string>
<string>o_crop_sync_left_right_ckb</string> <string>o_crop_sync_left_right_ckb</string>
<string>o_crop_sync_top_bottom_ckb</string> <string>o_crop_sync_top_bottom_ckb</string>
<string>o_crop_top_fld</string> <string>o_crop_top_fld</string>
<string>o_crop_top_lbl</string> <string>o_crop_top_lbl</string>
<string>o_eraselogo_ckb</string> <string>o_crop_top_stp</string>
<string>o_eraselogo_left_fld</string>
<string>o_eraselogo_left_lbl</string>
<string>o_eraselogo_mask_fld</string>
<string>o_eraselogo_mask_lbl</string>
<string>o_eraselogo_top_fld</string>
<string>o_eraselogo_top_lbl</string>
<string>o_extract_ckb</string> <string>o_extract_ckb</string>
<string>o_extract_fld</string> <string>o_extract_fld</string>
<string>o_extract_lbl</string> <string>o_extract_lbl</string>
...@@ -8367,9 +8382,6 @@ ...@@ -8367,9 +8382,6 @@
<string>id</string> <string>id</string>
<string>id</string> <string>id</string>
<string>id</string> <string>id</string>
<string>id</string>
<string>id</string>
<string>id</string>
</object> </object>
</object> </object>
<object class="NSMutableDictionary" key="toOneOutletInfosByName"> <object class="NSMutableDictionary" key="toOneOutletInfosByName">
...@@ -8415,21 +8427,18 @@ ...@@ -8415,21 +8427,18 @@
<string>o_clone_lbl</string> <string>o_clone_lbl</string>
<string>o_crop_bottom_fld</string> <string>o_crop_bottom_fld</string>
<string>o_crop_bottom_lbl</string> <string>o_crop_bottom_lbl</string>
<string>o_crop_bottom_stp</string>
<string>o_crop_left_fld</string> <string>o_crop_left_fld</string>
<string>o_crop_left_lbl</string> <string>o_crop_left_lbl</string>
<string>o_crop_left_stp</string>
<string>o_crop_right_fld</string> <string>o_crop_right_fld</string>
<string>o_crop_right_lbl</string> <string>o_crop_right_lbl</string>
<string>o_crop_right_stp</string>
<string>o_crop_sync_left_right_ckb</string> <string>o_crop_sync_left_right_ckb</string>
<string>o_crop_sync_top_bottom_ckb</string> <string>o_crop_sync_top_bottom_ckb</string>
<string>o_crop_top_fld</string> <string>o_crop_top_fld</string>
<string>o_crop_top_lbl</string> <string>o_crop_top_lbl</string>
<string>o_eraselogo_ckb</string> <string>o_crop_top_stp</string>
<string>o_eraselogo_left_fld</string>
<string>o_eraselogo_left_lbl</string>
<string>o_eraselogo_mask_fld</string>
<string>o_eraselogo_mask_lbl</string>
<string>o_eraselogo_top_fld</string>
<string>o_eraselogo_top_lbl</string>
<string>o_extract_ckb</string> <string>o_extract_ckb</string>
<string>o_extract_fld</string> <string>o_extract_fld</string>
<string>o_extract_lbl</string> <string>o_extract_lbl</string>
...@@ -8634,63 +8643,51 @@ ...@@ -8634,63 +8643,51 @@
<string key="candidateClassName">id</string> <string key="candidateClassName">id</string>
</object> </object>
<object class="IBToOneOutletInfo"> <object class="IBToOneOutletInfo">
<string key="name">o_crop_left_fld</string> <string key="name">o_crop_bottom_stp</string>
<string key="candidateClassName">id</string> <string key="candidateClassName">id</string>
</object> </object>
<object class="IBToOneOutletInfo"> <object class="IBToOneOutletInfo">
<string key="name">o_crop_left_lbl</string> <string key="name">o_crop_left_fld</string>
<string key="candidateClassName">id</string>
</object>
<object class="IBToOneOutletInfo">
<string key="name">o_crop_right_fld</string>
<string key="candidateClassName">id</string>
</object>
<object class="IBToOneOutletInfo">
<string key="name">o_crop_right_lbl</string>
<string key="candidateClassName">id</string>
</object>
<object class="IBToOneOutletInfo">
<string key="name">o_crop_sync_left_right_ckb</string>
<string key="candidateClassName">id</string> <string key="candidateClassName">id</string>
</object> </object>
<object class="IBToOneOutletInfo"> <object class="IBToOneOutletInfo">
<string key="name">o_crop_sync_top_bottom_ckb</string> <string key="name">o_crop_left_lbl</string>
<string key="candidateClassName">id</string> <string key="candidateClassName">id</string>
</object> </object>
<object class="IBToOneOutletInfo"> <object class="IBToOneOutletInfo">
<string key="name">o_crop_top_fld</string> <string key="name">o_crop_left_stp</string>
<string key="candidateClassName">id</string> <string key="candidateClassName">id</string>
</object> </object>
<object class="IBToOneOutletInfo"> <object class="IBToOneOutletInfo">
<string key="name">o_crop_top_lbl</string> <string key="name">o_crop_right_fld</string>
<string key="candidateClassName">id</string> <string key="candidateClassName">id</string>
</object> </object>
<object class="IBToOneOutletInfo"> <object class="IBToOneOutletInfo">
<string key="name">o_eraselogo_ckb</string> <string key="name">o_crop_right_lbl</string>
<string key="candidateClassName">id</string> <string key="candidateClassName">id</string>
</object> </object>
<object class="IBToOneOutletInfo"> <object class="IBToOneOutletInfo">
<string key="name">o_eraselogo_left_fld</string> <string key="name">o_crop_right_stp</string>
<string key="candidateClassName">id</string> <string key="candidateClassName">id</string>
</object> </object>
<object class="IBToOneOutletInfo"> <object class="IBToOneOutletInfo">
<string key="name">o_eraselogo_left_lbl</string> <string key="name">o_crop_sync_left_right_ckb</string>
<string key="candidateClassName">id</string> <string key="candidateClassName">id</string>
</object> </object>
<object class="IBToOneOutletInfo"> <object class="IBToOneOutletInfo">
<string key="name">o_eraselogo_mask_fld</string> <string key="name">o_crop_sync_top_bottom_ckb</string>
<string key="candidateClassName">id</string> <string key="candidateClassName">id</string>
</object> </object>
<object class="IBToOneOutletInfo"> <object class="IBToOneOutletInfo">
<string key="name">o_eraselogo_mask_lbl</string> <string key="name">o_crop_top_fld</string>
<string key="candidateClassName">id</string> <string key="candidateClassName">id</string>
</object> </object>
<object class="IBToOneOutletInfo"> <object class="IBToOneOutletInfo">
<string key="name">o_eraselogo_top_fld</string> <string key="name">o_crop_top_lbl</string>
<string key="candidateClassName">id</string> <string key="candidateClassName">id</string>
</object> </object>
<object class="IBToOneOutletInfo"> <object class="IBToOneOutletInfo">
<string key="name">o_eraselogo_top_lbl</string> <string key="name">o_crop_top_stp</string>
<string key="candidateClassName">id</string> <string key="candidateClassName">id</string>
</object> </object>
<object class="IBToOneOutletInfo"> <object class="IBToOneOutletInfo">
......
...@@ -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;
......
...@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment