2005-01-25 00:29 Alexander Malmberg * Headers/AppKit/NSImage.h (-drawAtPoint:fromRect:fraction:) (-drawInRect:fromRect:operation:fraction:): Document. * Source/NSImage.m -drawAtPoint:fromRect:fraction:) (-drawInRect:fromRect:operation:fraction:): Implement. (min, max): New functions. (-drawRepresentation:inRect:): Save the gstate before drawing and restore it afterwards. Fixes bug #11712. 2005-01-24 16:57 Alexander Malmberg * Source/NSPopUpButtonCell.m (-synchronizeTitleAndSelectedItem): For non-pulldowns, make sure the selected item and the highlighted item are the same. 2005-01-24 Quentin Mathe * Source/GSToolbarView.m (initSystemExtensionsColors()): Removed spurious 'else' (introduced with revision 1.11) which prevented toolbar colors loading code to be executed (Fix the white toolbar background bug reported by Riccardo Mottola). 2005-01-24 Adrian Robert * Source/NSSavePanel.m (-_shouldShowExtension:isDir:, -setRequiredFileType:, -requiredFileType, -filename): For filename display filtering, handle case where _requiredFileType is unset or set to nil or "" by allowing any extension (including none), as specified in Apple docs, instead of allowing no extensions, as it was. Document. 2005-01-24 00:48 Alexander Malmberg * Source/NSImageCell.m (-drawInteriorWithFrame:inView:): Draw the image using the right size, but don't scale it. Work around bug #11712. 2005-01-22 Adrian Robert * Source/NSFontManager.m (-fontWithFamily:traits:weight:size:) Corrected logic in fallback approximate trait search for weight 5 or 6 (regular) fonts. Font w/approximate traits but originally-requested weight will now be found. 2005-01-21 21:43 Alexander Malmberg Various whitespace cleanups, comment type fixes, and changes to avoid warnings from recent versions of gcc. * Headers/Additions/GNUstepGUI/GSToolbar.h (-_toolbars): Declare. * Source/NSWindow+Toolbar.m: Remove conflicting declaration of [NSToolbar -_toolbars]. * Headers/Additions/GNUstepGUI/GSServicesManager.h, Source/GSServicesMananger.m (-item2title:, -validateMenuItem:): Adjust argument types. * Headers/AppKit/NSMenu.h (-validateMenuItem:): Adjust argument type. * Source/NSTextView.m (-sizeToFit): Don't use size uninitialized if neither resizable flags is set. (-insertText:): Adjust argument type. * Headers/AppKit/NSResponder.h, Source/NSResponder.m (-insertText:): Adjust argument type. Document. * Headers/AppKit/NSView.h: Change type of ivar _window to NSWindow *. * Source/GSTitleView.m (-mouseDown:): Always initialize startWindowOrigin. * Source/NSApplication.m (-setApplicationIconImage:): Add casts to avoid warnings. * Source/NSCell.m (-cellSize): Add default: case. * Source/NSPasteboard.m ([GSFiltered -pasteboard:provideDataForType:]): Detect and warn if we can't find a filter that will get us the desired type. * Source/NSProgressIndicator.m: Comment out unused variable 'images'. * Source/NSBezierPath.m: Declare GSBezierPath fully before using it. (-bezierPathByFlatteningPath, -bezierPathByReversingPath): Make sure variables are always initialized. * Source/NSMenuView.m, * Source/NSPrintOperation.m, * Source/NSSplitView.m, * Source/NSTableHeaderView.m: Make sure variables are always initialized. * Source/NSBox.m, * Source/NSImageview.m, * Source/NSText.m, * Source/NSTextStorage.m: Add missing includes. * Source/GSKeyBindingTable.m, * Source/GSLayoutManager.m, * Source/NSBitmapImageRep+PNM.m, * Source/NSBundleAdditions.m, * Source/NSLayoutManager.m, * Source/nsimage-tiff.h, * Source/tiff.m, * Headers/Additions/GNUstepGUI/GSDisplayServer.h, * Source/GSDisplayServer.m: Change signedness of various variables. * Source/NSPanel.m (-sendEvent:): Remove. * Source/NSWindow.m (-becomesKeyOnlyIfNeeded): New method. (-_sendEvent:becomesKeyOnlyIfNeeded:): Remove. Move code ... (-sendEvent:): ... here. Use -becomesKeyOnlyIfNeeded instead of the argument. 2005-01-21 Quentin Mathe * Source/GSToolbarView.m: * Headers/Additions/GNUstepGUI/GSToolbarView.h: Renamed the NSColor(Extensions) category with the more descriptive name NSColor(GSToolbarViewAdditions). This modification permits GNUMail compilation with recent Darwin linker versions which prevented it because GNUMail has a NSColor category identically named "Extensions". 2005-01-20 Fred Kiefer * Source/NSTableView.m (-rowAtPoint:): If the heigh of the table is incorrect and because of this the row would be greater than the number of rows, return a usable number. 2005-01-18 17:06 Alexander Malmberg * Source/NSWindow.m (-initWithContentRect:styleMask:backing:defer:screen:): Assert that the shared application instance has been created instead of just calling NSLog. Make the message clearer. 2005-01-18 16:53 Alexander Malmberg * Source/NSCell.m (-setUpFieldEditorAttributes:): Clear the text object's string. * Source/NSControl.m (-setDoubleValue:, -setFloatValue:) (-setIntValue:, -setStringValue:, -setObjectValue:): If the receiver was being edited when the method was called, make it the first responder after changing the value. (-abortEditing): Don't clear the text object's string. * Source/NSMatrix.m (-abortEditing): Don't clear the text object's string. * Source/NSTableView.m (-abortEditing): Ditto. * Source/NSTextField.m (-abortEditing): Ditto. 2005-01-18 16:39 Alexander Malmberg * Source/NSBitmapImageRep.m (-TIFFRepresentationUsingCompression:factor:): Don't use pointer comparisons to compare strings. Handle both device and calibrated colorspaces. Warn if the colorspace isn't recognized. 2005-01-18 15:50 Alexander Malmberg * Source/NSApplication.m (-runModalSession:): Don't order the window to the front or make it the key/main window. 2005-01-18 15:46 Alexander Malmberg * Source/NSApplication.m (-finishLaunching): Don't attempt to open an untitled file if we were autolaunched. 2005-01-18 14:16 Alexander Malmberg * Source/NSAffineTransform.m (pi): Correct the rounding. 2005-01-18 Matt Rice * Source/NSTextView.m (setSelectedRange:): Do not make the selected text visible. (-didChangeText,-checkSpelling:): Make the selected text visible. * Source/NSTextView_actions.m (_moveTo:select:): Ditto. * Source/NSCell.m (-setUpFieldEditorAttributes:): Ditto. (-selectWithFrame:inView:editor:delegate:start:length:): Ditto. * Source/NSComboBoxCell (-validateSelection:,-textDidChange:): Ditto. 2005-01-18 14:09 Alexander Malmberg * Source/Functions.m (NSDottedFrameRect, NSFrameRectWithWidth): Draw the frame inside the given rectangle. (NSDrawTiledRects): Remove documentation. * Headers/AppKit/NSGraphics.h (NSDottedFrameRect, NSFrameRect) (NSFrameRectWithWidth, NSDrawTiledRects): Add new documentation. 2005-01-17 Adrian Robert * Source/NSWindow.m (-sendEvent:becomesKeyOnlyIfNeeded:): Give mouseDragged events to _lastView rather than view (if exists) underneath mouse. 2005-01-17 Adrian Robert * Source/NSApplication.m (-nextEventMatchingMask:untilDate:inMode:dequeue:): Check that event is not 'null_event' before using it to unhide mouse. 2005-01-17 Fred Kiefer * Source/NSBrowserCell.m (-setType:): New method, does nothing to allow image and text at once (MacOSX 10.2 behaviour). (-drawInteriorWithFrame:inView:): Draw an image or alternate image, if provided and draw the text as well. 2005-01-16 Fred Kiefer * Images/common_ClosedHandCursor.tiff: Replaced by new image files by Fabien Vallon . 2005-01-16 Fred Kiefer * TextConverters/RTF/RTFProducer.m (-_stringWithRTFCharacters:): Output "\uc0" so that other applications know we don't write ANSI representations of Unicode characters. 2005-01-16 Fred Kiefer * Printing/GSCUPS/GSCUPSPrinter.m (+printerNames): Add dummy printer to list, if no printers are found. 2005-01-16 06:39 Gregory John Casamento * Source/NSDocument.m: In validateMenuItem: added code to properly set the undo/redo title and disable the menus when appropriate. 2005-01-15 05:59 Gregory John Casamento * Source/NSDocument.m: Added undo:/redo: here. Smarter use of the responder chain. * Source/NSWindow.m: Removed undo:/redo: here. 2005-01-14 16:11 Alexander Malmberg * Headers/AppKit/NSSavePanel.h (-panel:shouldShowFilename:): Document. * Source/NSSavePanel.m (-setDelegate:): Call -validateVisibleColumns. Whitespace cleanups. (-browser:isColumnValid:): Give the delegate the complete path to each file. Fixes bug #10553. 2005-01-14 09:25 Gregory John Casamento * Source/NSDocument.m: Minor change. The init method now sets the flag to YES so that when a undoManager is needed, it's instantiated. 2005-01-14 05:50 Gregory John Casamento * Source/NSDocument.m: corrected undoManager call in NSDocument. 2005-01-13 Adam Fedor * Source/GNUmakefile.preamble: Extend FILTER_OUT flag to all sparc architectures. 2005-01-12 16:40 Alexander Malmberg * Headers/AppKit/NSBezierPath.h (-windingCountAtPoint:): Mark as a GNUstep extension. 2005-01-12 00:47 Alexander Malmberg * Source/GSStandardWindowDecorationView.m (-initWithFrame:window:): Create a paragraph style with line-breaking-by-clipping and use it for window titles. 2005-01-12 00:41 Alexander Malmberg * Printing/GSCUPS/GSCUPSPrinter.h (GSCUPSDummyPrinterName): New variable. * Printing/GSCUPS/GSCUPSPrinter.m (GSCUPSDummyPrinterName): New variable. (+printerWithName:): Warn and return a dummy printer when requested. * Printing/GSCUPS/GSCUPSPrintInfo.m (defaultPrinter): If there's no default CUPS printer set, return a dummy printer. Fixes bug #10916. 2005-01-11 23:50 Alexander Malmberg * Headers/AppKit/NSBezierPath.h (NSWindingRule) (-containsPoint): Document. (-windingCountAtPoint:): New method. * Source/NSBezierPath.m: Remove some trailing whitespace. (PI): Correct rounding. (contribution, -contributionToContains:): Remove. (winding_line, winding_curve): New functions. (-windingCountAtPoint:): New method. (-containsPoint:): Use -windingCountAtPoint: instead of -contributionToContains:. Don't flatten the path. 2005-01-09 Matt Rice * Source/NSTableHeaderCell.m (-drawInteriorWithFrame:inView:): Use the correct background/highlight colors and NSCompositeSourceOver for image cells. (-setHighlighted): Use controlHighlightColor instead of controlColor.