Changeset 4789

Show
Ignore:
Timestamp:
05/26/07 13:08:42 (2 years ago)
Author:
morris
Message:

Use iChat icon picker

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • WiredClient/trunk/English.lproj/Preferences.nib/classes.nib

    r4631 r4789  
    1616                addIgnore = id;  
    1717                addTrackerBookmark = id;  
    18                 clearIcon = id;  
    1918                deleteBookmark = id;  
    2019                deleteHighlight = id;  
     
    2524                selectEvent = id;  
    2625                selectSound = id;  
    27                 setIcon = id;  
    2826                showFontPanel = id;  
    2927                touchEvent = id;  
     
    7674                "_historyScrollbackButton" = NSButton;  
    7775                "_historyScrollbackModifierPopUpButton" = NSPopUpButton;  
    78                 "_iconImageView" = NSImageView;  
     76                "_iconImageView" = WIImageViewWithImagePicker;  
    7977                "_ignoresAddressTableColumn" = NSTableColumn;  
    8078                "_ignoresLoginTableColumn" = NSTableColumn;  
     
    130128        },  
    131129        { 
     130            CLASS = WIImageViewWithImagePicker;  
     131            LANGUAGE = ObjC;  
     132            SUPERCLASS = NSImageView;  
     133        },  
     134        { 
    132135            ACTIONS = {showViewOptions = id; };  
    133136            CLASS = WITableView;  
  • WiredClient/trunk/English.lproj/ReleaseNotes.rtf

    r4782 r4789  
    4242- Make preferences apply directly upon changing them\ 
    4343- Remember half-composed messages and news posts when hiding a connection and bring them back when unhiding\ 
     44- Use icon picker with iSight support from iChat/Address Book\ 
    4445- Localization updates 
    4546\f0\b \cf2 \ 
  • WiredClient/trunk/French.lproj/Preferences.nib/classes.nib

    r4631 r4789  
    1616                addIgnore = id;  
    1717                addTrackerBookmark = id;  
    18                 clearIcon = id;  
    1918                deleteBookmark = id;  
    2019                deleteHighlight = id;  
     
    2524                selectEvent = id;  
    2625                selectSound = id;  
    27                 setIcon = id;  
    2826                showFontPanel = id;  
    2927                touchEvent = id;  
     
    7674                "_historyScrollbackButton" = NSButton;  
    7775                "_historyScrollbackModifierPopUpButton" = NSPopUpButton;  
    78                 "_iconImageView" = NSImageView;  
     76                "_iconImageView" = WIImageViewWithImagePicker;  
    7977                "_ignoresAddressTableColumn" = NSTableColumn;  
    8078                "_ignoresLoginTableColumn" = NSTableColumn;  
     
    130128        },  
    131129        { 
     130            CLASS = WIImageViewWithImagePicker;  
     131            LANGUAGE = ObjC;  
     132            SUPERCLASS = NSImageView;  
     133        },  
     134        { 
    132135            ACTIONS = {showViewOptions = id; };  
    133136            CLASS = WITableView;  
  • WiredClient/trunk/French.lproj/Preferences.nib/info.nib

    r4618 r4789  
    1616        </array> 
    1717        <key>IBSystem Version</key> 
    18         <string>8L127</string> 
     18        <string>8P2137</string> 
    1919</dict> 
    2020</plist> 
  • WiredClient/trunk/German.lproj/Preferences.nib/classes.nib

    r4631 r4789  
    1616                addIgnore = id;  
    1717                addTrackerBookmark = id;  
    18                 clearIcon = id;  
    1918                deleteBookmark = id;  
    2019                deleteHighlight = id;  
     
    2524                selectEvent = id;  
    2625                selectSound = id;  
    27                 setIcon = id;  
    2826                showFontPanel = id;  
    2927                touchEvent = id;  
     
    7674                "_historyScrollbackButton" = NSButton;  
    7775                "_historyScrollbackModifierPopUpButton" = NSPopUpButton;  
    78                 "_iconImageView" = NSImageView;  
     76                "_iconImageView" = WIImageViewWithImagePicker;  
    7977                "_ignoresAddressTableColumn" = NSTableColumn;  
    8078                "_ignoresLoginTableColumn" = NSTableColumn;  
     
    130128        },  
    131129        { 
     130            CLASS = WIImageViewWithImagePicker;  
     131            LANGUAGE = ObjC;  
     132            SUPERCLASS = NSImageView;  
     133        },  
     134        { 
    132135            ACTIONS = {showViewOptions = id; };  
    133136            CLASS = WITableView;  
  • WiredClient/trunk/Japanese.lproj/Preferences.nib/classes.nib

    r4631 r4789  
    2121                addIgnore = id;  
    2222                addTrackerBookmark = id;  
    23                 clearIcon = id;  
    2423                deleteBookmark = id;  
    2524                deleteHighlight = id;  
     
    3029                selectEvent = id;  
    3130                selectSound = id;  
    32                 setIcon = id;  
    3331                showFontPanel = id;  
    3432                touchEvent = id;  
     
    8179                "_historyScrollbackButton" = NSButton;  
    8280                "_historyScrollbackModifierPopUpButton" = NSPopUpButton;  
    83                 "_iconImageView" = NSImageView;  
     81                "_iconImageView" = WIImageViewWithImagePicker;  
    8482                "_ignoresAddressTableColumn" = NSTableColumn;  
    8583                "_ignoresLoginTableColumn" = NSTableColumn;  
     
    135133        },  
    136134        { 
     135            CLASS = WIImageViewWithImagePicker;  
     136            LANGUAGE = ObjC;  
     137            SUPERCLASS = NSImageView;  
     138        },  
     139        { 
    137140            ACTIONS = {showViewOptions = id; };  
    138141            CLASS = WITableView;  
  • WiredClient/trunk/Japanese.lproj/Preferences.nib/info.nib

    r4769 r4789  
    44<dict> 
    55        <key>IBDocumentLocation</key> 
    6         <string>18 71 481 528 0 0 1680 1028 </string> 
     6        <string>647 29 481 528 0 0 1920 1178 </string> 
    77        <key>IBFramework Version</key> 
    88        <string>446.1</string> 
  • WiredClient/trunk/WCPreferences.h

    r4631 r4789  
    3434        IBOutlet NSTextField                            *_nickTextField; 
    3535        IBOutlet NSTextField                            *_statusTextField; 
    36         IBOutlet NSImageView                          *_iconImageView; 
     36        IBOutlet WIImageViewWithImagePicker   *_iconImageView; 
    3737        IBOutlet NSButton                                       *_showConnectAtStartupButton; 
    3838        IBOutlet NSButton                                       *_showDockAtStartupButton; 
     
    164164 
    165165- (IBAction)icon:(id)sender; 
    166 - (IBAction)setIcon:(id)sender; 
    167 - (IBAction)clearIcon:(id)sender; 
    168166- (IBAction)showFontPanel:(id)sender; 
    169167- (IBAction)selectEvent:(id)sender; 
  • WiredClient/trunk/WCPreferences.m

    r4772 r4789  
    796796        NSString                *path; 
    797797        WIColorCell             *colorCell; 
     798         
     799        [_iconImageView setMaxImageSize:NSMakeSize(32.0, 32.0)]; 
     800        [_iconImageView setDefaultImage:[NSImage imageNamed:@"DefaultIcon"]]; 
    798801 
    799802        colorCell = [[WIColorCell alloc] init]; 
     
    966969 
    967970- (IBAction)icon:(id)sender { 
    968         [self _saveSettings]; 
    969 } 
    970  
    971  
    972  
    973 - (IBAction)setIcon:(id)sender { 
    974         NSOpenPanel             *openPanel; 
    975          
    976         openPanel = [NSOpenPanel openPanel]; 
    977         [openPanel setCanChooseDirectories:NO]; 
    978         [openPanel setCanChooseFiles:YES]; 
    979         [openPanel setAllowsMultipleSelection:NO]; 
    980         [openPanel beginSheetForDirectory:NULL 
    981                                                                  file:NULL 
    982                                                                 types:[NSImage imageFileTypes] 
    983                                            modalForWindow:[self window] 
    984                                                 modalDelegate:self 
    985                                            didEndSelector:@selector(iconPanelDidEnd:returnCode:contextInfo:) 
    986                                                   contextInfo:NULL]; 
    987 } 
    988  
    989  
    990  
    991 - (void)iconPanelDidEnd:(NSOpenPanel *)openPanel returnCode:(int)returnCode contextInfo:(void  *)contextInfo { 
    992         NSData          *data; 
    993         NSImage         *image; 
    994  
    995         if(returnCode == NSOKButton) { 
    996                 data = [NSData dataWithContentsOfFile:[openPanel filename]]; 
    997                 image = [NSImage imageWithData:data]; 
    998                  
    999                 if(image) { 
    1000                         [_iconImageView setImage:[image scaledImageWithSize:NSMakeSize(32.0, 32.0)]]; 
    1001                          
    1002                         [self _saveSettings]; 
    1003                 } 
    1004         } 
    1005 } 
    1006  
    1007  
    1008  
    1009 - (IBAction)clearIcon:(id)sender { 
    1010         [_iconImageView setImage:NULL]; 
    1011          
    1012971        [self _saveSettings]; 
    1013972} 
  • WiredClient/trunk/WiredClient.xcodeproj/project.pbxproj

    r4772 r4789  
    110110                A545398905FB62F3005C82FE /* Locked.tiff in Resources */ = {isa = PBXBuildFile; fileRef = A545398805FB62F3005C82FE /* Locked.tiff */; }; 
    111111                A545398B05FB6300005C82FE /* Unlocked.tiff in Resources */ = {isa = PBXBuildFile; fileRef = A545398A05FB6300005C82FE /* Unlocked.tiff */; }; 
     112                A54E14960C084A6900EF5FBF /* DefaultIcon.tiff in Resources */ = {isa = PBXBuildFile; fileRef = A54E14950C084A6900EF5FBF /* DefaultIcon.tiff */; }; 
    112113                A55B1A4106B3952000201912 /* Remove.tiff in Resources */ = {isa = PBXBuildFile; fileRef = A55B1A4006B3952000201912 /* Remove.tiff */; }; 
    113114                A564407B0A2607AC00ADF4F5 /* WiredAdditions.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A56440090A26079A00ADF4F5 /* WiredAdditions.framework */; }; 
     
    219220                A5E22609057AB52A0037C7F9 /* Accounts.tiff in Resources */ = {isa = PBXBuildFile; fileRef = A5E225D3057AB5290037C7F9 /* Accounts.tiff */; }; 
    220221                A5E2260A057AB52A0037C7F9 /* Reload.tiff in Resources */ = {isa = PBXBuildFile; fileRef = A5E225D4057AB5290037C7F9 /* Reload.tiff */; }; 
    221                 A5E3CCFB0BFB9CE20000BAC9 /* WiredAdditions in Resources */ = {isa = PBXBuildFile; fileRef = A5E3CAF20BFB9CE10000BAC9 /* WiredAdditions */; }; 
    222222                A5E4A6D90791A3D400FA127F /* Folder12.tiff in Resources */ = {isa = PBXBuildFile; fileRef = A5E4A6D80791A3D400FA127F /* Folder12.tiff */; }; 
    223223                A5E4A6DB0791A3DC00FA127F /* DropBox12.tiff in Resources */ = {isa = PBXBuildFile; fileRef = A5E4A6DA0791A3DC00FA127F /* DropBox12.tiff */; }; 
     
    353353                A545398A05FB6300005C82FE /* Unlocked.tiff */ = {isa = PBXFileReference; lastKnownFileType = image.tiff; path = Unlocked.tiff; sourceTree = "<group>"; }; 
    354354                A54D35FA0762565B00227EBE /* WiredAdditions.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = WiredAdditions.framework; path = WiredAdditions/build/WiredAdditions.framework; sourceTree = SOURCE_ROOT; }; 
     355                A54E14950C084A6900EF5FBF /* DefaultIcon.tiff */ = {isa = PBXFileReference; lastKnownFileType = image.tiff; path = DefaultIcon.tiff; sourceTree = "<group>"; }; 
    355356                A55B1A4006B3952000201912 /* Remove.tiff */ = {isa = PBXFileReference; lastKnownFileType = image.tiff; path = Remove.tiff; sourceTree = "<group>"; }; 
    356357                A56440090A26079A00ADF4F5 /* WiredAdditions.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = WiredAdditions.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 
     
    10341035                                A5E225CC057AB5290037C7F9 /* Console.tiff */, 
    10351036                                77E556B30753887D009A7557 /* Conversation.tiff */, 
     1037                                A54E14950C084A6900EF5FBF /* DefaultIcon.tiff */, 
    10361038                                A5E225C6057AB5290037C7F9 /* Delete.tiff */, 
    10371039                                A5E225D1057AB5290037C7F9 /* DeleteFile.tiff */, 
     
    12671269                                7799518A0A122BBB00600320 /* Cool.tiff in Resources */, 
    12681270                                7799518F0A122BBB00600320 /* Cry.tiff in Resources */, 
     1271                                A54E14960C084A6900EF5FBF /* DefaultIcon.tiff in Resources */, 
    12691272                                A5E225FC057AB52A0037C7F9 /* Delete.tiff in Resources */, 
    12701273                                A5E22607057AB52A0037C7F9 /* DeleteFile.tiff in Resources */, 
     
    13431346                                77E555C5075346F3009A7557 /* YellowDrop.tiff in Resources */, 
    13441347                                779951820A122BBB00600320 /* Yuck.tiff in Resources */, 
    1345                                 A5E3CCFB0BFB9CE20000BAC9 /* WiredAdditions in Resources */, 
    13461348                        ); 
    13471349                        runOnlyForDeploymentPostprocessing = 0;