eyeDrops  v2.3
A new approach to detecting eye blinks.
Instance Methods | Properties | List of all members
PreferencesWindowController Class Reference

The preferences window (controller). More...

#import <PreferencesWindowController.h>

Inherits NSWindowController, <NSTableViewDataSource>, and <NSTableViewDelegate>.

Instance Methods

(void) - profilesNeedUpdate:
 
(void) - setView:
 
(id) - init
 
(IBAction) - maxBlurRadiusChanged:
 
(IBAction) - blurStepChanged:
 
(IBAction) - blurSpeedChanged:
 
(IBAction) - blinkTimerValueChanged:
 
(IBAction) - autoScanChanged:
 
(IBAction) - autoConnectChanged:
 

Properties

BOOL autoScan
 
BOOL autoConnect
 
NSUInteger maxBlurRadius
 
float blurStep
 
float blurSpeed
 
float batteryLevel
 
NSUInteger blinkTimerValue
 
BOOL autoSelect
 
IBOutlet NSButton * autoSelectXMLFileCheckbox
 
IBOutlet NSButton * selectFile
 
IBOutlet NSTextField * path
 
IBOutlet NSTableView * tableView
 
IBOutlet NSTextView * textView
 
NSString * xmlFile
 
NSMutableArray * profiles
 
IBOutlet NSView * generalView
 
IBOutlet NSView * profilesView
 
IBOutlet NSButton * createNewProfileButton
 
IBOutlet NSButton * deleteProfileButton
 
IBOutlet NSButton * autoScanCheckbox
 
IBOutlet NSButton * autoConnectCheckbox
 
IBOutlet NSLevelIndicator * levelIndicator
 
IBOutlet NSSegmentedControl * segmentedControl
 

Detailed Description

The preferences window (controller).

This class represents the preferences window where all the settings are stored. It also visualizes the user profile manager in a tableview and a textview. All changed settings will be automatically stored to a file called settings.txt if the application is terminated.

Author
Benjamin Thiemann
Date
2017/01/17

Method Documentation

◆ autoConnectChanged:()

- (IBAction) autoConnectChanged: (id)  sender

Invoked when value of autoConnect changed.

◆ autoScanChanged:()

- (IBAction) autoScanChanged: (id)  sender

Invoked when value of autoScan changed.

◆ blinkTimerValueChanged:()

- (IBAction) blinkTimerValueChanged: (id)  sender

Invoked when value of blinkTimerValue changed.

◆ blurSpeedChanged:()

- (IBAction) blurSpeedChanged: (id)  sender

Invoked when value of blurSpeed changed.

◆ blurStepChanged:()

- (IBAction) blurStepChanged: (id)  sender

Invoked when value of blurStep changed.

◆ init()

- (id) init

Initialization method.

◆ maxBlurRadiusChanged:()

- (IBAction) maxBlurRadiusChanged: (id)  sender

Invoked when value of maxBlurRadius changed.

◆ profilesNeedUpdate:()

- (void) profilesNeedUpdate: (id)  sender

This method is called when the profiles have changed.

Parameters
senderThe sending instance.

◆ setView:()

- (void) setView: (NSString *)  view

This method changes the active view (general or profiles).

Parameters
viewThe view to activate.

Property Documentation

◆ autoConnect

- (BOOL) autoConnect
readwriteatomic

Boolean value that indicates whether an autoconnect to the last known device is desired.

◆ autoConnectCheckbox

- (IBOutlet NSButton*) autoConnectCheckbox
readwriteatomicweak

The checkbox to selecct autoConnect.

◆ autoScan

- (BOOL) autoScan
readwriteatomic

Boolean value that indicates whether an autoscan is desired.

◆ autoScanCheckbox

- (IBOutlet NSButton*) autoScanCheckbox
readwriteatomicweak

The checkbox to selecct autoScan.

◆ autoSelect

- (BOOL) autoSelect
readwriteatomic

Boolean value that indicates whether the app automatically selects the XML file.

◆ autoSelectXMLFileCheckbox

- (IBOutlet NSButton*) autoSelectXMLFileCheckbox
readwriteatomicstrong

The checkbox to selecct XML file autoSelect.

◆ batteryLevel

- (float) batteryLevel
readwriteatomic

Float value that represents the battery level.

◆ blinkTimerValue

- (NSUInteger) blinkTimerValue
readwriteatomic

Integer value that represents the allowed time without a blink.

◆ blurSpeed

- (float) blurSpeed
readwriteatomic

Float value that represents the blur speed.

◆ blurStep

- (float) blurStep
readwriteatomic

Float value that represents the blur step.

◆ createNewProfileButton

- (IBOutlet NSButton*) createNewProfileButton
readwriteatomic

The button to create a new profile.

◆ deleteProfileButton

- (IBOutlet NSButton*) deleteProfileButton
readwriteatomic

The button to delete a profile.

◆ generalView

- (IBOutlet NSView*) generalView
readwriteatomic

The general preferences view.

◆ levelIndicator

- (IBOutlet NSLevelIndicator*) levelIndicator
readwriteatomicweak

The levelIndicator to show the battery level.

◆ maxBlurRadius

- (NSUInteger) maxBlurRadius
readwriteatomic

Integer value that represents the maximum blur radius.

◆ path

- (IBOutlet NSTextField*) path
readwritenonatomicstrong

The textfield displaying the XML file path.

◆ profiles

- (NSMutableArray*) profiles
readwriteatomic

The container for the profiles.

◆ profilesView

- (IBOutlet NSView*) profilesView
readwriteatomic

The profiles preferences view.

◆ segmentedControl

- (IBOutlet NSSegmentedControl*) segmentedControl
readwriteatomicweak

The segmented control to swtich between general and profiles view.

◆ selectFile

- (IBOutlet NSButton*) selectFile
readwriteatomicstrong

The button to select a XML file from disk.

◆ tableView

- (IBOutlet NSTableView*) tableView
readwriteatomic

The table view displaying the profiles.

◆ textView

- (IBOutlet NSTextView*) textView
readwriteatomic

The text view displaying a profiles content.

◆ xmlFile

- (NSString*) xmlFile
readwriteatomic

The path to the XML file.


The documentation for this class was generated from the following files: