Doug Simons
f3072e79af
set default _keyEquivalentModifierMask to 0; anything else breaks the most common case: Return
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/testplant_1@29002 72102866-910b-0410-8b05-ffd578937521
2009-11-14 03:17:36 +00:00
Fred Kiefer
ee49afcb9b
Changed all title methods on NSButtonCell to use the
...
super string value methods and redefine the local string value
methods to work with the object value.
Patch by Matt Rice <ratmice@gmail.com>.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27946 72102866-910b-0410-8b05-ffd578937521
2009-02-21 23:15:22 +00:00
Fred Kiefer
5ea2410eb2
Replace the key equivalent when it was set wrongly by Gorm.
...
Patch by Wolfgang Lux <wolfgang.lux@gmail.com>.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27579 72102866-910b-0410-8b05-ffd578937521
2009-01-12 14:02:05 +00:00
Richard Frith-MacDonald
62492a9158
Some moves towards making scrollers more themable
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27518 72102866-910b-0410-8b05-ffd578937521
2009-01-05 09:43:25 +00:00
Richard Frith-MacDonald
664c7cadd2
Some code for scroller theming
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27498 72102866-910b-0410-8b05-ffd578937521
2009-01-02 12:40:07 +00:00
Fred Kiefer
734a6c759d
Make the button redraw after setting the image.
...
Don't do anything when the same contents view gets set on the window
again.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27308 72102866-910b-0410-8b05-ffd578937521
2008-12-16 19:28:25 +00:00
Gregory John Casamento
7e2e7607b5
* Source/GSNibLoading.m
...
* Source/NSButtonCell.m
* Source/NSNibAXAttributeConnector.m
* Source/NSNibAXRelationshipConnector.m
* Source/NSNibBindingConnector.m
* Source/NSNib.m
* Source/NSProgressIndicator.m: Change to use new headers.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27189 72102866-910b-0410-8b05-ffd578937521
2008-12-02 07:27:14 +00:00
Fred Kiefer
f114baad28
Moved _sizeForBorderType() into GSTheme header and added more methods
...
for theme abstraction.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26836 72102866-910b-0410-8b05-ffd578937521
2008-09-08 18:59:48 +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
b4d065a9bf
Better NIB loading for NSWindow.
...
Ignore missing image in NSButtonCell drawing.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26591 72102866-910b-0410-8b05-ffd578937521
2008-06-02 10:35:42 +00:00
Fred Kiefer
155098ecd8
Add image position decoding and encoding.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26542 72102866-910b-0410-8b05-ffd578937521
2008-05-19 17:42:23 +00:00
Nicola Pero
680f0c94e4
Added back proper horizontal padding around autosized buttons that got lost with no explanations (probably a mistake) on 2007-01-23
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26366 72102866-910b-0410-8b05-ffd578937521
2008-03-20 10:06:12 +00:00
Fred Kiefer
40833fa7e5
Add direct check if the mouse is inside the cellFrame.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26021 72102866-910b-0410-8b05-ffd578937521
2008-02-03 19:32:07 +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
Gregory John Casamento
b6a8d2b7e3
Added code to encodeWithCoder: in NSButtonCell to allow encoding of previous version of the class to the archive.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@25415 72102866-910b-0410-8b05-ffd578937521
2007-08-25 02:36:02 +00:00
Fred Kiefer
2e12f2a37e
Adopt to changed values for _keyEquivalentModifierMask.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@25380 72102866-910b-0410-8b05-ffd578937521
2007-08-07 15:56:03 +00:00
Fred Kiefer
150f58a492
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
Fred Kiefer
d00b0fcb89
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
Fred Kiefer
77332bb584
Corrected and cleaned up focus ring drawing for cell classes.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24924 72102866-910b-0410-8b05-ffd578937521
2007-03-22 17:47:56 +00:00
Fred Kiefer
0530b571da
Draw round and circular bezel borders for button cells. Code by Nikolaus
...
Schaller <hns@computer.org>.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24415 72102866-910b-0410-8b05-ffd578937521
2007-01-25 13:11:49 +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
Sergii Stoian
be6dee6f99
* Source/GSTheme.m (-drawButton:view:style:state:): Call
...
[drawButton:withClip:] instead of [drawGreyBezel:withClip:] if
state is highlighted (e.g. scroller buttons).
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24388 72102866-910b-0410-8b05-ffd578937521
2007-01-19 20:13:04 +00:00
Richard Frith-MacDonald
dffc79cdfb
Merge in some theming changes
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24120 72102866-910b-0410-8b05-ffd578937521
2006-11-17 08:54:20 +00:00
Richard Frith-MacDonald
57435da7d5
tidyups and minor theme tiling updates.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23871 72102866-910b-0410-8b05-ffd578937521
2006-10-15 08:34:47 +00:00
Richard Frith-MacDonald
ed5990f599
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
Richard Frith-MacDonald
c7ab1a2a90
Some theme integration work
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23585 72102866-910b-0410-8b05-ffd578937521
2006-09-22 11:23:03 +00:00
Gregory John Casamento
569ceb5d66
* Source/NSButtonCell.m: Improvements in both initWithCoder: and
...
encodeWithCoder: utilize the setCellAttribute:to: method and
the cellAttribute: method to determine settings when saving
to a keyed archive.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23310 72102866-910b-0410-8b05-ffd578937521
2006-08-17 04:55:32 +00:00
Gregory John Casamento
bad637ff8e
Correct memory issue with NSClassSwapper, encode control view in the action cell, add comments.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23249 72102866-910b-0410-8b05-ffd578937521
2006-08-11 05:53:28 +00:00
Gregory John Casamento
59eedc6dac
Correct encoding of repeat and delay, since they are encoded as ints.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23227 72102866-910b-0410-8b05-ffd578937521
2006-08-09 06:27:58 +00:00
Gregory John Casamento
84d0296b74
Correction for GSNibCompatibility. Added coding to classes for keyed archiving.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23225 72102866-910b-0410-8b05-ffd578937521
2006-08-09 01:37:32 +00:00
Gregory John Casamento
48db9c7614
Correction for window size in -[NSWindowTemplate nibInstantiate]. Implemented encoding in encodeWithCoder: for some classes.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23207 72102866-910b-0410-8b05-ffd578937521
2006-08-06 04:32:16 +00:00
Gregory John Casamento
ae6072d62f
Additional changes from NibCompatibility.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@22960 72102866-910b-0410-8b05-ffd578937521
2006-05-20 22:25:54 +00:00
Gregory John Casamento
d68950d71a
Nib compatibility code merge.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@22957 72102866-910b-0410-8b05-ffd578937521
2006-05-20 22:12:46 +00:00
Quentin Mathe
89ae500738
Fixed the title lost which occurs on switching a button cell to NSNoImage image position (partial fix for #15112 )
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@22419 72102866-910b-0410-8b05-ffd578937521
2006-02-03 12:07:16 +00:00
Fabien Vallon
b7e760df84
Improved documentation
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@22105 72102866-910b-0410-8b05-ffd578937521
2005-11-25 18:26:08 +00:00
Fabien Vallon
0f2d2f8426
Improved documentation
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@22061 72102866-910b-0410-8b05-ffd578937521
2005-11-21 13:49:29 +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
Fred Kiefer
0aa987bab9
Small keyed decoding improvements.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@20768 72102866-910b-0410-8b05-ffd578937521
2005-02-21 00:59:32 +00:00
Quentin Mathe
82b7c49bb5
Fixed the possibility to call -setImagePosition: after -setImage: broke with the previous commit
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@20309 72102866-910b-0410-8b05-ffd578937521
2004-11-08 02:20:10 +00:00
Quentin Mathe
9ffc576add
Fixed NSButtonCell -image returns nil
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@20308 72102866-910b-0410-8b05-ffd578937521
2004-11-07 20:59:16 +00:00
Fred Kiefer
6ff377994a
Small improvements for keyed decoding.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@20242 72102866-910b-0410-8b05-ffd578937521
2004-10-21 21:01:36 +00:00
Fred Kiefer
5271b53ebe
Some more keyed decoding.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@20216 72102866-910b-0410-8b05-ffd578937521
2004-10-10 22:36:02 +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
Fred Kiefer
a15214f38d
Readded NSCell setType: patch with originally missing bit for NSButtonCell.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@20072 72102866-910b-0410-8b05-ffd578937521
2004-09-16 13:44: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
Alexander Malmberg
f28c2b56c5
Move text back down 2 point in NSImageAbove case.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@19865 72102866-910b-0410-8b05-ffd578937521
2004-08-11 19:39:32 +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
Sergii Stoian
cf5f059c65
Image dimming and gradient drawing added
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@19721 72102866-910b-0410-8b05-ffd578937521
2004-07-12 21:42:31 +00:00
Quentin Mathe
28db48ddfd
Added performClickWithFrame:inView: to NSCell
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@19005 72102866-910b-0410-8b05-ffd578937521
2004-04-02 21:34:37 +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