Commit graph

75 commits

Author SHA1 Message Date
ericwa
72f78b8fe7 * Source/NSMenuItemCell.m: Add missing -retain for key
equivalent modifier strings


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32583 72102866-910b-0410-8b05-ffd578937521
2011-03-14 20:24:54 +00:00
fredkiefer
dfb02833a0 Make key equivalent modifier string user adjustable by getting them from the defaults.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32579 72102866-910b-0410-8b05-ffd578937521
2011-03-14 15:17:00 +00:00
fredkiefer
3cdc68a09b Replace #include -> #import
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32451 72102866-910b-0410-8b05-ffd578937521
2011-03-04 11:33:22 +00:00
gcasa
48f93c4462 * Source/NSMenuItemCell.m: Implement drawing a line in the menu
separator item for the Windows95 and Mac modes. 


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31797 72102866-910b-0410-8b05-ffd578937521
2010-12-29 17:21:15 +00:00
gcasa
07918eb83e * Source/GSThemeMenu.m: Changes for compiling with older compilers.
* Source/GSWindowDecorationView.m: Move the view up a little.
	* Source/NSMenuItemCell.m: Experimental changes for drawing
	separator items.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31790 72102866-910b-0410-8b05-ffd578937521
2010-12-27 21:41:54 +00:00
ericwa
ef6546bf19 Fix more unsigned int / int cases that should be NS[U]Integer
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31354 72102866-910b-0410-8b05-ffd578937521
2010-09-16 02:51:30 +00:00
fredkiefer
a67707b682 Fix up teh includes to compile again after latest changes to base. Still
plenty of warnings and the result isn't working at least on 64 bit
machines :-(


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29685 72102866-910b-0410-8b05-ffd578937521
2010-02-20 10:40:44 +00:00
rfm
e901475983 api cleanup
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29039 72102866-910b-0410-8b05-ffd578937521
2009-11-19 20:37:43 +00:00
rfm
3777fc7194 theming cleanups
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29024 72102866-910b-0410-8b05-ffd578937521
2009-11-16 14:28:11 +00:00
hansfbaier
a6ac9e24c7 make the arrow image in NSMenuItemCell themeable
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29001 72102866-910b-0410-8b05-ffd578937521
2009-11-14 02:56:29 +00:00
fredkiefer
83e26ad83f Extract a few more drawing and colour methods to GSTheme.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28937 72102866-910b-0410-8b05-ffd578937521
2009-11-02 11:48:22 +00:00
fredkiefer
c55922adaa * Source/NSMenuItemCell.m (-drawStateImageWithFrame:inView:,
-drawTitleWithFrame:inView:): Remove specific drawing code, use
  general code instead.
* Source/NSMenuItemCell.m (-drawingRectForBounds:): Add call to
  calcSize.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28505 72102866-910b-0410-8b05-ffd578937521
2009-08-21 20:13:59 +00:00
gcasa
94d202c31a * Source/NSMenuItemCell.m: encode menu item in encodeWithCoder:
method.
	* Source/NSMenu.m: Add code to handle NSNoAutoenable
	* Source/NSPopUpButtonCell.m: Decode/encode selected index
	* Source/NSPrintInfo.m: Set orientation after the page size is 
	known, since it has no effect when done earlier.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27568 72102866-910b-0410-8b05-ffd578937521
2009-01-10 03:49:43 +00:00
fredkiefer
90cc29e4e5 Ignore function keys as key equivalents.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27297 72102866-910b-0410-8b05-ffd578937521
2008-12-15 22:42:51 +00:00
fedor
ce41d782c1 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
fredkiefer
e25cceb710 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
fredkiefer
1d293756e0 Add new MacOSX 10.4 methods and constants to NSWindow. Requires
recompilation of all applications!


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@25469 72102866-910b-0410-8b05-ffd578937521
2007-09-09 12:19:01 +00:00
fredkiefer
0a607a5fbe 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
fredkiefer
73a1bc1df3 Just white space clean-up.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@25094 72102866-910b-0410-8b05-ffd578937521
2007-04-29 11:29:33 +00:00
fredkiefer
0ccb895f2b Extract cell border drawing into helper method.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24928 72102866-910b-0410-8b05-ffd578937521
2007-03-23 22:34:02 +00:00
fredkiefer
294089db95 Different patches by Andreas Höschler <ahoesch@smartsoft.de>.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24846 72102866-910b-0410-8b05-ffd578937521
2007-03-11 17:07:44 +00:00
rfm
054846e3ea Minor menu adjustments.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24601 72102866-910b-0410-8b05-ffd578937521
2007-02-16 11:33:53 +00:00
fredkiefer
6f978c62be Removed duplicate ivar _backgroundColor and started to clean up code in
this file. Better support for key equivalent display.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24420 72102866-910b-0410-8b05-ffd578937521
2007-01-27 14:15:20 +00:00
fredkiefer
200770a3e5 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
gcasa
56c7361744 * Source/NSMenuItemCell.m: Correct menu highlighting issue
found by applying changes suggested by Jeff Teunissen.   This
        change causes the menu to use the correct text color when
        highlighted.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23916 72102866-910b-0410-8b05-ffd578937521
2006-10-20 01:21:38 +00:00
rfm
8bf3cdc94e theme reorganisation/tidy up
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23586 72102866-910b-0410-8b05-ffd578937521
2006-09-22 11:53:40 +00:00
rfm
dccf635fb6 Don't try to draw arrow if image does not exist
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23486 72102866-910b-0410-8b05-ffd578937521
2006-09-13 06:20:28 +00:00
rfm
749c4dac64 Minor tidyups of horizontal menu integration.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@22429 72102866-910b-0410-8b05-ffd578937521
2006-02-05 07:43:04 +00:00
rfm
0ed3cbf57b Integrate horizontal main menu support.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@22426 72102866-910b-0410-8b05-ffd578937521
2006-02-04 19:58:55 +00:00
fedor
db3c52eab8 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
FredKiefer
eb370a013c Allow cells to print even when not connected to a window.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@21249 72102866-910b-0410-8b05-ffd578937521
2005-05-22 21:12:08 +00:00
alexm
cb93530d65 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
FredKiefer
7a53fefbf0 Made images easier to be changed by themes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@18647 72102866-910b-0410-8b05-ffd578937521
2004-02-24 19:31:33 +00:00
FredKiefer
ce85a0cc0f Two more classes now have relavtive colour drawing.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@18576 72102866-910b-0410-8b05-ffd578937521
2004-02-11 00:01:20 +00:00
FredKiefer
706213590f Corrected bezel drawing and keyed archiving of popup menu item cell.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@18560 72102866-910b-0410-8b05-ffd578937521
2004-02-08 13:07:24 +00:00
FredKiefer
aa281ff436 [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
ayers
9732999fd8 Header reorganization - Please refer to ChangeLog
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17408 72102866-910b-0410-8b05-ffd578937521
2003-07-31 23:52:10 +00:00
michael
766b747938 Cell modifications to remove unecessary images/color changes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17406 72102866-910b-0410-8b05-ffd578937521
2003-07-31 20:47:00 +00:00
fedor
fc402789db 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
stoyan
55463a8ab2 Moved code from setMenuView to calcSize
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16480 72102866-910b-0410-8b05-ffd578937521
2003-04-17 11:59:32 +00:00
stoyan
61bb2e5abd removed pad adding between state image and text
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16259 72102866-910b-0410-8b05-ffd578937521
2003-03-25 15:35:51 +00:00
nico
db444e9cab Do not display the key equivalent if owned by a popup, and drawing the
popup small image on the right


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@15883 72102866-910b-0410-8b05-ffd578937521
2003-02-05 04:06:16 +00:00
nico
2177ef847e Lock focus / unlock focus optimizations and fixes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@15839 72102866-910b-0410-8b05-ffd578937521
2003-02-01 05:10:00 +00:00
FredKiefer
d20c7fb4ed Removed unneeded includes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@15004 72102866-910b-0410-8b05-ffd578937521
2002-11-17 18:38:34 +00:00
nico
eda67fbdab Added missing #incldue
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@13309 72102866-910b-0410-8b05-ffd578937521
2002-04-02 11:35:39 +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
b98809dc01 Added code to decode old cells as well because decoding the popup button needs
it


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12767 72102866-910b-0410-8b05-ffd578937521
2002-02-25 20:07:45 +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
6db01c15c7 Fixed for drawing with no state image
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12543 72102866-910b-0410-8b05-ffd578937521
2002-02-14 13:36:37 +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