Muvicado HD
Loading...
Searching...
No Matches
PreferenceController Class Reference

Manages the Preferences window, including color and startup options. More...

#include <PreferenceController.h>

Inheritance diagram for PreferenceController:
Collaboration diagram for PreferenceController:

Instance Methods

(IBAction) - changeBackgroundColor:
 Changes the application's background color based on the selected color well.
(IBAction) - changeOpenLastFile:
 Toggles the "Open last file on launch" preference based on the checkbox state.
(id) - init [implementation]
(void) - windowDidLoad [implementation]

Protected Attributes

IBOutlet NSColorWell * colorWell
IBOutlet NSButton * checkBox

Detailed Description

Manages the Preferences window, including color and startup options.

Concrete implementation of the Preferences window behavior.

Presents UI for changing background color and whether to open the last file on launch.

Definition at line 17 of file PreferenceController.h.

Method Documentation

◆ changeBackgroundColor:

- (IBAction) changeBackgroundColor: (id) sender

Changes the application's background color based on the selected color well.

Handles user selection of a new background color from the color well.

Parameters
senderThe color well control sending the action.

Definition at line 35 of file PreferenceController.m.

◆ changeOpenLastFile:

- (IBAction) changeOpenLastFile: (id) sender

Toggles the "Open last file on launch" preference based on the checkbox state.

Handles toggling of the "Open last file" preference.

Parameters
senderThe checkbox control sending the action.

Definition at line 45 of file PreferenceController.m.

◆ init

- (id) init
implementation

Initializes the preferences window controller, loading the "Preferences" nib.

Returns
An initialized instance or nil on failure.

Definition at line 18 of file PreferenceController.m.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ windowDidLoad

- (void) windowDidLoad
implementation

Called after the window nib has been loaded.

Definition at line 26 of file PreferenceController.m.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ checkBox

- (IBOutlet NSButton*) checkBox
protected

Definition at line 19 of file PreferenceController.h.

◆ colorWell

- (IBOutlet NSColorWell*) colorWell
protected

Definition at line 18 of file PreferenceController.h.


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