Commit 940a60aa authored by Felix Paul Kühne's avatar Felix Paul Kühne

macosx: fixed prefs compilation and fixed an appearance issue

parent 1a95c088
...@@ -21,9 +21,8 @@ ...@@ -21,9 +21,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/ *****************************************************************************/
#define CONFIG_ITEM_STRING_LIST (CONFIG_ITEM_STRING + 1) #define CONFIG_ITEM_STRING_LIST (CONFIG_ITEM_STRING + 10)
#define CONFIG_ITEM_RANGED_INTEGER (CONFIG_ITEM_INTEGER + 1) #define CONFIG_ITEM_RANGED_INTEGER (CONFIG_ITEM_INTEGER + 10)
#define CONFIG_ITEM_KEY_AFTER_10_3 (CONFIG_ITEM_KEY + 2)
#define LEFTMARGIN 18 #define LEFTMARGIN 18
#define RIGHTMARGIN 18 #define RIGHTMARGIN 18
...@@ -208,5 +207,4 @@ static NSMenu *o_keys_menu = nil; ...@@ -208,5 +207,4 @@ static NSMenu *o_keys_menu = nil;
//#undef CONFIG_ITEM_LIST_STRING //#undef CONFIG_ITEM_LIST_STRING
//#undef CONFIG_ITEM_RANGED_INTEGER //#undef CONFIG_ITEM_RANGED_INTEGER
//#undef CONFIG_ITEM_KEY_AFTER_10_3
...@@ -469,7 +469,7 @@ o_textfield = [[[NSSecureTextField alloc] initWithFrame: s_rc] retain]; \ ...@@ -469,7 +469,7 @@ o_textfield = [[[NSSecureTextField alloc] initWithFrame: s_rc] retain]; \
case CONFIG_ITEM_BOOL: case CONFIG_ITEM_BOOL:
i_margin = 7; i_margin = 7;
break; break;
case CONFIG_ITEM_KEY_AFTER_10_3: case CONFIG_ITEM_KEY:
i_margin = 6; i_margin = 6;
break; break;
case CONFIG_ITEM_MODULE_LIST: case CONFIG_ITEM_MODULE_LIST:
...@@ -506,7 +506,7 @@ o_textfield = [[[NSSecureTextField alloc] initWithFrame: s_rc] retain]; \ ...@@ -506,7 +506,7 @@ o_textfield = [[[NSSecureTextField alloc] initWithFrame: s_rc] retain]; \
case CONFIG_ITEM_BOOL: case CONFIG_ITEM_BOOL:
i_margin = 7; i_margin = 7;
break; break;
case CONFIG_ITEM_KEY_AFTER_10_3: case CONFIG_ITEM_KEY:
i_margin = 6; i_margin = 6;
break; break;
case CONFIG_ITEM_MODULE_LIST: case CONFIG_ITEM_MODULE_LIST:
...@@ -544,7 +544,7 @@ o_textfield = [[[NSSecureTextField alloc] initWithFrame: s_rc] retain]; \ ...@@ -544,7 +544,7 @@ o_textfield = [[[NSSecureTextField alloc] initWithFrame: s_rc] retain]; \
case CONFIG_ITEM_BOOL: case CONFIG_ITEM_BOOL:
i_margin = 10; i_margin = 10;
break; break;
case CONFIG_ITEM_KEY_AFTER_10_3: case CONFIG_ITEM_KEY:
i_margin = 9; i_margin = 9;
break; break;
case CONFIG_ITEM_MODULE_LIST: case CONFIG_ITEM_MODULE_LIST:
...@@ -581,7 +581,7 @@ o_textfield = [[[NSSecureTextField alloc] initWithFrame: s_rc] retain]; \ ...@@ -581,7 +581,7 @@ o_textfield = [[[NSSecureTextField alloc] initWithFrame: s_rc] retain]; \
case CONFIG_ITEM_BOOL: case CONFIG_ITEM_BOOL:
i_margin = 8; i_margin = 8;
break; break;
case CONFIG_ITEM_KEY_AFTER_10_3: case CONFIG_ITEM_KEY:
i_margin = 7; i_margin = 7;
break; break;
case CONFIG_ITEM_MODULE_LIST: case CONFIG_ITEM_MODULE_LIST:
...@@ -618,7 +618,7 @@ o_textfield = [[[NSSecureTextField alloc] initWithFrame: s_rc] retain]; \ ...@@ -618,7 +618,7 @@ o_textfield = [[[NSSecureTextField alloc] initWithFrame: s_rc] retain]; \
case CONFIG_ITEM_BOOL: case CONFIG_ITEM_BOOL:
i_margin = 7; i_margin = 7;
break; break;
case CONFIG_ITEM_KEY_AFTER_10_3: case CONFIG_ITEM_KEY:
i_margin = 6; i_margin = 6;
break; break;
case CONFIG_ITEM_MODULE_LIST: case CONFIG_ITEM_MODULE_LIST:
...@@ -655,7 +655,7 @@ o_textfield = [[[NSSecureTextField alloc] initWithFrame: s_rc] retain]; \ ...@@ -655,7 +655,7 @@ o_textfield = [[[NSSecureTextField alloc] initWithFrame: s_rc] retain]; \
case CONFIG_ITEM_BOOL: case CONFIG_ITEM_BOOL:
i_margin = 7; i_margin = 7;
break; break;
case CONFIG_ITEM_KEY_AFTER_10_3: case CONFIG_ITEM_KEY:
i_margin = 6; i_margin = 6;
break; break;
case CONFIG_ITEM_MODULE_LIST: case CONFIG_ITEM_MODULE_LIST:
...@@ -692,7 +692,7 @@ o_textfield = [[[NSSecureTextField alloc] initWithFrame: s_rc] retain]; \ ...@@ -692,7 +692,7 @@ o_textfield = [[[NSSecureTextField alloc] initWithFrame: s_rc] retain]; \
case CONFIG_ITEM_BOOL: case CONFIG_ITEM_BOOL:
i_margin = 7; i_margin = 7;
break; break;
case CONFIG_ITEM_KEY_AFTER_10_3: case CONFIG_ITEM_KEY:
i_margin = 5; i_margin = 5;
break; break;
case CONFIG_ITEM_MODULE_LIST: case CONFIG_ITEM_MODULE_LIST:
...@@ -703,7 +703,7 @@ o_textfield = [[[NSSecureTextField alloc] initWithFrame: s_rc] retain]; \ ...@@ -703,7 +703,7 @@ o_textfield = [[[NSSecureTextField alloc] initWithFrame: s_rc] retain]; \
break; break;
} }
break; break;
case CONFIG_ITEM_KEY_AFTER_10_3: case CONFIG_ITEM_KEY:
switch( i_lastItem ) switch( i_lastItem )
{ {
case CONFIG_ITEM_STRING: case CONFIG_ITEM_STRING:
...@@ -729,7 +729,7 @@ o_textfield = [[[NSSecureTextField alloc] initWithFrame: s_rc] retain]; \ ...@@ -729,7 +729,7 @@ o_textfield = [[[NSSecureTextField alloc] initWithFrame: s_rc] retain]; \
case CONFIG_ITEM_BOOL: case CONFIG_ITEM_BOOL:
i_margin = 7; i_margin = 7;
break; break;
case CONFIG_ITEM_KEY_AFTER_10_3: case CONFIG_ITEM_KEY:
i_margin = 8; i_margin = 8;
break; break;
case CONFIG_ITEM_MODULE_LIST: case CONFIG_ITEM_MODULE_LIST:
...@@ -766,7 +766,7 @@ o_textfield = [[[NSSecureTextField alloc] initWithFrame: s_rc] retain]; \ ...@@ -766,7 +766,7 @@ o_textfield = [[[NSSecureTextField alloc] initWithFrame: s_rc] retain]; \
case CONFIG_ITEM_BOOL: case CONFIG_ITEM_BOOL:
i_margin = 7; i_margin = 7;
break; break;
case CONFIG_ITEM_KEY_AFTER_10_3: case CONFIG_ITEM_KEY:
i_margin = 5; i_margin = 5;
break; break;
case CONFIG_ITEM_MODULE_LIST: case CONFIG_ITEM_MODULE_LIST:
...@@ -826,7 +826,7 @@ o_textfield = [[[NSSecureTextField alloc] initWithFrame: s_rc] retain]; \ ...@@ -826,7 +826,7 @@ o_textfield = [[[NSSecureTextField alloc] initWithFrame: s_rc] retain]; \
initWithItem: _p_item initWithItem: _p_item
withView: o_parent_view]; withView: o_parent_view];
} }
else if( _p_item->min.i != 0 || _p_item->max.i != 0 ) else if( (_p_item->min.i != 0 || _p_item->max.i != 0) && (_p_item->min.i != INT_MIN || _p_item->max.i != INT_MAX) )
{ {
p_control = [[RangedIntegerConfigControl alloc] p_control = [[RangedIntegerConfigControl alloc]
initWithItem: _p_item initWithItem: _p_item
...@@ -845,7 +845,7 @@ o_textfield = [[[NSSecureTextField alloc] initWithFrame: s_rc] retain]; \ ...@@ -845,7 +845,7 @@ o_textfield = [[[NSSecureTextField alloc] initWithFrame: s_rc] retain]; \
withView: o_parent_view]; withView: o_parent_view];
break; break;
case CONFIG_ITEM_FLOAT: case CONFIG_ITEM_FLOAT:
if( _p_item->min.f != 0 || _p_item->max.f != 0 ) if( (_p_item->min.i != 0 || _p_item->max.i != 0) && (_p_item->min.i != INT_MIN || _p_item->max.i != INT_MAX) )
{ {
p_control = [[RangedFloatConfigControl alloc] p_control = [[RangedFloatConfigControl alloc]
initWithItem: _p_item initWithItem: _p_item
...@@ -2073,7 +2073,7 @@ o_textfield = [[[NSSecureTextField alloc] initWithFrame: s_rc] retain]; \ ...@@ -2073,7 +2073,7 @@ o_textfield = [[[NSSecureTextField alloc] initWithFrame: s_rc] retain]; \
if( [super initWithFrame: mainFrame item: _p_item] != nil ) if( [super initWithFrame: mainFrame item: _p_item] != nil )
{ {
i_view_type = CONFIG_ITEM_KEY_AFTER_10_3; i_view_type = CONFIG_ITEM_KEY;
o_tooltip = [[VLCMain sharedInstance] wrapString: o_tooltip = [[VLCMain sharedInstance] wrapString:
[[VLCMain sharedInstance] [[VLCMain sharedInstance]
......
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