Commit graph

5288 commits

Author SHA1 Message Date
Quentin Mathe
9ccae52d11 Finally implemented toolbar customization (works well, but not yet really polished). Most of the work has been done in GSToolbarCustomizationPalette and GSToolbarCustomizationView. In particular NSToolbarItem has been modified to support custom view copy. GSToolbarView has been updated to take care of dragging initiated from the customization palette.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/Toolbar@24325 72102866-910b-0410-8b05-ffd578937521
2007-01-08 22:05:47 +00:00
Quentin Mathe
5a8b852b66 Added new GSFlow class to layout views line by line dynamically (in a vein similar to what GSTable does by enabling view layout on a grid). This class will be useful to diplay toolbar items in the toolbar customization palette
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/Toolbar@24321 72102866-910b-0410-8b05-ffd578937521
2007-01-07 09:34:55 +00:00
Quentin Mathe
7d2b80c52d Added Toolbar customization palette, not yet functional though. Modified NSToolbarItem and GSToolbar to display it
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/Toolbar@24315 72102866-910b-0410-8b05-ffd578937521
2007-01-05 13:58:17 +00:00
Quentin Mathe
5025bb332c Moved NSArray extension and validation support both used by toolbar into new files. This should make refactoring easier
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/Toolbar@24313 72102866-910b-0410-8b05-ffd578937521
2007-01-04 21:58:27 +00:00
Quentin Mathe
d2d6cdd1df New branch for toolbar related changes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/Toolbar@24308 72102866-910b-0410-8b05-ffd578937521
2007-01-03 14:55:23 +00:00
Matt Rice
a61f6e5479 * Source/NSTableView.m (rectOfColumn:): Use the height of the rows,
not the bounds.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24290 72102866-910b-0410-8b05-ffd578937521
2006-12-28 23:18:44 +00:00
Matt Rice
24f6989433 * Source/NSSecureTextFieldCell (-drawInteriorWithFrame:): Draw
disabled cell with controlBackgroundColor.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24289 72102866-910b-0410-8b05-ffd578937521
2006-12-28 21:33:22 +00:00
Matt Rice
d6fb03e8c5 * Source/NSTextFieldCell.m (-drawInteriorWithFrame:): Draw disabled
cell background with controlBackgroundColor.
        * Source/NSCell.m (-drawInteriorWithFrame:): Draw disabled cell text
        with disabledControlTextColor.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24288 72102866-910b-0410-8b05-ffd578937521
2006-12-28 21:26:10 +00:00
Richard Frith-MacDonald
920dd174a8 Minor theming updates.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24268 72102866-910b-0410-8b05-ffd578937521
2006-12-27 11:35:48 +00:00
Fred Kiefer
a24c80f048 Added a basic implementation for undo in NSTextView.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24232 72102866-910b-0410-8b05-ffd578937521
2006-12-24 09:37:16 +00:00
Fred Kiefer
2eaf22ccb4 dded basic support for the controller classes from Cocoa.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24218 72102866-910b-0410-8b05-ffd578937521
2006-12-19 18:35:16 +00:00
Richard Frith-MacDonald
1eefe4bf31 Patch to left alight long (multi-line) messages
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24213 72102866-910b-0410-8b05-ffd578937521
2006-12-18 15:16:14 +00:00
Adam Fedor
12af57fe8b Node name fixes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24200 72102866-910b-0410-8b05-ffd578937521
2006-12-11 16:51:22 +00:00
Adam Fedor
6b5cc73165 For filename fixups
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24199 72102866-910b-0410-8b05-ffd578937521
2006-12-11 16:38:17 +00:00
Adam Fedor
529a0e0d23 Fix up file names
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24198 72102866-910b-0410-8b05-ffd578937521
2006-12-11 16:35:39 +00:00
Adam Fedor
11e7c7941f Duplicate file
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24197 72102866-910b-0410-8b05-ffd578937521
2006-12-11 16:34:15 +00:00
Mark Tracy
311911e218 Autogsdoc comments for Source/NSBitmapImageRep.m
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24196 72102866-910b-0410-8b05-ffd578937521
2006-12-10 09:46:21 +00:00
Richard Frith-MacDonald
f92574fca1 fix for bug #18483
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24192 72102866-910b-0410-8b05-ffd578937521
2006-12-08 08:56:38 +00:00
Matt Rice
0c74ad4ec6 * Source/NSTextView.m: Don't update the selection when dragging a
NSColorPboardType.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24191 72102866-910b-0410-8b05-ffd578937521
2006-12-06 23:58:36 +00:00
Adam Fedor
a04d0da09c New manual from Christopher Armstrong
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24182 72102866-910b-0410-8b05-ffd578937521
2006-12-04 05:20:29 +00:00
Mark Tracy
7cb1294938 This should have been included in revision 24140.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24166 72102866-910b-0410-8b05-ffd578937521
2006-11-29 06:50:14 +00:00
Matt Rice
9e50ac657d * Source/NSWindowController.m (_windowDidLoad:): Pass an NSZeroPoint to
cascadeTopLeftFromPoint: on the first call.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24157 72102866-910b-0410-8b05-ffd578937521
2006-11-24 13:58:37 +00:00
Matt Rice
640612f030 * Source/NSTableView.m (_trackCellAtColumn:row:withEvent:):
Remove check for column editablity.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24152 72102866-910b-0410-8b05-ffd578937521
2006-11-23 11:57:03 +00:00
Matt Rice
8e09c9de77 * Source/NSWindow.m (sendEvent:): Fix dragging for views which accept
dragging with subviews which accept dragging.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24143 72102866-910b-0410-8b05-ffd578937521
2006-11-21 13:46:18 +00:00
Mark Tracy
9f633f60f6 Change Log
Mon. 20-Nov-2006 Mark Tracy <tracy454 at concentric dot net>
Many changes related to bitmap images

