Commit graph

45 commits

Author SHA1 Message Date
Fred Kiefer
8603ae06ae Some more cleanup of the NSToolbarItem code.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28438 72102866-910b-0410-8b05-ffd578937521
2009-08-04 20:12:35 +00:00
Gregory John Casamento
6f3f7be33c Fixes to correct issues with toolbar pallete customization.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28083 72102866-910b-0410-8b05-ffd578937521
2009-03-16 05:25:22 +00:00
Fred Kiefer
1b9732d96d Add more missing localization includes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28015 72102866-910b-0410-8b05-ffd578937521
2009-03-01 19:04:58 +00:00
Fred Kiefer
1be0d6ca24 Stripped down version of the toolbar customization
branch by Quentin Mathe <qmathe@club-internet.fr>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27835 72102866-910b-0410-8b05-ffd578937521
2009-02-10 21:02:33 +00:00
Wolfgang Lux
cdc21a5395 Fix a few issues with toolbar item validation.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27626 72102866-910b-0410-8b05-ffd578937521
2009-01-18 15:11:37 +00:00
Gregory John Casamento
d2ad402045 * Source/NSToolbarItem.m: Added _sendAction: method to send
the action with the NSToolbarItem instance as the sender
	when the toolbar item is represented by an NSMenuItem. 


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27573 72102866-910b-0410-8b05-ffd578937521
2009-01-10 20:46:39 +00:00
Fred Kiefer
74d7fcffd8 Add new private header file with shared toolbar classes interfaces.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27503 72102866-910b-0410-8b05-ffd578937521
2009-01-02 17:24:06 +00:00
Fred Kiefer
f66a0decc7 Merge GSToolbar with NSToolbar and remove all traces of the old class.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27491 72102866-910b-0410-8b05-ffd578937521
2009-01-01 22:04:38 +00:00
Fred Kiefer
eb68ac91f1 Extension and clean up of NSToolbarItem.
Add new class NSToolbarItemGroup.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27469 72102866-910b-0410-8b05-ffd578937521
2008-12-30 22:20:21 +00:00
Fred Kiefer
0568f0a0c5 Small clean up of toolbar code.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27443 72102866-910b-0410-8b05-ffd578937521
2008-12-28 15:16:05 +00:00
Adam Fedor
7afdd32ac1 Revert library license version to 2 until applications can be converted
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26619 72102866-910b-0410-8b05-ffd578937521
2008-06-10 04:01:49 +00:00
Fred Kiefer
8576fa60d7 Undo last hack and add a slightly better on.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26250 72102866-910b-0410-8b05-ffd578937521
2008-03-08 11:11:52 +00:00
Fred Kiefer
b76f1b348c Add a recursion break hack. Needs to be cleaned up.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26249 72102866-910b-0410-8b05-ffd578937521
2008-03-08 10:45:08 +00:00
Fred Kiefer
193e31e678 Change all files to use GPL 3 and LGPL 3.
Prepare for next release.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@25536 72102866-910b-0410-8b05-ffd578937521
2007-10-29 21:16:17 +00:00
Fred Kiefer
d8f3c46725 Made working for a flipped view.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@25478 72102866-910b-0410-8b05-ffd578937521
2007-09-12 12:54:38 +00:00
Fred Kiefer
4835a35c1c Add new MacOSX methods. Code mostly by Nikolaus Schaller.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@25270 72102866-910b-0410-8b05-ffd578937521
2007-06-18 21:08:54 +00:00
Fred Kiefer
e344345023 Add MaxOS 10.4 methods and required ivars to NSButtonCell, implemented
then and use this methods. Also adjusted subclasses tothis changes.
Split off theming code for buttons into two methods.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24400 72102866-910b-0410-8b05-ffd578937521
2007-01-23 14:17:02 +00:00
Richard Frith-MacDonald
f17b3f5143 minor tool tip tweaks
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23751 72102866-910b-0410-8b05-ffd578937521
2006-10-04 08:07:21 +00:00
Richard Frith-MacDonald
65b175b904 Tweaks to avoid new compiler warnings with gcc-4.1 and some 64bit issues.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23126 72102866-910b-0410-8b05-ffd578937521
2006-07-04 21:31:49 +00:00
Quentin Mathe
24af0ec222 Fixed default title wrongly set with separator/space related toolbar items and toolbar items image unwittingly released (last partial fix for bug #15112)
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@22424 72102866-910b-0410-8b05-ffd578937521
2006-02-03 16:19:27 +00:00
Quentin Mathe
671bf31202 Modified NSToolbarItem to correctly init separator items and use the right item width in NSToolbarDisplayModeIconOnly (Fixes for bug #15112)
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@22169 72102866-910b-0410-8b05-ffd578937521
2005-12-15 16:59:29 +00:00
Richard Frith-Macdonald
7971a89c72 Coding style fixups
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@22019 72102866-910b-0410-8b05-ffd578937521
2005-11-16 11:34:25 +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
Quentin Mathe
f43c0326c6 Fixed the toolbar bug #11393
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@20503 72102866-910b-0410-8b05-ffd578937521
2004-12-30 14:02:00 +00:00
Alexander Malmberg
811ae4cf9f * Source/GSFontInfo.m (-defaultLineHeightForFont): Adjust line
height calculation.
	* Source/NSButtonCell.m (-drawInteriorWithFrame:inView:): Always
	initialize imageRect and titleRect. Adjust the calculations to match
	the new line height.
	(-cellSize): Always initialize imageRect and titleRect.
	* Headers/AppKit/NSCell.h (-_drawImage:inFrame:isFlipped:): Remove.
	* Source/NSCell.m (-_drawImage:inFrame:isFlipped:): Remove. Move code
	back ...
	(-drawInteriorWithFrame:inView:): ... here.
	* Source/NSToolbarItem.m (+initialize): Remove.
	(+cellClass): Add.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@20100 72102866-910b-0410-8b05-ffd578937521
2004-09-21 16:55:43 +00:00
Quentin Mathe
ef1010acc4 Added the possibility to rearrange toolbar items
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@19976 72102866-910b-0410-8b05-ffd578937521
2004-09-02 17:40:00 +00:00
Quentin Mathe
a901114168 Fixed the toolbar layout problem introduced by NSButtonCell changes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@19941 72102866-910b-0410-8b05-ffd578937521
2004-08-30 21:33:17 +00:00
Quentin Mathe
6576a77429 NSToolbar visibility issue corrected
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@19780 72102866-910b-0410-8b05-ffd578937521
2004-07-27 15:15:29 +00:00
Alexander Malmberg
5d0e3f4755 Fix memory leaks, -copyWithZone:, and use predefined attribute name variables.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@19773 72102866-910b-0410-8b05-ffd578937521
2004-07-24 20:51:39 +00:00
Quentin Mathe
6b519561bf Forgot to commit NSToolbarItem.m and NSToolbarItem.h
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@19694 72102866-910b-0410-8b05-ffd578937521
2004-07-07 23:21:10 +00:00
Quentin Mathe
031f8b56bc Toolbar improvements, include validation, border, memory leaks, selected item
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@19390 72102866-910b-0410-8b05-ffd578937521
2004-05-23 18:22:45 +00:00
Quentin Mathe
3963927f9c Added color customization to the toolbar and first part of the validation support
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@19372 72102866-910b-0410-8b05-ffd578937521
2004-05-18 19:35:58 +00:00
Gregory John Casamento
c35f6f8821 Corrected image name
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@19240 72102866-910b-0410-8b05-ffd578937521
2004-05-06 02:12:38 +00:00
Quentin Mathe
b48e7de1bc Sender for NSToolbarItem action corrected
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@19200 72102866-910b-0410-8b05-ffd578937521
2004-04-27 21:42:24 +00:00
Quentin Mathe
972d2de54c Added display mode and size mode support to the toolbar implementation
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@19085 72102866-910b-0410-8b05-ffd578937521
2004-04-13 13:12:53 +00:00
Gregory John Casamento
94563c4401 Corrected misspelling of separator in toolbar code.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@18716 72102866-910b-0410-8b05-ffd578937521
2004-02-29 04:39:48 +00:00
Gregory John Casamento
adb7cb3132 Submitting Quentin's changes for NSToolbar.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@18651 72102866-910b-0410-8b05-ffd578937521
2004-02-25 03:27:23 +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
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
a5bcb506e4 Updated variable names. Added more implementation.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17566 72102866-910b-0410-8b05-ffd578937521
2003-08-29 04:13:48 +00:00
Gregory John Casamento
a32c4a14df Added more of the implementation for toolbar/toolbaritem. Added check in GSClassSwapper to prevent an error case.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17532 72102866-910b-0410-8b05-ffd578937521
2003-08-24 17:22:11 +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
Gregory John Casamento
296489eaa6 Fixing minor issue w/ NSToolbarItem.m. I forgot to include NSImage.h
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@15369 72102866-910b-0410-8b05-ffd578937521
2002-12-29 05:44:28 +00:00
Gregory John Casamento
d0ee6298b7 Committing a fix for the "default" font issue. Also adding some of the things I have been working on for NSToolbar/NSToolbarItem.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@15368 72102866-910b-0410-8b05-ffd578937521
2002-12-29 05:38:29 +00:00
Gregory John Casamento
d2c4db3d9b Adding a number of changes. The skeleton implementations of NSToolbar and
NSToolbarItem as well as a number of miscellaneous things I have had laying
around for a while.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@13997 72102866-910b-0410-8b05-ffd578937521
2002-06-30 05:14:21 +00:00