Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tag: 2.3.2
Fetching contributors…

Cannot retrieve contributors at this time

194 lines (170 sloc) 8.489 kB
//
// 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>
#import <mongo/client/dbclient.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;
IBOutlet NSTextField *expCriticalTextField;
IBOutlet NSTokenField *expFieldsTextField;
IBOutlet NSTextField *expSkipTextField;
IBOutlet NSTextField *expLimitTextField;
IBOutlet NSTextField *expSortTextField;
IBOutlet BWInsetTextField *expResultsTextField;
IBOutlet NSTextField *expPathTextField;
IBOutlet NSPopUpButton *expTypePopUpButton;
IBOutlet NSTextField *expQueryTextField;
IBOutlet NSButton *expJsonArrayCheckBox;
IBOutlet NSProgressIndicator *expProgressIndicator;
IBOutlet NSButton *impIgnoreBlanksCheckBox;
IBOutlet NSButton *impDropCheckBox;
IBOutlet NSButton *impHeaderlineCheckBox;
IBOutlet NSTokenField *impFieldsTextField;
IBOutlet BWInsetTextField *impResultsTextField;
IBOutlet NSTextField *impPathTextField;
IBOutlet NSPopUpButton *impTypePopUpButton;
IBOutlet NSButton *impJsonArrayCheckBox;
IBOutlet NSButton *impStopOnErrorCheckBox;
IBOutlet NSProgressIndicator *impProgressIndicator;
}
@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;
@property (nonatomic, retain) NSTextField *expCriticalTextField;
@property (nonatomic, retain) NSTokenField *expFieldsTextField;
@property (nonatomic, retain) NSTextField *expSkipTextField;
@property (nonatomic, retain) NSTextField *expLimitTextField;
@property (nonatomic, retain) NSTextField *expSortTextField;
@property (nonatomic, retain) BWInsetTextField *expResultsTextField;
@property (nonatomic, retain) NSTextField *expPathTextField;
@property (nonatomic, retain) NSPopUpButton *expTypePopUpButton;
@property (nonatomic, retain) NSTextField *expQueryTextField;
@property (nonatomic, retain) NSButton *expJsonArrayCheckBox;
@property (nonatomic, retain) NSProgressIndicator *expProgressIndicator;
@property (nonatomic, retain) NSButton *impIgnoreBlanksCheckBox;
@property (nonatomic, retain) NSButton *impDropCheckBox;
@property (nonatomic, retain) NSButton *impHeaderlineCheckBox;
@property (nonatomic, retain) NSTokenField *impFieldsTextField;
@property (nonatomic, retain) BWInsetTextField *impResultsTextField;
@property (nonatomic, retain) NSTextField *impPathTextField;
@property (nonatomic, retain) NSPopUpButton *impTypePopUpButton;
@property (nonatomic, retain) NSButton *impJsonArrayCheckBox;
@property (nonatomic, retain) NSButton *impStopOnErrorCheckBox;
@property (nonatomic, retain) NSProgressIndicator *impProgressIndicator;
- (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) export:(id)sender;
- (void)doExport;
- (IBAction) import:(id)sender;
- (void)doImport;
- (IBAction)removeRecord:(id)sender;
- (void)doRemoveRecord;
- (IBAction)findQueryComposer:(id)sender;
- (IBAction)updateQueryComposer:(id)sender;
- (IBAction)removeQueryComposer:(id)sender;
- (IBAction) exportQueryComposer:(id)sender;
- (void)showEditWindow:(id)sender;
- (void)jsonWindowWillClose:(id)sender;
- (IBAction)chooseExportPath:(id)sender;
- (IBAction)chooseImportPath:(id)sender;
- (mongo::BSONObj)parseCSVLine:(char *)line type:(int)_type sep:(const char *)_sep headerLine:(bool)_headerLine ignoreBlanks:(bool)_ignoreBlanks fields:(std::vector<std::string> &)_fields;
@end
Jump to Line
Something went wrong with that request. Please try again.