Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Updated smaple project preference panel to use toolbar images.

  • Loading branch information...
commit 672c77ebb2546945f538f0fd3fa8461332444c69 1 parent 38df07d
@mugginsoft authored
View
14 Fragaria.xcodeproj/project.pbxproj
@@ -52,6 +52,10 @@
AB69B6DA118B7F2A00903D1D /* SMLLayoutManager.m in Sources */ = {isa = PBXBuildFile; fileRef = AB69B6D9118B7F2A00903D1D /* SMLLayoutManager.m */; };
AB69B74A118B80A000903D1D /* MGSFragaria.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = AB69B62B118B745700903D1D /* MGSFragaria.framework */; };
AB69B754118B830700903D1D /* MGSFragaria.h in Headers */ = {isa = PBXBuildFile; fileRef = AB69B753118B830700903D1D /* MGSFragaria.h */; settings = {ATTRIBUTES = (Public, ); }; };
+ AB6C86C3160FA2B500488AF2 /* MGSGlyphGenerator.h in Headers */ = {isa = PBXBuildFile; fileRef = AB6C86C1160FA2B500488AF2 /* MGSGlyphGenerator.h */; };
+ AB6C86C4160FA2B500488AF2 /* MGSGlyphGenerator.m in Sources */ = {isa = PBXBuildFile; fileRef = AB6C86C2160FA2B500488AF2 /* MGSGlyphGenerator.m */; };
+ AB6C87631610EAC800488AF2 /* General.png in Resources */ = {isa = PBXBuildFile; fileRef = AB6C87621610EAC800488AF2 /* General.png */; };
+ AB6C87641610EAC800488AF2 /* General.png in Resources */ = {isa = PBXBuildFile; fileRef = AB6C87621610EAC800488AF2 /* General.png */; };
ABA812DC11B6855200A29990 /* LICENSE-2.0.txt in Resources */ = {isa = PBXBuildFile; fileRef = ABA812DB11B6855200A29990 /* LICENSE-2.0.txt */; };
ABC1D5D0160B06F7008769EB /* MGSPreferencesController.m in Sources */ = {isa = PBXBuildFile; fileRef = AB69B80A118B8D0400903D1D /* MGSPreferencesController.m */; };
ABC1D5D1160B06F9008769EB /* MGSPreferencesController.m in Sources */ = {isa = PBXBuildFile; fileRef = AB69B80A118B8D0400903D1D /* MGSPreferencesController.m */; };
@@ -195,6 +199,9 @@
AB69B753118B830700903D1D /* MGSFragaria.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MGSFragaria.h; sourceTree = "<group>"; };
AB69B809118B8D0400903D1D /* MGSPreferencesController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MGSPreferencesController.h; sourceTree = "<group>"; };
AB69B80A118B8D0400903D1D /* MGSPreferencesController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; lineEnding = 0; path = MGSPreferencesController.m; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.objc; };
+ AB6C86C1160FA2B500488AF2 /* MGSGlyphGenerator.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MGSGlyphGenerator.h; sourceTree = "<group>"; };
+ AB6C86C2160FA2B500488AF2 /* MGSGlyphGenerator.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MGSGlyphGenerator.m; sourceTree = "<group>"; };
+ AB6C87621610EAC800488AF2 /* General.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = General.png; sourceTree = "<group>"; };
ABA812DB11B6855200A29990 /* LICENSE-2.0.txt */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = "LICENSE-2.0.txt"; sourceTree = "<group>"; };
ABC1D5D4160B0801008769EB /* DBPrefsWindowController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DBPrefsWindowController.h; sourceTree = "<group>"; };
ABC1D5D5160B0801008769EB /* DBPrefsWindowController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = DBPrefsWindowController.m; sourceTree = "<group>"; };
@@ -336,6 +343,7 @@
AB3972FC118C2A5D00AEF388 /* Resources */ = {
isa = PBXGroup;
children = (
+ AB6C87621610EAC800488AF2 /* General.png */,
ABC578DE1603C3010040B3FB /* MGSPreferencesFontsAndColours.xib */,
ABC578DF1603C3010040B3FB /* MGSPreferencesTextEditing.xib */,
ABA812DB11B6855200A29990 /* LICENSE-2.0.txt */,
@@ -478,6 +486,8 @@
AB472B6E129972E400202CB5 /* MGSTextMenuController.m */,
ABC578D2160350240040B3FB /* MGSFragariaPreferences.m */,
ABC578E81603D5FF0040B3FB /* MGSFragariaFontsAndColoursPrefsViewController.m */,
+ AB6C86C1160FA2B500488AF2 /* MGSGlyphGenerator.h */,
+ AB6C86C2160FA2B500488AF2 /* MGSGlyphGenerator.m */,
);
name = Fragaria;
sourceTree = "<group>";
@@ -534,6 +544,7 @@
ABF28AF114C075D400ECAD48 /* NSScanner+Fragaria.h in Headers */,
ABC5799716047B4E0040B3FB /* FRAFontTransformer.h in Headers */,
ABC1D5D6160B0801008769EB /* DBPrefsWindowController.h in Headers */,
+ AB6C86C3160FA2B500488AF2 /* MGSGlyphGenerator.h in Headers */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -634,6 +645,7 @@
8D11072B0486CEB800E47090 /* InfoPlist.strings in Resources */,
1DDD58160DA1D0A300B32029 /* MainMenu.xib in Resources */,
ABC1D5DC160B0C51008769EB /* Preferences.xib in Resources */,
+ AB6C87641610EAC800488AF2 /* General.png in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -644,6 +656,7 @@
AB648E4E11FB3A5300AEF7BD /* MainMenu-Document.xib in Resources */,
AB648E4F11FB3A5300AEF7BD /* MyDocument.xib in Resources */,
ABC1D5DB160B0C51008769EB /* Preferences.xib in Resources */,
+ AB6C87631610EAC800488AF2 /* General.png in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -715,6 +728,7 @@
ABC578EA1603D6000040B3FB /* MGSFragariaFontsAndColoursPrefsViewController.m in Sources */,
ABC578EE1603D7ED0040B3FB /* MGSFragariaTextEditingPrefsViewController.m in Sources */,
ABC5799816047B4E0040B3FB /* FRAFontTransformer.m in Sources */,
+ AB6C86C4160FA2B500488AF2 /* MGSGlyphGenerator.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
View
BIN  General.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
3  MGSFragariaFramework.h
@@ -22,4 +22,5 @@
#import "MGSPreferencesController.h"
#import "MGSSyntaxController.h"
#import "NSScanner+Fragaria.h"
-#import "MGSFragariaPreferences.h"
+#import "MGSFragariaPreferences.h"
+#import "MGSGlyphGenerator.h"
View
6 MGSFragariaTextEditingPrefsViewController.h
@@ -8,7 +8,9 @@
#import <Cocoa/Cocoa.h>
-@interface MGSFragariaTextEditingPrefsViewController : NSViewController
+@interface MGSFragariaTextEditingPrefsViewController : NSViewController {
+ NSImage *toolbarImage;
+}
-- (IBAction)changeGutterWidth:(id)sender ;
+- (IBAction)changeGutterWidth:(id)sender;
@end
View
2  MGSFragariaTextEditingPrefsViewController.m
@@ -23,7 +23,7 @@ @implementation MGSFragariaTextEditingPrefsViewController
- (id)init {
self = [super initWithNibName:@"MGSPreferencesTextEditing" bundle:[NSBundle bundleForClass:[self class]]];
if (self) {
-
+
}
return self;
}
View
4 MGSPreferencesController.m
@@ -54,9 +54,9 @@ - (void)setupToolbar
{
[self addView:generalView label:NSLocalizedString(@"General", @"Preferences tab name")];
- [self addView:textEditingPrefsViewController.view label:NSLocalizedString(@"Text Editing", @"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")];
+ [self addView:fontsAndColoursPrefsViewController.view label:NSLocalizedString(@"Fonts & Colours", @"Preferences tab name") image:[NSImage imageNamed:@"General.png"]];
}
Please sign in to comment.
Something went wrong with that request. Please try again.