Commit graph

1937 commits

Author SHA1 Message Date
Adam Fedor
d47e202fbe Markup for autogsdoc
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11788 72102866-910b-0410-8b05-ffd578937521
2001-12-17 16:51:51 +00:00
Pierre-Yves Rivaille
a83fb608b9 drawInteriorWithFrame: inView: removed the code that drew the background
(osx doesn't draw background)


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11780 72102866-910b-0410-8b05-ffd578937521
2001-12-16 23:35:06 +00:00
Pierre-Yves Rivaille
13ed0a690a [NSProgressIndicator +initialize]: retain the fillColour
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11779 72102866-910b-0410-8b05-ffd578937521
2001-12-16 23:31:17 +00:00
Nicola Pero
832cd40f79 Implemented methods to move to the end/beginning of document/line, to move
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
2001-12-16 02:14:01 +00:00
Nicola Pero
0b806e1512 Indentation tidyup
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11768 72102866-910b-0410-8b05-ffd578937521
2001-12-15 10:30:53 +00:00
Adam Fedor
21a1c20196 New methods
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11735 72102866-910b-0410-8b05-ffd578937521
2001-12-13 04:13:42 +00:00
Adam Fedor
6923231b25 Improve NSDragging protocol handling
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11699 72102866-910b-0410-8b05-ffd578937521
2001-12-11 04:31:08 +00:00
Nicola Pero
18e2344353 Use NSDebugMLLog, not NSWarn, when warning that -setStringValue: was
called with nil argument


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11693 72102866-910b-0410-8b05-ffd578937521
2001-12-11 02:23:59 +00:00
Fred Kiefer
454645a625 [NSIconWindow _initDefaults] set the title of the icon window, so
the window manager can display it.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11666 72102866-910b-0410-8b05-ffd578937521
2001-12-09 16:05:27 +00:00
Fred Kiefer
a0223a8cd3 [_workspaceApplication] renamed defaults key for Workspace
application to GSWorkspaceApplication.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11655 72102866-910b-0410-8b05-ffd578937521
2001-12-07 23:02:55 +00:00
Adam Fedor
36be3e7686 Draw image background even when clear
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11654 72102866-910b-0410-8b05-ffd578937521
2001-12-07 22:52:42 +00:00
Pierre-Yves Rivaille
4a5f98e0e7 Source/NSTableView.m: [setDelegate:], [setDataSource:] and
[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
2001-12-07 17:05:57 +00:00
Pierre-Yves Rivaille
c82a721e48 Source/NSTableColumn.m: changed the initWithIdentifier return type from
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
2001-12-07 14:40:01 +00:00
Adam Fedor
3feebf562f Fix debug log
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11636 72102866-910b-0410-8b05-ffd578937521
2001-12-05 15:44:29 +00:00
Nicola Pero
64396acc55 Commented out debugging log which wouldn't compile because of typo
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11634 72102866-910b-0410-8b05-ffd578937521
2001-12-05 13:08:39 +00:00
Nicola Pero
5df2192c99 Update the enclosing scrollview background color and drawsBackground flag
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
2001-12-05 13:02:51 +00:00
Nicola Pero
b588777480 Automatically mark the NSClipView as needing redisplay when the background
color - or the drawsBackground flag - changes


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11631 72102866-910b-0410-8b05-ffd578937521
2001-12-05 13:01:43 +00:00
Adam Fedor
b4481e1c16 Cursor changes, etc
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11618 72102866-910b-0410-8b05-ffd578937521
2001-12-03 21:17:12 +00:00
Laurent Julliard
6c04b107d2 encoding/decoding methods
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11617 72102866-910b-0410-8b05-ffd578937521
2001-12-03 21:14:19 +00:00
Gregory John Casamento
43ae836014 Changed superviewFrameChanged to prevent crash when the number of columns
in an NSTableView is reduced to zero.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11603 72102866-910b-0410-8b05-ffd578937521
2001-12-03 01:51:45 +00:00
Fred Kiefer
e8ce0d207e [initPrintInfoDefaults] use hardcoded @GNUSTEP_INSTALL_LIBDIR only
for non-GNUstep foundation library.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11601 72102866-910b-0410-8b05-ffd578937521
2001-12-02 11:45:24 +00:00
Fred Kiefer
1a89415bdc [initialize] and [imageNamed:] use hardcoded
@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
2001-12-02 11:45:01 +00:00
Fred Kiefer
5659406b7b [_pbs] use hardcoded @GNUSTEP_INSTALL_PREFIX only for
non-GNUstep foundation library.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11599 72102866-910b-0410-8b05-ffd578937521
2001-12-02 11:44:34 +00:00
Fred Kiefer
dfa743ae22 [findApplications] use hardcoded @GNUSTEP_INSTALL_PREFIX only for
non-GNUstep foundation library.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11598 72102866-910b-0410-8b05-ffd578937521
2001-12-02 11:44:07 +00:00
Nicola Pero
8abb202934 Fixed problem when fixing up paragraph style attributes ... would get
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
2001-12-02 11:12:52 +00:00
Fred Kiefer
5e5c0b1156 [finishLaunching] and [terminate:] send workspace notification
with the shared workspace as object.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11592 72102866-910b-0410-8b05-ffd578937521
2001-12-01 21:15:27 +00:00
Fred Kiefer
4229cb0b79 Moved all private methods into seperate category. New method
[_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
2001-12-01 21:14:51 +00:00
Nicola Pero
eadda82a38 Use a warning, do not throw an exception, when setStringValue: is called
with nil argument


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11572 72102866-910b-0410-8b05-ffd578937521
2001-11-30 13:18:01 +00:00
Adam Fedor
f90488b0e2 Summary of user defaults
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11568 72102866-910b-0410-8b05-ffd578937521
2001-11-28 19:20:10 +00:00
Adam Fedor
b89ba69ae8 View coding fixes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11553 72102866-910b-0410-8b05-ffd578937521
2001-11-27 21:40:05 +00:00
Fred Kiefer
1dae607d5b A lot of cleanup. Implemented the new methods. [openFile:XXX] no
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
2001-11-26 20:29:42 +00:00
Fred Kiefer
afed87226a Extracted new method [pathForNibResource:] for NSWindowController.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11545 72102866-910b-0410-8b05-ffd578937521
2001-11-26 20:28:34 +00:00
Fred Kiefer
265a9e656e Adopted to name changes of NSWindowController methods.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11543 72102866-910b-0410-8b05-ffd578937521
2001-11-26 20:27:47 +00:00
Fred Kiefer
11a71ac8c3 Implemented new methods and renamed some old which are now public.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11542 72102866-910b-0410-8b05-ffd578937521
2001-11-26 20:27:21 +00:00
Fred Kiefer
532a993b87 Implemented new methods.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11539 72102866-910b-0410-8b05-ffd578937521
2001-11-26 20:25:50 +00:00
Fred Kiefer
c45289573b Implemented those new methods. Call new methods from the subview
handling methods.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11511 72102866-910b-0410-8b05-ffd578937521
2001-11-24 15:52:32 +00:00
Fred Kiefer
a10f888c84 Implemented extension methods for NSURL.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11509 72102866-910b-0410-8b05-ffd578937521
2001-11-24 15:51:39 +00:00
Fred Kiefer
c05f0c3e6d Implemented [rulerMarkersForTextView:...ruler:].
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11507 72102866-910b-0410-8b05-ffd578937521
2001-11-24 15:50:54 +00:00
Fred Kiefer
0944e78ce7 Corrected memory management in rulerview methods. Implemented
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
2001-11-24 15:50:07 +00:00
Fred Kiefer
746cc159e4 Added code to rulerview delegate methods.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11491 72102866-910b-0410-8b05-ffd578937521
2001-11-23 00:28:43 +00:00
Fred Kiefer
7eaab61165 Added notifications from NSTextStorage
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11490 72102866-910b-0410-8b05-ffd578937521
2001-11-23 00:28:15 +00:00
Fred Kiefer
35ab35ded0 Added some new methods that allow for lazy fixing of attributes in
subclasses.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11489 72102866-910b-0410-8b05-ffd578937521
2001-11-23 00:27:53 +00:00
Fred Kiefer
618ba42c09 Added and implemented some methods for the handling of richt text.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11488 72102866-910b-0410-8b05-ffd578937521
2001-11-23 00:27:27 +00:00
Fred Kiefer
3b725d32e0 Added some additional MacOSX methods.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11487 72102866-910b-0410-8b05-ffd578937521
2001-11-23 00:27:04 +00:00
Laurent Julliard
03bfda7aa2 colCount and _firstVisible Column must always be decoded
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11447 72102866-910b-0410-8b05-ffd578937521
2001-11-21 13:28:28 +00:00
Laurent Julliard
2d05b22a9f max number of items tested on wrong variable. Corrected
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11434 72102866-910b-0410-8b05-ffd578937521
2001-11-20 15:53:49 +00:00
Adam Fedor
db7b620c03 Cache used fonts in context
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11430 72102866-910b-0410-8b05-ffd578937521
2001-11-20 05:00:20 +00:00
Laurent Julliard
e5f5cda54a NSBrowser encoder and decoder added
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11418 72102866-910b-0410-8b05-ffd578937521
2001-11-15 15:53:31 +00:00
Fred Kiefer
1a87e8ad94 Added missing include.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11378 72102866-910b-0410-8b05-ffd578937521
2001-11-12 16:44:04 +00:00
Fred Kiefer
f2816c29d7 Changed GSFontEnumerator so that only [enumerateFontsAndFamilies]
must be subclassed.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11377 72102866-910b-0410-8b05-ffd578937521
2001-11-12 16:43:20 +00:00
Fred Kiefer
bb47d9c045 Reorganised the handling of the font enumerator. New
[_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
2001-11-12 16:42:54 +00:00
Fred Kiefer
5090fe3a37 In [selectTabViewItem:] corrected setting the first responder of
the tab view.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11361 72102866-910b-0410-8b05-ffd578937521
2001-11-11 17:42:12 +00:00
Adam Fedor
810fc6f2c7 Raise exceptions
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11357 72102866-910b-0410-8b05-ffd578937521
2001-11-10 03:53:33 +00:00
Nicola Pero
b71c370c78 Replaced inefficient call to [matrix sizeToFit] with much more efficient
determination of the browsercell height


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11348 72102866-910b-0410-8b05-ffd578937521
2001-11-08 22:49:56 +00:00
Nicola Pero
912536c1de Fixed sizeToFit
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11347 72102866-910b-0410-8b05-ffd578937521
2001-11-08 22:48:58 +00:00
Adam Fedor
04a3436aff Simple printint implementation
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11341 72102866-910b-0410-8b05-ffd578937521
2001-11-08 18:26:39 +00:00
Laurent Julliard
81915f4a3c NSDrawFramePhoto added
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11340 72102866-910b-0410-8b05-ffd578937521
2001-11-08 13:34:23 +00:00
Pierre-Yves Rivaille
a342cf5aae [NSTableView -sizeToFit]: replace floorf with floor
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11314 72102866-910b-0410-8b05-ffd578937521
2001-11-05 23:14:44 +00:00
Nicola Pero
a8e28ba039 Minor indentation tidyups
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11313 72102866-910b-0410-8b05-ffd578937521
2001-11-05 11:47:29 +00:00
Nicola Pero
420c1a2dfb Little indentation tidyupy
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11312 72102866-910b-0410-8b05-ffd578937521
2001-11-05 11:46:24 +00:00
Fred Kiefer
df9ae0c299 Adopted to changes in header. Use [insertTabViewItem:atIndex:] in
[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
2001-11-04 00:10:46 +00:00
Fred Kiefer
3f3d0d7d79 Adopted to changes in header. Dummy implementation of new
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
2001-11-04 00:02:24 +00:00
Fred Kiefer
e9bc924221 In [performActionForItemAtIndex:] select the item of the popup
before sending the action.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11305 72102866-910b-0410-8b05-ffd578937521
2001-11-04 00:01:53 +00:00
Fred Kiefer
cc9acbc54a Adopted implemtantion of [checkSpelling:] to changes in
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
2001-11-03 09:56:02 +00:00
Fred Kiefer
4a1e318a22 Implement [guessesForWord:] and use it in
[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
2001-11-03 09:55:32 +00:00
Adam Fedor
6144cd5471 Set dir only if nil
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11297 72102866-910b-0410-8b05-ffd578937521
2001-11-02 23:21:13 +00:00
Fred Kiefer
6f2e0bf7a7 Added include for NSScrollView to avoid compiler warning.
[_blink] don't call [NSApp updateWindows], just redisplay our
window.
[mouseDown:] replaces all [_window flushWindow] with [self
displayIfNeeded].


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11292 72102866-910b-0410-8b05-ffd578937521
2001-11-02 13:07:09 +00:00
Fred Kiefer
4796b2e906 Added methods to handle ticks with a dummy implementation.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11291 72102866-910b-0410-8b05-ffd578937521
2001-11-02 13:06:20 +00:00
Nicola Pero
b9e1b6d6ed Implemented blinking insertion point
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11287 72102866-910b-0410-8b05-ffd578937521
2001-10-31 01:09:07 +00:00
Pierre-Yves Rivaille
6bd75c41bc -dealloc and -setDocumentView:
Support for NSTableView superviewFrameChanged method


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11277 72102866-910b-0410-8b05-ffd578937521
2001-10-29 12:30:35 +00:00
Pierre-Yves Rivaille
62f5b9a819 sizeLastColumnToFit, sizeToFit, setAutoresizesAllColumnToFit,
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
2001-10-29 11:10:16 +00:00
Pierre-Yves Rivaille
c035933889 Major rewrites of both classes so that they behave like they should
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11269 72102866-910b-0410-8b05-ffd578937521
2001-10-28 20:00:13 +00:00
Richard Frith-Macdonald
5011e9feee Tiny format tidyups
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11265 72102866-910b-0410-8b05-ffd578937521
2001-10-28 10:18:50 +00:00
Gregory John Casamento
ef8619cb63 Adding implementation for NSSelection and skeletal implementation for NSOutlineView. GJC
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11248 72102866-910b-0410-8b05-ffd578937521
2001-10-25 21:41:03 +00:00
Nicola Pero
74ce36e003 Updated for change in NSCell API to prevent crashes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11233 72102866-910b-0410-8b05-ffd578937521
2001-10-24 10:05:56 +00:00
Pierre-Yves Rivaille
410c6189e6 [NSButtonCell _init]: assign @"" to _keyEquivalent and to _altContents
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
2001-10-23 22:42:55 +00:00
Nicola Pero
e9f5fe627b Check if an attachment was clicked every time we have attachments, not
only if we import graphics


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11227 72102866-910b-0410-8b05-ffd578937521
2001-10-23 20:58:11 +00:00
Nicola Pero
ae31bc8fce Updated calls to setStringValue: to use @"" rather than nil
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11224 72102866-910b-0410-8b05-ffd578937521
2001-10-23 14:12:41 +00:00
Nicola Pero
b469c9f9b6 Added comment
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11218 72102866-910b-0410-8b05-ffd578937521
2001-10-23 09:39:03 +00:00
Nicola Pero
f7e4554107 Use an assertion to force setStringValue: to reject nil as argument
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11217 72102866-910b-0410-8b05-ffd578937521
2001-10-23 09:37:59 +00:00
Nicola Pero
244738ba03 Fixed deallocation when views are deallocated after the window
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11215 72102866-910b-0410-8b05-ffd578937521
2001-10-22 17:50:07 +00:00
Fred Kiefer
8409642d2f Dummy implementation for new MacOSX methods.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11211 72102866-910b-0410-8b05-ffd578937521
2001-10-21 23:30:26 +00:00
Fred Kiefer
2fdcec8859 Implemented [setRulerViewClass:] and preset to NSRulerView. Cache
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
2001-10-21 23:29:29 +00:00
Nicola Pero
424c51335e Indentation tidyups
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11205 72102866-910b-0410-8b05-ffd578937521
2001-10-18 15:33:23 +00:00
Nicola Pero
967a2f2177 Fixed bug in deallocation process where we were not removign us from
observing the document view notificatiosn


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11203 72102866-910b-0410-8b05-ffd578937521
2001-10-18 15:28:05 +00:00
Nicola Pero
6864a9769f Fixed bug in deallocation process where we were not removing us from
observing the text view's notifications


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11202 72102866-910b-0410-8b05-ffd578937521
2001-10-18 15:26:59 +00:00
Adam Fedor
a9d48edd44 Set size to zero if image does not exist
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11200 72102866-910b-0410-8b05-ffd578937521
2001-10-18 02:21:33 +00:00
Nicola Pero
52fe2e528e Fixed crash on deallocating the NSTabView
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11176 72102866-910b-0410-8b05-ffd578937521
2001-10-17 21:24:11 +00:00
Nicola Pero
449ae8ff09 Do not retain/release the data source; it's like a delegate
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11171 72102866-910b-0410-8b05-ffd578937521
2001-10-17 17:25:25 +00:00
Adam Fedor
9ba621a145 Static linking file
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11168 72102866-910b-0410-8b05-ffd578937521
2001-10-17 03:55:18 +00:00
Adam Fedor
d15a55ee08 Fix static linking
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11167 72102866-910b-0410-8b05-ffd578937521
2001-10-17 03:53:55 +00:00
Pierre-Yves Rivaille
2ad9cdfca2 ([selectColumn:byExtendingSelection]):
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
2001-10-16 21:01:28 +00:00
Adam Fedor
168db2ce11 Make shared instance var static
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11159 72102866-910b-0410-8b05-ffd578937521
2001-10-16 03:20:01 +00:00
Adam Fedor
ce2dfc8d5f Fix scaling factor
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11158 72102866-910b-0410-8b05-ffd578937521
2001-10-16 03:06:26 +00:00
Adam Fedor
4ed9a1a4d7 Fix option panem handling
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11157 72102866-910b-0410-8b05-ffd578937521
2001-10-16 03:03:30 +00:00
Adam Fedor
9b37962d29 FIx comments
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11156 72102866-910b-0410-8b05-ffd578937521
2001-10-16 02:11:30 +00:00
Adam Fedor
22741391dc Rewrite NSPrintPanel and NSPageLayout, prepare for printing improvements
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11155 72102866-910b-0410-8b05-ffd578937521
2001-10-16 02:09:09 +00:00
Fred Kiefer
8e82e5c3b9 Added methods [setAction:] and [setTarget:], which call the super
implementation and also update the menu.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11142 72102866-910b-0410-8b05-ffd578937521
2001-10-14 21:36:12 +00:00
Nicola Pero
79904c9ae1 Fixed memory leak of target object; tiny useless optm in method
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11124 72102866-910b-0410-8b05-ffd578937521
2001-10-11 10:15:52 +00:00
Adam Fedor
734669301f Fix saving print file to path.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11122 72102866-910b-0410-8b05-ffd578937521
2001-10-09 04:22:13 +00:00
Nicola Pero
49f6931245 Fixes for case _document == nil
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11114 72102866-910b-0410-8b05-ffd578937521
2001-10-08 10:49:29 +00:00
Nicola Pero
53ad3452ff Indentation tidy up
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11113 72102866-910b-0410-8b05-ffd578937521
2001-10-08 10:26:44 +00:00
Fred Kiefer
8f884a5434 [insertItemWithTitle:atIndex:] don't set the action and target for
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
2001-10-08 08:19:50 +00:00
Fred Kiefer
92a36a93b8 Changed all calls to [NSMenu _setOwnedByPopUp:] and added missing
one in [setMenu:].


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11108 72102866-910b-0410-8b05-ffd578937521
2001-10-07 23:44:24 +00:00
Fred Kiefer
a3febc44f3 Adopted to changes in header. In [update] check for popup buttons
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
2001-10-07 23:43:43 +00:00
Fred Kiefer
8e59dbb8ca Removed function _screenNumbers. Moved class method to front. Use
[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
2001-10-07 22:47:00 +00:00
Adam Fedor
9e7640459b Implement print panel
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11100 72102866-910b-0410-8b05-ffd578937521
2001-10-07 04:22:41 +00:00
Fred Kiefer
4854b4cad2 Protected all initXXX methods so that for empty input nil will be
returned.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11098 72102866-910b-0410-8b05-ffd578937521
2001-10-06 22:30:54 +00:00
Fred Kiefer
a4a08c2811 Compile NSRulerMarker and NSRulerView.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11097 72102866-910b-0410-8b05-ffd578937521
2001-10-06 22:30:20 +00:00
Fred Kiefer
ae558ee576 Some basic implementation of these class.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11096 72102866-910b-0410-8b05-ffd578937521
2001-10-06 22:29:57 +00:00
Fred Kiefer
263b6bf5a6 Adopted to changes in header and added some code for displaying
indeterminate progress.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11094 72102866-910b-0410-8b05-ffd578937521
2001-10-06 22:26:28 +00:00
Nicola Pero
cd967093fd Raise an exception in init methods when called with nil nib file name
or nil owner


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11087 72102866-910b-0410-8b05-ffd578937521
2001-10-06 13:27:46 +00:00
Adam Fedor
1b792f83c7 New GSCustomView class
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11077 72102866-910b-0410-8b05-ffd578937521
2001-10-03 17:05:57 +00:00
Adam Fedor
c7ac9f7827 setFrame: to new constrained rect
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11075 72102866-910b-0410-8b05-ffd578937521
2001-10-02 17:38:21 +00:00
Fred Kiefer
a47397006b Removed all ivars and cleaned up the rest.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11034 72102866-910b-0410-8b05-ffd578937521
2001-09-28 23:37:37 +00:00
Nicola Pero
74c17b5c36 Indentation tidyups - added { } in if, else, switch etc clauses
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11023 72102866-910b-0410-8b05-ffd578937521
2001-09-26 22:51:51 +00:00
Nicola Pero
fcbf4d11a9 Fix for saving the filename when writing to file
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11009 72102866-910b-0410-8b05-ffd578937521
2001-09-26 21:58:51 +00:00
Adam Fedor
9ad5bc7fd1 Set up print context and view coords for priting
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11006 72102866-910b-0410-8b05-ffd578937521
2001-09-26 03:47:20 +00:00
Fred Kiefer
bce2688968 Implemented coding for NSPanel. For GSAlertPanel reoranised the
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
2001-09-24 23:30:36 +00:00
Fred Kiefer
33c4ae65df [insertItem:atIndex:] set the menu of the item after the insert
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
2001-09-23 22:38:48 +00:00
Fred Kiefer
632ec4278e [GSSimpleLayoutManager boundingRectForGlyphRange:inTextContainer:]:
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
2001-09-23 22:09:48 +00:00
Fred Kiefer
2f8b4e7389 Small layout improvements.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10954 72102866-910b-0410-8b05-ffd578937521
2001-09-23 22:08:49 +00:00
Fred Kiefer
a80eaa7602 [initWithCoder:] make sure the supermenu of a submenu is nil
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
2001-09-19 22:38:09 +00:00
Fred Kiefer
9977f8f7cf Implemented [URL]. New methods [_setupForDirectory:file:] and
[_shouldShowExtension:isDir:]. Removed check for extension filter
in [init]. Simplified [runModalForDirectory:file:]. Implemented
[runModalForDirectory:...relativeToWindow:] and
[beginSheetForDirectory:...]. In [browser:createRowsForColumn:inMatrix:]
allways call [_shouldShowExtension:isDir:].


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10925 72102866-910b-0410-8b05-ffd578937521
2001-09-17 12:13:38 +00:00
Fred Kiefer
37ebea42c2 Implemented [URLs]. New method [_setupForDirectory:file:]. Simplified
[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
2001-09-17 12:10:10 +00:00
Fred Kiefer
6b2f41f67e Implemented [readFromURL:options:documentAttributes:]. In
[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
2001-09-17 12:09:40 +00:00
Fred Kiefer
8dee14989f Dummy implementation for [hideOtherApplications:] and
[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
2001-09-17 12:09:03 +00:00
Adam Fedor
91e18c2ded acrchiving fixes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10918 72102866-910b-0410-8b05-ffd578937521
2001-09-16 19:44:11 +00:00
Fred Kiefer
672e30e17f Removed additional method on NSMenuItemCell. Removed code in
[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
2001-09-16 18:21:05 +00:00
Fred Kiefer
0bc90907f5 Added [dealloc]. [setWindowFrameForAttachingToRect:...] now
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
2001-09-16 18:20:31 +00:00
Fred Kiefer
b741a26379 Added [dealloc]. In [setMenuView:], if the menu belongs to a popup
set the ivar _mcell_belongs_to_popupbutton.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10913 72102866-910b-0410-8b05-ffd578937521
2001-09-16 18:19:56 +00:00
Fred Kiefer
28ccfb87de Adopted to changes in header.
[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
2001-09-11 17:30:55 +00:00
Fred Kiefer
336aa42d03 Call [NSMenu itemChange:] in all setXX methods. [setSubmenu:] set
the title of the submenu to our title.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10869 72102866-910b-0410-8b05-ffd578937521
2001-09-11 17:30:18 +00:00
Fred Kiefer
7a897a0ada Remove function title_height(), replaced calls to it with
[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
2001-09-11 17:29:51 +00:00
Michael Silva
5638d3fd8d Rearrange coloration of NSDrawButton to match visually the result of the function on OpenStep.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10854 72102866-910b-0410-8b05-ffd578937521
2001-09-10 06:04:38 +00:00
Michael Silva
6036c8b9ba Fixed NSBrowser to not crash upon visualization.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10853 72102866-910b-0410-8b05-ffd578937521
2001-09-08 21:42:03 +00:00
Adam Fedor
4827e85a75 Switch back to gsave/grestore.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10850 72102866-910b-0410-8b05-ffd578937521
2001-09-06 19:04:07 +00:00
Adam Fedor
0a30e76ea7 Set EXTRASAMPLES even if 0
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10840 72102866-910b-0410-8b05-ffd578937521
2001-09-04 03:58:59 +00:00
Adam Fedor
99818a7d2b Use save/restore in lockFocus/unlockFocus
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10835 72102866-910b-0410-8b05-ffd578937521
2001-09-03 04:10:36 +00:00
Adam Fedor
09193da35a Fix image unacrhiving
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10831 72102866-910b-0410-8b05-ffd578937521
2001-09-01 20:57:51 +00:00
Fred Kiefer
fbcb65fafd Replaced use of mcell_highlighted with _cell.is_highlighted.
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
2001-09-01 17:10:54 +00:00
Adam Fedor
94398b3eda Fix image encoding
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10827 72102866-910b-0410-8b05-ffd578937521
2001-09-01 04:20:55 +00:00
Adam Fedor
67b4261f59 Image archiving fixes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10820 72102866-910b-0410-8b05-ffd578937521
2001-08-30 22:02:38 +00:00
Nicola Pero
63d0ee2c7c Little improvement of the description of the _GNULineLayoutInfo objects -
changing mainly using for debugging


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10818 72102866-910b-0410-8b05-ffd578937521
2001-08-30 20:20:49 +00:00
Nicola Pero
64720d2a5e Indentation tidyup
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10817 72102866-910b-0410-8b05-ffd578937521
2001-08-30 20:14:50 +00:00
Nicola Pero
5128fe7499 Indentation tidyups
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10813 72102866-910b-0410-8b05-ffd578937521
2001-08-30 18:36:06 +00:00
Nicola Pero
87d19de51f Fixed crash on checking whether it can init with data, if data is not
actually a tiff


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10811 72102866-910b-0410-8b05-ffd578937521
2001-08-30 17:26:47 +00:00
Nicola Pero
fcd1bbc9cf Fixed dataCellForRow:
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10806 72102866-910b-0410-8b05-ffd578937521
2001-08-30 09:31:27 +00:00
Nicola Pero
5c66b95c6d Indentation tidyup
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10805 72102866-910b-0410-8b05-ffd578937521
2001-08-30 09:30:13 +00:00
Fred Kiefer
ef5ec4b497 In [insertItemWithTitle:atIndex:] use action and target from the
cell for menu item.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10803 72102866-910b-0410-8b05-ffd578937521
2001-08-30 06:50:38 +00:00
Fred Kiefer
3a950b8cae [insertItemWithTitle:...atIndex:] autorelease the return value.
[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
2001-08-30 06:50:04 +00:00
Fred Kiefer
50cb4894b4 Cache the notification center. Simplified all the item handling
methods, e.g [insertItem:atIndex:], [insertItemWithTitle:...],
[removeItemAtIndex:], [indexOfItemWithSubmenu:].
Implemented [setMenuRepresentation:], [isEqual:] and [copyWithZone:].


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10787 72102866-910b-0410-8b05-ffd578937521
2001-08-27 18:49:34 +00:00
Fred Kiefer
ca2f069105 Adopted to changes in header. Implemented class for
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
2001-08-27 18:48:55 +00:00
Nicola Pero
a34fb690e9 Changed the key used in the user defaults to store a table columns so
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
2001-08-22 09:20:39 +00:00
Fred Kiefer
0e5c3b914e Removed class NSMenuWindow, use aconfigured NSPanel instead.
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
2001-08-21 23:24:35 +00:00
Fred Kiefer
87aaee9c56 Cache the default notification center. In [sendEvent:] handle case
of NSScrollWheel event.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10768 72102866-910b-0410-8b05-ffd578937521
2001-08-21 23:24:00 +00:00
Fred Kiefer
7c88e9d626 Implemented [rightMouseDown:] with code from NSResponder.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10767 72102866-910b-0410-8b05-ffd578937521
2001-08-21 23:23:19 +00:00
Fred Kiefer
eae31362e1 Added dummy implementation of [scrollWheel:].
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
2001-08-21 23:22:51 +00:00
Nicola Pero
52940b9bdd Implemented autosaving table columns (position and width)
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10760 72102866-910b-0410-8b05-ffd578937521
2001-08-21 19:08:48 +00:00
Nicola Pero
93ad02b1b4 Use the cached notification center
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10758 72102866-910b-0410-8b05-ffd578937521
2001-08-21 18:13:32 +00:00
Adam Fedor
30d3fd1bc0 Moved text conversion classes to separate bundle
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10755 72102866-910b-0410-8b05-ffd578937521
2001-08-21 14:52:00 +00:00
Pierre-Yves Rivaille
e3d2afb3c3 modifications to take [NSTableColumn -dataCellForRow:] into account
[-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
2001-08-21 12:25:29 +00:00
Pierre-Yves Rivaille
ae903addba New method : -dataCellForRow:
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10747 72102866-910b-0410-8b05-ffd578937521
2001-08-21 12:17:37 +00:00
Pierre-Yves Rivaille
83dc0a3b13 [NSMatrix -sizeToFit] : This method now assumes that all cells have the
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
2001-08-20 10:48:09 +00:00
Pierre-Yves Rivaille
bf358e75d1 Added NSStepper.m NSStepper.h NSStepperCell.m NSStepperCell.h
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10738 72102866-910b-0410-8b05-ffd578937521
2001-08-20 10:29:26 +00:00
Pierre-Yves Rivaille
d001a1267e NSStepper class : first implementation
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10734 72102866-910b-0410-8b05-ffd578937521
2001-08-20 10:16:22 +00:00
Pierre-Yves Rivaille
f17d36556d NSStepperCell class : first implementation
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10733 72102866-910b-0410-8b05-ffd578937521
2001-08-20 10:15:54 +00:00
Pierre-Yves Rivaille
ab5209f426 [NSBrowser -_performLoadOfColumn:] : improved performance when loading
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
2001-08-20 10:12:11 +00:00
Adam Fedor
08c97488f8 Prevent NSTextView from asking a text storage of zero length
for attributes


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10731 72102866-910b-0410-8b05-ffd578937521
2001-08-19 23:28:27 +00:00
Fred Kiefer
e410d96f8d In [setWindowFrameForAttachingToRect:...popUpSelectedItem:]
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
2001-08-19 23:22:32 +00:00
Fred Kiefer
935a47fb6f Adopted to changes in the header file.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10728 72102866-910b-0410-8b05-ffd578937521
2001-08-19 23:21:59 +00:00
Fred Kiefer
401c1a5f2b Renamed methods to fit the GSTextConsumer protocol. Adopted to
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
2001-08-18 22:08:28 +00:00
Fred Kiefer
48d393c79e RTFConsumer implements the protocol GSTextConsumer. New subclass
RTFDConsumer.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10723 72102866-910b-0410-8b05-ffd578937521
2001-08-18 22:07:59 +00:00
Fred Kiefer
c692062b18 Renamed methods to fit the GSTextProducer protocol. Adopted to
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
2001-08-18 22:07:35 +00:00
Fred Kiefer
1829333edf Renamed RTFProducer into RTFDProducer, with new subclass
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
2001-08-18 22:04:15 +00:00
Fred Kiefer
fa8999f56a Include GSTextConverter.h. New function converter_class() to load
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
2001-08-18 22:03:17 +00:00
Fred Kiefer
0eb432b95f Install GSTextConverter.h.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10719 72102866-910b-0410-8b05-ffd578937521
2001-08-18 22:02:42 +00:00
Fred Kiefer
a10d180052 Install NSInputServer.h + NSInputManager.h and compile
NSInputServer.m + NSInputManager.m.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10716 72102866-910b-0410-8b05-ffd578937521
2001-08-18 15:18:18 +00:00
Fred Kiefer
9a44480126 Dummy implementation.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10715 72102866-910b-0410-8b05-ffd578937521
2001-08-18 15:17:49 +00:00
Fred Kiefer
06f366eac2 Implemented missing NSUpdateDynamicServices().
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10710 72102866-910b-0410-8b05-ffd578937521
2001-08-14 22:39:06 +00:00
Fred Kiefer
4a0c1a233f Added case of NSScrollWheel.
Impelemented missing NSShowSystemInfoPanel().


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10709 72102866-910b-0410-8b05-ffd578937521
2001-08-14 22:38:30 +00:00
Fred Kiefer
7cb1299ac2 [initialize] removed obsolete check for default setting of
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
2001-08-14 22:37:11 +00:00
Pierre-Yves Rivaille
679debe40c Changed [-_userResizedTableColumn: leftWidth: rightWidth:] to
[-_userResizedTableColumn: width] for better resizing
Added [-_columnOrigins] for column reordering


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10705 72102866-910b-0410-8b05-ffd578937521
2001-08-13 15:06:53 +00:00
Pierre-Yves Rivaille
8a192b68b9 Reimplemented column resizing
Implemented column reordering


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10704 72102866-910b-0410-8b05-ffd578937521
2001-08-13 15:03:39 +00:00
Pierre-Yves Rivaille
2500131c69 [NSSavePanel -runModalForDirectory:file:]
[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
2001-08-13 14:57:20 +00:00
Pierre-Yves Rivaille
01521ad6e7 [NSPopUpButton -keyDown:] add code to send the selected item action to its
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
2001-08-13 14:34:35 +00:00
Pierre-Yves Rivaille
0e4a09cb8d Modified NSDrawGrayBezel and NSDrawWhiteBezel so that they look nicer
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10696 72102866-910b-0410-8b05-ffd578937521
2001-08-13 14:24:38 +00:00
Nicola Pero
93bcc21cfa When appending an arc to a bezier path, draw the line from the current
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
2001-08-13 13:08:22 +00:00
Nicola Pero
5320d8d0ec Fixed setString: when there is no previous string, so that it uses
the typingAttributes


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10691 72102866-910b-0410-8b05-ffd578937521
2001-08-13 11:44:42 +00:00
Nicola Pero
759f159d16 Fixed setName: to work - was crashing all apps with an icon at startup
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10689 72102866-910b-0410-8b05-ffd578937521
2001-08-13 11:07:39 +00:00
Fred Kiefer
913a946557 Removed [initImageCell:], [dealloc], [cellSizeForBounds:] and
[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
2001-08-12 17:29:34 +00:00
Nicola Pero
4e388f9dd7 Fixed limit cases when getting the row and column a point is in
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10684 72102866-910b-0410-8b05-ffd578937521
2001-08-12 15:09:32 +00:00
Fred Kiefer
468daba33d Dummy implementation of new methods.
[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
2001-08-11 18:34:22 +00:00
Fred Kiefer
f9054d3ecf Implemented [TIFFRepresentationOfImageRepsInArray] and
[TIFFRepresentationOfImageRepsInArray:usingCompression:factor:]


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10678 72102866-910b-0410-8b05-ffd578937521
2001-08-11 18:33:40 +00:00
Nicola Pero
b36c5af23c Fix for color out of bounds
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10675 72102866-910b-0410-8b05-ffd578937521
2001-08-11 17:51:02 +00:00
Fred Kiefer
4fbf129d23 Added Header, changed includes, small restructuring of [init] and
removed [isFloatingPanel].


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10659 72102866-910b-0410-8b05-ffd578937521
2001-08-05 22:22:23 +00:00
Fred Kiefer
1dbdc57ce5 In [NSApplication showHelp:] added a check for the existence of
the help file.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10657 72102866-910b-0410-8b05-ffd578937521
2001-08-05 22:21:06 +00:00
Fred Kiefer
d7698f89e9 Removed [showHelp:] and [activateContextHelpMode:] as they are
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
2001-08-05 22:20:27 +00:00
Fred Kiefer
661bf04cb2 Implemented the new methods and [titleWidth:]. In method
[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
2001-08-04 14:47:51 +00:00
Fred Kiefer
3bea937d15 Dumy implementations for new class methods and implementations for
new instance methods.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10651 72102866-910b-0410-8b05-ffd578937521
2001-08-04 14:43:31 +00:00