Commit graph

2976 commits

Author SHA1 Message Date
Fred Kiefer
70382adf42 Restructured NSMenuView and corrected NSMenuItem.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10871 72102866-910b-0410-8b05-ffd578937521
2001-09-11 17:35:20 +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
Fred Kiefer
f2fa130e80 Removed ivar meunv_menu and reuse _menu from NSResponder.
Renamed all the ivars.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10867 72102866-910b-0410-8b05-ffd578937521
2001-09-11 17:28:45 +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
c804059843 Modified NSMenuItemCell to be more similar to NSButtonCell
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10830 72102866-910b-0410-8b05-ffd578937521
2001-09-01 17:12:55 +00:00
Fred Kiefer
858ba8fb73 Removed ivars mcell_highlighted and mcell_has_submenu.
Renamed all ivars.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10829 72102866-910b-0410-8b05-ffd578937521
2001-09-01 17:11:53 +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
Nicola Pero
db36c5906c Added changelog for GSSimpleLayoutManager which I had forgot to commit
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10823 72102866-910b-0410-8b05-ffd578937521
2001-08-31 11:07:20 +00:00
Nicola Pero
62f4f350e7 Readded ChangeLog entry which Adam removed by mistake
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10822 72102866-910b-0410-8b05-ffd578937521
2001-08-31 11:06:00 +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
1680fe8716 Fixed problem in checking whether some data is a valid tiff image
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10812 72102866-910b-0410-8b05-ffd578937521
2001-08-30 17:27:25 +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
526d2236d9 Fixed dataCellForRow: in NSTableColumn
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10807 72102866-910b-0410-8b05-ffd578937521
2001-08-30 09:31:55 +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
9653e1b1d4 Better handling of item insertions in NSMenu
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10804 72102866-910b-0410-8b05-ffd578937521
2001-08-30 06:51:48 +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
72e8d36398 Further changes on NSMenu and NSMenuItem
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10788 72102866-910b-0410-8b05-ffd578937521
2001-08-27 18:50:28 +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
Fred Kiefer
ee3c4cc9c0 Changed includes. Defined new method
[userKeyEquivalentModifierMask]. Removed all the methods
definitions from NSMenuItem. Dropped the mi prefix of the
ivars. Removed ivar for backend.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10785 72102866-910b-0410-8b05-ffd578937521
2001-08-27 18:47:57 +00:00
Nicola Pero
ee2fe5208f Fixed typo in my one-before-the-last entry
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10773 72102866-910b-0410-8b05-ffd578937521
2001-08-22 09:23:04 +00:00
Nicola Pero
5d87d8eb93 Made the key used in a table to save the columns consistent with
what a window does


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10772 72102866-910b-0410-8b05-ffd578937521
2001-08-22 09:21:25 +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
bea8d88e7c Continued rework of NSMenu
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10770 72102866-910b-0410-8b05-ffd578937521
2001-08-21 23:25:38 +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
Fred Kiefer
0632e24a64 Check in of this file was forgotten.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10765 72102866-910b-0410-8b05-ffd578937521
2001-08-21 23:22:20 +00:00
Fred Kiefer
7986d235d4 Added method [scrollWheel:].
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10764 72102866-910b-0410-8b05-ffd578937521
2001-08-21 23:21:40 +00:00
Fred Kiefer
4d7a48fa62 Made method [_rightMouseDisplay:] public.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10763 72102866-910b-0410-8b05-ffd578937521
2001-08-21 23:21:17 +00:00
Nicola Pero
12d80ea772 Implemented autosaving of table columns
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10761 72102866-910b-0410-8b05-ffd578937521
2001-08-21 19:09:12 +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
4be92d5f27 Tiny optm in NSTableView
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10759 72102866-910b-0410-8b05-ffd578937521
2001-08-21 18:14:07 +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
e4dd491dad Source/NSTableColumn.m
Headers/gnustep/gui/NSTableColumn.h
Source/NSTableView.m


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10750 72102866-910b-0410-8b05-ffd578937521
2001-08-21 12:30:09 +00:00