forward/backward a word, and to select the current line
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11774 72102866-910b-0410-8b05-ffd578937521
[validateEditing] changed to conform to previous change
(quick_sort_internal()) : fixed typo
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11651 72102866-910b-0410-8b05-ffd578937521
NSTableColumn* to id. It prevents warning when subclassing and is
consistent with the docs.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11649 72102866-910b-0410-8b05-ffd578937521
in response to change in ours; mark us as needing redisplay in such events
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11632 72102866-910b-0410-8b05-ffd578937521
@GNUSTEP_INSTALL_LIBDIR only for non-GNUstep foundation library.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11600 72102866-910b-0410-8b05-ffd578937521
into an infinite loop if no style was set at the beginning of paragraph
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11596 72102866-910b-0410-8b05-ffd578937521
[_connectApplication:], use this in [openFile:...] and
[launchApplication:...]. Implemented [openTempFile:].
New method [_workspaceApplication] used to implement
[performFileOperation:...] and [selectFile:inFileViewerRootedAtPath:].
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11591 72102866-910b-0410-8b05-ffd578937521
longer show alert panels, as this should be done by the caller.
[launchApplication:XXX] now checks if the application is already running.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11547 72102866-910b-0410-8b05-ffd578937521
update ruler. Dummy implementation for new spell checking
methods. Implementation of new drag methods, use these in the
dragging protocol methods. Moved the NSTextInput methods into the
main category. Implemented some of them.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11506 72102866-910b-0410-8b05-ffd578937521
[_includeFont:] is only called from here. Corrected
[availableMembersOfFontFamily:] and [fontNamed:hasTraits:].
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11376 72102866-910b-0410-8b05-ffd578937521
[addTabViewItem:]. Corrected [selectNextTabViewItem:] and
[selectPreviousTabViewItem:]. In [selectTabViewItem:] set the
first responder of the tab view. Other small cleanup.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11308 72102866-910b-0410-8b05-ffd578937521
methods. Changed incudes. In [mouseDown:] also check for new delegate
methods. [_adjustSubviews:] now takes the old size as an argument
to hand it on to delegate. Changed all places that call
this. En-/decode the image instead of the cursor.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11306 72102866-910b-0410-8b05-ffd578937521
NSSpellChecker. [updateSpellingPanelWithMisspelledWord:] is now
called from here.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11301 72102866-910b-0410-8b05-ffd578937521
[browser:createRowsForColumn:inMatrix:]. Don't create the server
in [init], but check it before each use. Check if ther server
proxy exists before all method calls that return a NSRange.
In [checkSpellingOfString:...wordCount:] don't call
[updateSpellingPanelWithMisspelledWord:]. Beep in this method,
when the string is empty. [_findNext:], [_ignore:] and [_correct:]
now use [[NSApp sendAction:to:from:] instead of explicit responder.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11300 72102866-910b-0410-8b05-ffd578937521
Support for NSTableView superviewFrameChanged method
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11277 72102866-910b-0410-8b05-ffd578937521
autoresizesAllColumnsToFit implementation
sizeToFit now behaves like OS4.2
Various changes for speed improvements (drawRect, updateCell)
New internal method (superviewFrameChanged:) called by NSClipView
(conforms to OS4.2)
initWithCoder: support for previously archived NSTableView
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11275 72102866-910b-0410-8b05-ffd578937521
This behaviour is more consistent with other OPENSTEP implementations.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11231 72102866-910b-0410-8b05-ffd578937521
the scrollerWidth in a class var, use this in all methods.
Use _sizeForBorderType() from NSCell to determine the border size
in all methods that handle borderType. Replaced all uses of
AUTORELEASE with explicit RELEASE calls. In [setContentView:]
don't RETAIN the content view, as this is handled by the normal
subview mechanism. (Don't RELEASE it in [dealloc] and
[removeSubview:]) Added dummy method [scrollWheel:].
Implemented the ruler methods, but this are still not handled in
[tile] and [drawRect:].
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11210 72102866-910b-0410-8b05-ffd578937521
Do not send NSTableViewSelectionDidChangeNotification when selection
is not changed (was not always working with flag=NO)
([selectRow:byExtendingSelection]): Likewise
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11163 72102866-910b-0410-8b05-ffd578937521
the item, so it will use the action from the popup button.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11110 72102866-910b-0410-8b05-ffd578937521
also the action of the popup itself, if there is non for the item.
In [performActionForItemAtIndex:] if we are owned by a popup
button, send this action, if the menu item does not have an action.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11107 72102866-910b-0410-8b05-ffd578937521
[screens] in method [mainScreen]. Cache screens in mehtod
[screens]. Use the context from NSApp instead of the current
context in all calls. In [deepestScreen] replace NSScreen by self.
Added method [resetScreens].
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11104 72102866-910b-0410-8b05-ffd578937521
initXXX code. Moved the GModel methods into a separate category,
removing [createObjectForModelUnarchiver:] as this was (incorrectly)
duplication code from the super class.
Implemented NSBeginAlertSheet(), NSBeginCriticalAlertSheet() and
NSBeginInformationalAlertSheet().
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11000 72102866-910b-0410-8b05-ffd578937521
notification has been send. [initWithCoder:] send change
notifications as one block.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10964 72102866-910b-0410-8b05-ffd578937521
Use lineFragmentRect instead of usedRect, so that the full line
gets cleared. This still is not correct for all cases.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10955 72102866-910b-0410-8b05-ffd578937521
before adding it to an item. This resolves drag problem for
"format" menu in Gorm.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10939 72102866-910b-0410-8b05-ffd578937521
[runModalForDirectory:file:types:]. Implemented
[runModalForDirectory:...relativeToWindow:] and [beginSheetForDirectory:...].
Declare all needed private methods from NSSavePanel.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10924 72102866-910b-0410-8b05-ffd578937521
[applyFontTraits:range:] use [NSFontManager
convertFont:toHaveTrait:] instead of explicit font creation.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10923 72102866-910b-0410-8b05-ffd578937521
[unhideAllApplications:]. Simple implementation for
[runModalForWindow:relativeToWindow:], [endSheet:] and [beginSheet:...].
Removed various uneeded [update] and [sizeToFit] calls for menu operations.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10922 72102866-910b-0410-8b05-ffd578937521
[insertItemWithTitle:atIndex:] to set the NSMenuItemCell to belong
to a popup. Simplified [attachPopUpWithFrame:inView:] and [selectItem:]
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10915 72102866-910b-0410-8b05-ffd578937521
expects the screenRect to be the frame of the cell to attach to.
Removed [_setCellSize:].
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10914 72102866-910b-0410-8b05-ffd578937521
[menuBarHeight] use code from title_height(). Added dummy
[initAsTearOff]. Added a lot of code to support horizontal menus,
still unfinished. [setHighlightedItemIndex:] don't display items
only mark them as needing display. [locationForSubmenu:] moved
code from NSMenu to here. [mouseDown:] simplified code.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10870 72102866-910b-0410-8b05-ffd578937521
[NSMenuView menuBarHeight]. [setSubmenu:forItem:] moved code
to [NSMenuItem setSubmenu]. [update] use _changedMessagesEnabled
to prevent recursion. [sizeToFit] call [setNeedsDisplay:] instead
of [display]. [locationForSubmenu:] moved code to [NSMenuView
locationForSubmenu:].
Added [NSMenuWindowTitleView rightMouseDown:], so the main menu
is not shown in a menu.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10868 72102866-910b-0410-8b05-ffd578937521
Removed this ivar and mcell_has_submenu from the coding methods.
Removed method [highlight:withFrame:inView:]. in
[drawBorderAndBackgroundWithFrame:inView:] moved duplicated out of
if clause. in [calcSize] use cached arrow image for submenu sizing and
changed image size code. Change all composite operators from
NSCompositeCopy to NSCompositeSourceOver. Use the cached colour if
it is computed otherwise ignore it. In [drawWithFrame:inView:] allways call
[drawBorderAndBackgroundWithFrame:inView:] and check for border there.
Moved lockfocus calls down one level. In [drawInteriorWithFrame:inView:]
removed some of the checks already done in [drawWithFrame:inView:].
Replaced all the highlight/state logic with the one used in
NSButtonCell.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10828 72102866-910b-0410-8b05-ffd578937521
[mouseDown:] when we create the location directory, autorelease it.
In [_locationKey] and [display] remove unneeded checks for popup.
In [copyWithZone:] set the autoenable property before adding items.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10802 72102866-910b-0410-8b05-ffd578937521
separator. Exchanged role of the methods [init] and
[initWithTitle:...]. Simplified [setTitle:] and
[setKeyEquivalent:]. Implemented [userKeyEquivalentModifierMask]
and [setTitleWithMnemonic]. Reimplemented [copyWithZone:] to use
NSCopyObject().
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10786 72102866-910b-0410-8b05-ffd578937521
that it is consistent with the key used by a window to store the frame
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10771 72102866-910b-0410-8b05-ffd578937521
New method [_createWindow] to create this.
Removed unused ivars of NSMenuWindowTitleView and renamed the
methods. Corrected the create/retain logic of the button handling
methods, the old code kept on creating buttons which where never released.
[NSMenu _setTornOff:] now calls addCloseButton or releaseCloseButton.
Replaced [NSMenuWindowTitleView titleHeight] with inline function
title_height().
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10769 72102866-910b-0410-8b05-ffd578937521
Moved menu display code in [rightMouseDown:] to NSApplication.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10766 72102866-910b-0410-8b05-ffd578937521
[-updateCell:]: only redraws the what's needed
[-setFrame:]: added a call to [self sizeToFit]
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10749 72102866-910b-0410-8b05-ffd578937521
same size (this is what specification says). If it is not the case, weird
behaviour can happen ...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10739 72102866-910b-0410-8b05-ffd578937521
previously unloaded column with a passive delegate
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10732 72102866-910b-0410-8b05-ffd578937521
replaced reference to NSMenuWindow with NSWindow.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10729 72102866-910b-0410-8b05-ffd578937521
changes in header. Perliminary implementation for RTFDConsumer.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10724 72102866-910b-0410-8b05-ffd578937521
changes in header. Implementation for RTFProducer.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10722 72102866-910b-0410-8b05-ffd578937521
RTFProducer. Both implement the protocol GSTextProducer.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10721 72102866-910b-0410-8b05-ffd578937521
the class for a given text converter format. Use this function in
the RTF methods and use new protocol there.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10720 72102866-910b-0410-8b05-ffd578937521
ImageComposition. In [copyWithZone:] copy the colour space, it
might be mutable.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10708 72102866-910b-0410-8b05-ffd578937521
[NSOpenPanel -runModalForDirectory:file:types:]
Moved functionality from NSOpenPanel to NSSavePanel:
the "ok" button is shown as enabled or not at the beginning depending
on whether the given file is valid.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10702 72102866-910b-0410-8b05-ffd578937521
target (this enables key control of an NSPopUpButton configured as an
pull-down list)
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10700 72102866-910b-0410-8b05-ffd578937521
point to the arc start point - unless this is the first element of the path
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10693 72102866-910b-0410-8b05-ffd578937521
[copyWithZone:], which where only super calls.
In [drawWithFrame:inView:] lockFocus only around drawing
code and check for invalid window.
In [drawInteriorWithFrame:inView:] lockFocus only around drawing
code, check for invalid window, use NSCompositeSourceOver instead
of NSCompositeCopy and show first responder state.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10687 72102866-910b-0410-8b05-ffd578937521
[dissolveToPoint:fromRect:fraction:] Move the drawing rectangle
to the origin of the image rep before the intersection of the two
rects.
[TIFFRepresentationUsingCompression:factor:] and
[TIFFRepresentation] call method on NSBitmapImageRep.
List explicit flag settings in [init].
Moved background drawing to [drawRepresentation:inRect:].
Restructured [_doImageCache] and [_cacheForRep:].
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10679 72102866-910b-0410-8b05-ffd578937521
implemented in NSHelpManager.m. Use [showHelp:] in old method [].
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10656 72102866-910b-0410-8b05-ffd578937521
[titleWidth] use [cellSize] to compute the width.
In [drawWithFrame:inView:] lock focus only if there is something
to draw.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10653 72102866-910b-0410-8b05-ffd578937521