//----------------------------------------------------------------------------------------------------
//
//	UsingClocksPaletteController
//
//	Inherits From:		Object
//
//	Declared In:		UsingClocksPaletteController.h
//
//	Disclaimer
//
//		You may freely copy, distribute and reuse this software and its
//		associated documentation. I disclaim any warranty of any kind, 
//		expressed or implied, as to its fitness for any particular use.
//
//----------------------------------------------------------------------------------------------------
#import "UsingClocksPaletteController.h"
#import "AntiGravity.h"


@implementation UsingClocksPaletteController

- activateAlarm:sender
{
	[alarmClock alarmTimeAndDate: [alarmClock clockTimeAndDate]];
	[alarmClock alarmSecond: 0];
	[alarmClock alarmMinute: [alarmClock alarmMinute] + 1];
	[alarmClock alarmHour: ([alarmClock alarmMinute] == 0 ? [alarmClock alarmHour] + 1 : [		alarmClock alarmHour])];
	[alarmClock enableAlarm: YES];
	[activateButton setEnabled: NO];
	return self;
}


- antiGravity:sender
{
	PSWAntiGravity ();
	[alarmClock enableAlarm: NO];
	[activateButton setEnabled: YES];
	return self;
}


@end
