Commit graph

107 commits

Author SHA1 Message Date
dpsimons
3d9f597bca Fix problem with pull-down menu not allowing same item to be selected twice in a row
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31232 72102866-910b-0410-8b05-ffd578937521
2010-09-02 21:18:00 +00:00
dpsimons
ae51e23b36 fix problem of pulldown action not being called for correct cell, and being called twice on Windows
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31213 72102866-910b-0410-8b05-ffd578937521
2010-08-30 23:02:21 +00:00
wlux
9f1f939d7a Fix bug caused by the fix for #30025, which made it impossible to
programmatically change the selected item of some pop up buttons.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31158 72102866-910b-0410-8b05-ffd578937521
2010-08-15 20:28:06 +00:00
fredkiefer
26019a4955 Add more calls to synchronizeTitleAndSelectedItem. This should fix the
remaining cases of bug #30025.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31111 72102866-910b-0410-8b05-ffd578937521
2010-08-10 21:44:49 +00:00
wlux
9e1060fe35 Ensure that the appearance of an NSPopUpButton is not inadvertently
changed when the menu view of its menu is set.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30939 72102866-910b-0410-8b05-ffd578937521
2010-07-09 20:06:18 +00:00
wlux
8d78ce30b1 Swap meaning of NSMinYEdge and NSMaxYEdge for attaching a pull down
menu to its button to match their use in Cocoa. Recall that pop up
buttons use flipped geometry.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30808 72102866-910b-0410-8b05-ffd578937521
2010-06-22 07:56:22 +00:00
wlux
bc7dabba43 Fix display of pull down menus to not show their first item, which
holds the title, and fix the attachment of pull down menus to their
button. In addition, fix -setTitle: to actually set the title of a
pull down menu.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30807 72102866-910b-0410-8b05-ffd578937521
2010-06-22 07:34:31 +00:00
gcasa
ba0e9047b7 * Headers/Additions/GNUstepGUI/GSTheme.h: Added method
displayPopUpMenu:... to handle the display of the popup menus for
	themes.
	* Source/GSThemeMenu.m: Added default implementation.
	* Source/NSPopUpButtonCell.m: Call the displayPopUpMenu:... method
	in the method attachPopUpWithFrame:inView:.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30433 72102866-910b-0410-8b05-ffd578937521
2010-05-20 08:09:08 +00:00
fredkiefer
c06bffe250 Some more #include -> #import replacement.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30036 72102866-910b-0410-8b05-ffd578937521
2010-03-25 21:30:28 +00:00
fredkiefer
9426e71556 Yet another bit of #include -> #import replacement. Replace includes of Foundation.h.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30034 72102866-910b-0410-8b05-ffd578937521
2010-03-25 09:11:50 +00:00
fredkiefer
e845156611 Synchronise the title of a popup cell, when setting its object value.
This resolves an issue in SimpleAgenda. Perhaps this call needs to be
moved into one of the selection methods.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29713 72102866-910b-0410-8b05-ffd578937521
2010-02-24 09:32:35 +00:00
ericwa
3d1fb4f506 * Source/NSPopUpButtonCell.m (-selectItem:): Mark the previously
selected item as needing display. This fixes the 'popup' indicators
not being erased.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29502 72102866-910b-0410-8b05-ffd578937521
2010-02-07 21:15:06 +00:00
fredkiefer
aa8a27e064 New method used by Apple NIB files.
Patch by Doug Simons <doug@riverrock.org>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28204 72102866-910b-0410-8b05-ffd578937521
2009-04-11 20:28:08 +00:00
fredkiefer
60af32a0f7 Add backend support for the NSWindow child mechanism and use it for
popup buttons.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27719 72102866-910b-0410-8b05-ffd578937521
2009-01-29 09:37:30 +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
rfm
a3849e0898 Make code a little easier to read (and a tiny bit more efficient).
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27452 72102866-910b-0410-8b05-ffd578937521
2008-12-29 12:28:50 +00:00
gcasa
2d2b5d17e0 * Source/GSNibLoading.m: Read objects/accessibility and oids
maps if we are in a gui builder so that data is accessible.
        * Source/NSActionCell.m: Don't archive target/action if they
        have no values.
        * Source/NSMenu.m: Only archive as "_NSMainMenu" if it has
        no parent and is not owner by a popup.
        * Source/NSPopUpButtonCell.m: Archive the default menu item
        which will show when this popup is displayed.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27363 72102866-910b-0410-8b05-ffd578937521
