Back to index

python3.2  3.2.2
Public Member Functions | Static Public Member Functions | Protected Attributes
PreferencesWindowController Class Reference

#import <PreferencesWindowController.h>

Inheritance diagram for PreferencesWindowController:
Inheritance graph
[legend]
Collaboration diagram for PreferencesWindowController:
Collaboration graph
[legend]

List of all members.

Public Member Functions

(IBAction) - do_reset:
(IBAction) - do_apply:
(IBAction) - do_filetype:
(void- controlTextDidChange:
(unsigned int- comboBox:indexOfItemWithStringValue:
(id) - comboBox:objectValueForItemAtIndex:
(int- numberOfItemsInComboBox:
(id) - init [implementation]
(void- load_defaults [implementation]
(void- update_display [implementation]
(void- windowDidLoad [implementation]
(void- update_settings [implementation]
(NSString *) - scriptargs [implementation]
(NSString *) - interpreter
(BOOL- honourhashbang
(BOOL- debug
(BOOL- verbose
(BOOL- inspect
(BOOL- optimize
(BOOL- nosite
(BOOL- tabs
(NSString *) - others
(BOOL- with_terminal

Static Public Member Functions

(id) + getPreferencesWindow

Protected Attributes

IBOutlet NSPopUpButton * filetype
IBOutlet NSComboBox * interpreter
IBOutlet NSButton * honourhashbang
IBOutlet NSButton * debug
IBOutlet NSButton * verbose
IBOutlet NSButton * inspect
IBOutlet NSButton * optimize
IBOutlet NSButton * nosite
IBOutlet NSButton * tabs
IBOutlet NSTextField * others
IBOutlet NSButton * with_terminal
IBOutlet NSTextField * commandline
FileSettingssettings

Detailed Description

Definition at line 7 of file PreferencesWindowController.h.


Member Function Documentation

- (unsigned int) comboBox: (NSComboBox *)  aComboBox
indexOfItemWithStringValue: (NSString *)  aString 

Definition at line 99 of file PreferencesWindowController.m.

                        :(NSComboBox *)aComboBox indexOfItemWithStringValue:(NSString *)aString
{
       NSArray *interp_list = [settings interpreters];
    unsigned int rv = [interp_list indexOfObjectIdenticalTo: aString];
       return rv;
}
- (id) comboBox: (NSComboBox *)  aComboBox
objectValueForItemAtIndex: (int index 

Definition at line 106 of file PreferencesWindowController.m.

              :(NSComboBox *)aComboBox objectValueForItemAtIndex:(int)index
{
       NSArray *interp_list = [settings interpreters];
    id rv = [interp_list objectAtIndex: index];
       return rv;
}
- (void) controlTextDidChange: (NSNotification *)  aNotification

Definition at line 92 of file PreferencesWindowController.m.

                            :(NSNotification *)aNotification
{
    [self update_settings];
    [self update_display];
};

Here is the call graph for this function:

- (BOOL) debug
- (IBAction) do_apply: (id)  sender

Definition at line 72 of file PreferencesWindowController.m.

                    :(id)sender
{
    [self update_settings];
    [self update_display];
}

Here is the call graph for this function:

- (IBAction) do_filetype: (id)  sender

Definition at line 60 of file PreferencesWindowController.m.

                       :(id)sender
{
    [self load_defaults];
    [self update_display];
}

Here is the call graph for this function:

- (IBAction) do_reset: (id)  sender

Definition at line 66 of file PreferencesWindowController.m.

                    :(id)sender
{
    [settings reset];
    [self update_display];
}

Here is the call graph for this function:

Definition at line 5 of file PreferencesWindowController.m.

{
    static PreferencesWindowController *_singleton;
    
    if (!_singleton)
        _singleton = [[PreferencesWindowController alloc] init];
    [_singleton showWindow: _singleton];
    return _singleton;
}

Here is the caller graph for this function:

- (id) init [implementation]

Definition at line 15 of file PreferencesWindowController.m.

{
    self = [self initWithWindowNibName: @"PreferenceWindow"];
    return self;
}
- (NSString *) interpreter
- (void) load_defaults [implementation]

Definition at line 21 of file PreferencesWindowController.m.

{
    NSString *title = [filetype titleOfSelectedItem];
    
    settings = [FileSettings getDefaultsForFileType: title];
}

Here is the call graph for this function:

Here is the caller graph for this function:

- (BOOL) nosite
- (int) numberOfItemsInComboBox: (NSComboBox *)  aComboBox

Definition at line 113 of file PreferencesWindowController.m.

                              :(NSComboBox *)aComboBox
{
       NSArray *interp_list = [settings interpreters];
    int rv = [interp_list count];
       return rv;
}
- (NSString *) others
- (NSString *) scriptargs [implementation]

Reimplemented from <FileSettingsSource>.

Definition at line 89 of file PreferencesWindowController.m.

{ return @"";};
- (BOOL) tabs
- (void) update_display [implementation]

Definition at line 28 of file PreferencesWindowController.m.

{
//    [[self window] setTitle: script];
    
       [interpreter reloadData];
    [interpreter setStringValue: [settings interpreter]];
    [honourhashbang setState: [settings honourhashbang]];
    [debug setState: [settings debug]];
    [verbose setState: [settings verbose]];
    [inspect setState: [settings inspect]];
    [optimize setState: [settings optimize]];
    [nosite setState: [settings nosite]];
    [tabs setState: [settings tabs]];
    [others setStringValue: [settings others]];
    [with_terminal setState: [settings with_terminal]];
    // Not scriptargs, it isn't for preferences
    
    [commandline setStringValue: [settings commandLineForScript: @"<your script here>"]];
}

Here is the call graph for this function:

Here is the caller graph for this function:

- (void) update_settings [implementation]

Definition at line 55 of file PreferencesWindowController.m.

{
    [settings updateFromSource: self];
}

Here is the call graph for this function:

Here is the caller graph for this function:

Here is the caller graph for this function:

- (void) windowDidLoad [implementation]

Definition at line 48 of file PreferencesWindowController.m.

{
    [super windowDidLoad];
    [self load_defaults];
    [self update_display];
}

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

- (IBOutlet NSTextField*) commandline [protected]

Definition at line 21 of file PreferencesWindowController.h.

- (BOOL) debug [protected]

Definition at line 13 of file PreferencesWindowController.h.

- (IBOutlet NSPopUpButton*) filetype [protected]

Definition at line 10 of file PreferencesWindowController.h.

- (BOOL) honourhashbang [protected]

Definition at line 12 of file PreferencesWindowController.h.

- (BOOL) inspect [protected]

Definition at line 15 of file PreferencesWindowController.h.

- (NSString *) interpreter [protected]

Definition at line 11 of file PreferencesWindowController.h.

- (BOOL) nosite [protected]

Definition at line 17 of file PreferencesWindowController.h.

- (BOOL) optimize [protected]

Definition at line 16 of file PreferencesWindowController.h.

- (NSString *) others [protected]

Definition at line 19 of file PreferencesWindowController.h.

- (FileSettings*) settings [protected]

Definition at line 23 of file PreferencesWindowController.h.

- (BOOL) tabs [protected]

Definition at line 18 of file PreferencesWindowController.h.

- (BOOL) verbose [protected]

Definition at line 14 of file PreferencesWindowController.h.

- (BOOL) with_terminal [protected]

Definition at line 20 of file PreferencesWindowController.h.


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