1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104
|
//
// Lynkeos
// $Id: MyUserPrefsController.h 522 2013-05-18 16:28:16Z j-etienne $
//
// Created by Jean-Etienne LAMIAUD on Sun Feb 8 2004.
// Copyright (c) 2003-2013. Jean-Etienne LAMIAUD
//
// 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
// GNU General Public License for more details.
//
// 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-1307, USA.
//
#ifndef __MYUSERPREFSCONTROLLER_H
#define __MYUSERPREFSCONTROLLER_H
#import <Foundation/Foundation.h>
#import <AppKit/AppKit.h>
#include "LynkeosCommon.h"
/*!
* @header
* @abstract Definitions for the user preferences controller
*/
/*!
* @class MyUserPrefsController
* @abstract User preferences controller class
* @discussion This class is a singleton object controlling the user
* preferences window
* @ingroup Controlers
*/
@interface MyUserPrefsController : NSObject
#if !GNUSTEP
<NSToolbarDelegate>
#endif
{
@private
// GUI controls
IBOutlet NSPanel* _panel;
IBOutlet NSScrollView* _prefView;
IBOutlet NSView* _generalPrefsView;
NSToolbar* _toolbar; //!< The preferences pane toolbar
// Internals
NSUserDefaults* _user;
}
/*!
* @method getUserPref
* @abstract Get the singleton instance
* @result The only instance of MyUserPrefsController
*/
+ (MyUserPrefsController*) getUserPref ;
/*!
* @method resetPrefs:
* @abstract Reset the preferences to their "factory defaults" values.
* @param sender The button
*/
- (IBAction)resetPrefs:(id)sender;
/*!
* @method applyChanges:
* @abstract Save the new preferences and leave the preferences panel open.
* @param sender The button
*/
- (IBAction)applyChanges:(id)sender;
/*!
* @method cancelChanges:
* @abstract Close the preferences panel and discard its preferences.
* @param sender The button
*/
- (IBAction)cancelChanges:(id)sender;
/*!
* @method confirmChanges:
* @abstract Save the new preferences and close the preferences panel
* @param sender The button
*/
- (IBAction)confirmChanges:(id)sender;
/*!
* @method showPrefs:
* @abstract Open the preferences panel.
* @param sender The main menu "preferences" item
*/
- (IBAction) showPrefs:(id)sender;
@end
#endif
|