Files
UltraGrid/gui/UltraGrid GUI/DoButton.m
Martin Pulec bb5b84d9ea Restructuralize directory structure
* content of ultragrid/ subdirector moved to root
2012-07-02 18:24:25 +02:00

68 lines
1.2 KiB
Objective-C

//
// DoButton.m
// UltraGrid GUI
//
// Created by Martin Pulec on 11/2/11.
// Copyright 2011 __MyCompanyName__. All rights reserved.
//
#import "DoButton.h"
#import "UGController.h"
@implementation DoButton
@synthesize advancedWin;
@synthesize settings;
@synthesize terminal;
@synthesize app;
- (IBAction) doPlay: (id)pId
{
[app doPlay];
}
- (IBAction)doAdvanced:(id)pId
{
[advancedWin makeKeyAndOrderFront: pId];
}
- (IBAction)doAdvancedOK:(id)pId
{
[advancedWin close];
}
- (IBAction)doAdvancedSave:(id)pId
{
[settings save];
[advancedWin close];
}
- (IBAction)doCaptureHelp:(id)pId
{
id controller = [[UGController alloc] init];
NSString *arg = @"-t ";
arg = [arg stringByAppendingString: [settings capture]];
arg = [arg stringByAppendingString: @":help"];
[terminal clear];
[terminal show];
[terminal print: [controller getOutput: arg]];
}
- (IBAction)doDisplayHelp:(id)pId
{
id controller = [[UGController alloc] init];
NSString *arg = @"-d ";
arg = [arg stringByAppendingString: [settings display]];
arg = [arg stringByAppendingString: @":help"];
[terminal clear];
[terminal show];
[terminal print: [controller getOutput: arg]];
}
- (IBAction)doShowTerminal:(id)pId
{
[terminal show];
}
@end