2008-12-21 03:11:08 +00:00
fredkiefer
7f9c5cf331 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
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
bbf332ec68 Change version for encoding. Set preferred edge and arrow
position when decoding old gorm files. 
New helper method for Gorm.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26092 72102866-910b-0410-8b05-ffd578937521
2008-02-18 20:09:16 +00:00
fredkiefer
0cf68500dd Patch by Matt Rice to get popup buttons that support
setUsesItemFromMenu: set to NO.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26036 72102866-910b-0410-8b05-ffd578937521
2008-02-07 19:12:59 +00:00
fredkiefer
f76e07d9af Add support for popup preferred edge.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26023 72102866-910b-0410-8b05-ffd578937521
2008-02-04 14:56:15 +00:00
fredkiefer
1da7d6f33f Allow table views without header.
Popup buttons no longer display values from old menus after a change.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@25702 72102866-910b-0410-8b05-ffd578937521
2007-12-07 18:46:27 +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
ac563421a4 Don't return zero size, when there are no items.
Based on patch by Andreas Höschler <ahoesch@smartsoft.de>. 


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@25511 72102866-910b-0410-8b05-ffd578937521
2007-10-02 21:10:40 +00:00
fredkiefer
83dba0e1a3 Select new item when there isn't any selection.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@25474 72102866-910b-0410-8b05-ffd578937521
2007-09-10 11:32:56 +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
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
f63c0258d2 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
ratmice
fea5ad53ba * Source/NSTableView.m (-mouseDown:): Return early after tracking a
cell which prefersTrackingUntilMouseUp.
        * Source/NSPopUpButtonCell.m (+prefersTrackingUntilMouseUp:): Return
        yes.
        (-trackMouse:inRect:ofView:untilMouseUp:): Return yes or no
        depending on whether the mouse went up inside the menu or not.
        Fixes bug #18946



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24465 72102866-910b-0410-8b05-ffd578937521
2007-02-04 12:53:49 +00:00
rfm
cc3cafa874 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
gcasa
971a8a97fa * Source/NSApplication.m: Remove keys from initWithCoder: and
encodeWithCoder:.
	* Source/NSCell.m: Initialize the cell based on content in 
	initWithCoder:.
	* Source/NSFormCell.m: Removed unnecessary decoding of NSContents key
	in initWithCoder: since it is already done in NSCell.m.
	* Source/NSMatrix.m: initWithCoder:/encodeWithCoder: added 
	autosizesCells flag and clear flags which are not used
	prior to encoding.
	* Source/NSPopUpButtonCell.m: Implemented encoding in 
	encodeWithCoder:.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23318 72102866-910b-0410-8b05-ffd578937521
2006-08-20 16:18:31 +00:00
gcasa
d5e4858a60 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
gcasa
3e0972f30d Updated documentation in .m and .h files.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@22716 72102866-910b-0410-8b05-ffd578937521
2006-03-26 17:58:19 +00:00
fredkiefer
2889c0f748 Applied two small patches.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@22442 72102866-910b-0410-8b05-ffd578937521
2006-02-06 15:52:49 +00:00
FredKiefer
584ab86e01 Small patches and a missing CVS entry.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@22346 72102866-910b-0410-8b05-ffd578937521
2006-01-22 21:23:44 +00:00
stoyan
5210413a1d Dismiss the popup after mouse tracking done. This is for the cases when mouse up event occurs outside of popup
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@21643 72102866-910b-0410-8b05-ffd578937521
2005-08-16 23:22:38 +00:00
fedor
d983c3e99f * Source/NSPopUpButtonCell.m (-setObjectValue:): Use
respondsToSelector.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@21323 72102866-910b-0410-8b05-ffd578937521
2005-06-17 14:55:48 +00:00
FredKiefer
4987498a4c Corrected dismissing of popup button cell menu.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@21270 72102866-910b-0410-8b05-ffd578937521
2005-05-30 19:19:42 +00:00
FredKiefer
2e231a94c7 Make sure popup button cells wont get notifications after being dealloceated.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@21266 72102866-910b-0410-8b05-ffd578937521
2005-05-27 13:41:46 +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
1fd5ce063a Fixed bug #12680 and further clean up of NSPopupButtonCell.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@21122 72102866-910b-0410-8b05-ffd578937521
2005-04-17 21:25:32 +00:00
FredKiefer
fbab71c27b Moved mouse interaction of popup button from control to cell.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@20719 72102866-910b-0410-8b05-ffd578937521
2005-02-14 18:33:46 +00:00
alexm
b8834cbfeb 2005-01-24 16:57 Alexander Malmberg <alexander@malmberg.org>
* Source/NSPopUpButtonCell.m (-synchronizeTitleAndSelectedItem): For
	non-pulldowns, make sure the selected item and the highlighted item
	are the same.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@20610 72102866-910b-0410-8b05-ffd578937521
2005-01-24 16:14:36 +00:00
qmathe
ac458d3e00 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
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
7f0f23fc00 More keyed decoding.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@18541 72102866-910b-0410-8b05-ffd578937521
2004-02-05 00:36:04 +00:00
FredKiefer
1033677a1e Undid the tracking of changes for the menu item. Changed [dealloc]
to not call clean up methods as these caused segmentation faults
in GNUMail.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17696 72102866-910b-0410-8b05-ffd578937521
2003-09-21 20:57:24 +00:00
FredKiefer
b8ea1f308a Corrected bug in previous change. In [itemAtIndex:] the index 0
was handled wrong.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17668 72102866-910b-0410-8b05-ffd578937521
2003-09-14 10:40:06 +00:00
FredKiefer
15cc035cca According to Gregory John Casamento <greg_casamento@yahoo.com> the
popup button does not change its enable state when the selected item
does. To adopt this behaviour all setEnable: calls have been
removed and one in [initWithCoder:] added that enables the popup
for all old encodings.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17666 72102866-910b-0410-8b05-ffd578937521
2003-09-14 00:33:05 +00:00