Commit graph

3450 commits

Author SHA1 Message Date
Gregory John Casamento
b6d305f622 * Headers/Additions/GNUstepGUI/GSNibCompatibility.h: Declaration
for NSIBHelpConnector ivars and methods.
	* Source/GSNibCompatibility.m: Implemented NSIBHelpConnector.
	* Source/NSBundleAdditions.m: Added check to initWithCoder so that
	values aren't decoded, if there's no value in the coder.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23784 72102866-910b-0410-8b05-ffd578937521
2006-10-07 14:03:50 +00:00
Richard Frith-MacDonald
0e6b15b3e9 polish behavior of tool tips and reduce meory footprint.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23777 72102866-910b-0410-8b05-ffd578937521
2006-10-06 16:00:46 +00:00
Richard Frith-MacDonald
ac3da2c4ca Make sure tooltip window starts off on screen.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23756 72102866-910b-0410-8b05-ffd578937521
2006-10-04 13:36:56 +00:00
Eric Sersale
b9fd9f40ea * Source/NSView.m: In -setToolTip: sets the has_tooltips flag.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23754 72102866-910b-0410-8b05-ffd578937521
2006-10-04 11:32:51 +00:00
Richard Frith-MacDonald
f17b3f5143 minor tool tip tweaks
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23751 72102866-910b-0410-8b05-ffd578937521
2006-10-04 08:07:21 +00:00
Richard Frith-MacDonald
21e2ff8447 revert accidentally added change
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23750 72102866-910b-0410-8b05-ffd578937521
2006-10-04 05:28:28 +00:00
Richard Frith-MacDonald
f07b4d16bd Add help key support
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23749 72102866-910b-0410-8b05-ffd578937521
2006-10-04 05:26:47 +00:00
Richard Frith-MacDonald
ab9ac7d741 IUmplement tool tip help
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23732 72102866-910b-0410-8b05-ffd578937521
2006-10-02 19:22:22 +00:00
Nicola Pero
2c011d4cb4 Use GNUSTEP_IS_FLATTENED and work around a compiler bug
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23723 72102866-910b-0410-8b05-ffd578937521
2006-10-02 16:30:52 +00:00
Gregory John Casamento
f6924da4be * Source/NSDocumentController.m: Correct grammar in
reviewUnsavedDocumentsWithAlertTitle:...  "Quit Anyways" should
	be "Quit Anyway".


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23713 72102866-910b-0410-8b05-ffd578937521
2006-10-02 12:21:58 +00:00
Richard Frith-MacDonald
e779b4215b Fix tracking rect bug
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23711 72102866-910b-0410-8b05-ffd578937521
2006-10-02 12:07:35 +00:00
Richard Frith-MacDonald
c201ae734e Add support for the context help cursor.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23708 72102866-910b-0410-8b05-ffd578937521
2006-10-02 08:42:04 +00:00
Richard Frith-MacDonald
3005771e57 Add headers to avoid warnings
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23706 72102866-910b-0410-8b05-ffd578937521
2006-10-02 05:13:37 +00:00
Richard Frith-MacDonald
c033d17a2d merge in themes branch to keep in sync
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23705 72102866-910b-0410-8b05-ffd578937521
2006-10-02 05:09:48 +00:00
Richard Frith-MacDonald
c8e6566831 Cosmetic tweaks to conform to coding standards
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23631 72102866-910b-0410-8b05-ffd578937521
2006-09-26 19:09:13 +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
Matt Rice
07eeaa998d * Source/NSTableView.m (_shouldEditTableColumn:row:):
Dont invert delegate return value.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23629 72102866-910b-0410-8b05-ffd578937521
2006-09-26 16:03:10 +00:00
Richard Frith-MacDonald
125411a8e9 Flush window after expose.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23607 72102866-910b-0410-8b05-ffd578937521
2006-09-24 18:59:08 +00:00
Richard Frith-MacDonald
3b65b34a1b When exposing a window ensure that the rectangle is drawn to (if necessary)
before flushing the buffer.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23603 72102866-910b-0410-8b05-ffd578937521
2006-09-24 12:45:21 +00:00
Richard Frith-MacDonald
19870a4c7a Don't drop expose events.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23602 72102866-910b-0410-8b05-ffd578937521
2006-09-24 08:27:21 +00:00
Richard Frith-MacDonald
98c7ec2bc2 simplify expose event changes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23600 72102866-910b-0410-8b05-ffd578937521
2006-09-24 05:37:05 +00:00
Matt Rice
c0f89a63f2 * Source/NSTableView.m (_isCellEditableColumn:row:): Allow
delegate to limit editablility of editable columns.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23599 72102866-910b-0410-8b05-ffd578937521
2006-09-23 21:53:25 +00:00
Richard Frith-MacDonald
183c8411a5 Add new event subtype for exposure of region of window.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23598 72102866-910b-0410-8b05-ffd578937521
2006-09-23 19:08:18 +00:00
Richard Frith-MacDonald
a34cac104e Fix writeToFile: to use the specified file name.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23594 72102866-910b-0410-8b05-ffd578937521
2006-09-22 18:02:57 +00:00
Richard Frith-MacDonald
785107cede merge bugfix and documentation from themes branch
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23593 72102866-910b-0410-8b05-ffd578937521
2006-09-22 16:42:47 +00:00
Richard Frith-MacDonald
ec93a2ceef Add cheange missed from last commit
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23590 72102866-910b-0410-8b05-ffd578937521
2006-09-22 13:38:12 +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
Matt Rice
1e779eacaf * Source/NSTextFieldCell.m (-setEnabled:): Revert previous patch.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23583 72102866-910b-0410-8b05-ffd578937521
2006-09-21 19:43:01 +00:00
Matt Rice
8dce386f4d * Source/NSTextField.m (-mouseDown:): Check if the control is
disabled. (bug #13916)
        (-acceptFirstResponder:): Return no if disabled.
        (-acceptFirstMouse:): Ditto.
        * Source/NSTextFieldCell.m (-setEnabled:): Reset the string 
	value to an empty string if disabling.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23574 72102866-910b-0410-8b05-ffd578937521
2006-09-20 20:04:31 +00:00
Richard Frith-MacDonald
9d21170e10 Fix crash if content view is removed from window by moving it to another one.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23567 72102866-910b-0410-8b05-ffd578937521
2006-09-20 11:00:25 +00:00
Matt Rice
8bf4c36cc2 * Source/NSDocument.m (-initWithContentsOfFile:ofType:): Set the
file name and type before attempting to read the document.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23546 72102866-910b-0410-8b05-ffd578937521
2006-09-17 15:15:42 +00:00
Fred Kiefer
c7839ee576 Corrected bug in latest patch.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23545 72102866-910b-0410-8b05-ffd578937521
2006-09-17 14:08:29 +00:00
Fred Kiefer
69a8fabe3d Allow read only table views to select the text in a cell.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23538 72102866-910b-0410-8b05-ffd578937521
2006-09-16 23:19:48 +00:00
Richard Frith-MacDonald
01df6ea62e fix memory leak.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23532 72102866-910b-0410-8b05-ffd578937521
2006-09-16 04:09:28 +00:00
Richard Frith-MacDonald
10de682166 Fix possible uninitialised variable
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23497 72102866-910b-0410-8b05-ffd578937521
2006-09-14 05:00:15 +00:00
Richard Frith-MacDonald
5eef626c6b 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
Gregory John Casamento
c06e564071 * Headers/AppKit/NSDrawer.h: Added ivars to support implementation.
* Source/GSNibCompatibility.m: Moved comments to top, for gcc < 3.0
        compilation.
        * Source/NSDrawer.m: Added GSDrawerWindow implementation and
        implementation of some methods in NSDrawer to interact with the 
        window.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23482 72102866-910b-0410-8b05-ffd578937521
2006-09-13 04:32:23 +00:00
Richard Frith-MacDonald
0232b540d9 minor coordinate fix for flushing
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23465 72102866-910b-0410-8b05-ffd578937521
2006-09-12 12:59:17 +00:00
Richard Frith-MacDonald
2eede887c5 Window frame/coordinate handling cleanups
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23460 72102866-910b-0410-8b05-ffd578937521
2006-09-12 09:49:54 +00:00
Richard Frith-MacDonald
17d346b3e5 Window frame handling fixups (bug #17377)
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23399 72102866-910b-0410-8b05-ffd578937521
2006-09-06 11:29:20 +00:00
Richard Frith-MacDonald
7d001ccf0c Fix to get file to compile with older compilers.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23392 72102866-910b-0410-8b05-ffd578937521
2006-09-05 11:03:27 +00:00
Nicolas Roard
5c156d87df moved a declaration at the beginning of the method (gcc 2.9x ...)
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23388 72102866-910b-0410-8b05-ffd578937521
2006-09-04 00:11:45 +00:00
Nicolas Roard
d3ff656a0c Added JPEG writing support to NSBitmapImageRep. Only handles RGB images (NS*RGBColorSpace). You can specify the compression ratio by using the NSImageCompressionFactor key in the properties dictionary.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23387 72102866-910b-0410-8b05-ffd578937521
2006-09-04 00:02:20 +00:00
Gregory John Casamento
d916e0adb1 Reverted previous change. Added comments in NSWindow.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23384 72102866-910b-0410-8b05-ffd578937521
2006-09-03 16:18:42 +00:00
Gregory John Casamento
d0bc68ca3a * Source/GSStandardWindowDecorationView.m: Correct issue in
initWithFrame🪟 that was causing a crash when the window 
	was closed.
	* Source/NSControl.m: Reinstated fix from Fred Kiefer for 
	mouseDown: simplification and refactoring. 


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23380 72102866-910b-0410-8b05-ffd578937521
2006-08-31 04:23:56 +00:00
Gregory John Casamento
da7ae90539 * Source/GSNibLoader.m: loadModelData:... Remove TEST_RELEASE
from handler block.
	* Source/NSColor.m: initWithCoder: retain autoreleased instances
	of NSColor to prevent double release when the pool is cleared.
	* Source/NSControl.m: initWithCoder: retain cell to prevent
	double release when the pool is cleared.
	* Source/NSFont.m: initWithCoder: retain autoreleased instances
	of NSFont to prevent double release when the pool is cleared.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23340 72102866-910b-0410-8b05-ffd578937521
2006-08-27 02:35:03 +00:00
Gregory John Casamento
aaa0f632ce * Source/NSTableView.m: initWithCoder: minor cleanup.
* Source/NSTextFieldCell.m: initWithCoder retain 
	text/background colors to prevent crash.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23339 72102866-910b-0410-8b05-ffd578937521
2006-08-26 22:28:47 +00:00
Gregory John Casamento
63e4a9aebd * Source/GSNibCompatibility.m: In [NSIBObjectData initWithCoder:]
clean up the buildMap calls.  In NSCustomResource retain the resource
	that is returned to prevent a crash.  Add dealloc method to 
	NSCustomObject.
	* Source/NSClipView.m: In initWithCoder: retain and release
	documentView before removing it from the view and resetting
	it as the document view.   This ensures that the view will
	not be deallocated.
	* Source/NSScrollView.m: Retain the contentView before exchanging
	it and then release to prevent the view from being deallocated in
	initWithCoder:
	* Source/NSTableView.m: Replace call to "new" with alloc/init for
	NSTableHeaderView in initWithCoder:
	* Source/NSView.m: in initWithCoder: keyed coding don't release
	the subs array since it's already autoreleased.  This was causing
	a crash.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23336 72102866-910b-0410-8b05-ffd578937521
2006-08-26 14:10:18 +00:00
Fred Kiefer
48f42d5793 Moved variable declaration to work with older compilers.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23320 72102866-910b-0410-8b05-ffd578937521
2006-08-21 12:09:38 +00:00