summaryrefslogtreecommitdiff
path: root/tikzit/src/osx/PreambleController.h
diff options
context:
space:
mode:
Diffstat (limited to 'tikzit/src/osx/PreambleController.h')
-rw-r--r--tikzit/src/osx/PreambleController.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/tikzit/src/osx/PreambleController.h b/tikzit/src/osx/PreambleController.h
index fca52ae..3c7a7c3 100644
--- a/tikzit/src/osx/PreambleController.h
+++ b/tikzit/src/osx/PreambleController.h
@@ -25,17 +25,14 @@
#import "Preambles.h"
#import "Preambles+Coder.h"
-@interface PreambleController : NSWindowController {
+@interface PreambleController : NSViewController {
Preambles *preambles;
IBOutlet NSTextView *textView;
- IBOutlet NSToolbar *toolbar;
- IBOutlet NSToolbarItem *defaultToolbarItem;
- IBOutlet NSToolbarItem *customToolbarItem;
IBOutlet NSDictionaryController *preambleDictionaryController;
+
NSDictionary *textAttrs;
NSAttributedString *preambleText;
NSColor *ghostColor;
-
NSIndexSet *selectionIndexes;
}
@@ -44,11 +41,13 @@
@property (retain) NSAttributedString *preambleText;
@property (retain) NSIndexSet *selectionIndexes;
-- (id)initWithWindowNibName:(NSString *)windowNibName plist:(NSString*)plist styles:(NSArray*)sty edges:(NSArray*)edg;
+- (id)initWithNibName:(NSString *)nibName plist:(NSString*)plist styles:(NSArray*)sty edges:(NSArray*)edg;
- (void)savePreambles:(NSString*)plist;
- (NSString*)currentPreamble;
- (NSString*)currentPostamble;
- (NSString*)buildDocumentForTikz:(NSString*)tikz;
+
+- (IBAction)setPreambleToDefault:(id)sender;
- (IBAction)setPreamble:(id)sender;
- (IBAction)insertDefaultStyles:(id)sender;