//
//  XTBottomBarHandler.m
//  TadsTerp
//
//  Created by Rune Berg on 12/06/14.
//  Copyright (c) 2014 Rune Berg. All rights reserved.
//

#import "XTBottomBarHandler.h"


@implementation XTBottomBarHandler

- (void)showKeyPrompt:(NSString *)keyPrompt
{
	[self.keyPromptTextField setStringValue:keyPrompt];
}

- (void)clearKeyPrompt
{
	[self.keyPromptTextField setStringValue:@""];
}

- (void)setParsingModeHtml:(BOOL)html
{
	NSString *modeStr = (html ? @"HTML" : @"Plain");
	[self.parsingModeTextField setStringValue:modeStr];
}

- (void)resetToDefaults
{
	[self clearKeyPrompt];
	[self setParsingModeHtml:NO];
}

@end
