Commit graph

68 commits

Author SHA1 Message Date
nico
b9f8608224 Removed ugly 17 pixels added to title width when computing menu sizes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@15765 72102866-910b-0410-8b05-ffd578937521
2003-01-30 03:03:51 +00:00
nico
8bda7ef823 Fix to display highlighted menu items when they are triggered from the keyboard;
fix for wrong highlighting of menu items in popupbuttons when used from
the keyboard


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@15661 72102866-910b-0410-8b05-ffd578937521
2003-01-21 01:19:44 +00:00
pyr
118c53a894 * Source/NSMenuView.m ([NSMenuView -trackWithEvent:]):
new tracking code. The menu feels snappier now (at least for me).

* Source/NSColorWell.m ([-activate:], [-deactivate])
  register/unregister for NSColorPanelColorChangedNotification.
  ([NSColorWell _takeColorFromPanel:]): new method to prevent endless
  loop when setting the well's color from the color panel.
  ([NSColorWell -initWithCoder:]): register for NSColorPboardType.

* Source/NSColorPanel.m ([NSColorPanel -_bottomWellAction:]):
  called when hitting one of the well at the bottom of the panel.
  Previous behaviour would not send a
  NSColorPanelColorChangedNotification.
  ([NSColorPanel -initWithCoder:]): update bottom wells construction to
  call _bottomWellAction: instead of takeColorFrom:.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14853 72102866-910b-0410-8b05-ffd578937521
2002-10-27 22:33:16 +00:00
pyr
0bf1a03438 * Source/NSMenuView.m:
New private method [NSMenuView -_itemCell] in newly created
  GNUstepPrivate category.
* Source/NSMenu.m:
  Add GNUstepPrivate interface of NSMenuView.
  [NSMenu -_setOwnedByPopUp:]: update itemCells' menuView
  (fix NSPopUpButtonCell-decoding problem).
* Source/NSPopUpButtonCell.m
  ([NSPopUpButtonCell -synchronizeTitleAndSelectedItem]):
  Fix "mouseUp outside of menu" problem. Now the previous
  selected item stay selected.
  ([NSPopUpButtonCell -initWithCoder:]):
  Set the selectedItem properly.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14446 72102866-910b-0410-8b05-ffd578937521
