2017-05-07 18:36:01 -04:00
|
|
|
//==============================================================================
|
|
|
|
// This file is part of Master Password.
|
|
|
|
// Copyright (c) 2011-2017, Maarten Billemont.
|
2012-03-05 09:53:32 +01:00
|
|
|
//
|
2017-05-07 18:36:01 -04:00
|
|
|
// Master Password is free software: you can redistribute it and/or modify
|
|
|
|
// it under the terms of the GNU General Public License as published by
|
|
|
|
// the Free Software Foundation, either version 3 of the License, or
|
|
|
|
// (at your option) any later version.
|
2012-03-05 09:53:32 +01:00
|
|
|
//
|
2017-05-07 18:36:01 -04:00
|
|
|
// Master Password is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
// GNU General Public License for more details.
|
2012-03-05 09:53:32 +01:00
|
|
|
//
|
2017-05-07 18:36:01 -04:00
|
|
|
// You can find a copy of the GNU General Public License in the
|
|
|
|
// LICENSE file. Alternatively, see <http://www.gnu.org/licenses/>.
|
|
|
|
//==============================================================================
|
2012-03-05 09:53:32 +01:00
|
|
|
|
|
|
|
#import <Cocoa/Cocoa.h>
|
2014-09-21 11:47:53 -04:00
|
|
|
#import "MPSiteModel.h"
|
|
|
|
#import "MPSitesTableView.h"
|
2017-05-07 18:36:01 -04:00
|
|
|
#import "MPSitesWindow.h"
|
2012-03-05 09:53:32 +01:00
|
|
|
|
2014-06-29 23:18:25 -04:00
|
|
|
@class MPMacAppDelegate;
|
|
|
|
|
2017-05-07 18:36:01 -04:00
|
|
|
@interface MPSitesWindowController : NSWindowController<NSTextViewDelegate, NSTextFieldDelegate, NSTableViewDataSource, NSTableViewDelegate>
|
2012-05-05 00:15:51 +02:00
|
|
|
|
2014-09-21 11:47:53 -04:00
|
|
|
@property(nonatomic) NSMutableArray *sites;
|
2014-06-29 23:18:25 -04:00
|
|
|
@property(nonatomic) NSString *masterPassword;
|
2015-09-23 00:31:33 -04:00
|
|
|
@property(nonatomic) BOOL showVersionContainer;
|
2014-06-26 23:13:21 -04:00
|
|
|
@property(nonatomic) BOOL alternatePressed;
|
2016-02-20 21:56:04 -05:00
|
|
|
@property(nonatomic) BOOL shiftPressed;
|
2014-06-29 23:18:25 -04:00
|
|
|
@property(nonatomic) BOOL locked;
|
2014-07-18 22:04:10 -04:00
|
|
|
@property(nonatomic) BOOL newUser;
|
2014-06-24 00:55:08 -04:00
|
|
|
|
2014-09-21 11:47:53 -04:00
|
|
|
@property(nonatomic, weak) IBOutlet NSArrayController *sitesController;
|
2014-06-24 00:55:08 -04:00
|
|
|
@property(nonatomic, weak) IBOutlet NSTextField *inputLabel;
|
2014-06-29 23:18:25 -04:00
|
|
|
@property(nonatomic, weak) IBOutlet NSTextField *securePasswordField;
|
|
|
|
@property(nonatomic, weak) IBOutlet NSTextField *revealPasswordField;
|
2015-11-04 23:53:46 -05:00
|
|
|
@property(nonatomic, weak) IBOutlet NSTextField *sitePasswordTipField;
|
2014-06-21 21:56:28 -04:00
|
|
|
@property(nonatomic, weak) IBOutlet NSSearchField *siteField;
|
2014-09-21 11:47:53 -04:00
|
|
|
@property(nonatomic, weak) IBOutlet MPSitesTableView *siteTable;
|
2014-06-24 00:55:08 -04:00
|
|
|
@property(nonatomic, weak) IBOutlet NSProgressIndicator *progressView;
|
2014-06-26 01:19:42 -04:00
|
|
|
|
|
|
|
@property(nonatomic, strong) IBOutlet NSBox *passwordTypesBox;
|
|
|
|
@property(nonatomic, weak) IBOutlet NSMatrix *passwordTypesMatrix;
|
2014-02-28 20:44:29 -05:00
|
|
|
|
2016-04-23 14:07:08 -04:00
|
|
|
@property(nonatomic, strong) IBOutlet NSBox *securityQuestionsBox;
|
|
|
|
@property(nonatomic, weak) IBOutlet NSTextField *securityQuestionField;
|
|
|
|
@property(nonatomic, weak) IBOutlet NSTextField *securityAnswerField;
|
|
|
|
|
2014-06-30 21:00:25 -04:00
|
|
|
- (BOOL)handleCommand:(SEL)commandSelector;
|
|
|
|
|
2012-03-05 09:53:32 +01:00
|
|
|
@end
|