1 /* 2 Project: MPDCon 3 4 Copyright (C) 2004 5 6 Author: Daniel Luederwald 7 8 Created: 2004-05-12 17:59:14 +0200 by flip 9 10 Preferences Controller 11 12 This application is free software; you can redistribute it and/or 13 modify it under the terms of the GNU General Public 14 License as published by the Free Software Foundation; either 15 version 2 of the License, or (at your option) any later version. 16 17 This application is distributed in the hope that it will be useful, 18 but WITHOUT ANY WARRANTY; without even the implied warranty of 19 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 20 Library General Public License for more details. 21 22 You should have received a copy of the GNU General Public 23 License along with this library; if not, write to the Free 24 Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA. 25 */ 26 27 #ifndef _PCAPPPROJ_PREFERENCESCONTROLLER_H 28 #define _PCAPPPROJ_PREFERENCESCONTROLLER_H 29 30 #include <AppKit/AppKit.h> 31 #include "Strings.h" 32 33 @interface PreferencesController : NSWindowController 34 { 35 IBOutlet NSTextField *mpdHost; 36 IBOutlet NSTextField *mpdPort; 37 IBOutlet NSTextField *mpdTimeout; 38 IBOutlet NSSecureTextField *password; 39 IBOutlet NSButton *scrollSwitch; 40 IBOutlet NSButton *usePassword; 41 IBOutlet NSColorWell *colorWell; 42 43 NSUserDefaults *defaults; 44 } 45 46 // Initialization Methods 47 + (id) sharedPreferencesController; 48 49 // Gui Methods 50 - (void) apply: (id)sender; 51 - (void) revert: (id)sender; 52 - (void) usePasswordChanged: (id)sender; 53 54 @end 55 56 #endif 57