aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
Diffstat (limited to 'Source')
-rw-r--r--Source/SPAppController.h8
-rw-r--r--Source/SPAppController.m14
-rw-r--r--Source/SPBundleEditorController.h32
-rw-r--r--Source/SPBundleEditorController.m38
4 files changed, 91 insertions, 1 deletions
diff --git a/Source/SPAppController.h b/Source/SPAppController.h
index f5e92f16..6aedd05e 100644
--- a/Source/SPAppController.h
+++ b/Source/SPAppController.h
@@ -26,14 +26,18 @@
#import <Cocoa/Cocoa.h>
#import <FeedbackReporter/FRFeedbackReporter.h>
-@class SPPreferenceController, SPAboutController, SPDatabaseDocument;
+@class SPPreferenceController, SPAboutController, SPDatabaseDocument, SPBundleEditorController;
@interface SPAppController : NSObject <FRFeedbackReporterDelegate>
{
+
+ IBOutlet NSWindow* bundleEditorWindow;
+
BOOL isNewFavorite;
SPAboutController *aboutController;
SPPreferenceController *prefsController;
+ SPBundleEditorController *bundleEditorController;
id encodingPopUp;
@@ -62,6 +66,8 @@
- (IBAction)provideFeedback:(id)sender;
- (IBAction)provideTranslationFeedback:(id)sender;
- (IBAction)viewKeyboardShortcuts:(id)sender;
+- (IBAction)openBundleEditor:(id)sender;
+- (IBAction)reloadBundles:(id)sender;
// Getters
- (SPPreferenceController *)preferenceController;
diff --git a/Source/SPAppController.m b/Source/SPAppController.m
index a1f8b292..9614bb6d 100644
--- a/Source/SPAppController.m
+++ b/Source/SPAppController.m
@@ -32,6 +32,7 @@
#import "SPEncodingPopupAccessory.h"
#import "SPWindowController.h"
#import "SPPreferencesUpgrade.h"
+#import "SPBundleEditorController.h"
#import <PSMTabBar/PSMTabBarControl.h>
#import <Sparkle/Sparkle.h>
@@ -835,6 +836,18 @@
[[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:SPLOCALIZEDURL_KEYBOARDSHORTCUTS]];
}
+- (IBAction)openBundleEditor:(id)sender
+{
+ if (!bundleEditorController) bundleEditorController = [[SPBundleEditorController alloc] init];
+
+ [bundleEditorController showWindow:self];
+}
+
+- (IBAction)reloadBundles:(id)sender
+{
+
+}
+
#pragma mark -
#pragma mark Feedback reporter delegate methods
@@ -1001,6 +1014,7 @@
[prefsController release], prefsController = nil;
if (aboutController) [aboutController release], aboutController = nil;
+ if (bundleEditorController) [bundleEditorController release], bundleEditorController = nil;
if (_sessionURL) [_sessionURL release], _sessionURL = nil;
if (_spfSessionDocData) [_spfSessionDocData release], _spfSessionDocData = nil;
diff --git a/Source/SPBundleEditorController.h b/Source/SPBundleEditorController.h
new file mode 100644
index 00000000..4512cd56
--- /dev/null
+++ b/Source/SPBundleEditorController.h
@@ -0,0 +1,32 @@
+//
+// $Id$
+//
+// SPBundleEditorController.h
+// sequel-pro
+//
+// Created by Hans-Jörg Bibiko on November 12, 2010
+//
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either version 2 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+//
+// More info at <http://code.google.com/p/sequel-pro/>
+
+#import <Cocoa/Cocoa.h>
+
+
+@interface SPBundleEditorController : NSWindowController {
+
+}
+
+@end
diff --git a/Source/SPBundleEditorController.m b/Source/SPBundleEditorController.m
new file mode 100644
index 00000000..15cd58c2
--- /dev/null
+++ b/Source/SPBundleEditorController.m
@@ -0,0 +1,38 @@
+//
+// $Id$
+//
+// SPBundleEditorController.m
+// sequel-pro
+//
+// Created by Hans-Jörg Bibiko on November 12, 2010
+//
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either version 2 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+//
+// More info at <http://code.google.com/p/sequel-pro/>
+
+#import "SPBundleEditorController.h"
+
+
+@implementation SPBundleEditorController
+
+/**
+ * Initialisation
+ */
+- (id)init
+{
+ return [super initWithWindowNibName:@"BundleEditor"];
+}
+
+@end