Changeset 3977
- Timestamp:
- 03/27/06 21:39:15 (2 years ago)
- Files:
-
- WiredClient/trunk/WCAccounts.m (modified) (1 diff)
- WiredClient/trunk/WCChat.m (modified) (1 diff)
- WiredClient/trunk/WCConnectionController.h (modified) (1 diff)
- WiredClient/trunk/WCConnectionController.m (modified) (1 diff)
- WiredClient/trunk/WCConsole.m (modified) (1 diff)
- WiredClient/trunk/WCFiles.m (modified) (1 diff)
- WiredClient/trunk/WCMessages.m (modified) (1 diff)
- WiredClient/trunk/WCNews.m (modified) (1 diff)
- WiredClient/trunk/WCPublicChat.m (modified) (2 diffs)
- WiredClient/trunk/WCSearch.m (modified) (1 diff)
- WiredClient/trunk/WCServerConnection.m (modified) (2 diffs)
- WiredClient/trunk/WCServerInfo.m (modified) (1 diff)
- WiredClient/trunk/WCTransfers.m (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
WiredClient/trunk/WCAccounts.m
r3974 r3977 278 278 279 279 - (void)serverConnectionLoggedIn:(NSNotification *)notification { 280 [self windowTemplate]; 281 280 282 [_allAccounts removeAllObjects]; 281 283 [_shownAccounts removeAllObjects]; WiredClient/trunk/WCChat.m
r3974 r3977 678 678 679 679 - (void)serverConnectionLoggedIn:(NSNotification *)notification { 680 [self windowTemplate]; 681 680 682 [_users removeAllObjects]; 681 683 [_shownUsers removeAllObjects]; WiredClient/trunk/WCConnectionController.h
r3974 r3977 40 40 - (id)initWithWindowNibName:(NSString *)windowNibName name:(NSString *)name connection:(WCServerConnection *)connection; 41 41 42 - (NSDictionary *)windowTemplate; 43 42 44 - (void)setName:(NSString *)name; 43 45 - (NSString *)name; WiredClient/trunk/WCConnectionController.m
r3974 r3977 254 254 name:NSWindowWillCloseNotification 255 255 object:[self window]]; 256 257 [self _loadWindowTemplate]; 256 } 257 258 259 260 - (NSDictionary *)windowTemplate { 261 if(!_windowTemplate) 262 [self _loadWindowTemplate]; 263 264 return _windowTemplate; 258 265 } 259 266 WiredClient/trunk/WCConsole.m
r3974 r3977 166 166 167 167 168 - (void)serverConnectionLoggedIn:(NSNotification *)notification { 169 [self windowTemplate]; 170 } 171 172 173 168 174 - (void)serverConnectionServerInfoDidChange:(NSNotification *)notification { 169 175 [[self window] setTitle:[[self connection] name] withSubtitle:[self name]]; WiredClient/trunk/WCFiles.m
r3974 r3977 87 87 88 88 [self window]; 89 [self windowTemplate]; 89 90 90 91 [self _changeDirectory:[self _currentPath]]; WiredClient/trunk/WCMessages.m
r3974 r3977 534 534 535 535 - (void)serverConnectionLoggedIn:(NSNotification *)notification { 536 [self windowTemplate]; 537 536 538 [self _validate]; 537 539 } WiredClient/trunk/WCNews.m
r3974 r3977 206 206 207 207 - (void)serverConnectionLoggedIn:(NSNotification *)notification { 208 [self windowTemplate]; 209 208 210 [[_news mutableString] setString:@""]; 209 211 WiredClient/trunk/WCPublicChat.m
r3974 r3977 249 249 250 250 - (void)windowTemplateShouldSave:(NSMutableDictionary *)windowTemplate { 251 [windowTemplate setObject:[[self window] propertiesDictionary WithoutVisibility] forKey:@"WCChatWindow"];251 [windowTemplate setObject:[[self window] propertiesDictionary] forKey:@"WCChatWindow"]; 252 252 253 253 [super windowTemplateShouldSave:windowTemplate]; … … 331 331 332 332 - (void)serverConnectionLoggedIn:(NSNotification *)notification { 333 [super serverConnectionLoggedIn:notification]; 334 333 335 [self showWindow:self]; 334 335 [super serverConnectionLoggedIn:notification];336 336 } 337 337 WiredClient/trunk/WCSearch.m
r3974 r3977 296 296 297 297 - (void)serverConnectionLoggedIn:(NSNotification *)notification { 298 [self windowTemplate]; 299 298 300 [self _validate]; 299 301 } WiredClient/trunk/WCServerConnection.m
r3974 r3977 157 157 _cache = [[WCCache alloc] initWithCapacity:100]; 158 158 159 _chat = [[WCPublicChat publicChatWithConnection:self] retain];160 161 159 #if defined(DEBUG) || defined(TEST) 162 160 _console = [[WCConsole consoleWithConnection:self] retain]; … … 169 167 _serverInfo = [[WCServerInfo serverInfoWithConnection:self] retain]; 170 168 _transfers = [[WCTransfers transfersWithConnection:self] retain]; 169 170 _chat = [[WCPublicChat publicChatWithConnection:self] retain]; 171 171 } 172 172 WiredClient/trunk/WCServerInfo.m
r3974 r3977 204 204 205 205 206 - (void)serverConnectionLoggedIn:(NSNotification *)notification { 207 [self windowTemplate]; 208 } 209 210 211 206 212 - (void)serverConnectionReceivedServerInfo:(NSNotification *)notification { 207 213 [[self window] setTitle:[NSSWF: WiredClient/trunk/WCTransfers.m
r3974 r3977 1096 1096 1097 1097 1098 - (void)serverConnectionServerInfoDidChange:(NSNotification *)notification {1099 [[self window] setTitle:[[self connection] name] withSubtitle:[self name]];1100 }1101 1102 1103 1104 1098 - (void)serverConnectionLoggedIn:(NSNotification *)notification { 1105 1099 NSEnumerator *enumerator; 1106 1100 WCTransfer *transfer; 1107 1101 1108 if(![_removeButton isEnabled]) 1109 return; 1102 [self windowTemplate]; 1110 1103 1111 1104 enumerator = [_transfers objectEnumerator]; 1112 1105 1113 1106 while((transfer = [enumerator nextObject])) { 1114 1107 if([transfer state] == WCTransferListing || [transfer state] == WCTransferRunning) 1115 1108 [transfer setState:WCTransferStopping]; 1116 1109 } 1117 1110 1118 1111 [_transfersTableView setNeedsDisplay:YES]; 1119 1112 [_transfersTableView reloadData]; 1120 1113 1121 1114 [self _validate]; 1115 } 1116 1117 1118 1119 - (void)serverConnectionServerInfoDidChange:(NSNotification *)notification { 1120 [[self window] setTitle:[[self connection] name] withSubtitle:[self name]]; 1122 1121 } 1123 1122
