X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Fgui%2Fmacosx%2Fprefs_widgets.h;h=d18688766c983cc2b43006c4245d5e81658295e0;hb=9ecd18578e50dd748818dffca1b03bf90af85fd7;hp=f1c1ef0005c54eb34852fc00591955e7d4928fb9;hpb=35736da092fe9625cd4a1189d3189950e81a6830;p=vlc diff --git a/modules/gui/macosx/prefs_widgets.h b/modules/gui/macosx/prefs_widgets.h index f1c1ef0005..d18688766c 100644 --- a/modules/gui/macosx/prefs_widgets.h +++ b/modules/gui/macosx/prefs_widgets.h @@ -1,16 +1,16 @@ /***************************************************************************** * prefs_widgets.h: Preferences controls ***************************************************************************** - * Copyright (C) 2002-2003 VideoLAN + * Copyright (C) 2002-2007 the VideoLAN team * $Id$ * - * Authors: Derk-Jan Hartman + * Authors: Derk-Jan Hartman * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the @@ -18,16 +18,15 @@ * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, 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_RANGED_INTEGER (CONFIG_ITEM_INTEGER + 1) #define CONFIG_ITEM_KEY_BEFORE_10_3 (CONFIG_ITEM_KEY + 1) #define CONFIG_ITEM_KEY_AFTER_10_3 (CONFIG_ITEM_KEY + 2) -#define MACOS_VERSION [[[NSDictionary dictionaryWithContentsOfFile: \ - @"/System/Library/CoreServices/SystemVersion.plist"] \ - objectForKey: @"ProductVersion"] floatValue] +#define LEFTMARGIN 18 +#define RIGHTMARGIN 18 @interface VLCConfigControl : NSView { @@ -36,7 +35,7 @@ NSTextField *o_label; int i_type; int i_view_type; - vlc_bool_t b_advanced; + bool b_advanced; } + (VLCConfigControl *)newControl: (module_config_t *)_p_item @@ -51,6 +50,8 @@ - (float)floatValue; - (char *)stringValue; - (void)applyChanges; +- (int)getLabelSize; +- (void) alignWithXPosition:(int)i_xPos; static NSMenu *o_keys_menu = nil; + (int)calcVerticalMargin: (int)i_curItem lastItem:(int)i_lastItem; @@ -182,21 +183,7 @@ static NSMenu *o_keys_menu = nil; @end -@interface KeyConfigControlBefore103 : VLCConfigControl -{ - NSButton *o_cmd_checkbox; - NSButton *o_ctrl_checkbox; - NSButton *o_alt_checkbox; - NSButton *o_shift_checkbox; - NSPopUpButton *o_popup; -} - -- (id) initWithItem: (module_config_t *)_p_item - withView: (NSView *)o_parent_view; - -@end - -@interface KeyConfigControlAfter103 : VLCConfigControl +@interface KeyConfigControl : VLCConfigControl { NSPopUpButton *o_popup; }