/* PhidgetServoController */

#import <Cocoa/Cocoa.h>
#import <Phidget21/phidget21.h>

@interface PhidgetServoController : NSObject
{
    IBOutlet NSTextField *connectedField;
    IBOutlet NSTextField *numberOfServosField;
    IBOutlet NSTextField *serialField;
	IBOutlet NSTextField *versionField;
	IBOutlet id mainWindow;
    IBOutlet NSBox *servoBox;
	IBOutlet NSImageView *pictureBox;
    IBOutlet NSMatrix *servos;
    IBOutlet NSMatrix *servoLables;
    IBOutlet NSMatrix *servoFields;
    IBOutlet NSMatrix *engageBoxes;
	
	IBOutlet NSPanel *errorEventLogWindow;
	IBOutlet NSTextView *errorEventLog;
	IBOutlet NSTextField *errorEventLogCounter;
	IBOutlet NSPanel *passwordPanel;
	IBOutlet NSTextField *passwordField;
}
- (void)openCmdLine;

- (IBAction)clearErrorLog:(id)sender;
- (IBAction)passwordOK:(id)sender;
- (IBAction)passwordCancel:(id)sender;

- (void)phidgetAdded;
- (void)phidgetRemoved;
- (IBAction)moveServo:(id)sender;
- (IBAction)engageServo:(id)sender;
- (void)setPicture:(int)version:(CPhidget_DeviceID)devid;
@end