1.  NSBitmapImateRep attribute global strings were not defined
    Fix: add definitions to externs.h, and declarations to NSBitmapImageRep.h
    Comment: Two strings defined in Cocoa were commented out: NSImageColorSyncData
      is proprietary to Apple, and NSImageEXIFData has no support elsewhere in
      GNUstep. I propose adding GSImageICCProfileData if and when color management
      is added to GNUstep.

2.  LZW compression in TIFF was disabled for lack of a test of its availability
    Fix: Implement NSTiffIsCodecConfigured(codec) in tiff.m
    Comment: As of libtiff-3.7.0, there is a function call in the API to test
      availability at runtime. For libtiff-3.6.0 (earlier?) there are macros
      #defined in tiffconf.h. The implementation check the library version at
      compile time, and uses one of the two methods. I have not tested the 
      second method for lack of an installation of an old libtiff.

3.  -canCompressUsing: relied on a static list of capabilities
    Fix: Use the new NSTiffIsCodecConfigured(codec) in NSBitmapImageRep.m
    Comment: The static list could be wrong, as it was on my system. Also
      eliminate the supports_lzw_compression flag.

4.  +getTIFFCompressionTypes:count: relied on a static list of compressors.
    Fix: Use the new NSTiffIsCodecConfigured(codec) in NSBitmapImageRep.m
    Comment: Compares GNUstep supported compressors against actual availability.
      Also change the private instance methods _localFromCompressionType and 
      _compressionTypeFromLocal to private class methods so that they can be used
      in -initWithTIFFImage:number: and -TIFFRepresentationUsingCompression:factor:
      and +getTIFFCompressionTypes:count: This is probably a clumsy implementation
      but it works.

5.  -setProperty:toValue: and -valueForProperty: were not implemented
    Fix: Add a new instance variable NSMutableDictionary * _properties to 
      NSBitmapImageRep.h and implemented accessors in NSBitmapImageRep.m. Patch
      -_initFromTIFFImage to set compression type and factor in _properties.
    Comment: This feature is used to pass options to and from JPEG, PNG, TIFF, and
      GIF in Cocoa, although the docs are kind of vague. In one case the Cocoa docs
      said the properties were set when reading a TIFF, but the implementation
      didn't; I chose to implement the docs. Cocoa does use properties when 
      exporting bitmaps, so I implemented that.

6.  Checked and updated NSBitmapImageFileType in NSBitmapImageRep.h
    Fix: confirmed the enumeration values against Cocoa, and added 
      NSJPEG2000FileType = 5
    Comment: JPEG-2000 is not implemented, just reserved a space for it.

7.  -representationUsingType:properties: was not implemented
    Fix: Implement export of TIFF, JPEG, GIF and PNG in NSBitmapImage.m
    Comment: See the change notes for JPEG, GIF, and PNG for more. BMP and JPEG-2000
      are not implemented; they just log a message to that effect. As apparently
      Cocoa does it this way, if you pass nil for properties, it falls back to 
      the internal _properties, and if that is empty, there are some safe defaults.

8.  +representationfOfImageRepsInArray:UsingType:properties: was not implemented
    Fix: Partially implement in NSBitmapImageRep.m
    Comment: I just stole the incomplete code from
      +TIFFRepresentationOfImageRepsInArray: since I have yet to find an explanation
      of how this really ought to work.

9.  JPEG export didn't handle alpha channel, properties or errors.
    Fix: Add -_JPEGRepresentationWithProperties:errorMessage: to
      NSBitmapImageRep+JPEG.h and greatly rework Nicolas Roard's code in
      NSBitmapImageRep+JPEG.m. Patch -_initBitmapFromJPEG:errorMessage to
      write properties.
    Comment: Major rewrite of Nicolas Roard's JPEG export code. 
    To do: Support for planar bitmaps and support for colorspaces other than
      RGB(A).

