diff options
author | randomguy3 <randomguy3@7c02a99a-9b00-45e3-bf44-6f3dd7fddb64> | 2012-01-10 18:27:19 +0000 |
---|---|---|
committer | randomguy3 <randomguy3@7c02a99a-9b00-45e3-bf44-6f3dd7fddb64> | 2012-01-10 18:27:19 +0000 |
commit | 924aad8f38e277547b104977dd48ef2be7c702f8 (patch) | |
tree | b7c731f461c3dcad3ea87b79e8e916a8387c7dfa /tikzit/src/linux/MainWindow.m | |
parent | e77f7c4f027d9fefb609bef3c97df9b8ff0c2a31 (diff) |
GTK: Allow the path to pdflatex to be configured
git-svn-id: https://tikzit.svn.sourceforge.net/svnroot/tikzit/trunk@377 7c02a99a-9b00-45e3-bf44-6f3dd7fddb64
Diffstat (limited to 'tikzit/src/linux/MainWindow.m')
-rw-r--r-- | tikzit/src/linux/MainWindow.m | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/tikzit/src/linux/MainWindow.m b/tikzit/src/linux/MainWindow.m index 1feb922..c391ea5 100644 --- a/tikzit/src/linux/MainWindow.m +++ b/tikzit/src/linux/MainWindow.m @@ -34,8 +34,11 @@ #endif #import "PropertyPane.h" #import "RecentManager.h" -#import "StyleManager.h" +#ifdef HAVE_POPPLER +#import "SettingsDialog.h" +#endif #import "Shape.h" +#import "StyleManager.h" #import "StyleManager+Storage.h" #import "StylesPane.h" #import "SupportDir.h" @@ -125,6 +128,7 @@ static void update_paste_action (GtkClipboard *clipboard, GdkEvent *event, GtkAc preambles = nil; preambleWindow = nil; previewWindow = nil; + settingsDialog = nil; suppressTikzUpdates = NO; hasParseError = NO; @@ -156,6 +160,7 @@ static void update_paste_action (GtkClipboard *clipboard, GdkEvent *event, GtkAc [propertyPane release]; [preambleWindow release]; [previewWindow release]; + [settingsDialog release]; [surface release]; [lastFolder release]; [document release]; @@ -352,7 +357,7 @@ static void update_paste_action (GtkClipboard *clipboard, GdkEvent *event, GtkAc - (void) showPreview { #ifdef HAVE_POPPLER if (previewWindow == nil) { - previewWindow = [[PreviewWindow alloc] initWithPreambles:preambles]; + previewWindow = [[PreviewWindow alloc] initWithPreambles:preambles config:configFile]; [previewWindow setParentWindow:mainWindow]; [previewWindow setDocument:document]; } @@ -360,6 +365,16 @@ static void update_paste_action (GtkClipboard *clipboard, GdkEvent *event, GtkAc #endif } +- (void) showSettingsDialog { +#ifdef HAVE_POPPLER + if (settingsDialog == nil) { + settingsDialog = [[SettingsDialog alloc] initWithConfiguration:configFile]; + [settingsDialog setParentWindow:mainWindow]; + } + [settingsDialog show]; +#endif +} + - (GraphInputHandler*) graphInputHandler { return inputHandler; } |