00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00045 #import <Cocoa/Cocoa.h>
00046
00047 #define MODULE_NAME @"DownAndOut"
00048
00049 @class DownAndOutView;
00050
00060 @interface DownAndOutController : NSObject
00061 {
00064 IBOutlet NSButton * cancelButton;
00065 IBOutlet NSButton * okButton;
00066 IBOutlet NSButton * revertButton;
00067
00068 IBOutlet NSPanel * panel;
00069 IBOutlet NSTextField * timeField;
00070 IBOutlet NSStepper * timeStepper;
00071 IBOutlet NSMatrix * movementMatrix;
00072
00073 IBOutlet NSImageView * imageWell;
00074 IBOutlet NSButton * imageSet;
00075 IBOutlet NSButton * imageClear;
00076
00077 IBOutlet NSTextView * messageField;
00078
00079 IBOutlet NSSlider * sizeSlider;
00080
00081
00082 DownAndOutView * view;
00083
00088 int secondsBeforeLogout;
00089 BOOL shouldMove;
00090 NSImage * addedImage;
00091 NSString * messageText;
00092
00093 }
00094
00100 - (id) initAsPreview: (BOOL) inIsPreview forView: (DownAndOutView *) view;
00101
00105
00109 - (IBAction) endButton: (id) sender;
00110
00114 - (IBAction) stepper: (id) sender;
00115
00119 - (IBAction) timeText: (id) sender;
00120
00124 - (IBAction) moveSelected: (id) sender;
00125
00135 - (IBAction) imageAction: (id) sender;
00140 - (IBAction) restoreDefaults: (id) sender;
00144 - (IBAction) sliderAction: (id) sender;
00146
00150 - (int) secondsBeforeLogout;
00151
00155 - (void) setSecondsBeforeLogout: (int) seconds;
00156
00160 - (BOOL) shouldMove;
00161
00165 - (NSImage *) addedImage;
00166
00170 - (void) setAddedImage: (NSImage *) anImage;
00171
00176 - (NSString *) messageText;
00177
00188 - (NSString *) messageTextForSeconds: (int) seconds;
00193 - (void) setMessageText: (NSString *) newText;
00194
00198 - (NSPanel *) panel;
00199
00203 - (void) quitApplications;
00207 - (void) killApplications;
00211 - (NSString *) nameOfThisApplication;
00220 - (void) makeTouchFile;
00225 - (void) logOut;
00226
00227 @end