1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
|
//
// mysql_parserAppDelegate.h
// mysql.parser
//
// Created by Mike on 03.04.12.
// Copyright 2012, 2015 Oracle Corporation. All rights reserved.
//
#include "MySQLLexer.h"
#include "MySQLParser.h"
#import <Cocoa/Cocoa.h>
@interface mysql_parserAppDelegate : NSObject <NSApplicationDelegate, NSTextViewDelegate> {
IBOutlet NSTextView *singleQueryText;
IBOutlet NSTextView *errorText;
IBOutlet NSTextView *output;
IBOutlet NSTextField *pathEdit;
IBOutlet NSTextField *statusText;
IBOutlet NSTextView *errorQueryText;
IBOutlet NSButton *startStopButton;
IBOutlet NSTextField *progressLabel;
IBOutlet NSTextView *stepsList;
IBOutlet NSView *topView;
// For query to token conversion.
IBOutlet NSTextView *queryList;
IBOutlet NSTextView *tokenList;
IBOutlet NSTextField *conversionErrorText;
IBOutlet NSTextField *versionText;
IBOutlet NSButton *modeIgnoreSpaceButton;
IBOutlet NSButton *modeAnsiQuotesButton;
IBOutlet NSButton *modePipesAsConcatButton;
IBOutlet NSButton *modeHighNotPrecedenceButton;
IBOutlet NSButton *modeNoBackslashEscapeButton;
@private
NSWindow *window;
NSUInteger queryCount;
BOOL stopTests;
BOOL running;
}
@property (assign) IBOutlet NSWindow *window;
- (IBAction)parse: (id)sender;
- (IBAction)selectFile: (id)sender;
- (IBAction)startTests: (id)sender;
- (IBAction)startConversion: (id)sender;
@end
|