/
JsonWindowController.h
46 lines (40 loc) · 1.41 KB
/
JsonWindowController.h
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
//
// JsonWindowController.h
// MongoHub
//
// Created by Syd on 10-12-27.
// Copyright 2010 ThePeppersStudio.COM. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import "UKSyntaxColoredTextViewController.h"
@class DatabasesArrayController;
@class Connection;
@class MongoDB;
#ifndef UKSCTD_DEFAULT_TEXTENCODING
#define UKSCTD_DEFAULT_TEXTENCODING NSUTF8StringEncoding
#endif
@interface JsonWindowController : NSWindowController <UKSyntaxColoredTextViewDelegate>{
NSManagedObjectContext *managedObjectContext;
DatabasesArrayController *databaseArrayController;
Connection *conn;
MongoDB *mongoDB;
NSString *dbname;
NSString *collectionname;
NSDictionary *jsonDict;
IBOutlet NSTextView *myTextView;
IBOutlet NSProgressIndicator *progress;
IBOutlet NSTextField *status;
UKSyntaxColoredTextViewController *syntaxColoringController;
}
@property (nonatomic, retain) NSManagedObjectContext *managedObjectContext;
@property (nonatomic, retain) DatabasesArrayController *databasesArrayController;
@property (nonatomic, retain) MongoDB *mongoDB;
@property (nonatomic, retain) NSString *dbname;
@property (nonatomic, retain) NSString *collectionname;
@property (nonatomic, retain) Connection *conn;
@property (nonatomic, retain) NSDictionary *jsonDict;
@property (nonatomic, retain) NSTextView *myTextView;
-(IBAction) save:(id)sender;
-(void) doSave;
-(IBAction) recolorCompleteFile: (id)sender;
@end