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