Changeset 3276
- Timestamp:
- 06/08/06 23:18:23 (2 years ago)
- Files:
-
- trunk/Controllers/MVConnectionsController.h (modified) (1 diff)
- trunk/Controllers/MVConnectionsController.m (modified) (8 diffs)
- trunk/Inspectors/JVConnectionInspector.h (modified) (2 diffs)
- trunk/Inspectors/JVConnectionInspector.m (modified) (2 diffs)
- trunk/Languages/Dutch.lproj/JVConnectionInspector.nib/classes.nib (modified) (2 diffs)
- trunk/Languages/Dutch.lproj/JVConnectionInspector.nib/info.nib (modified) (2 diffs)
- trunk/Languages/Dutch.lproj/JVConnectionInspector.nib/keyedobjects.nib (modified) (previous)
- trunk/Languages/English.lproj/JVConnectionInspector.nib/classes.nib (modified) (2 diffs)
- trunk/Languages/English.lproj/JVConnectionInspector.nib/info.nib (modified) (2 diffs)
- trunk/Languages/English.lproj/JVConnectionInspector.nib/keyedobjects.nib (modified) (previous)
- trunk/Languages/French.lproj/JVConnectionInspector.nib/classes.nib (modified) (2 diffs)
- trunk/Languages/French.lproj/JVConnectionInspector.nib/info.nib (modified) (2 diffs)
- trunk/Languages/French.lproj/JVConnectionInspector.nib/keyedobjects.nib (modified) (previous)
- trunk/Languages/German.lproj/JVConnectionInspector.nib/classes.nib (modified) (2 diffs)
- trunk/Languages/German.lproj/JVConnectionInspector.nib/info.nib (modified) (1 diff)
- trunk/Languages/German.lproj/JVConnectionInspector.nib/keyedobjects.nib (modified) (previous)
- trunk/Languages/Italian.lproj/JVConnectionInspector.nib/classes.nib (modified) (2 diffs)
- trunk/Languages/Italian.lproj/JVConnectionInspector.nib/info.nib (modified) (2 diffs)
- trunk/Languages/Italian.lproj/JVConnectionInspector.nib/keyedobjects.nib (modified) (previous)
- trunk/Languages/Spanish.lproj/JVConnectionInspector.nib/classes.nib (modified) (2 diffs)
- trunk/Languages/Spanish.lproj/JVConnectionInspector.nib/info.nib (modified) (2 diffs)
- trunk/Languages/Spanish.lproj/JVConnectionInspector.nib/keyedobjects.nib (modified) (previous)
- trunk/Languages/pt_PT.lproj/JVConnectionInspector.nib/classes.nib (modified) (2 diffs)
- trunk/Languages/pt_PT.lproj/JVConnectionInspector.nib/info.nib (modified) (2 diffs)
- trunk/Languages/pt_PT.lproj/JVConnectionInspector.nib/keyedobjects.nib (modified) (previous)
- trunk/Languages/zh_TW.lproj/JVConnectionInspector.nib/classes.nib (modified) (2 diffs)
- trunk/Languages/zh_TW.lproj/JVConnectionInspector.nib/info.nib (modified) (2 diffs)
- trunk/Languages/zh_TW.lproj/JVConnectionInspector.nib/keyedobjects.nib (modified) (previous)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/Controllers/MVConnectionsController.h
r3072 r3276 100 100 - (BOOL) autoConnectForConnection:(MVChatConnection *) connection; 101 101 102 - (void) setShowConsoleOnConnect:(BOOL) autoConsole forConnection:(MVChatConnection *) connection; 103 - (BOOL) showConsoleOnConnectForConnection:(MVChatConnection *) connection; 104 102 105 - (void) setJoinRooms:(NSArray *) rooms forConnection:(MVChatConnection *) connection; 103 106 - (NSMutableArray *) joinRoomsForConnection:(MVChatConnection *) connection; trunk/Controllers/MVConnectionsController.m
r3259 r3276 390 390 if( [_joinRooms count] ) [connection joinChatRoomsNamed:_joinRooms]; 391 391 392 if( [ [NSUserDefaults standardUserDefaults] boolForKey:@"JVChatOpenConsoleOnConnect"] )392 if( [self showConsoleOnConnectForConnection:connection] ) 393 393 [[JVChatController defaultController] chatConsoleForConnection:connection ifExists:NO]; 394 394 … … 698 698 699 699 if( ! [connection isConnected] && connect ) { 700 if( [ [NSUserDefaults standardUserDefaults] boolForKey:@"JVChatOpenConsoleOnConnect"] )700 if( [self showConsoleOnConnectForConnection:connection] ) 701 701 [[JVChatController defaultController] chatConsoleForConnection:connection ifExists:NO]; 702 702 [connection connect]; … … 729 729 730 730 if( connect ) { 731 if( [ [NSUserDefaults standardUserDefaults] boolForKey:@"JVChatOpenConsoleOnConnect"] )731 if( [self showConsoleOnConnectForConnection:connection] ) 732 732 [[JVChatController defaultController] chatConsoleForConnection:connection ifExists:NO]; 733 733 if( target ) [connection joinChatRoomNamed:target]; … … 770 770 return NO; 771 771 } 772 773 #pragma mark - 774 775 - (void) setShowConsoleOnConnect:(BOOL) autoConsole forConnection:(MVChatConnection *) connection { 776 NSEnumerator *enumerator = [_bookmarks objectEnumerator]; 777 NSMutableDictionary *info = nil; 778 779 while( ( info = [enumerator nextObject] ) ) { 780 if( [info objectForKey:@"connection"] == connection ) { 781 [info setObject:[NSNumber numberWithBool:autoConsole] forKey:@"showConsole"]; 782 [self _saveBookmarkList]; 783 break; 784 } 785 } 786 } 787 788 - (BOOL) showConsoleOnConnectForConnection:(MVChatConnection *) connection { 789 NSEnumerator *enumerator = [_bookmarks objectEnumerator]; 790 NSMutableDictionary *info = nil; 791 792 while( ( info = [enumerator nextObject] ) ) { 793 if( [info objectForKey:@"connection"] == connection ) { 794 return [[info objectForKey:@"showConsole"] boolValue]; 795 } 796 } 797 798 return NO; 799 } 800 772 801 773 802 #pragma mark - … … 1452 1481 NSMutableDictionary *data = [NSMutableDictionary dictionary]; 1453 1482 [data setObject:[NSNumber numberWithBool:[[info objectForKey:@"automatic"] boolValue]] forKey:@"automatic"]; 1483 [data setObject:[NSNumber numberWithBool:[[info objectForKey:@"showConsole"] boolValue]] forKey:@"showConsole"]; 1454 1484 [data setObject:[NSNumber numberWithBool:[connection isSecure]] forKey:@"secure"]; 1455 1485 [data setObject:[NSNumber numberWithLong:[connection proxyType]] forKey:@"proxy"]; … … 1539 1569 1540 1570 if( [[info objectForKey:@"automatic"] boolValue] && ! ( [[[NSApplication sharedApplication] currentEvent] modifierFlags] & NSShiftKeyMask ) ) { 1541 if( [[ NSUserDefaults standardUserDefaults] boolForKey:@"JVChatOpenConsoleOnConnect"] )1571 if( [[info objectForKey:@"showConsole"] boolValue] ) 1542 1572 [[JVChatController defaultController] chatConsoleForConnection:connection ifExists:NO]; 1543 1573 … … 1700 1730 MVChatConnection *connection = [[_bookmarks objectAtIndex:[connections selectedRow]] objectForKey:@"connection"]; 1701 1731 [connection setPassword:[[MVKeyChain defaultKeyChain] internetPasswordForServer:[connection server] securityDomain:[connection server] account:nil path:nil port:[connection serverPort] protocol:MVKeyChainProtocolIRC authenticationType:MVKeyChainAuthenticationTypeDefault]]; 1702 if( [ [NSUserDefaults standardUserDefaults] boolForKey:@"JVChatOpenConsoleOnConnect"] )1732 if( [self showConsoleOnConnectForConnection:connection] ) 1703 1733 [[JVChatController defaultController] chatConsoleForConnection:connection ifExists:NO]; 1704 1734 [connection connect]; … … 1707 1737 - (void) _willConnect:(NSNotification *) notification { 1708 1738 MVChatConnection *connection = [notification object]; 1709 if( [ [NSUserDefaults standardUserDefaults] boolForKey:@"JVChatOpenConsoleOnConnect"] )1739 if( [self showConsoleOnConnectForConnection:connection] ) 1710 1740 [[JVChatController defaultController] chatConsoleForConnection:connection ifExists:NO]; 1711 1741 } trunk/Inspectors/JVConnectionInspector.h
r3072 r3276 26 26 IBOutlet NSTextField *editPort; 27 27 IBOutlet NSButton *editAutomatic; 28 IBOutlet NSButton *editShowConsoleOnConnect; 28 29 IBOutlet NSTableView *editRooms; 29 30 IBOutlet NSButton *editRemoveRoom; … … 67 68 - (IBAction) editText:(id) sender; 68 69 - (IBAction) toggleAutoConnect:(id) sender; 70 - (IBAction) toggleShowConsoleOnConnect:(id) sender; 69 71 - (IBAction) toggleSSLConnection:(id) sender; 70 72 - (IBAction) changeProxy:(id) sender; trunk/Inspectors/JVConnectionInspector.m
r3259 r3276 62 62 63 63 [editAutomatic setState:[[MVConnectionsController defaultController] autoConnectForConnection:_connection]]; 64 [editShowConsoleOnConnect setState:[[MVConnectionsController defaultController] showConsoleOnConnectForConnection:_connection]]; 64 65 [sslConnection setState:[_connection isSecure]]; 65 66 [editAddress setObjectValue:[_connection server]]; … … 174 175 } 175 176 177 - (IBAction) toggleShowConsoleOnConnect:(id) sender { 178 [[MVConnectionsController defaultController] setShowConsoleOnConnect:[sender state] forConnection:_connection]; 179 } 180 176 181 - (IBAction) toggleSSLConnection:(id) sender { 177 182 [_connection setSecure:[sender state]]; trunk/Languages/Dutch.lproj/JVConnectionInspector.nib/classes.nib
r2163 r3276 19 19 toggleAutoConnect = id; 20 20 toggleSSLConnection = id; 21 toggleShowConsoleOnConnect = id; 21 22 }; 22 23 CLASS = JVConnectionInspector; … … 45 46 editRules = NSTableView; 46 47 editServerPassword = NSTextField; 48 editShowConsoleOnConnect = NSButton; 47 49 editUsername = NSTextField; 48 50 encoding = NSPopUpButton; trunk/Languages/Dutch.lproj/JVConnectionInspector.nib/info.nib
r2163 r3276 4 4 <dict> 5 5 <key>IBDocumentLocation</key> 6 <string> 453 117 356 240 0 0 1280 832</string>6 <string>327 100 356 240 0 0 1024 746 </string> 7 7 <key>IBEditorPositions</key> 8 8 <dict> 9 9 <key>134</key> 10 <string> 463 366 373 380 0 0 1280 832</string>10 <string>30 321 353 380 0 0 1024 746 </string> 11 11 </dict> 12 12 <key>IBFramework Version</key> 13 <string> 362.0</string>13 <string>443.0</string> 14 14 <key>IBGroupedObjects</key> 15 15 <dict> … … 24 24 <key>IBLockedObjects</key> 25 25 <array/> 26 <key>IBOpenObjects</key> 27 <array> 28 <integer>134</integer> 29 </array> 26 30 <key>IBSystem Version</key> 27 <string> 7S215</string>31 <string>8I127</string> 28 32 </dict> 29 33 </plist> trunk/Languages/English.lproj/JVConnectionInspector.nib/classes.nib
r1727 r3276 19 19 toggleAutoConnect = id; 20 20 toggleSSLConnection = id; 21 toggleShowConsoleOnConnect = id; 21 22 }; 22 23 CLASS = JVConnectionInspector; … … 45 46 editRules = NSTableView; 46 47 editServerPassword = NSTextField; 48 editShowConsoleOnConnect = NSButton; 47 49 editUsername = NSTextField; 48 50 encoding = NSPopUpButton; trunk/Languages/English.lproj/JVConnectionInspector.nib/info.nib
r1727 r3276 4 4 <dict> 5 5 <key>IBDocumentLocation</key> 6 <string> 453 117 356 240 0 0 1280 832</string>6 <string>93 75 356 240 0 0 1024 746 </string> 7 7 <key>IBEditorPositions</key> 8 8 <dict> 9 9 <key>134</key> 10 <string> 466 379 348 380 0 0 1280 832</string>10 <string>338 320 348 380 0 0 1024 746 </string> 11 11 </dict> 12 12 <key>IBFramework Version</key> 13 <string> 364.0</string>13 <string>443.0</string> 14 14 <key>IBGroupedObjects</key> 15 15 <dict> … … 29 29 </array> 30 30 <key>IBSystem Version</key> 31 <string> 7H63</string>31 <string>8I127</string> 32 32 </dict> 33 33 </plist> trunk/Languages/French.lproj/JVConnectionInspector.nib/classes.nib
r3040 r3276 19 19 toggleAutoConnect = id; 20 20 toggleSSLConnection = id; 21 toggleShowConsoleOnConnect = id; 21 22 }; 22 23 CLASS = JVConnectionInspector; … … 45 46 editRules = NSTableView; 46 47 editServerPassword = NSTextField; 48 editShowConsoleOnConnect = NSButton; 47 49 editUsername = NSTextField; 48 50 encoding = NSPopUpButton; trunk/Languages/French.lproj/JVConnectionInspector.nib/info.nib
r3040 r3276 8 8 <dict> 9 9 <key>134</key> 10 <string> 336 320388 380 0 0 1024 746 </string>10 <string>51 325 388 380 0 0 1024 746 </string> 11 11 </dict> 12 12 <key>IBFramework Version</key> 13 <string>4 39.0</string>13 <string>443.0</string> 14 14 <key>IBGroupedObjects</key> 15 15 <dict> … … 28 28 <key>IBOpenObjects</key> 29 29 <array> 30 <integer>331</integer>31 30 <integer>134</integer> 32 31 </array> 33 32 <key>IBSystem Version</key> 34 <string>8 C46</string>33 <string>8I127</string> 35 34 </dict> 36 35 </plist> trunk/Languages/German.lproj/JVConnectionInspector.nib/classes.nib
r2114 r3276 19 19 toggleAutoConnect = id; 20 20 toggleSSLConnection = id; 21 toggleShowConsoleOnConnect = id; 21 22 }; 22 23 CLASS = JVConnectionInspector; … … 45 46 editRules = NSTableView; 46 47 editServerPassword = NSTextField; 48 editShowConsoleOnConnect = NSButton; 47 49 editUsername = NSTextField; 48 50 encoding = NSPopUpButton; trunk/Languages/German.lproj/JVConnectionInspector.nib/info.nib
r3268 r3276 8 8 <dict> 9 9 <key>134</key> 10 <string> 338 320348 380 0 0 1024 746 </string>10 <string>71 316 348 380 0 0 1024 746 </string> 11 11 </dict> 12 12 <key>IBFramework Version</key> trunk/Languages/Italian.lproj/JVConnectionInspector.nib/classes.nib
r2997 r3276 19 19 toggleAutoConnect = id; 20 20 toggleSSLConnection = id; 21 toggleShowConsoleOnConnect = id; 21 22 }; 22 23 CLASS = JVConnectionInspector; … … 45 46 editRules = NSTableView; 46 47 editServerPassword = NSTextField; 48 editShowConsoleOnConnect = NSButton; 47 49 editUsername = NSTextField; 48 50 encoding = NSPopUpButton; trunk/Languages/Italian.lproj/JVConnectionInspector.nib/info.nib
r3225 r3276 8 8 <dict> 9 9 <key>134</key> 10 <string> 313 320398 380 0 0 1024 746 </string>10 <string>58 308 398 380 0 0 1024 746 </string> 11 11 </dict> 12 12 <key>IBFramework Version</key> … … 27 27 <integer>134</integer> 28 28 </array> 29 <key>IBOpenObjects</key> 30 <array> 31 <integer>134</integer> 32 </array> 29 33 <key>IBSystem Version</key> 30 34 <string>8I127</string> trunk/Languages/Spanish.lproj/JVConnectionInspector.nib/classes.nib
r2997 r3276 19 19 toggleAutoConnect = id; 20 20 toggleSSLConnection = id; 21 toggleShowConsoleOnConnect = id; 21 22 }; 22 23 CLASS = JVConnectionInspector; … … 45 46 editRules = NSTableView; 46 47 editServerPassword = NSTextField; 48 editShowConsoleOnConnect = NSButton; 47 49 editUsername = NSTextField; 48 50 encoding = NSPopUpButton; trunk/Languages/Spanish.lproj/JVConnectionInspector.nib/info.nib
r2997 r3276 4 4 <dict> 5 5 <key>IBDocumentLocation</key> 6 <string> 658 96356 240 0 0 1024 746 </string>6 <string>342 77 356 240 0 0 1024 746 </string> 7 7 <key>IBEditorPositions</key> 8 8 <dict> 9 9 <key>134</key> 10 <string> 10 363 370380 0 0 1024 746 </string>10 <string>81 309 355 380 0 0 1024 746 </string> 11 11 </dict> 12 12 <key>IBFramework Version</key> 13 <string>4 39.0</string>13 <string>443.0</string> 14 14 <key>IBGroupedObjects</key> 15 15 <dict> … … 24 24 <key>IBLockedObjects</key> 25 25 <array/> 26 <key>IBOpenObjects</key> 27 <array> 28 <integer>134</integer> 29 </array> 26 30 <key>IBSystem Version</key> 27 <string>8 C46</string>31 <string>8I127</string> 28 32 </dict> 29 33 </plist> trunk/Languages/pt_PT.lproj/JVConnectionInspector.nib/classes.nib
r2997 r3276 19 19 toggleAutoConnect = id; 20 20 toggleSSLConnection = id; 21 toggleShowConsoleOnConnect = id; 21 22 }; 22 23 CLASS = JVConnectionInspector; … … 45 46 editRules = NSTableView; 46 47 editServerPassword = NSTextField; 48 editShowConsoleOnConnect = NSButton; 47 49 editUsername = NSTextField; 48 50 encoding = NSPopUpButton; trunk/Languages/pt_PT.lproj/JVConnectionInspector.nib/info.nib
r2997 r3276 8 8 <dict> 9 9 <key>134</key> 10 <string> 8 309378 380 0 0 1024 746 </string>10 <string>98 295 378 380 0 0 1024 746 </string> 11 11 </dict> 12 12 <key>IBFramework Version</key> 13 <string>4 39.0</string>13 <string>443.0</string> 14 14 <key>IBGroupedObjects</key> 15 15 <dict> … … 29 29 <array> 30 30 <integer>134</integer> 31 <integer>331</integer>32 31 </array> 33 32 <key>IBSystem Version</key> 34 <string>8 C46</string>33 <string>8I127</string> 35 34 </dict> 36 35 </plist> trunk/Languages/zh_TW.lproj/JVConnectionInspector.nib/classes.nib
r3062 r3276 19 19 toggleAutoConnect = id; 20 20 toggleSSLConnection = id; 21 toggleShowConsoleOnConnect = id; 21 22 }; 22 23 CLASS = JVConnectionInspector; … … 45 46 editRules = NSTableView; 46 47 editServerPassword = NSTextField; 48 editShowConsoleOnConnect = NSButton; 47 49 editUsername = NSTextField; 48 50 encoding = NSPopUpButton; trunk/Languages/zh_TW.lproj/JVConnectionInspector.nib/info.nib
r3062 r3276 4 4 <dict> 5 5 <key>IBDocumentLocation</key> 6 <string> 453 117 356 240 0 0 1280 832</string>6 <string>327 100 356 240 0 0 1024 746 </string> 7 7 <key>IBEditorPositions</key> 8 8 <dict> 9 9 <key>134</key> 10 <string> 466 379 348 380 0 0 1280 832</string>10 <string>113 311 348 380 0 0 1024 746 </string> 11 11 </dict> 12 12 <key>IBFramework Version</key> … … 14 14 <key>IBLockedObjects</key> 15 15 <array/> 16 <key>IBOpenObjects</key> 17 <array> 18 <integer>134</integer> 19 </array> 16 20 <key>IBSystem Version</key> 17 <string>8 F46</string>21 <string>8I127</string> 18 22 </dict> 19 23 </plist>
