/* PhidgetLEDControllers */

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

@interface PhidgetLEDControllers : NSObject
{
    IBOutlet NSSlider *brightnessSlider;
    IBOutlet NSTextField *connectedField;
    IBOutlet id mainWindow;
    IBOutlet NSTextField *numLEDsField;
    IBOutlet NSTextField *serialField;
    IBOutlet NSTextField *versionField;
    IBOutlet NSBox *ledsBox;
	IBOutlet NSBox *currentVoltageBox;
	IBOutlet NSImageView *pictureBox;
	IBOutlet NSPopUpButton *voltageCombo;
	IBOutlet NSPopUpButton *currentLimitCombo;
	IBOutlet NSSlider *currentLimitSlider;
	IBOutlet NSTextField *currentLimitIndexedLabel;
	
	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;

- (IBAction)out:(id)sender;
- (IBAction)slide:(id)sender;
- (IBAction)setCurrentLimitIndexed:(id)sender;
- (IBAction)setVoltage:(id)sender;
- (IBAction)setCurrentLimit:(id)sender;
- (void)phidgetAdded:(id)nothing;
- (void)phidgetRemoved:(id)nothing;
- (void)setPicture:(int)version:(CPhidget_DeviceID)devid;
@end