10. PNG export not implemented
    Fix: Add -_PNGRepresentationWithProperties: to
      NSBitmapImageRep+PNG.h and implement NSBitmapImageRep+PNG.m
    Comment: No support yet for planar bitmaps. Only supports 
      NS*WhiteColorSpace and NS*RGBColorSpace. Does support alpha. Support for
      reading and writing NSImageGamma is experimental. In keeping with Cocoa,
      the property NSImageGamma ranges from 0.0 to 1.0; representing the range
      of minimum supported gamma to maximum supported gamma, in this case 1.0
      to 2.5. This is in contrast to GNUstep where by convention the property
      would range from 0.0 to 255.0.
    To do: proper error message support

11. GIF export not implemented
    Fix: Add -_GIFRepresentationWithPropterties:errorMessage: to
      NSBitmapImageRep+GIF.h and implement in NSBitmapImageRep+GIF.m
    Comments: Supports only RGB(A) colorspaces, but ignores alpha. Supports
      planar or interleaved bitmaps. Supports properties NSImageRGBColorTable.

12. -_initBitmapFromGIF:errorMessage: did not support transparency
    Fix: Don't ignore control blocks in NSBitmapImageRep+GIF.m; check for
      transparency.
    Comment: If a transparent color is found, it adds an alpha channel to the 
      bitmap. Also, save the color table in properties.

13. -_initBitmapFromGIF:errorMessage: would show the last image in a 
      multi-image GIF file
    Fix: Break the parsing loop after the first image in NSBitmapImageRep+GIF.m
    Comment: Also check for frame duration, and set that property. There is not
      yet any support for animated GIF. This will require some additional 
      infrastructure, and I won't do it unless asked.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24140 72102866-910b-0410-8b05-ffd578937521
2006-11-21 06:36:26 +00:00
Matt Rice
abfea70cf8 * Source/NSTextView_actions.m: Change cursor movement implementations
when collapsing a selection.
        * Source/NSParagraphStyle.m (-setBaseWritingDirection:): Add comment.
        * Source/NSAttributedString: Add and remove characters in the word
        break character set.
        * KeyBindings/DefaultKeyBindings.dict: Change control-f and control-b
        to moveForward: and moveBackward:



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24136 72102866-910b-0410-8b05-ffd578937521
2006-11-20 16:20:15 +00:00
Richard Frith-MacDonald
8e6eaaac0f Move main part of affine transform code to base for MacOS-X compatibility
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24133 72102866-910b-0410-8b05-ffd578937521
2006-11-19 11:32:51 +00:00
Richard Frith-MacDonald
3900ae6fb7 Adjust to fix corner view for scroillers on right.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24128 72102866-910b-0410-8b05-ffd578937521
2006-11-18 14:56:09 +00:00
Richard Frith-MacDonald
dffc79cdfb Merge in some theming changes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24120 72102866-910b-0410-8b05-ffd578937521
2006-11-17 08:54:20 +00:00
Adam Fedor
f15b15d1ba Allow loading of images from the owners bundle
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24119 72102866-910b-0410-8b05-ffd578937521
2006-11-17 04:53:09 +00:00
Nicola Pero
fb51fe62fe Updated to use GNUSTEP_INSTALLATION_DOMAIN instead of GNUSTEP_INSTALLATION_DIR; DESTDIR instead of INSTALL_ROOT_DIR; and fixed some makefile installation bugs
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24094 72102866-910b-0410-8b05-ffd578937521
2006-11-15 16:59:32 +00:00
Matt Rice
4475b975b8 * Source/NSTableView.m (-noteNumberOfRowsChanged:): Post selection
is and did change notifications if changing the selected rows.
        * Source/NSSliderCell.m (-copyWithZone:): Make a little clearer.
        * Source/NSMatrix.m (-_rebuildLayoutAfterResize): Don't change the
        intercell spacing if not autosizing cells.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24080 72102866-910b-0410-8b05-ffd578937521
2006-11-13 05:23:24 +00:00
Matt Rice
586f972d12 * Source/NSSliderCell.m: Implement copyWithZone:.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24075 72102866-910b-0410-8b05-ffd578937521
2006-11-11 18:11:21 +00:00
Matt Rice
84a0a59321 * Source/NSOutlineView.m: Handle rowAtPoint: returning -1.
* Source/NSTableView.m (drawRect:): Only call
        -highlightSelectionInClipRect: and -drawGridInClipRect: once.
        (-drawGridInClipRect:): Constrain the vertical grid line to the last
	 row drawn in the rect.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24071 72102866-910b-0410-8b05-ffd578937521
