OSDN Git Service

WinGui:
[handbrake-jp/handbrake-jp-git.git] / macosx / HBOutputPanelController.m
index 87a5d38..d60490a 100644 (file)
@@ -9,11 +9,17 @@
 #import "HBOutputRedirect.h"
 
 /// Maximum amount of characters that can be shown in the view.
-#define TextStorageUpperSizeLimit 20000
+// Original value used by cleaner
+//#define TextStorageUpperSizeLimit 20000
+// lets use this higher value for now for better gui debugging
+#define TextStorageUpperSizeLimit 40000
 
 /// When old output is removed, this is the amount of characters that will be
 /// left in outputTextStorage.
-#define TextStorageLowerSizeLimit 15000
+// Original value used by cleaner
+//#define TextStorageLowerSizeLimit 15000
+// lets use this higher value for now for better gui debugging
+#define TextStorageLowerSizeLimit 35000
 
 @implementation HBOutputPanelController
 
                
                [outputPanel setFrameAutosaveName:@"OutputPanelFrame"];
                [[textView layoutManager] replaceTextStorage:outputTextStorage];
+               [[textView enclosingScrollView] setLineScroll:10];
+               [[textView enclosingScrollView] setPageScroll:20];
        }
                
     [textView scrollRangeToVisible:NSMakeRange([outputTextStorage length], 0)];
        [outputPanel orderFront:nil];
+
+    [[NSUserDefaults standardUserDefaults] setBool:YES forKey:@"OutputPanelIsOpen"];
 }
 
 /**
        [pboard setString:[outputTextStorage string] forType:NSStringPboardType];
 }
 
+- (void)windowWillClose:(NSNotification *)aNotification
+{
+    [[NSUserDefaults standardUserDefaults] setBool:NO forKey:@"OutputPanelIsOpen"];
+}
+
+
 @end