Commit graph

2717 commits

Author SHA1 Message Date
Mirko Viviani
b9d6351bc9 * Source/NSSavePanel.m ([NSSavePanel -_initWithoutGModel]): do not set
the max number of columns for the browser.

* Source/NSBrowser.m ([NSBrowser -tile]): control column width and
recalculate number of visible columns.
([NSBrowser -setMaxVisibleColumns:]): moved code in -tile.
([NSBrowser -displayAllColumns]): removed redundant methods.
([NSBrowser -initWithFrame:]): set _minColumnWidth to 100.0
([NSBrowser -numberOfVisibleColumns]): fixed. Return the number or
_visible_ columns. (not number of all loaded columns)
([NSBrowser -scrollColumnToVisible:]): use -numberOfVisibleColumns
instead of _maxVisibleColumns that could be 0.
([NSBrowser -updateScroller]): likewise.
([NSBrowser -scrollViaScroller:]): likewise.
([NSBrowser -_unloadFromColumn:]): likewise.
Removed all the fprintf() debug.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10166 72102866-910b-0410-8b05-ffd578937521
2001-06-11 20:28:02 +00:00
Nicola Pero
66f83dcc61 Fixed for resizing of NSBrowser
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10158 72102866-910b-0410-8b05-ffd578937521
2001-06-10 17:40:03 +00:00
Nicola Pero
c20baa2698 Fixed bugs in resizing
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10157 72102866-910b-0410-8b05-ffd578937521
2001-06-10 17:38:19 +00:00
Nicola Pero
4555623c83 Tidied indentation
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10156 72102866-910b-0410-8b05-ffd578937521
2001-06-10 17:35:35 +00:00
Nicola Pero
92ddc70992 Little debugging help added to nscell
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10155 72102866-910b-0410-8b05-ffd578937521
2001-06-10 16:14:41 +00:00
Nicola Pero
babf751ba5 Added NSDebugLog for case in which the cell is asked for a cell attribute
which is not supported


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10154 72102866-910b-0410-8b05-ffd578937521
2001-06-10 16:12:56 +00:00
Fred Kiefer
ac84b0b548 .
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10142 72102866-910b-0410-8b05-ffd578937521
2001-06-09 23:37:04 +00:00
Fred Kiefer
9029c07c0b Reformated, simplified and corrected many methods.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10141 72102866-910b-0410-8b05-ffd578937521
2001-06-09 23:36:23 +00:00
Fred Kiefer
1018742868 Added [setDelegate:] method.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10140 72102866-910b-0410-8b05-ffd578937521
2001-06-09 23:33:47 +00:00
Nicola Pero
fc284cf51b Tidied some code in NSCell.m
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10134 72102866-910b-0410-8b05-ffd578937521
2001-06-09 01:37:06 +00:00
Nicola Pero
feb57ab9ae Removed unused default: label and tidied code
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10133 72102866-910b-0410-8b05-ffd578937521
2001-06-09 01:35:39 +00:00
Nicola Pero
8599a33227 Improved message
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10132 72102866-910b-0410-8b05-ffd578937521
2001-06-09 01:23:16 +00:00
Nicola Pero
165f83d120 Set version variables in makefile so that calling makefiles can determine
which gui library version they are using


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10131 72102866-910b-0410-8b05-ffd578937521
2001-06-09 01:18:43 +00:00
Nicola Pero
60d084066c Regenerated
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10130 72102866-910b-0410-8b05-ffd578937521
2001-06-09 01:15:43 +00:00
Nicola Pero
f2dadb68a2 Moved to gui.make.in
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10129 72102866-910b-0410-8b05-ffd578937521
2001-06-09 01:14:36 +00:00
Nicola Pero
db249cdc53 Check for version, and generate gui.make
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10128 72102866-910b-0410-8b05-ffd578937521
2001-06-09 01:13:58 +00:00
Nicola Pero
50b65c66a1 New file
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10127 72102866-910b-0410-8b05-ffd578937521
2001-06-09 01:13:15 +00:00
Nicola Pero
6ec0f885b5 Tidied macro syntax to work better with newer compilers
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10123 72102866-910b-0410-8b05-ffd578937521
2001-06-08 23:37:49 +00:00
Nicola Pero
8ef9a8a337 Tidied macro syntax which was giving warnings on new compilers
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10122 72102866-910b-0410-8b05-ffd578937521
2001-06-08 23:36:06 +00:00
Nicola Pero
c532921093 Tidied indentation
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10121 72102866-910b-0410-8b05-ffd578937521
2001-06-08 22:51:11 +00:00
Fred Kiefer
51b1d81a60 .
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10120 72102866-910b-0410-8b05-ffd578937521
2001-06-08 16:45:17 +00:00
Fred Kiefer
ce1ca29ea5 Implemented canInitWithData:, imageUnfilteredFileTypes
and imageUnfilteredPasteboardTypes.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10119 72102866-910b-0410-8b05-ffd578937521
2001-06-08 16:44:35 +00:00
Fred Kiefer
32317597eb Moved code to create the _imageData into
[initWithBitmapDataPlanes:...] and corrected [copyWithZone:]


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10118 72102866-910b-0410-8b05-ffd578937521
2001-06-08 16:44:05 +00:00
Fred Kiefer
e82af119fb .
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10115 72102866-910b-0410-8b05-ffd578937521
2001-06-07 21:56:58 +00:00
Fred Kiefer
9642bac4ec Removed methods implemented by superclass.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10114 72102866-910b-0410-8b05-ffd578937521
2001-06-07 21:56:19 +00:00
Fred Kiefer
3b035626b2 Corrected some methods on this class so that subclasses may use
them. Moved all the class methods to the front of the file.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10113 72102866-910b-0410-8b05-ffd578937521
2001-06-07 21:55:46 +00:00
Fred Kiefer
5cf3aef11e Added some basic implementation for this class.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10112 72102866-910b-0410-8b05-ffd578937521
2001-06-07 21:54:51 +00:00
Fred Kiefer
cd17aabe87 .
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10105 72102866-910b-0410-8b05-ffd578937521
2001-06-07 14:25:30 +00:00
Fred Kiefer
c9df791c59 Removed the copyWithZone: method as this has been fixed on
GSTextStorage.
Changed NSLeftMouseUp to the correct NSLeftMouseDown. (Fix by
Ludovic Marcotte <ludovic@Sophos.ca>, who is the fist user of
NSTextAttachment)


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10104 72102866-910b-0410-8b05-ffd578937521
2001-06-07 14:24:46 +00:00
Richard Frith-Macdonald
3e4f05e940 Shallow copy for attributes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10099 72102866-910b-0410-8b05-ffd578937521
2001-06-07 06:10:33 +00:00
Adam Fedor
f77edb1d03 Method to calc minimum size
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10096 72102866-910b-0410-8b05-ffd578937521
2001-06-07 04:01:02 +00:00
Fred Kiefer
7c3852cea6 *** empty log message ***
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10094 72102866-910b-0410-8b05-ffd578937521
2001-06-06 18:11:52 +00:00
Fred Kiefer
efdd226051 Added copyWithZone: to NSTextAttachment to let it work as a
attribute in a NSAttributedString. This may be just a temporary
work around.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10093 72102866-910b-0410-8b05-ffd578937521
2001-06-06 18:07:32 +00:00
Fred Kiefer
c2e7cf2f1c Corrected drawing code for text attachments.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10092 72102866-910b-0410-8b05-ffd578937521
2001-06-06 18:06:52 +00:00
Nicola Pero
4a0dd2c75b Added method missing in NSPopUpButtonCell
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10081 72102866-910b-0410-8b05-ffd578937521
2001-06-06 01:29:44 +00:00
Nicola Pero
f1d026eff6 Added missing method
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10080 72102866-910b-0410-8b05-ffd578937521
2001-06-06 01:28:22 +00:00
Fred Kiefer
664f7ee0b5 .
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10073 72102866-910b-0410-8b05-ffd578937521
2001-06-04 16:26:12 +00:00
Fred Kiefer
5e273a37d1 Implemented some basic handling for mouse down on attachment cell.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10072 72102866-910b-0410-8b05-ffd578937521
2001-06-04 16:25:32 +00:00
Fred Kiefer
8d1b7ad36a Added drawing code for text attachments (Still untested, as there
is a problem with unicode characters in NSAttributedString)


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10071 72102866-910b-0410-8b05-ffd578937521
2001-06-04 16:24:48 +00:00
Fred Kiefer
2db21e4d84 Added missing methods.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10070 72102866-910b-0410-8b05-ffd578937521
2001-06-04 16:23:57 +00:00
Mirko Viviani
423ab96406 * Source/NSMatrix.m ([NSMatrix -mouseDown:]): set highlight in list
mode matrix. Use _selectCell: to select the cell.
([NSMatrix -_setState:highlight:startIndex:endIndex:]): fixed cell
selection/display. Check for selectionByRect.
([NSMatrix -setSelectionFrom:to:anchor:highlight:]): removed code for
selectionByRect. Set dotted outline and last selected cell.
([NSMatrix -_shiftModifier:]): implement shift selection.
([NSMatrix -_altModifier:]): implement alt selection.
([NSMatrix -keyDown:]): use _shiftSelection: and _altSelection to
implement full keyboard selection.
([NSMatrix -_selectCell:atRow:column:]): redisplay previous dotted
cell. Set cell highlight in list mode matrix.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10052 72102866-910b-0410-8b05-ffd578937521
2001-06-01 22:53:50 +00:00
Nicola Pero
2ef65f8a58 Indentation tidied
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10027 72102866-910b-0410-8b05-ffd578937521
2001-05-28 22:20:59 +00:00
Adam Fedor
59384d53aa Use runtime to find backend if not BACKEND_BUNDLE
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10024 72102866-910b-0410-8b05-ffd578937521
2001-05-25 17:46:46 +00:00
Adam Fedor
ca76560c9e Verfiy bundle loading, make sure nib loaded visibile windows get orderedFront.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10021 72102866-910b-0410-8b05-ffd578937521
2001-05-24 14:47:43 +00:00
Fred Kiefer
02d40b3d81 .
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@9999 72102866-910b-0410-8b05-ffd578937521
2001-05-21 15:25:06 +00:00
Fred Kiefer
1b52725d5b Cache all the fonts so we can returend a cached on if the same
font is required twice, this makes some of the caching in xdps
obsolte.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@9998 72102866-910b-0410-8b05-ffd578937521
2001-05-21 15:24:20 +00:00
Fred Kiefer
329d47aa10 .
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@9971 72102866-910b-0410-8b05-ffd578937521
2001-05-18 21:01:42 +00:00
Fred Kiefer
d2948895d0 Integrated patches from Frederic <frederic.chauvin@noos.fr> to
seed up drawing.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@9970 72102866-910b-0410-8b05-ffd578937521
2001-05-18 21:00:52 +00:00
Fred Kiefer
4c33646018 Extracted the interface definition into a separate file.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@9969 72102866-910b-0410-8b05-ffd578937521
2001-05-18 21:00:09 +00:00
Fred Kiefer
f32e5d7b69 Extracted interface
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@9968 72102866-910b-0410-8b05-ffd578937521
2001-05-18 20:59:23 +00:00