2017-05-07 22:36:01 +00:00
|
|
|
//==============================================================================
|
|
|
|
// This file is part of Master Password.
|
|
|
|
// Copyright (c) 2011-2017, Maarten Billemont.
|
2012-03-05 08:53:32 +00:00
|
|
|
//
|
2017-05-07 22:36:01 +00: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 08:53:32 +00:00
|
|
|
//
|
2017-05-07 22:36:01 +00: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 08:53:32 +00:00
|
|
|
//
|
2017-05-07 22:36:01 +00: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 08:53:32 +00:00
|
|
|
|
|
|
|
#import <Cocoa/Cocoa.h>
|
2014-09-21 15:47:53 +00:00
|
|
|
#import "MPSiteModel.h"
|
|
|
|
#import "MPSitesTableView.h"
|
2017-05-07 22:36:01 +00:00
|
|
|
#import "MPSitesWindow.h"
|
2012-03-05 08:53:32 +00:00
|
|
|
|
2014-06-30 03:18:25 +00:00
|
|
|
@class MPMacAppDelegate;
|
|
|
|
|
2017-05-07 22:36:01 +00:00
|
|
|
@interface MPSitesWindowController : NSWindowController<NSTextViewDelegate, NSTextFieldDelegate, NSTableViewDataSource, NSTableViewDelegate>
|
2012-05-04 22:15:51 +00:00
|
|
|
|
2014-09-21 15:47:53 +00:00
|
|
|
@property(nonatomic) NSMutableArray *sites;
|
2014-06-30 03:18:25 +00:00
|
|
|
@property(nonatomic) NSString *masterPassword;
|
2015-09-23 04:31:33 +00:00
|
|
|
@property(nonatomic) BOOL showVersionContainer;
|
2014-06-27 03:13:21 +00:00
|
|
|
@property(nonatomic) BOOL alternatePressed;
|
2016-02-21 02:56:04 +00:00
|
|
|
@property(nonatomic) BOOL shiftPressed;
|
2014-06-30 03:18:25 +00:00
|
|
|
@property(nonatomic) BOOL locked;
|
2014-07-19 02:04:10 +00:00
|
|
|
@property(nonatomic) BOOL newUser;
|
2014-06-24 04:55:08 +00:00
|
|
|
|
2014-09-21 15:47:53 +00:00
|
|
|
@property(nonatomic, weak) IBOutlet NSArrayController *sitesController;
|
2014-06-24 04:55:08 +00:00
|
|
|
@property(nonatomic, weak) IBOutlet NSTextField *inputLabel;
|
2014-06-30 03:18:25 +00:00
|
|
|
@property(nonatomic, weak) IBOutlet NSTextField *securePasswordField;
|
|
|
|
@property(nonatomic, weak) IBOutlet NSTextField *revealPasswordField;
|
2015-11-05 04:53:46 +00:00
|
|
|
@property(nonatomic, weak) IBOutlet NSTextField *sitePasswordTipField;
|
2014-06-22 01:56:28 +00:00
|
|
|
@property(nonatomic, weak) IBOutlet NSSearchField *siteField;
|
2014-09-21 15:47:53 +00:00
|
|
|
@property(nonatomic, weak) IBOutlet MPSitesTableView *siteTable;
|
2014-06-24 04:55:08 +00:00
|
|
|
@property(nonatomic, weak) IBOutlet NSProgressIndicator *progressView;
|
2014-06-26 05:19:42 +00:00
|
|
|
|
|
|
|
@property(nonatomic, strong) IBOutlet NSBox *passwordTypesBox;
|
|
|
|
@property(nonatomic, weak) IBOutlet NSMatrix *passwordTypesMatrix;
|
2014-03-01 01:44:29 +00:00
|
|
|
|
2016-04-23 18:07:08 +00:00
|
|
|
@property(nonatomic, strong) IBOutlet NSBox *securityQuestionsBox;
|
|
|
|
@property(nonatomic, weak) IBOutlet NSTextField *securityQuestionField;
|
|
|
|
@property(nonatomic, weak) IBOutlet NSTextField *securityAnswerField;
|
|
|
|
|
2014-07-01 01:00:25 +00:00
|
|
|
- (BOOL)handleCommand:(SEL)commandSelector;
|
|
|
|
|
2012-03-05 08:53:32 +00:00
|
|
|
@end
|