-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMainController.h
68 lines (60 loc) · 2.43 KB
/
MainController.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
//
// MainController.h
// PasswordSaver
//
// Created by GuoJing on 10-5-1.
// Copyright 2010 GuoJingMe. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <Carbon/Carbon.h>
#import <DropboxOSX/DropboxOSX.h>
#import <WebKit/WebKit.h>
#import "SqliteHelper.h"
#import "QuickWindowController.h"
#import "KeyModel.h"
@interface MainController : NSWindow {
IBOutlet NSTextFieldCell *pwd_key_field;
IBOutlet NSTextFieldCell *pwd_value_field;
IBOutlet NSButton *get_button;
IBOutlet NSButton *add_button;
IBOutlet NSButton *link_button;
IBOutlet NSNumber *editable;
IBOutlet NSPanel *add_panel;
IBOutlet NSPanel *search_panel;
IBOutlet NSProgressIndicator *loading_resc;
IBOutlet NSSearchFieldCell *search_field;
IBOutlet NSTableView *table_view;
IBOutlet NSArrayController *array_countroller;
DBRestClient *restClient;
SqliteHelper *helper;
NSUserDefaults *prefs;
}
@property (nonatomic,retain) IBOutlet NSTextFieldCell *pwd_key_field;
@property (nonatomic,retain) IBOutlet NSTextFieldCell *pwd_value_field;
@property (nonatomic,retain) IBOutlet NSButton *get_button;
@property (nonatomic,retain) IBOutlet NSButton *add_button;
@property (nonatomic,retain) IBOutlet NSPanel *add_panel;
@property (nonatomic,retain) IBOutlet NSPanel *search_panel;
@property (nonatomic,retain) IBOutlet NSTextFieldCell *error_textfield;
@property (nonatomic,retain) IBOutlet NSSearchFieldCell *search_field;
@property (nonatomic,retain) IBOutlet NSButton *link_button;
@property (nonatomic,retain) IBOutlet NSProgressIndicator *loading_resc;
@property (readonly) NSNumber *editable;
@property (nonatomic,retain) IBOutlet NSWindow *mainwindow;
@property (nonatomic,retain) IBOutlet NSMutableArray *keys;
@property (nonatomic,retain) IBOutlet NSTableView *table_view;
@property (nonatomic,retain) IBOutlet NSArrayController *array_countroller;
@property (nonatomic, retain) NSArray *filePaths;
@property (nonatomic, retain) NSArray *fileRevs;
@property (nonatomic, retain) NSString *currentFilePath;
@property (nonatomic, retain) NSString *fileHash;
-(NSString *) genRandStringLength: (int) len;
-(IBAction)onTextInput:(id)sender;
-(IBAction)onButtonClicked:(id)sender;
-(IBAction)onSearchEnd:(id)sender;
-(IBAction)onSearchWindowOpend:(id)sender;
-(IBAction)openAddKeyWindow:(id)sender;
-(IBAction)openHelpSite:(id)sender;
- (DBRestClient *)restClient;
- (void)restClient:(DBRestClient*)client loadedMetadata:(DBMetadata*)metadata;
@end