2006-11-10 19:12:32 +00:00
Matt Rice
86c8735342 * Source/NSTableView.m (rowAtPoint:): Return -1 if the point is under
the last row.
        (mouseDown:): Handle rowAtPoint: returning -1.
        (rectOfRows:): Ditto.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24070 72102866-910b-0410-8b05-ffd578937521
2006-11-10 17:05:20 +00:00
Matt Rice
edf055a980 * Source/NSTableView.m (mouseDown:): Rename some local variables
to be less ambiguous.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24068 72102866-910b-0410-8b05-ffd578937521
2006-11-10 14:35:31 +00:00
Matt Rice
1fcec7ffe9 * Headers/AppKit/NSTableView.h: Add ivar for
verticalMotionCanBeginDrag.
        * Source/NSTableView.m: Implement verticalMotionCanBeginDrag
        bump class version.
        * Source/NSTextView_actions.m: Fix method name from previous changes.
        * KeyBindings/DefaultKeyBindings.dict: Add new key bindings.
        * ChangeLog: Add to description of a previous change.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24067 72102866-910b-0410-8b05-ffd578937521
2006-11-10 13:40:28 +00:00
Matt Rice
affd41f5b1 * Source/NSTableView.m (selectContiguousRegion): Remove usage of
offsets.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24060 72102866-910b-0410-8b05-ffd578937521
2006-11-09 12:59:04 +00:00
Matt Rice
ab28e892bb * Source/NSTableView.m: Implement keyboard navigation/selection.
Fixes bug #11942.
        (-selectRow:byExtendingSelection:): Update _clickedRow.
        (-mouseDown:): Ditto.
        * Source/NSSlider.m (keyDown:): Call supers implementation if we don't
        use the key stroke.




git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24054 72102866-910b-0410-8b05-ffd578937521
2006-11-09 01:28:58 +00:00
Matt Rice
e2e8357e71 * Source/NSTableView.m: Whitespace changes to conform to coding
standards.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24049 72102866-910b-0410-8b05-ffd578937521
2006-11-07 10:46:10 +00:00
Matt Rice
55623d70f7 * Source/NSTableView.m (-mouseDown): Only call editWithFrame: from a
double click. Don't track cells from a mouse dragged.
        Add comments.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24048 72102866-910b-0410-8b05-ffd578937521
2006-11-07 10:26:57 +00:00
Matt Rice
9bf357a90c * Source/NSTextView_actions.m: Fix keyboard movement scrolling.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24037 72102866-910b-0410-8b05-ffd578937521
2006-11-06 16:04:12 +00:00
Matt Rice
dc1e1120e0 * Source/NSTextView_actions.m: Remove hack from previous patch.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24036 72102866-910b-0410-8b05-ffd578937521
2006-11-06 15:30:44 +00:00
Richard Frith-MacDonald
45acf44de1 documentation cleanups
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24035 72102866-910b-0410-8b05-ffd578937521
2006-11-06 13:58:37 +00:00
Matt Rice
fc21139a69 * Source/NSTextView_actions.m: Implement some undocumented key
binding actions.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24033 72102866-910b-0410-8b05-ffd578937521
2006-11-06 10:56:48 +00:00
Matt Rice
ba8d729b8a * Source/NSTextView_actions.m:
* Source/NSOpenPanel.m:
        * Source/GSLayoutManager.m:
        * Source/NSLayoutManager.m:
        * Source/NSSavePanel.m:
        * Source/NSTextView.m:
        * Source/NSStringDrawing.m:
        * Headers/Additions/GNUstepGUI/GSLayoutManager_internal.h:
        * Headers/AppKit/NSTextView.h: Remove underscores from category names
        as they can confuse the debugger.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24032 72102866-910b-0410-8b05-ffd578937521
2006-11-06 10:19:20 +00:00
Matt Rice
49923f47c7 * Source/NSSlider.m (-keyDown:): Implement, Fixes bug #14000.
* Source/NSSliderCell.m (-trackMouse:...): Fix allows tick marks
        only mouse tracking.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24031 72102866-910b-0410-8b05-ffd578937521
2006-11-05 19:22:00 +00:00
Matt Rice
ef92c9d9b9 * Source/NSColorPanel.m: Implement -worksWhenModal:. Fixes bug #9417.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24030 72102866-910b-0410-8b05-ffd578937521
2006-11-05 11:13:29 +00:00
Matt Rice
a138f13d9c * Source/NSTableView (_editNextCellAfterRow:inColumn:):
Wrap around when number of rows is exceeded.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24019 72102866-910b-0410-8b05-ffd578937521
2006-11-03 09:44:05 +00:00
Richard Frith-MacDonald
47363b2182 merge in some theme branch changes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24017 72102866-910b-0410-8b05-ffd578937521
2006-11-02 19:42:42 +00:00