Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 2e0e4164c6
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 84 lines (57 sloc) 1.704 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83
//
// MGSPreferencesController.m
// KosmicEditor
//
// Created by Jonathan on 30/04/2010.
// Copyright 2010 mugginsoft.com. All rights reserved.
//

#import "MGSFragariaFramework.h"

@implementation MGSPreferencesController

#pragma mark -
#pragma mark Instance methods

/*
-initWithWindow: is the designated initializer for NSWindowController.
*/
- (id)initWithWindow:(NSWindow *)window
{
#pragma unused(window)

    self = [super initWithWindow:window];
if (self) {
    
    }
return self;
}


/*
- showWindow:
*/
- (void)showWindow:(id)sender
{
    // load view controllers
    textEditingPrefsViewController = [MGSFragariaPreferences sharedInstance].textEditingPrefsViewController;

    fontsAndColoursPrefsViewController = [MGSFragariaPreferences sharedInstance].fontsAndColoursPrefsViewController;

    [super showWindow:sender];
}

/*
- setupToolbar
*/
- (void)setupToolbar
{
[self addView:generalView label:NSLocalizedString(@"General", @"Preferences tab name")];

[self addView:textEditingPrefsViewController.view label:NSLocalizedString(@"Text Editing", @"Preferences tab name") image:[NSImage imageNamed:@"General.png"]];
    
    [self addView:fontsAndColoursPrefsViewController.view label:NSLocalizedString(@"Fonts & Colours", @"Preferences tab name") image:[NSImage imageNamed:@"General.png"]];

}

/*
- changeFont:
*/
- (void)changeFont:(id)sender
{
    /* NSFontManager will send this method up the responder chain */
    [fontsAndColoursPrefsViewController changeFont:sender];
}

/*
- revertToStandardSettings:
*/
- (void)revertToStandardSettings:(id)sender
{
    [[MGSFragariaPreferences sharedInstance] revertToStandardSettings:sender];
}
@end
Something went wrong with that request. Please try again.