Fred Kiefer
4ad217d5c3
* Source/NSMenu.m: Rename method on NSMenuPanel for the Wayland
...
backend to -_menu to keep it apart from the already existing method
-menu on NSResponder.
* Source/NSSplitView.m: Correct decoded integer type.
2021-12-26 14:50:50 +01:00
Gregory John Casamento
1d3f33b694
Restore older behavior for version 0 of NSSplitView. The previous change broke some older .gorm files.
2021-12-01 19:42:40 -05:00
Gregory John Casamento
d20fa6cc61
Make sure that the setDividerStyle: mthod is called only once when decoding from a gorm file
2021-11-18 18:01:45 -05:00
Gregory John Casamento
334e26eeb0
Add support for Thick/Thin/PaneSplitter NSSplitView settings
2021-11-15 10:20:33 -05:00
Gregory John Casamento
8ac4bf7547
NSSplitView, use CGFloat to encode _draggedBarWidth
2021-11-15 09:52:26 -05:00
Gregory Casamento
aae4b5897d
Use macro for encoding and decoding NSInteger.
2021-11-15 09:52:26 -05:00
Gregory Casamento
963938923b
Make some of the updates suggested by fred.
2021-11-15 09:52:26 -05:00
Gregory John Casamento
f88f70ca17
Implement arrangesAllSubview and other related methods.
2021-11-15 09:52:26 -05:00
Gregory John Casamento
54e555bc33
Add support for dividerThickness and bump version of NSSplitView to 1
2021-11-15 09:52:26 -05:00
Fred Kiefer
8944e46035
* Source/NSSplitView.m (-setAutosaveName:): Treat an empty
...
autosaveName as nil to fix problem with some nibs.
Patch by Doug Simons <doug.simons@testplant.com>
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38889 72102866-910b-0410-8b05-ffd578937521
2015-08-16 19:39:25 +00:00
Fred Kiefer
d454877a79
* Source/NSSplitView.m: Be sure to adjust subviews before
...
setting divider position. Otherwise, adjustSubviews will wipe out the
setting.
Patch by Doug Simons <doug.simons@testplant.com>
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38626 72102866-910b-0410-8b05-ffd578937521
2015-06-12 14:36:15 +00:00
Sebastian Reitenbach
6d5a0cc236
A bunch of format string fixes and some casts to force formats
...
No objections from Fred Kiefer ;)
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38569 72102866-910b-0410-8b05-ffd578937521
2015-05-26 17:15:16 +00:00
Riccardo Mottola
04f1819d3c
silence more warnings
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37102 72102866-910b-0410-8b05-ffd578937521
2013-09-17 23:19:12 +00:00
Fred Kiefer
f078b2daaf
* Headers/AppKit/NSSplitView.h
...
* Source/NSSplitView.m: Change to CGFloat, NSUInteger and NSInteger.
Patch partly by Sebastian Reitenbach <sebastia@l00-bugdead-prods.de>
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@36109 72102866-910b-0410-8b05-ffd578937521
2013-02-10 21:32:07 +00:00
Eric Wasylishen
a92d331704
* Source/NSSplitView.m (adjustSubviews): Use centerScanRect to
...
give subviews pixel-aligned frames.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@35199 72102866-910b-0410-8b05-ffd578937521
2012-06-13 06:30:42 +00:00
Eric Wasylishen
a900e2f5cb
* Headers/AppKit/NSSplitView.h:
...
* Source/NSSplitView.m: Add support for
splitView:shouldAdjustSizeOfSubview: delegate method.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@35002 72102866-910b-0410-8b05-ffd578937521
2012-03-27 04:32:57 +00:00
Fred Kiefer
4b080ec8b8
Declare a few MacOSX 10.5 methods and make
...
the background of the NSSplitView transparent by default.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33139 72102866-910b-0410-8b05-ffd578937521
2011-05-27 08:35:24 +00:00
Eric Wasylishen
d84b435d98
* Source/NSSplitView.m: Use resize cursors
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33040 72102866-910b-0410-8b05-ffd578937521
2011-05-15 04:24:20 +00:00
Fred Kiefer
b7d056ae43
Removed dead assignments found by static code analyser.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32551 72102866-910b-0410-8b05-ffd578937521
2011-03-13 15:26:20 +00:00
Fred Kiefer
2d01942e4b
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
Quentin Mathe
a7ca2b775f
Replaced _rFlags.flipped_view use with -isFlipped and deprecated
...
_rFlagsType.flipped_view.
Still needs some work to automatically invalidate coordinates when the
flipping changes e.g. between two drawing sessions.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31233 72102866-910b-0410-8b05-ffd578937521
2010-09-03 08:21:52 +00:00
Eric Wasylishen
ec9b01146a
* Source/NSSplitView.m (-adjustSubviews):
...
Call setFrame: on subviews rather than setFrameSize: followed
by setFrameOrigin:, so that the subviews never have an inconsistent
frame (old origin + new size).
This was messing up cases with NSOpenGLView's inside split views,
(e.g. usr-apps/examples/gui/MyGL) because the NSOpenGLView,
when notified of its size changing, was using the invalid origin.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31030 72102866-910b-0410-8b05-ffd578937521
2010-07-26 01:54:24 +00:00
Gregory John Casamento
8f800dd3ed
* Source/NSSplitView.m: In mouseDown: initialize p and op to
...
NSZeroPoint to prevent compiler warning.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30475 72102866-910b-0410-8b05-ffd578937521
2010-05-29 15:52:29 +00:00
Fred Kiefer
63638ee055
Remove compiler warnings from clang.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30117 72102866-910b-0410-8b05-ffd578937521
2010-04-10 17:48:46 +00:00
Fred Kiefer
c05581a005
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
Richard Frith-MacDonald
28e25fe2db
Fix storing of splitter locations
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29072 72102866-910b-0410-8b05-ffd578937521
2009-11-27 09:22:57 +00:00
Nicolas Roard
242eb12644
Add a live resize for splitviews. Users can revert to the old behaviour
...
by doing: defaults write NSGlobalDomain GSUseGhostResize YES
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28291 72102866-910b-0410-8b05-ffd578937521
2009-05-22 01:20:07 +00:00
Gregory John Casamento
cdbc241fc0
* Source/NSSplitView.m: Set subviews to resize when loaded from
...
the nib.
* Source/NSView.m: Partial revert of previous change.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28201 72102866-910b-0410-8b05-ffd578937521
2009-04-10 19:00:20 +00:00
Gregory John Casamento
900a2f4040
Resize the subviews of the splitview.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28198 72102866-910b-0410-8b05-ffd578937521
2009-04-10 18:05:19 +00:00
Fred Kiefer
61d7e0d4fe
Add 10.5 methods and new ivar.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28184 72102866-910b-0410-8b05-ffd578937521
2009-04-07 20:16:53 +00:00
Sergii Stoian
2c1370226f
* Source/NSSplitView.m (-mouseDown:): When checking if divider
...
position also check orientaion for _isVertical == NO situation.
This fix avoids situation when split view is vertical, postion
changed but method exists after next 'else if' check.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28181 72102866-910b-0410-8b05-ffd578937521
2009-04-06 21:55:04 +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
Adam Fedor
487fdc6524
(-adjustSubviews): Just return when there are no subviews.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26496 72102866-910b-0410-8b05-ffd578937521
2008-05-08 03:58:59 +00:00
Nicola Pero
4f48690360
Fixed slow drift of the divider of a splitview when doing a sequence of resizings
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26424 72102866-910b-0410-8b05-ffd578937521
2008-04-01 23:14:17 +00:00
Nicola Pero
82d086b439
Implemented autosaveName for splitviews - a cool addition from a user perspective
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26420 72102866-910b-0410-8b05-ffd578937521
2008-04-01 01:37:52 +00:00
Nicola Pero
190c13dca9
Small tidyup in NSSplitView -adjustSubviews
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26419 72102866-910b-0410-8b05-ffd578937521
2008-04-01 00:39:06 +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
b22686df4d
Added new connectors and implemented keyed coding in split view.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@25520 72102866-910b-0410-8b05-ffd578937521
2007-10-07 03:04:39 +00:00
Fred Kiefer
e1cb2b75ef
Implement -displayRectIgnoringOpacity:inContext: instead of the two old
...
display methods.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@25477 72102866-910b-0410-8b05-ffd578937521
2007-09-11 13:13:47 +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
Gregory John Casamento
6dc3d8fd4b
Keyed encoding changes in initWithCoder:
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23155 72102866-910b-0410-8b05-ffd578937521
2006-07-10 04:13:13 +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
Sergii Stoian
c728573e22
Add forgotten saving old position
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@21646 72102866-910b-0410-8b05-ffd578937521
2005-08-17 12:53:17 +00:00
Sergii Stoian
f00ec3ca2b
Don't try to resize subviews if divider positon wasn't changed
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@21642 72102866-910b-0410-8b05-ffd578937521
2005-08-16 23:22:05 +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
Alexander Malmberg
ad2419e484
2005-01-21 21:43 Alexander Malmberg <alexander@malmberg.org>
...
Various whitespace cleanups, comment type fixes, and changes
to avoid warnings from recent versions of gcc.
* Headers/Additions/GNUstepGUI/GSToolbar.h (-_toolbars): Declare.
* Source/NSWindow+Toolbar.m: Remove conflicting declaration of
[NSToolbar -_toolbars].
* Headers/Additions/GNUstepGUI/GSServicesManager.h,
Source/GSServicesMananger.m (-item2title:, -validateMenuItem:):
Adjust argument types.
* Headers/AppKit/NSMenu.h (-validateMenuItem:): Adjust argument
type.
* Source/NSTextView.m (-sizeToFit): Don't use size uninitialized
if neither resizable flags is set.
(-insertText:): Adjust argument type.
* Headers/AppKit/NSResponder.h, Source/NSResponder.m (-insertText:):
Adjust argument type. Document.
* Headers/AppKit/NSView.h: Change type of ivar _window to NSWindow *.
* Source/GSTitleView.m (-mouseDown:): Always initialize
startWindowOrigin.
* Source/NSApplication.m (-setApplicationIconImage:): Add casts
to avoid warnings.
* Source/NSCell.m (-cellSize): Add default: case.
* Source/NSPasteboard.m
([GSFiltered -pasteboard:provideDataForType:]): Detect and warn if we
can't find a filter that will get us the desired type.
* Source/NSProgressIndicator.m: Comment out unused variable 'images'.
* Source/NSBezierPath.m: Declare GSBezierPath fully before using it.
(-bezierPathByFlatteningPath, -bezierPathByReversingPath): Make sure
variables are always initialized.
* Source/NSMenuView.m,
* Source/NSPrintOperation.m,
* Source/NSSplitView.m,
* Source/NSTableHeaderView.m: Make sure variables are always
initialized.
* Source/NSBox.m,
* Source/NSImageview.m,
* Source/NSText.m,
* Source/NSTextStorage.m: Add missing includes.
* Source/GSKeyBindingTable.m,
* Source/GSLayoutManager.m,
* Source/NSBitmapImageRep+PNM.m,
* Source/NSBundleAdditions.m,
* Source/NSLayoutManager.m,
* Source/nsimage-tiff.h,
* Source/tiff.m,
* Headers/Additions/GNUstepGUI/GSDisplayServer.h,
* Source/GSDisplayServer.m: Change signedness of various variables.
* Source/NSPanel.m (-sendEvent:): Remove.
* Source/NSWindow.m (-becomesKeyOnlyIfNeeded): New method.
(-_sendEvent:becomesKeyOnlyIfNeeded:): Remove. Move code ...
(-sendEvent:): ... here. Use -becomesKeyOnlyIfNeeded instead
of the argument.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@20590 72102866-910b-0410-8b05-ffd578937521
2005-01-21 20:39:18 +00:00
Sergii Stoian
7d6b0a1f1d
[adjustSubviews] call setNeedsDisplay: after resizing subviews
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@19329 72102866-910b-0410-8b05-ffd578937521
2004-05-14 20:44:50 +00:00
Fred Kiefer
afabdddd55
Added keyed decoding.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@18530 72102866-910b-0410-8b05-ffd578937521
2004-02-02 21:40:00 +00:00
Alexander Malmberg
270f3c3eda
Use NSDebugLLog instead of NSLog when we get an event in a subview area.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@18324 72102866-910b-0410-8b05-ffd578937521
2004-01-07 01:55:21 +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