Commit graph

3509 commits

Author SHA1 Message Date
Nicola Pero
e9405ca0e7 Remove delegates from the notification center in dealloc; other minor
tidyups


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14534 72102866-910b-0410-8b05-ffd578937521
2002-09-24 01:36:42 +00:00
Nicola Pero
e3826ddff1 Added FIXME
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14533 72102866-910b-0410-8b05-ffd578937521
2002-09-24 01:34:15 +00:00
Nicola Pero
cf724b05d1 Added -dealloc
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14532 72102866-910b-0410-8b05-ffd578937521
2002-09-24 01:33:36 +00:00
Nicola Pero
3c735f0c53 Remove the delegate from the notification center in -dealloc
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14531 72102866-910b-0410-8b05-ffd578937521
2002-09-24 01:33:09 +00:00
Nicola Pero
33da6f7f1c Remove the delegate from the notification center in -dealloc; cache the
default notification center


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14530 72102866-910b-0410-8b05-ffd578937521
2002-09-24 01:32:42 +00:00
Nicola Pero
03c108664b Fixed typo in last commit
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14529 72102866-910b-0410-8b05-ffd578937521
2002-09-24 01:30:29 +00:00
Nicola Pero
dc4ff73bed Added FIXME
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14528 72102866-910b-0410-8b05-ffd578937521
2002-09-24 01:29:14 +00:00
Nicola Pero
c7976b098c Remove the delegate from the notification center in -dealloc; cache the
default notification center for the whole class


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14527 72102866-910b-0410-8b05-ffd578937521
2002-09-24 01:28:12 +00:00
Nicola Pero
48cac53701 Added missing dealloc
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14526 72102866-910b-0410-8b05-ffd578937521
2002-09-24 01:22:50 +00:00
Nicola Pero
eecc1e74f7 Improved error messages when loading of the backend fails
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14522 72102866-910b-0410-8b05-ffd578937521
2002-09-23 13:26:56 +00:00
Nicola Pero
0a3d708660 Improved error messages when loading the backend fails
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14521 72102866-910b-0410-8b05-ffd578937521
2002-09-23 13:26:26 +00:00
Richard Frith-Macdonald
71d95bac99 Fix some coding standard errors
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14520 72102866-910b-0410-8b05-ffd578937521
2002-09-23 05:52:36 +00:00
Fred Kiefer
c2c3d972df Cleanup of NSBrowser.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14514 72102866-910b-0410-8b05-ffd578937521
2002-09-22 22:12:00 +00:00
Fred Kiefer
6c6703400a Removed unused ivar _numberOfRows from NSBrowserColumn.
Made GSBrowserTitleCell a subclass of NSTableHeaderCell.
Corrected [scrollColumnToVisible:], so that the column becomes
visible but not always last. Adopted [scrollViaScroller:] to this
change. Inlined most private methods and optimized the
code. Reorganized [_performLoadOfColumn:] to remove code
duplication. Set the title of a column here and not each time
when drawing.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14513 72102866-910b-0410-8b05-ffd578937521
2002-09-22 22:10:50 +00:00
Alexander Malmberg
6b9b10409f Don't set uses_font_panel and uses_ruler to YES until initialization is done.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14511 72102866-910b-0410-8b05-ffd578937521
2002-09-22 14:35:22 +00:00
Alexander Malmberg
1cf5f94cab Update the size in the preview and size browser when the size text field changes. Set sane defaults _before_ setting the current font.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14510 72102866-910b-0410-8b05-ffd578937521
2002-09-22 14:33:41 +00:00
Alexander Malmberg
61b91e6b57 Handle becomesKeyOnlyIfNeeded in NSPanel properly.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14508 72102866-910b-0410-8b05-ffd578937521
2002-09-21 23:33:37 +00:00
Gregory John Casamento
b91e0079e4 Corrected preprocessor compilation problem w/ NSOutlineView and NSToolbar
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14507 72102866-910b-0410-8b05-ffd578937521
2002-09-21 22:57:25 +00:00
Alexander Malmberg
d1780257ae When the family changes, score all faces in the new family and select the one that differs the least from what we want.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14504 72102866-910b-0410-8b05-ffd578937521
2002-09-21 15:52:42 +00:00
Richard Frith-Macdonald
86c6559b88 Fix typo
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14488 72102866-910b-0410-8b05-ffd578937521
2002-09-19 09:06:32 +00:00
Richard Frith-Macdonald
2dfe4f6b28 Minor documentation generation update
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14486 72102866-910b-0410-8b05-ffd578937521
2002-09-19 05:55:41 +00:00
Pierre-Yves Rivaille
f9bdd044b1 * Source/NSSplitView.m ([NSSplitView -initWithCoder:]):
set _never_displayed_before to YES.
* Source/NSFont.m: rearrange the last change to make
  it look like other classes' initWithCoder/encodeWithCoder
