mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-14 16:22:21 +00:00
commit d56e9628b870f18bf4d06f2b42f2fb325cfbfa93 Author: michael starke <michael.starke@hicknhack-software.com> Date: Mon Aug 25 20:01:02 2014 +0200 Implemented settings for forced and recommendet key change intervals. commit 64336eb662cf66173ef96657cec96b69a706f723 Author: michael starke <michael.starke@hicknhack-software.com> Date: Mon Aug 25 18:18:59 2014 +0200 Added sanity checks for delay commit 37087da84c2c2d12197196f0d15a517419dbad93 Author: michael starke <michael.starke@hicknhack-software.com> Date: Mon Aug 25 14:20:59 2014 +0200 Added key change ui to database settings
59 lines
2.1 KiB
Objective-C
59 lines
2.1 KiB
Objective-C
//
|
|
// MPDocumentSettingsWindowController.h
|
|
// MacPass
|
|
//
|
|
// Created by Michael Starke on 26.06.13.
|
|
// Copyright (c) 2013 HicknHack Software GmbH. All rights reserved.
|
|
//
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
#import "MPSheetWindowController.h"
|
|
|
|
typedef NS_ENUM(NSUInteger, MPDatabaseSettingsTab) {
|
|
MPDatabaseSettingsTabGeneral,
|
|
MPDatabaseSettingsTabSecurity,
|
|
MPDatabaseSettingsTabAdvanced
|
|
};
|
|
|
|
@class MPDocument;
|
|
@class HNHRoundedTextField;
|
|
|
|
@interface MPDatabaseSettingsWindowController : MPSheetWindowController <NSTextFieldDelegate, NSTabViewDelegate>
|
|
|
|
@property (weak) IBOutlet NSTabView *sectionTabView;
|
|
|
|
/* General Tab */
|
|
@property (weak) IBOutlet NSTextField *databaseNameTextField;
|
|
@property (weak) IBOutlet NSPopUpButton *databaseCompressionPopupButton;
|
|
@property (unsafe_unretained) IBOutlet NSTextView *databaseDescriptionTextView;
|
|
@property (weak) IBOutlet NSColorWell *databaseColorColorWell;
|
|
|
|
/* Security Tab */
|
|
@property (weak) IBOutlet NSButton *protectTitleCheckButton;
|
|
@property (weak) IBOutlet NSButton *protectUserNameCheckButton;
|
|
@property (weak) IBOutlet NSButton *protectPasswortCheckButton;
|
|
@property (weak) IBOutlet NSButton *protectURLCheckButton;
|
|
@property (weak) IBOutlet NSButton *protectNotesCheckButton;
|
|
@property (weak) IBOutlet NSTextField *encryptionRoundsTextField;
|
|
@property (weak) IBOutlet NSButton *benchmarkButton;
|
|
|
|
/* Advanced Tab*/
|
|
@property (weak) IBOutlet NSButton *enableRecycleBinCheckButton;
|
|
@property (weak) IBOutlet NSButton *emptyRecycleBinOnQuitCheckButton;
|
|
@property (weak) IBOutlet NSPopUpButton *selectRecycleBinGroupPopUpButton;
|
|
@property (weak) IBOutlet NSTextField *defaultUsernameTextField;
|
|
@property (weak) IBOutlet NSPopUpButton *templateGroupPopUpButton;
|
|
|
|
@property (weak) IBOutlet NSButton *recommendKeyChangeCheckButton;
|
|
@property (weak) IBOutlet NSButton *enforceKeyChangeCheckButton;
|
|
@property (weak) IBOutlet NSTextField *recommendKeyChangeIntervalTextField;
|
|
@property (weak) IBOutlet NSTextField *enforceKeyChangeIntervalTextField;
|
|
|
|
- (id)initWithDocument:(MPDocument *)document;
|
|
|
|
- (void)showSettingsTab:(MPDatabaseSettingsTab)tab;
|
|
|
|
@end
|
|
|
|
|