00001 // 00002 // DownAndOutView.h 00003 // DownAndOutª 00004 // 00005 // Created by Fritz Anderson on Mon Aug 18 2003. 00006 // Copyright (c) 2003 Trustees of the University of Chicago. All rights reserved. 00007 // This program is free software; you can redistribute it and/or modify 00008 // it under the terms of the GNU General Public License as published by 00009 // the Free Software Foundation; either version 2 of the License, or 00010 // (at your option) any later version. 00011 // 00012 // This program is distributed in the hope that it will be useful, 00013 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 // GNU General Public License for more details. 00016 // 00017 // You should have received a copy of the GNU General Public License 00018 // along with this program; if not, write to the Free Software 00019 // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00020 // 00021 00022 #import <ScreenSaver/ScreenSaver.h> 00023 00024 @class DownAndOutController; 00025 00027 typedef enum { 00028 kDOInitial, 00029 kDOCountdown, 00030 kDOQuitting, 00031 kDOKilling, 00032 kDOLogout, 00033 kDODone 00034 } DOState; 00035 00039 @interface DownAndOutView : ScreenSaverView 00040 { 00041 NSDate * deadline; 00042 DownAndOutController * controller; 00043 00044 NSRect contentRect; 00045 NSPoint velocity; 00046 00047 DOState state; 00048 00049 NSImage * pieImage; 00050 NSImage * textImage; 00051 int secondsLeft; 00052 00053 float clockRadius; 00054 } 00055 00059 - (float) clockRadius; 00064 - (void) setClockRadius: (float) newRadius; 00065 00066 @end
1.4.4