* Source/NSTextView.m: do not call _blink directly
  (suggested by Nicola Pero).
* Source/NSButtonCell.m
  ([NSButtonCell -drawInteriorWithFrame:inView:]):
  if the button is NSImageOnly, draw the dotted frame at
  the right location.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14483 72102866-910b-0410-8b05-ffd578937521
2002-09-18 18:00:30 +00:00
Alexander Malmberg
12644d7d71 Fix encoding/decoding of matrixExplicitlySet.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14466 72102866-910b-0410-8b05-ffd578937521
2002-09-16 18:23:13 +00:00
Alexander Malmberg
352ae1bc9a Make last change C89 compatible.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14465 72102866-910b-0410-8b05-ffd578937521
2002-09-16 17:11:12 +00:00
Alexander Malmberg
98a06d10ca In -close, retain and release self to make sure it isn't deallocated too early.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14464 72102866-910b-0410-8b05-ffd578937521
2002-09-16 17:08:18 +00:00
Fred Kiefer
1ea2a1d020 Corrected memory leak in string drawing and started cleanup on NSBrowser.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14452 72102866-910b-0410-8b05-ffd578937521
2002-09-15 21:26:02 +00:00
Fred Kiefer
e4bc6d4d9d drawRun() now correctly flags that it wants some temporary memory
allocated. The old behaviour resulted in a memory leak.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14451 72102866-910b-0410-8b05-ffd578937521
2002-09-15 21:25:00 +00:00
Fred Kiefer
a928378a45 Use _lastColumnLoaded instead of _lastVisibleColumn in
[selectAll:]. Implemented MacOSX [drawTitleOfColumn:inRect:].
Optimized [matrixInColumn:] and use it where suitable.
Moved calls to [_adjustMatrixOfColumn:] inside of [_performLoadOfColumn:]


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14450 72102866-910b-0410-8b05-ffd578937521
2002-09-15 21:24:32 +00:00
Fred Kiefer
fe57b8370a Declare new MacOSX method [drawTitleOfColumn:inRect:]. Removed
unused ivar _browserCellClass. Replaced ivar _titleCell with a
static variable used for all browsers.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14449 72102866-910b-0410-8b05-ffd578937521
2002-09-15 21:23:53 +00:00
Pierre-Yves Rivaille
b24ec8eb74 * Source/NSMenuView.m:
New private method [NSMenuView -_itemCell] in newly created
  GNUstepPrivate category.
* Source/NSMenu.m:
  Add GNUstepPrivate interface of NSMenuView.
  [NSMenu -_setOwnedByPopUp:]: update itemCells' menuView
  (fix NSPopUpButtonCell-decoding problem).
* Source/NSPopUpButtonCell.m
  ([NSPopUpButtonCell -synchronizeTitleAndSelectedItem]):
  Fix "mouseUp outside of menu" problem. Now the previous
  selected item stay selected.
  ([NSPopUpButtonCell -initWithCoder:]):
  Set the selectedItem properly.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14446 72102866-910b-0410-8b05-ffd578937521
2002-09-15 14:02:17 +00:00
Alexander Malmberg
54f5952632 Don't un-flip coordinates when drawing in flipped views.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14445 72102866-910b-0410-8b05-ffd578937521
2002-09-15 11:20:32 +00:00
Alexander Malmberg
e12c857386 Make the font panel work with the recent NSBrowser changes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14439 72102866-910b-0410-8b05-ffd578937521
2002-09-14 11:38:30 +00:00
Nicola Pero
8d8c5d93ff Added include guards
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14436 72102866-910b-0410-8b05-ffd578937521
2002-09-13 07:38:25 +00:00
Pierre-Yves Rivaille
46630bd6de * Source/NSText.m ([NSText -initWithCoder:]):
Retain the decoded background color.

	* Source/NSTextView.m :
	multiple location: don't ignore textContainer's inset
	([NSTextView -initWithCoder:])
	([NSTextView -encodeWithCoder:])
	Encode caret color, textContainer's size and whether the
	textContainer has widthTracksTextView or heightTracksTextView set.
	([NSTextView -sizeToFit]) Change width (height) only if
	is_horizontally_resizable (is_vertically_resizable).
	([NSTextView -scrollRangeToVisible:]) scrolls to the first char of
	the range.
	([NSTextView -invalidateTextContainerOrigin]): Don't ignore inset,
	set the origin so that the justification is preserved even if the
	textContainer's width is larger that the textview's width.
	([NSTextView -updateInsertionPointStateAndRestartTimer:]):
	update and place the insertion point properly.
	([NSTextView -moveDown:]) & ([NSTextView -moveUp:]):
	Don't ignore inset. Make insertion point visible.

	* Source/NSTextField.m ([NSTextField -acceptsFirstResponder:]):
	responds NO if the editing is still in progrss.

	* Source/NSLayoutManager.m
	([NSLayoutManager -drawBackgroundForGlyphRange:atPoint:]):
	Don't ignore textContainer's inset.

	* Source/GSSimpleLayoutManager.m
	Replaced [-drawLinesInLineRange:] with [-drawLinesInLineRange:atPoint:].
	Replaced [-drawSelectionAsRangeNoCaret:] with
	[-drawSelectionAsRangeNoCaret:atPoint:].
	Those replacements make it easier to take inset into account.
	([-lineFragmentUsedRectForGlyphAtIndex:effectiveRange:])
	([-locationForGlyphAtIndex:])
	([-boundingRectForGlyphRange:inTextContainer:])
	([-rectForCharacterIndex:])
	([-setNeedsDisplayForLineRange:inTextContainer:]):
	Various fixes.
	([-textStorage:edited:range:changeInLength:invalidatedRange:])
	Update insertion point if needed (useful when alignment changes).
	([-rebuildForRange:delta:inTextContainer:]):
	Update layout mechanism.

	* Source/NSCell.m
	([NSCell -highlight:withFrame:inView:]):
	Ask the control to draw the background if we are not opaque.
	([NSCell -editWithFrame:inView:editor:delegate:event:]):
	([NSCell -selectWithFrame:inView:editor:delegate:start:length:]):
	([NSCell -endEditing:]):
	instantiate (and remove) the textview so that it can be scrolled.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14429 72102866-910b-0410-8b05-ffd578937521
