From 9c9741dcc802409c9d4cd4cb3ff44386d870a3f2 Mon Sep 17 00:00:00 2001 From: Kelvin Sherlock Date: Tue, 5 Oct 2010 19:05:42 +0000 Subject: [PATCH] fix window title git-svn-id: svn://qnap.local/TwoTerm/trunk@1791 5590a31f-7b70-45f8-8c82-aa3a8e5f4507 --- English.lproj/TermWindow.xib | 56 +++--------------------------------- TermWindowController.mm | 6 ++-- 2 files changed, 7 insertions(+), 55 deletions(-) diff --git a/English.lproj/TermWindow.xib b/English.lproj/TermWindow.xib index e5cf62e..5f5fc3b 100644 --- a/English.lproj/TermWindow.xib +++ b/English.lproj/TermWindow.xib @@ -60,21 +60,18 @@ 274 {{10, 10}, {560, 384}} - EmulatorView {{20, 20}, {580, 404}} - CurveView {{7, 11}, {620, 444}} - {{0, 0}, {1920, 1178}} @@ -122,12 +119,12 @@ emulator.name NSDisplayPattern - %{title1}@ + Two Term [%{title1}@] 2 - 11 + 12 @@ -235,54 +232,9 @@ - 11 - - - - YES - - CurveView - NSView - - IBProjectSource - ./classes-xjh84/CurveView.h - - - - EmulatorView - NSView - - YES - - YES - copy: - paste: - - - YES - id - id - - - - IBProjectSource - ./classes-xjh84/EmulatorView.h - - - - TermWindowController - NSWindowController - - _emulatorView - id - - - IBProjectSource - ./classes-xjh84/TermWindowController.h - - - + 12 + 0 IBCocoaFramework diff --git a/TermWindowController.mm b/TermWindowController.mm index f4a7f64..1079f76 100644 --- a/TermWindowController.mm +++ b/TermWindowController.mm @@ -8,6 +8,8 @@ #import "TermWindowController.h" #import "EmulatorView.h" +#import "VT52.h" + #define TTYDEFCHARS @@ -140,12 +142,10 @@ - (void)windowDidLoad { - NSWindow *window = [self window]; - [super windowDidLoad]; + if (!_emulator) [self setEmulator: [[VT52 new] autorelease]]; - [window setTitle: [_emulator name]]; [_emulatorView setEmulator: _emulator]; [self initPTY];