Commit graph

4302 commits

Author SHA1 Message Date
Fred Kiefer
e14bb3bc96 Patch by Christopher Culver:
Define empty [sizeToFit] method to override NSControl implementation.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17747 72102866-910b-0410-8b05-ffd578937521
2003-09-29 21:15:37 +00:00
Gregory John Casamento
b2caeb45dd Adding fix for report #5205. Services and Windows menus now should behave correctly.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17741 72102866-910b-0410-8b05-ffd578937521
2003-09-28 23:25:16 +00:00
David Ayers
c549497a5d Fix typo's.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17733 72102866-910b-0410-8b05-ffd578937521
2003-09-27 09:44:54 +00:00
David Ayers
c4f7312717 * Source/NSCell.m (-compare:): Compare the stringValue of
NSCell's rather than thier contents directly.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17732 72102866-910b-0410-8b05-ffd578937521
2003-09-27 09:12:57 +00:00
Alexander Malmberg
1fcb726542 Only force a display of the content view if we're being ordered _to_ the screen.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17708 72102866-910b-0410-8b05-ffd578937521
2003-09-23 17:16:59 +00:00
Alexander Malmberg
6a27a1f90e Clear the text container of our text view in -dealloc.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17707 72102866-910b-0410-8b05-ffd578937521
2003-09-23 17:13:20 +00:00
Adam Fedor
4ecf1a67d3 set released when closed
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17703 72102866-910b-0410-8b05-ffd578937521
2003-09-22 21:07:22 +00:00
Fred Kiefer
695a9abf04 Undid some changes to NSPopupButtonCell
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17697 72102866-910b-0410-8b05-ffd578937521
2003-09-21 20:57:53 +00:00
Fred Kiefer
a8a470ff28 Undid the tracking of changes for the menu item. Changed [dealloc]
to not call clean up methods as these caused segmentation faults
in GNUMail.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17696 72102866-910b-0410-8b05-ffd578937521
2003-09-21 20:57:24 +00:00
Alexander Malmberg
310ac897be Handle NSTiffPboardType. Based on patch from Nicolas Roard.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17693 72102866-910b-0410-8b05-ffd578937521
2003-09-21 13:18:35 +00:00
Adam Fedor
50b7d5288b Revert last doc close and fix releaseWhenClosed.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17691 72102866-910b-0410-8b05-ffd578937521
2003-09-21 02:27:50 +00:00
Adam Fedor
1d187a4550 Document close fixes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17688 72102866-910b-0410-8b05-ffd578937521
2003-09-20 03:07:55 +00:00
Adam Fedor
50ed66958a Implement GSReadRect and initWithFocusedViewRect:
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17687 72102866-910b-0410-8b05-ffd578937521
2003-09-20 02:57:45 +00:00
Adam Fedor
0d81427181 Don't build docs by default
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17683 72102866-910b-0410-8b05-ffd578937521
2003-09-16 15:12:48 +00:00
Fred Kiefer
657400f8d3 Corrected previous change.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17669 72102866-910b-0410-8b05-ffd578937521
2003-09-14 10:40:46 +00:00
Fred Kiefer
06d6e26b2d Corrected bug in previous change. In [itemAtIndex:] the index 0
was handled wrong.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17668 72102866-910b-0410-8b05-ffd578937521
2003-09-14 10:40:06 +00:00
Fred Kiefer
9862b53e77 Further cleanup of NSPopupButtonCell
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17667 72102866-910b-0410-8b05-ffd578937521
2003-09-14 00:39:56 +00:00
Fred Kiefer
a1b8af9d1e According to Gregory John Casamento <greg_casamento@yahoo.com> the
popup button does not change its enable state when the selected item
does. To adopt this behaviour all setEnable: calls have been
removed and one in [initWithCoder:] added that enables the popup
for all old encodings.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17666 72102866-910b-0410-8b05-ffd578937521
2003-09-14 00:33:05 +00:00
Gregory John Casamento
718622df26 PopUpButtonCell correction for compile error
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17663 72102866-910b-0410-8b05-ffd578937521
2003-09-13 20:59:10 +00:00
Fred Kiefer
8d2ae95e20 Improved NSPopupButtoncells interaction with the NSMenu.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17662 72102866-910b-0410-8b05-ffd578937521
2003-09-13 13:41:26 +00:00
Fred Kiefer
aa2a156b1c Undid last change. Rewrote [setMenu:] to make the popup button
cell listen to change notifications of the menu. New method
[itemChanged:] gets called when a menu item changes. Added hack to
[initWithCoder:] to set menu correctly and read old menu items correctly.
Check in [itemAtIndex:] that the index is vaild and return nil
otherwise.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17661 72102866-910b-0410-8b05-ffd578937521
2003-09-13 13:39:23 +00:00
Fred Kiefer
2882fa9d28 In [update] use [NSApplication targetForAction:to:from:] to be
consistent with the [performActionForItemAtIndex:] implementation.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17660 72102866-910b-0410-8b05-ffd578937521
2003-09-13 13:38:46 +00:00
Adam Fedor
bbeec6b247 Better error checking and documentation
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17638 72102866-910b-0410-8b05-ffd578937521
2003-09-08 02:07:53 +00:00
Gregory John Casamento
5e2097c086 Correcting an issue with NSPopUpButtonCell
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17635 72102866-910b-0410-8b05-ffd578937521
2003-09-07 16:46:39 +00:00
Alexander Malmberg
c4788b1aa9 (getNSFont): Set the explicit-size bit in the role correctly.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17631 72102866-910b-0410-8b05-ffd578937521
2003-09-06 20:54:34 +00:00
Gregory John Casamento
3d78b963f9 More of the implementation for NSToolbarItem and the images for the "default" items.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17630 72102866-910b-0410-8b05-ffd578937521
2003-09-06 14:50:26 +00:00
Fred Kiefer
f6138c2965 Autorelease the NSMenuItem [separatorItem].
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17629 72102866-910b-0410-8b05-ffd578937521
2003-09-06 14:18:41 +00:00
Fred Kiefer
b6e5d5fafd Autorelease the [separatorItem].
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17628 72102866-910b-0410-8b05-ffd578937521
2003-09-06 14:18:08 +00:00
Fred Kiefer
6df109b13e Corrected menu item cell enabling.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17623 72102866-910b-0410-8b05-ffd578937521
2003-09-05 23:29:44 +00:00
Fred Kiefer
438ed2af3e [setMenuItem:] enable/disable cell. [drawTitleWithFrame:inView:]no
longer enable/disable cell.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17622 72102866-910b-0410-8b05-ffd578937521
2003-09-05 23:28:54 +00:00
Fred Kiefer
1b53ae15a9 In [itemChanged:] set if the cell is enabled like the item.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17621 72102866-910b-0410-8b05-ffd578937521
2003-09-05 23:28:20 +00:00
Alexander Malmberg
f85a2e5f12 Change return type of -initWithWindowRef: to id.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17620 72102866-910b-0410-8b05-ffd578937521
2003-09-04 16:47:30 +00:00
Adam Fedor
82abe19ca0 Don't mess with file descriptors on MinGW.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17609 72102866-910b-0410-8b05-ffd578937521
2003-09-03 03:25:56 +00:00
Adam Fedor
a1041cbd19 Update
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17605 72102866-910b-0410-8b05-ffd578937521
2003-09-02 16:29:33 +00:00
Fred Kiefer
4a0281b9c4 Removed new GCC 3.4 warnings from Alexander Malmbergs list.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17601 72102866-910b-0410-8b05-ffd578937521
2003-09-01 18:17:52 +00:00
Fred Kiefer
a46846708e Removed uneeded and inconsistent method declarations.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17599 72102866-910b-0410-8b05-ffd578937521
2003-09-01 18:17:06 +00:00
Fred Kiefer
045a5b0c08 Added protocol NSTextInput to ivar _currentClient.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17598 72102866-910b-0410-8b05-ffd578937521
2003-09-01 18:16:36 +00:00
Fred Kiefer
8fa906a7a2 Corrected type of method _nonAutoreleasedTypingAttributes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17597 72102866-910b-0410-8b05-ffd578937521
2003-09-01 18:16:11 +00:00
Fred Kiefer
374c449730 Removed unused global currentVersion.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17596 72102866-910b-0410-8b05-ffd578937521
2003-09-01 18:15:10 +00:00
Fred Kiefer
4035581bdd [readFromURL:options:documentAttributes:] corrected the handling
to type "text", where [NSString alloc] was missing.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17595 72102866-910b-0410-8b05-ffd578937521
2003-09-01 18:14:47 +00:00
Fred Kiefer
1e93141946 Implemented support for fredesktop.org thumbnail icons.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17594 72102866-910b-0410-8b05-ffd578937521
2003-09-01 17:00:24 +00:00
Fred Kiefer
aa667be71a Documented the new user default value GSUseFreedesktopThumbnails.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17593 72102866-910b-0410-8b05-ffd578937521
2003-09-01 16:59:41 +00:00
Fred Kiefer
e1ac3ed3ca New method [_saveImageFor:] used in all places in this file where
an icon is created from a file name. New method
[thumbnailForFile:] calculated the name of the corresponding
FreeDeskTop.org thumbnail file for a given file name. This does
not chack if this file exists!. In [iconForFile:] use this
thumbnails if the user default GSUseFreedesktopThumbnails is YES.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17592 72102866-910b-0410-8b05-ffd578937521
2003-09-01 16:58:54 +00:00
Fred Kiefer
1a94f30ba2 [canInitWithData:], [imageRepsWithData:] and [initWithData:]
protect against data being nil. [imageRepsWithFile:] check if the
file exists and only return an array when it contains objects.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17591 72102866-910b-0410-8b05-ffd578937521
2003-09-01 16:58:27 +00:00
Gregory John Casamento
ee1d9197b7 Corrected mainMenu initialization problem
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17582 72102866-910b-0410-8b05-ffd578937521
2003-09-01 09:21:46 +00:00
Gregory John Casamento
09b96f1cbb Corrected initialization problem. Was doing [NSButton init...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17579 72102866-910b-0410-8b05-ffd578937521
2003-08-31 13:28:03 +00:00
Gregory John Casamento
7f15b1ab39 Correct extra retain count issue.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17576 72102866-910b-0410-8b05-ffd578937521
2003-08-31 03:42:03 +00:00
Fred Kiefer
2677902f96 Cleanup of notification handling in NSWindowController.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17575 72102866-910b-0410-8b05-ffd578937521
2003-08-30 19:13:58 +00:00
Fred Kiefer
6878b86f27 Changed [setWindow:] to manage the notification connection to the window.
[initWithWindow:], [dealloc] and [_windowWillClose:] now use [setWindow:].
[setDocument:] now no longer retains the document, as this is
already retaining the window controller. Simplified [loadWindow]
by using the method [windowNibPath].


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17574 72102866-910b-0410-8b05-ffd578937521
2003-08-30 19:13:10 +00:00
Gregory John Casamento
ea85bcccb7 Added code to conditionally call desig. init. if it is defined on current class (only not parents).
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17572 72102866-910b-0410-8b05-ffd578937521
2003-08-30 05:01:47 +00:00