2002-09-11 20:26:27 +00:00
Adam Fedor
f11cd9a3e5 Switch to disable gsnd.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14424 72102866-910b-0410-8b05-ffd578937521
2002-09-10 03:03:39 +00:00
Adam Fedor
01765b367c Fix up for change in NSBrowser
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14419 72102866-910b-0410-8b05-ffd578937521
2002-09-08 04:21:10 +00:00
Adam Fedor
9feb05cdf8 Add back +initialize
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14418 72102866-910b-0410-8b05-ffd578937521
2002-09-08 03:23:31 +00:00
Adam Fedor
864071096e Convert comments for gsdoc. Updated delegate calls. Conformto MacOSX
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14417 72102866-910b-0410-8b05-ffd578937521
2002-09-08 03:06:45 +00:00
Fred Kiefer
74d17f06e4 New MacOSX methods for NSAttributedString.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14416 72102866-910b-0410-8b05-ffd578937521
2002-09-06 23:41:18 +00:00
Fred Kiefer
b5c268588a Corrected includes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14415 72102866-910b-0410-8b05-ffd578937521
2002-09-06 23:39:52 +00:00
Fred Kiefer
fa182b53a4 Implemented [textFileTypes], [textPasteboardTypes],
[textUnfilteredFileTypes], [textUnfilteredPasteboardTypes].


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14414 72102866-910b-0410-8b05-ffd578937521
2002-09-06 23:38:57 +00:00
Fred Kiefer
497a0d707f Define new MacOSX methods.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14413 72102866-910b-0410-8b05-ffd578937521
2002-09-06 23:38:11 +00:00
Fred Kiefer
187c44c4aa Moved NSAttributedString text attachment method declarations to here.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14412 72102866-910b-0410-8b05-ffd578937521
2002-09-06 23:37:50 +00:00
Fred Kiefer
04a03d6a6a Define protocol for method [classForFormat:producer:].
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14411 72102866-910b-0410-8b05-ffd578937521
2002-09-06 23:37:12 +00:00
Fred Kiefer
3ab8125bb6 Define NSHTMLPboardType.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14410 72102866-910b-0410-8b05-ffd578937521
2002-09-06 23:36:28 +00:00
Fred Kiefer
24c9cc59c0 Release the invocation in [detachDrawingThread:toTarget:withObject:]
not in the helper method. (Patch by David Ayers <d.ayers@inode.at>).


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14409 72102866-910b-0410-8b05-ffd578937521
2002-09-06 23:35:29 +00:00
Adam Fedor
6539cba2c9 Printing, cString fixes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14407 72102866-910b-0410-8b05-ffd578937521
2002-09-06 19:31:00 +00:00
Fred Kiefer
98e6a191af adopted NSApplication for MacOSX.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14406 72102866-910b-0410-8b05-ffd578937521
2002-09-06 00:35:57 +00:00
Fred Kiefer
08a0b57a5e Removed methods that belong to other files. Added types and method
definitions for MacOSX.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14405 72102866-910b-0410-8b05-ffd578937521
2002-09-06 00:34:58 +00:00
Fred Kiefer
4f17c96dc2 Moved the method [NSApplication runPageLayout:] to here.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14404 72102866-910b-0410-8b05-ffd578937521
2002-09-06 00:34:26 +00:00