forked from bububa/MongoHub-Mac
-
Notifications
You must be signed in to change notification settings - Fork 0
/
QueryWindowController.h
136 lines (117 loc) · 5.5 KB
/
QueryWindowController.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
//
// QueryWindowController.h
// MongoHub
//
// Created by Syd on 10-4-28.
// Copyright 2010 ThePeppersStudio.COM. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import <BWToolkitFramework/BWToolkitFramework.h>
@class DatabasesArrayController;
@class ResultsOutlineViewController;
@class Connection;
@class MongoDB;
@interface QueryWindowController : NSWindowController {
NSManagedObjectContext *managedObjectContext;
DatabasesArrayController *databasesArrayController;
IBOutlet ResultsOutlineViewController *findResultsViewController;
IBOutlet NSOutlineView *findResultsOutlineView;
MongoDB *mongoDB;
NSString *dbname;
NSString *collectionname;
Connection *conn;
IBOutlet NSTextField *criticalTextField;
IBOutlet NSTokenField *fieldsTextField;
IBOutlet NSTextField *skipTextField;
IBOutlet NSTextField *limitTextField;
IBOutlet NSTextField *sortTextField;
IBOutlet BWInsetTextField *totalResultsTextField;
IBOutlet NSTextField *findQueryTextField;
IBOutlet NSProgressIndicator *findQueryLoaderIndicator;
IBOutlet NSTextField *updateCriticalTextField;
IBOutlet NSTextField *updateSetTextField;
IBOutlet NSButton *upsetCheckBox;
IBOutlet BWInsetTextField *updateResultsTextField;
IBOutlet NSTextField *updateQueryTextField;
IBOutlet NSProgressIndicator *updateQueryLoaderIndicator;
IBOutlet NSTextField *removeCriticalTextField;
IBOutlet BWInsetTextField *removeResultsTextField;
IBOutlet NSTextField *removeQueryTextField;
IBOutlet NSProgressIndicator *removeQueryLoaderIndicator;
IBOutlet NSTextView *insertDataTextView;
IBOutlet BWInsetTextField *insertResultsTextField;
IBOutlet NSProgressIndicator *insertLoaderIndicator;
IBOutlet NSTextField *indexTextField;
IBOutlet ResultsOutlineViewController *indexesOutlineViewController;
IBOutlet NSProgressIndicator *indexLoaderIndicator;
IBOutlet NSTextView *mapFunctionTextView;
IBOutlet NSTextView *reduceFunctionTextView;
IBOutlet NSTextField *mrcriticalTextField;
IBOutlet NSTextField *mroutputTextField;
IBOutlet NSProgressIndicator *mrLoaderIndicator;
IBOutlet ResultsOutlineViewController *mrOutlineViewController;
}
@property (nonatomic, retain) NSManagedObjectContext *managedObjectContext;
@property (nonatomic, retain) DatabasesArrayController *databasesArrayController;
@property (nonatomic, retain) ResultsOutlineViewController *findResultsViewController;
@property (nonatomic, retain) MongoDB *mongoDB;
@property (nonatomic, retain) NSString *dbname;
@property (nonatomic, retain) NSString *collectionname;
@property (nonatomic, retain) Connection *conn;
@property (nonatomic, retain) NSTextField *criticalTextField;
@property (nonatomic, retain) NSTokenField *fieldsTextField;
@property (nonatomic, retain) NSTextField *skipTextField;
@property (nonatomic, retain) NSTextField *limitTextField;
@property (nonatomic, retain) NSTextField *sortTextField;
@property (nonatomic, retain) BWInsetTextField *totalResultsTextField;
@property (nonatomic, retain) NSTextField *findQueryTextField;
@property (nonatomic, retain) NSOutlineView *findResultsOutlineView;
@property (nonatomic, retain) NSProgressIndicator *findQueryLoaderIndicator;
@property (nonatomic, retain) NSTextField *updateCriticalTextField;
@property (nonatomic, retain) NSTextField *updateSetTextField;
@property (nonatomic, retain) NSButton *upsetCheckBox;
@property (nonatomic, retain) BWInsetTextField *updateResultsTextField;
@property (nonatomic, retain) NSTextField *updateQueryTextField;
@property (nonatomic, retain) NSProgressIndicator *updateQueryLoaderIndicator;
@property (nonatomic, retain) NSTextField *removeCriticalTextField;
@property (nonatomic, retain) BWInsetTextField *removeResultsTextField;
@property (nonatomic, retain) NSTextField *removeQueryTextField;
@property (nonatomic, retain) NSProgressIndicator *removeQueryLoaderIndicator;
@property (nonatomic, retain) NSTextView *insertDataTextView;
@property (nonatomic, retain) BWInsetTextField *insertResultsTextField;
@property (nonatomic, retain) NSProgressIndicator *insertLoaderIndicator;
@property (nonatomic, retain) NSTextField *indexTextField;
@property (nonatomic, retain) ResultsOutlineViewController *indexesOutlineViewController;
@property (nonatomic, retain) NSProgressIndicator *indexLoaderIndicator;
@property (nonatomic, retain) NSTextView *mapFunctionTextView;
@property (nonatomic, retain) NSTextView *reduceFunctionTextView;
@property (nonatomic, retain) NSTextField *mrcriticalTextField;
@property (nonatomic, retain) NSTextField *mroutputTextField;
@property (nonatomic, retain) ResultsOutlineViewController *mrOutlineViewController;
@property (nonatomic, retain) NSProgressIndicator *mrLoaderIndicator;
- (IBAction)findQuery:(id)sender;
- (void)doFindQuery;
- (IBAction)expandFindResults:(id)sender;
- (IBAction)collapseFindResults:(id)sender;
- (IBAction)updateQuery:(id)sender;
- (void)doUpdateQuery;
- (IBAction)removeQuery:(id)sender;
- (void)doRemoveQuery;
- (IBAction)insertQuery:(id)sender;
- (void)doInsertQuery;
- (IBAction)indexQuery:(id)sender;
- (void)doIndexQuery;
- (IBAction)ensureIndex:(id)sender;
- (void)doEnsureIndex;
- (IBAction)reIndex:(id)sender;
- (void)doReIndex;
- (IBAction)dropIndex:(id)sender;
- (void)doDropIndex;
- (IBAction) mapReduce:(id)sender;
- (void)doMapReduce;
- (IBAction)findQueryComposer:(id)sender;
- (IBAction)updateQueryComposer:(id)sender;
- (IBAction)removeQueryComposer:(id)sender;
- (void)showEditWindow:(id)sender;
- (void)jsonWindowWillClose:(id)sender;
@end