Gregory John Casamento
7023c7d06d
Add remaining changes contributed by testplant.
2021-10-27 15:18:23 -04:00
Gregory John Casamento
d41635855f
Force tabViewType to be something we support. To be fixed in a later branch to add other renderings for tabview since this branch is specific to controllers
2020-07-26 05:37:25 -04:00
fredkiefer
c66019024f
* Source/GSXib5KeyedUnarchiver.m (alternateName:): Be more careful
...
when chopping of part of the name.
2020-07-03 19:37:45 +02:00
fredkiefer
00bb2396a6
Diverse imporvements to get my XIB5 test application running.
2020-01-18 16:03:24 +01:00
Eric Wasylishen
1fdf58e506
* Headers/Additions/GNUstepGUI/GSTheme.h: Add -tabViewContentRectForBounds:
...
method.
* Source/GSThemeDrawing.m:
* Source/NSTabView.m: Move the -contentRect implementation to GSTheme
so we can delegate to GSDrawTiles, if used.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37234 72102866-910b-0410-8b05-ffd578937521
2013-10-15 07:27:44 +00:00
Eric Wasylishen
fc5c32e1b3
* Source/NSTabView.m (-initWithCoder:): Make non-keyed archives
...
call -selectTabViewItem: to select the current tab at unarchiving
time (keyed archives were already doing this.)
Comment: "N.B.: As a side effect, this discards the subview frame
and sets it to [self contentRect].
This is desirable because the subview frame will be different
depending on whether the arcive is from Cocoa or GNUstep,
and which GNUstep theme was active at save time.
However, it does mean that the tab view contents should be
prepared to resize slightly."
The immediate need for this is tab views were changed to use
flipped coordinates, so the subview frames stored in existing
archives are now in the wrong coordinate system.
This is essentially the same idea as NSScrollView calling -tile at the
end of -initWithCoder: so I hope it makes sense for tab views too.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37232 72102866-910b-0410-8b05-ffd578937521
2013-10-15 06:17:36 +00:00
Eric Wasylishen
74fa44060f
* Source/NSTabView.m: Fix incorrect content rect now that view
...
is flipped.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37209 72102866-910b-0410-8b05-ffd578937521
2013-10-08 20:30:28 +00:00
Eric Wasylishen
0786f621f2
* Source/NSTabView.m: Uncomment - (BOOL) isFlipped { return YES; }
...
* Source/GSThemeDrawing.m: Change tab drawing to assume flipped
coordinates
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37206 72102866-910b-0410-8b05-ffd578937521
2013-10-08 17:35:44 +00:00
Fred Kiefer
a070f43ca7
* Source/NSTabView.m (-minimumSize, -contentRect): Make the
...
* values
here consistent with the code in GSThemeDrawing.
* Source/GSThemeDrawing.m (-drawTabViewRect:...): Remove useless
line of code.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@36184 72102866-910b-0410-8b05-ffd578937521
2013-02-22 09:26:55 +00:00
Fred Kiefer
65cac93a7b
* Source/NSTabView.m (-dealloc): Reset _selected to nil at top of
...
dealloc.
* Source/NSBox.m(-drawRect:, -initWithCoder:): Implement
transparent handling for custom boxes.
Patch by Marcian Lytwyn <marcian.lytwyn@advcsi.com>
* Source/NSTabView.m (-selectTabViewItem:): Remove duplicated
code.
* Source/NSTabView.m (-removeTabViewItem:): Retain the item
while removing it.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@35773 72102866-910b-0410-8b05-ffd578937521
2012-11-01 00:06:46 +00:00
Fred Kiefer
ce25719c03
* Source/GSThemeDrawing.m (-drawTabViewRect:...selectedItem:),
...
* Source/NSTabView.m (-drawRect:): Move the select logic from
theme into normal code.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@35686 72102866-910b-0410-8b05-ffd578937521
2012-10-14 19:21:55 +00:00
Gregory John Casamento
5b8d9117c5
Merges from the testplant branch for NSTabView, GSXibLoader.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@35661 72102866-910b-0410-8b05-ffd578937521
2012-10-09 17:29:51 +00:00
Wolfgang Lux
c29763d8cc
Improve keyboard navigation by automatically computing a key view loop
...
for a window (and tab view item). This implicit key view is created
when a window is made key and does not have an explicit key view loop,
which is detected by checking the initial first responder of the
window.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@35632 72102866-910b-0410-8b05-ffd578937521
2012-10-04 09:20:08 +00:00
Gregory John Casamento
22f55b8c28
* Headers/AppKit/NSTableView.h: Add _isValidating
...
* Source/NSCell.m (+initialize): Expose title binding.
* Source/NSOpenPanel.m (-runModal): Use _directory if it is set.
* Source/NSTableView.m (-validateEditing): Check _isValidating to
prevent recursive calls into validateEditing.
* Source/NSTabView.m (-initWithCoder:): Set _selected_item to
NSNotFound.
* Source/NSView.m (-addSubview:): Do not throw an exception when
adding a nil subview, just ignore it. This matches behavior on
Cocoa.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@35562 72102866-910b-0410-8b05-ffd578937521
2012-09-11 04:16:51 +00:00
Fred Kiefer
323e1dc02f
* Source/NSTabView.m (+initialize): Increase version number.
...
* Source/NSTabView.m (-encodeWithCoder:, -decodeWithCoder:):
Clean up last patch.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@35054 72102866-910b-0410-8b05-ffd578937521
2012-04-10 21:42:25 +00:00
Sebastian Reitenbach
e65c5bc665
some int/NSInteger to NSUInteger changes to better
...
match return values of methods
OK Fred Kiefer
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@35052 72102866-910b-0410-8b05-ffd578937521
2012-04-10 07:16:36 +00:00
Fred Kiefer
8ad4aa86c4
Replace some occurences of int with NSInteger
...
and unsigned with NSUInteger. This allows to recompile gui on
64 bit systems after the change to NSNotFound in base.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@34312 72102866-910b-0410-8b05-ffd578937521
2011-12-17 17:16:09 +00:00
Fred Kiefer
ccbfc5c0c0
Add some bindings for NSTabView.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@34112 72102866-910b-0410-8b05-ffd578937521
2011-11-02 23:16:38 +00:00
Nicola Pero
f80e259048
Explicitly encode/decode enumerated types as 'int' which is what all
...
the existing archives use (even if it is incorrect as in many cases
the types are actually 'unsigned int')
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31785 72102866-910b-0410-8b05-ffd578937521
2010-12-27 11:57:04 +00:00
Gregory John Casamento
8ed87de2f2
Added method to draw tab view to theme.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31654 72102866-910b-0410-8b05-ffd578937521
2010-11-26 18:08:58 +00:00
Fred Kiefer
99e273a57d
few compiler warning fixes plus a lot of #import replacement.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30448 72102866-910b-0410-8b05-ffd578937521
2010-05-24 10:48:14 +00:00
Gregory John Casamento
4828cb7684
* Source/NSTabView.m: Autoresize subviews when loaded from the nib
...
and set the mask to the make height and width resizable when the
tab is selected
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28197 72102866-910b-0410-8b05-ffd578937521
2009-04-10 18:03:45 +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
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
be4091bbf7
Add missing isFlipped methods to controls.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@25473 72102866-910b-0410-8b05-ffd578937521
2007-09-10 11:12:44 +00:00
Fred Kiefer
a66882b17b
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
Fred Kiefer
4df49881f2
Change values for NSTabViewType enumerator.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24806 72102866-910b-0410-8b05-ffd578937521
2007-03-07 23:15:07 +00:00
Fred Kiefer
f6edff004f
Initialise _selected_item. Patch by Wolfgang Lux
...
<wolfgang.lux@gmail.com>.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24698 72102866-910b-0410-8b05-ffd578937521
2007-02-27 10:47:52 +00:00
Fred Kiefer
5f887135f2
Improve drawing with themes and cleanup.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24669 72102866-910b-0410-8b05-ffd578937521
2007-02-20 22:04:45 +00:00
Richard Frith-MacDonald
7b45601256
Tidy icon usage
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23630 72102866-910b-0410-8b05-ffd578937521
2006-09-26 18:29:11 +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
f4e0785e42
* Source/NSTabView.m: Corrections in initWithCoder: and
...
encodeWithCoder: to properly encode items and tabview orientation.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23298 72102866-910b-0410-8b05-ffd578937521
2006-08-16 04:54:25 +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
Fred Kiefer
3ebbcb3cab
Small patch to NSTabView. by Andreas Höschler.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@22976 72102866-910b-0410-8b05-ffd578937521
2006-05-23 21:15:14 +00:00
Nicolas Roard
a2f590e4b6
Updated images for the tabviews. They are now transparent;
...
the background is thus filled in the code using [NSColor controlBackgroundColor].
That way the current color scheme is followed.
Thanks to Ingolf Jandt <i.jandt@web.de> for the images.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@22686 72102866-910b-0410-8b05-ffd578937521
2006-03-19 19:41:31 +00:00
Fred Kiefer
37be3efd3a
GUI patches by Andreas H��schler.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@22119 72102866-910b-0410-8b05-ffd578937521
2005-11-29 00:16:10 +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
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
Adrian Robert
409e8d2388
NSTabView fixes to bring in line w/os x behavior for display update and zero-tabs case; NSColorList capability added to read text color files, and corrected interp of arg to -initWithNameFromFile
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@20334 72102866-910b-0410-8b05-ffd578937521
2004-11-10 04:36:23 +00:00
Fred Kiefer
f962706ef0
Use GSDrawingFunctions instead of Function.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@19483 72102866-910b-0410-8b05-ffd578937521
2004-06-07 23:54:25 +00:00
Fred Kiefer
154110be23
Small drawing cleanup.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@18567 72102866-910b-0410-8b05-ffd578937521
2004-02-08 23:58:41 +00:00
Fred Kiefer
32e72be592
More keyed decoding. Button cell now doesn't fill interior.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@18564 72102866-910b-0410-8b05-ffd578937521
2004-02-08 20:33:07 +00:00
Fred Kiefer
26c82d8aef
Removed compiler warning about signed/unsigned comparision.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17005 72102866-910b-0410-8b05-ffd578937521
2003-06-23 15:50:46 +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
Michael Silva
ffdd4dc955
implemented selectTabViewItemWithIdentifier:
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16640 72102866-910b-0410-8b05-ffd578937521
2003-05-06 04:26:37 +00:00
Adam Fedor
e7394a8320
Check array count
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@15157 72102866-910b-0410-8b05-ffd578937521
2002-11-27 21:19:53 +00:00
Richard Frith-Macdonald
af70a6521a
Tidied method argument naming.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14763 72102866-910b-0410-8b05-ffd578937521
2002-10-13 13:50:06 +00:00
Pierre-Yves Rivaille
ecd458c9cd
Source/NSTabVIew.m
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14228 72102866-910b-0410-8b05-ffd578937521
2002-08-02 09:46:28 +00:00