Fred Kiefer
0a310d0b60
Removed gcc 4.02 compiler warnings.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@21846 72102866-910b-0410-8b05-ffd578937521
2005-10-19 23:54:22 +00:00
Adam Fedor
303dd1baf9
Update FSF Address.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@21259 72102866-910b-0410-8b05-ffd578937521
2005-05-26 02:52:46 +00:00
Alexander Malmberg
ad2419e484
2005-01-21 21:43 Alexander Malmberg <alexander@malmberg.org>
...
Various whitespace cleanups, comment type fixes, and changes
to avoid warnings from recent versions of gcc.
* Headers/Additions/GNUstepGUI/GSToolbar.h (-_toolbars): Declare.
* Source/NSWindow+Toolbar.m: Remove conflicting declaration of
[NSToolbar -_toolbars].
* Headers/Additions/GNUstepGUI/GSServicesManager.h,
Source/GSServicesMananger.m (-item2title:, -validateMenuItem:):
Adjust argument types.
* Headers/AppKit/NSMenu.h (-validateMenuItem:): Adjust argument
type.
* Source/NSTextView.m (-sizeToFit): Don't use size uninitialized
if neither resizable flags is set.
(-insertText:): Adjust argument type.
* Headers/AppKit/NSResponder.h, Source/NSResponder.m (-insertText:):
Adjust argument type. Document.
* Headers/AppKit/NSView.h: Change type of ivar _window to NSWindow *.
* Source/GSTitleView.m (-mouseDown:): Always initialize
startWindowOrigin.
* Source/NSApplication.m (-setApplicationIconImage:): Add casts
to avoid warnings.
* Source/NSCell.m (-cellSize): Add default: case.
* Source/NSPasteboard.m
([GSFiltered -pasteboard:provideDataForType:]): Detect and warn if we
can't find a filter that will get us the desired type.
* Source/NSProgressIndicator.m: Comment out unused variable 'images'.
* Source/NSBezierPath.m: Declare GSBezierPath fully before using it.
(-bezierPathByFlatteningPath, -bezierPathByReversingPath): Make sure
variables are always initialized.
* Source/NSMenuView.m,
* Source/NSPrintOperation.m,
* Source/NSSplitView.m,
* Source/NSTableHeaderView.m: Make sure variables are always
initialized.
* Source/NSBox.m,
* Source/NSImageview.m,
* Source/NSText.m,
* Source/NSTextStorage.m: Add missing includes.
* Source/GSKeyBindingTable.m,
* Source/GSLayoutManager.m,
* Source/NSBitmapImageRep+PNM.m,
* Source/NSBundleAdditions.m,
* Source/NSLayoutManager.m,
* Source/nsimage-tiff.h,
* Source/tiff.m,
* Headers/Additions/GNUstepGUI/GSDisplayServer.h,
* Source/GSDisplayServer.m: Change signedness of various variables.
* Source/NSPanel.m (-sendEvent:): Remove.
* Source/NSWindow.m (-becomesKeyOnlyIfNeeded): New method.
(-_sendEvent:becomesKeyOnlyIfNeeded:): Remove. Move code ...
(-sendEvent:): ... here. Use -becomesKeyOnlyIfNeeded instead
of the argument.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@20590 72102866-910b-0410-8b05-ffd578937521
2005-01-21 20:39:18 +00:00
Fred Kiefer
54da49bd72
Make sure menu views get cleaned up properly.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@20122 72102866-910b-0410-8b05-ffd578937521
2004-09-24 10:54:18 +00:00
Alexander Malmberg
682002cee0
Fix NSButtonCell size calculations. Rename xDist and yDist.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@19814 72102866-910b-0410-8b05-ffd578937521
2004-08-02 14:36:09 +00:00
Fred Kiefer
93b7e7acf8
Menu reference handlin patch and further keyed archiving.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@18547 72102866-910b-0410-8b05-ffd578937521
2004-02-06 00:16:54 +00:00
Sergii Stoian
b9381fedfa
Use GSTitleView's initWithOwner: method. Cleanup
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@18421 72102866-910b-0410-8b05-ffd578937521
2004-01-15 15:58:43 +00:00
Sergii Stoian
c33ef3101f
Changed checking for highlighted item
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@18405 72102866-910b-0410-8b05-ffd578937521
2004-01-13 11:14:50 +00:00
Sergii Stoian
b254e54ddb
Modified to use GSTitleView for menu title.NSMenuWindowTitleView class removed.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@18373 72102866-910b-0410-8b05-ffd578937521
2004-01-11 18:03:45 +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
Fred Kiefer
bfc31694fd
In [itemChanged:] call [setNeedsDisplayForItemAtIndex:] so that
...
changes get redisplayed.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17504 72102866-910b-0410-8b05-ffd578937521
2003-08-20 13:15:46 +00:00
Alexander Malmberg
8cb62c9d4a
Fix _menu ivar confusion.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17316 72102866-910b-0410-8b05-ffd578937521
2003-07-23 20:25:09 +00:00
Richard Frith-Macdonald
9bb801ddb2
Applied memory leak fixing patches
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17277 72102866-910b-0410-8b05-ffd578937521
2003-07-21 10:41:10 +00:00
Adam Fedor
6be9174933
Include <> -> ""
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16917 72102866-910b-0410-8b05-ffd578937521
2003-06-13 15:01:12 +00:00
Sergii Stoian
2a5bf8cd45
Set cell height at least to 20 pixels
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16719 72102866-910b-0410-8b05-ffd578937521
2003-05-14 11:02:23 +00:00
Fred Kiefer
f12f062604
Moved the computation of the cell size into the method [setFont:]
...
and use this in [init]. Added call to [setNeedsSizing:] in
[setHorizontalEdgePadding:]. In [locationForSubmenu:] check for
the interface style of the submenu. Also cleaned up up coding style and
comments in the whole file.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16549 72102866-910b-0410-8b05-ffd578937521
2003-04-26 16:50:22 +00:00
Sergii Stoian
ec2a39cf4a
[NSMenuView mouseDown:] Generate periodic events every 0.01 seconds
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16486 72102866-910b-0410-8b05-ffd578937521
2003-04-21 09:41:03 +00:00
Sergii Stoian
ea951e6cba
isOpaque implemented. update imporving
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16432 72102866-910b-0410-8b05-ffd578937521
2003-04-11 12:53:20 +00:00
Sergii Stoian
8d25964b74
horizontal menu fixes; title view mouseDown event loop changed
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16399 72102866-910b-0410-8b05-ffd578937521
2003-04-09 09:42:26 +00:00
Sergii Stoian
223ed7f03f
return back horizontal menu code
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16396 72102866-910b-0410-8b05-ffd578937521
2003-04-09 07:06:51 +00:00
Wim (Willem Rein) Oudshoorn
f4e84ae6fe
(NSMenuWindowTitleView): reformatted one line to
...
conform to coding standards
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16320 72102866-910b-0410-8b05-ffd578937521
2003-04-01 19:52:08 +00:00
Wim (Willem Rein) Oudshoorn
830105b505
Reformatted to comply to coding standards
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16293 72102866-910b-0410-8b05-ffd578937521
2003-03-30 12:54:56 +00:00
Sergii Stoian
be1ccbace3
Documentation and TODO cleanup
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16285 72102866-910b-0410-8b05-ffd578937521
2003-03-28 15:05:47 +00:00
Sergii Stoian
1e848bde2d
update fixes and title view adding/removal changes
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16279 72102866-910b-0410-8b05-ffd578937521
2003-03-27 16:18:02 +00:00
Sergii Stoian
360bfffc6f
reset highlighted items in a submenu that we leave for a supermenu
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16264 72102866-910b-0410-8b05-ffd578937521
2003-03-25 19:58:19 +00:00
Sergii Stoian
da3b4b0583
offset calulation fixes and optimization
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16258 72102866-910b-0410-8b05-ffd578937521
2003-03-25 15:34:08 +00:00
Sergii Stoian
e1dd0679b1
NSMenuView.m setWindowFrameForAttachingToRect: sizing fixes
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16253 72102866-910b-0410-8b05-ffd578937521
2003-03-25 09:51:00 +00:00
Sergii Stoian
be33618457
Horizontal menu related code removed
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16236 72102866-910b-0410-8b05-ffd578937521
2003-03-23 21:41:44 +00:00
Wim (Willem Rein) Oudshoorn
accc68d8dd
fixed stupid typo.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16223 72102866-910b-0410-8b05-ffd578937521
2003-03-22 17:11:18 +00:00
Wim (Willem Rein) Oudshoorn
a50c8b216c
(-initWithFrame:): Removed creation of titleView
...
([NSMenuView -setMenu:]): call update to handle new situation
([NSMenuView -update]): Removed call to _menu update, handle the
adding/removing of the title view.
([NSMenuView -sizeToFit]): reformatted to conform to coding standard,
handle missing titleView.
([NSMenuView -setWindowFrameForAttachingToRect:onScreen:preferredEdge:popUpSelectedItem:]):
Reformatted to conform to coding standard. Removed the code that removed the titleView.
That is handled by update.
([NSMenuView -drawRect:]): Reformatted to conform to coding standards.
([NSMenuWindowTitleView -init]): Reformatted to conform to coding standards.
([NSMenuWindowTitleView -dealloc]): new method to prevent leaking the close button.
([NSMenuWindowTitleView -titleSize]): Reformatted to conform to coding standard
([NSMenuWindowTitleView -drawRect:]): idem
([NSMenuWindowTitleView -mouseDown:]): idem
([NSMenuWindowTitleView -createButton]): idem
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16222 72102866-910b-0410-8b05-ffd578937521
2003-03-22 16:30:04 +00:00
Sergii Stoian
8ba951b342
NSMenuView popup button related fixes and additions
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16214 72102866-910b-0410-8b05-ffd578937521
2003-03-20 12:16:25 +00:00
Sergii Stoian
ec5f9bafe8
fixes to sizeToFit, NSMenuTitleView's drawRect, added titleSize
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16198 72102866-910b-0410-8b05-ffd578937521
2003-03-18 16:24:31 +00:00
Sergii Stoian
15a1fb917c
cleanup of previous commit
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16188 72102866-910b-0410-8b05-ffd578937521
2003-03-17 14:58:36 +00:00
Sergii Stoian
feda9ed5e0
removed GSCloseButton. createButton now uses setRefusesFirstResponder
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16185 72102866-910b-0410-8b05-ffd578937521
2003-03-17 13:07:43 +00:00
Sergii Stoian
86d76d089e
[sizeToFit] cleanup and new class GSCloseButton
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16183 72102866-910b-0410-8b05-ffd578937521
2003-03-17 11:18:38 +00:00
Richard Frith-Macdonald
47e2deedfd
Tidied
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16154 72102866-910b-0410-8b05-ffd578937521
2003-03-08 11:57:44 +00:00
Richard Frith-Macdonald
578ddfd0e9
A few tidyups
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16145 72102866-910b-0410-8b05-ffd578937521
2003-03-07 06:03:15 +00:00
Richard Frith-Macdonald
00b16254bb
Menu patch by Wim
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16143 72102866-910b-0410-8b05-ffd578937521
2003-03-07 05:33:17 +00:00
Nicola Pero
efca744a34
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
Nicola Pero
0cd3adbe8a
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
Pierre-Yves Rivaille
90645a5f8a
* 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
Pierre-Yves Rivaille
b24ec8eb74
* 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
Nicola Pero
fe02fe8b6e
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
Nicola Pero
859bb53e45
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
Fred Kiefer
5522e94e87
[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
Nicola Pero
be371e47d7
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 Marcotte
6550f67a9d
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
Richard Frith-Macdonald
c1ffddcdc8
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 Silva
464f76e2be
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
Nicola Pero
00336bcd16
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