diff options
author | Johan Paulsson <gonz@Akita.local> | 2013-12-02 11:28:52 -0800 |
---|---|---|
committer | Johan Paulsson <gonz@Akita.local> | 2013-12-02 11:28:52 -0800 |
commit | 000084adfd36c87051fb7df912a00fca35365f4e (patch) | |
tree | 236cbe625532de1551d6c465f92eebf8142263ae /tikzit/src/osx/PreambleController.h | |
parent | 7e7e0607d0ab5a5c28ae593adc4a3235ee4b429e (diff) |
osx gui: Moved preamble window to preferences.
Moved the preamble window to the preference panel as a new tab. The PreambleController is now a subclass of NSView with related changes to the Preamble.xib. The toolbar that controlled default or custom preamble has been replaced with buttons in the interface.
Diffstat (limited to 'tikzit/src/osx/PreambleController.h')
-rw-r--r-- | tikzit/src/osx/PreambleController.h | 11 |
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; |