2002-09-15 14:02:17 +00:00
nico
063b64fd78 Fixed highlighting of cells when new cells are added
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@13955 72102866-910b-0410-8b05-ffd578937521
2002-06-22 18:38:51 +00:00
nico
a9013a2c26 Indented line
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@13954 72102866-910b-0410-8b05-ffd578937521
2002-06-22 18:33:34 +00:00
FredKiefer
a4cd7954a3 [rectOfItemAtIndex:] for horizontal orientation set items from
left to right. [locationForSubmenu:] for horizontal orientation
set submenu below the item in self.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@13662 72102866-910b-0410-8b05-ffd578937521
2002-05-17 09:20:59 +00:00
nico
c87007f3f8 Added missing #includes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@13442 72102866-910b-0410-8b05-ffd578937521
2002-04-11 23:17:42 +00:00
ludovic
87b610421a See ChangeLog
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@13402 72102866-910b-0410-8b05-ffd578937521
2002-04-08 23:26:59 +00:00
CaS
4f5825c6a0 Rename middl toother mouse
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12948 72102866-910b-0410-8b05-ffd578937521
2002-03-02 07:23:18 +00:00
michael
5f688fbf6e Improvements for popupbuttons.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12946 72102866-910b-0410-8b05-ffd578937521
2002-03-01 23:25:06 +00:00
nico
526728e522 Fixes for memory management ... to help the menus dealloc properly (/dealloc
at all)


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12700 72102866-910b-0410-8b05-ffd578937521
2002-02-23 11:58:54 +00:00
nico
544720e3bc Indented some lines
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12697 72102866-910b-0410-8b05-ffd578937521
2002-02-23 10:38:35 +00:00
CaS
a9c23f7485 Add patch to avoid unnecessary redrawing.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12490 72102866-910b-0410-8b05-ffd578937521
2002-02-11 14:06:00 +00:00
fedor
7e2a5ba8eb Menu location fixes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12205 72102866-910b-0410-8b05-ffd578937521
2002-01-23 16:32:20 +00:00
fedor
c51f4265da 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
FredKiefer
e1982e4353 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
FredKiefer
ed02584650 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
FredKiefer
4d0d7be678 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
richard
19ddb5e902 Fixed bug in handling position of window when selecting 'close' windows item.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@8979 72102866-910b-0410-8b05-ffd578937521
2001-02-06 08:36:13 +00:00
nico
0e6f6648d3 Modified to allow changing menu font and size
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@8721 72102866-910b-0410-8b05-ffd578937521
2001-01-21 01:36:22 +00:00
FredKiefer
d3c10d80e7 Changed system fonts of size 12 to 0. This will use Nicolas font
cache and keep font sizes consistent when changed.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7347 72102866-910b-0410-8b05-ffd578937521
2000-09-02 17:16:26 +00:00
richard
0370b5e398 Added middle mouse button support
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7140 72102866-910b-0410-8b05-ffd578937521
2000-08-03 08:48:22 +00:00
richard
f3e88c07e4 Tidied
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@6165 72102866-910b-0410-8b05-ffd578937521
2000-03-03 06:36:38 +00:00
fedor
f34100ac45 Merge from 0.6.5
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@6040 72102866-910b-0410-8b05-ffd578937521
2000-02-19 00:40:47 +00:00
richard
5807f43c35 Tidied
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@5781 72102866-910b-0410-8b05-ffd578937521
2000-01-14 17:26:25 +00:00
richard
fd582aa69d coding fixes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@5769 72102866-910b-0410-8b05-ffd578937521
2000-01-13 23:32:54 +00:00
nico
475b802dee Updated for change in NSView ivars
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@5719 72102866-910b-0410-8b05-ffd578937521
2000-01-10 02:04:25 +00:00
richard
fb77d815b2 Menu handling fixes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@5700 72102866-910b-0410-8b05-ffd578937521
2000-01-07 20:46:45 +00:00
richard
26e56d11cf Menu behavior tinkering
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@5674 72102866-910b-0410-8b05-ffd578937521
2000-01-05 20:16:59 +00:00
richard
623f5da51a Minor fixes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@5672 72102866-910b-0410-8b05-ffd578937521
2000-01-05 17:42:47 +00:00
richard
c23e5e2e11 Minor menu fixes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@5668 72102866-910b-0410-8b05-ffd578937521
2000-01-05 16:35:47 +00:00
dlazaro
fc1dab4d2c Added hysteresis to the item selection code.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@5620 72102866-910b-0410-8b05-ffd578937521
1999-12-23 23:31:59 +00:00
nico
e23d001519 Implemented method which prepares the window for pop-up buttons.
Tiny changing to make popup buttons selections work.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@5441 72102866-910b-0410-8b05-ffd578937521
1999-12-11 03:04:22 +00:00
michael
02d80a510c Fixes for NSPopUp.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@5380 72102866-910b-0410-8b05-ffd578937521
1999-12-03 21:38:43 +00:00
richard
2806eb908b Fix for item removal.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@5371 72102866-910b-0410-8b05-ffd578937521
1999-12-03 11:52:11 +00:00
richard
2243389ba2 Various small fixes for windows menu support.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@5369 72102866-910b-0410-8b05-ffd578937521
1999-12-03 10:27:39 +00:00
richard
f6198694de Fixed small (but irritating) menu bug
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@5363 72102866-910b-0410-8b05-ffd578937521
1999-12-02 11:01:05 +00:00
nico
f6d76d0d9c Fixed bug which was crashing the save panel when run from the menu.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@5271 72102866-910b-0410-8b05-ffd578937521
1999-11-25 02:51:38 +00:00
richard
a569f85d44 Fix badly placed #endif
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@5269 72102866-910b-0410-8b05-ffd578937521
1999-11-24 16:54:23 +00:00
richard
9f320dec44 Keyboard focus handling fixes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@5264 72102866-910b-0410-8b05-ffd578937521
1999-11-23 14:11:14 +00:00
michael
f6a85c5407 Fixes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@5262 72102866-910b-0410-8b05-ffd578937521
1999-11-22 21:48:03 +00:00
dlazaro
1d8690f2dc More changes to support not highlighting cells when traversing to a submenu.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@5242 72102866-910b-0410-8b05-ffd578937521
1999-11-19 18:18:58 +00:00
dlazaro
cf28787fa7 Added a short delay to item unhighlighting when using key. eqs. and
some corrections to submenu attaching.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@5229 72102866-910b-0410-8b05-ffd578937521
1999-11-17 23:01:54 +00:00
dlazaro
a927432228 Almost total reimplementation of the menuing code.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@5207 72102866-910b-0410-8b05-ffd578937521
1999-11-16 22:25:07 +00:00
tremblay2
c2d12e304f Added stuff so that NSMenu won't get sized to smaller than it's title width.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@5043 72102866-910b-0410-8b05-ffd578937521
1999-10-20 17:29:56 +00:00
nico
f45fbec703 Added performKeyEquivalent
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@5033 72102866-910b-0410-8b05-ffd578937521
1999-10-18 22:56:19 +00:00
michael
3d2b84054e Fun fixes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@4877 72102866-910b-0410-8b05-ffd578937521
1999-09-12 03:19:36 +00:00
michael
a257775023 Fixes NSMenuView.m
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@4833 72102866-910b-0410-8b05-ffd578937521
1999-09-05 21:29:11 +00:00
richard
178e4956bd Access superclass ivars directly.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@4786 72102866-910b-0410-8b05-ffd578937521
1999-09-01 08:35:16 +00:00