//
//  quick and dirty:
//     dialing with the ZyXEL modem 
//     by: Olaf Mueller <olaf@orest.escape.de>
//

#import "Preferences.h"


@interface Preferences (PrivatePreferencesMethods)	


@end


@implementation Preferences

//	init

- init
{
	[super init] ;
	
	[NXApp loadNibSection:"Preferences.nib" owner:self] ;
	[myPanel setFrameAutosaveName: "Preferences"] ;
	return  self ;
}


- orderFront: sender
{
	[myDialCommand setStringValue: NXGetDefaultValue([NXApp appName],"dial_command")] ;
	[myDevice setStringValue: NXGetDefaultValue([NXApp appName],"device")] ;
	[myPanel makeKeyAndOrderFront: self] ;
	return  self ;
}


- doOk: sender
{
	NXWriteDefault ([NXApp appName],"dial_command",[myDialCommand stringValue]) ;
	NXWriteDefault ([NXApp appName],"device",[myDevice stringValue]) ;
	return  self ;
}


// ------------------- private methods -------------------------


@end
