2017-04-05 20:56:22 +00:00
|
|
|
//==============================================================================
|
|
|
|
// This file is part of Master Password.
|
|
|
|
// Copyright (c) 2011-2017, Maarten Billemont.
|
2012-03-04 14:31:26 +00:00
|
|
|
//
|
2017-04-05 20:56:22 +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-04 14:31:26 +00:00
|
|
|
//
|
2017-04-05 20:56:22 +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-04 14:31:26 +00:00
|
|
|
//
|
2017-04-05 20:56:22 +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-04 14:31:26 +00:00
|
|
|
|
|
|
|
#import <Cocoa/Cocoa.h>
|
2012-05-13 08:24:19 +00:00
|
|
|
#import "MPAppDelegate_Shared.h"
|
2017-05-07 22:36:01 +00:00
|
|
|
#import "MPSitesWindowController.h"
|
2014-06-30 03:18:25 +00:00
|
|
|
#import "MPInitialWindowController.h"
|
2012-03-04 14:31:26 +00:00
|
|
|
|
2013-04-25 01:23:53 +00:00
|
|
|
@interface MPMacAppDelegate : MPAppDelegate_Shared<NSApplicationDelegate>
|
2012-03-04 14:31:26 +00:00
|
|
|
|
2014-10-31 01:05:13 +00:00
|
|
|
@property(nonatomic, strong) NSStatusItem *statusView;
|
2017-05-07 22:36:01 +00:00
|
|
|
@property(nonatomic, strong) MPSitesWindowController *sitesWindowController;
|
2014-06-30 03:18:25 +00:00
|
|
|
@property(nonatomic, strong) MPInitialWindowController *initialWindowController;
|
2013-04-20 18:11:19 +00:00
|
|
|
@property(nonatomic, weak) IBOutlet NSMenuItem *lockItem;
|
|
|
|
@property(nonatomic, weak) IBOutlet NSMenuItem *showItem;
|
|
|
|
@property(nonatomic, strong) IBOutlet NSMenu *statusMenu;
|
2014-06-27 03:13:21 +00:00
|
|
|
@property(nonatomic, weak) IBOutlet NSMenuItem *hidePasswordsItem;
|
2013-04-20 18:11:19 +00:00
|
|
|
@property(nonatomic, weak) IBOutlet NSMenuItem *rememberPasswordItem;
|
2013-06-08 22:12:49 +00:00
|
|
|
@property(nonatomic, weak) IBOutlet NSMenuItem *openAtLoginItem;
|
2016-04-17 23:30:06 +00:00
|
|
|
@property(nonatomic, weak) IBOutlet NSMenuItem *showFullScreenItem;
|
2013-04-20 18:11:19 +00:00
|
|
|
@property(nonatomic, weak) IBOutlet NSMenuItem *savePasswordItem;
|
|
|
|
@property(nonatomic, weak) IBOutlet NSMenuItem *createUserItem;
|
2014-06-08 00:13:53 +00:00
|
|
|
@property(nonatomic, weak) IBOutlet NSMenuItem *deleteUserItem;
|
2013-04-20 18:11:19 +00:00
|
|
|
@property(nonatomic, weak) IBOutlet NSMenuItem *usersItem;
|
2012-05-13 08:24:19 +00:00
|
|
|
|
2013-05-16 04:19:50 +00:00
|
|
|
- (IBAction)showPasswordWindow:(id)sender;
|
2014-06-30 03:18:25 +00:00
|
|
|
- (void)setLoginItemEnabled:(BOOL)enabled;
|
2013-06-08 22:12:49 +00:00
|
|
|
- (IBAction)togglePreference:(id)sender;
|
2012-10-31 02:54:34 +00:00
|
|
|
- (IBAction)newUser:(NSMenuItem *)sender;
|
2013-01-27 03:05:57 +00:00
|
|
|
- (IBAction)lock:(id)sender;
|
2013-05-19 20:55:43 +00:00
|
|
|
- (IBAction)terminate:(id)sender;
|
2014-06-27 03:13:21 +00:00
|
|
|
- (IBAction)showPopup:(id)sender;
|
2012-03-06 00:04:19 +00:00
|
|
|
|
2012-03-04 14:31:26 +00:00
|
|
|
@end
|