Commit graph

2900 commits

Author SHA1 Message Date
Mirko Viviani
be7706ee71 2000-09-11 Mirko Viviani <mirko.viviani@rccr.cremona.it>
* Source/NSBrowser.m ([NSBrowser -_performLoadOfColumn:]): set
	intercell spacing to 0.
	* Source/NSMatrix.m ([NSMatrix -mouseDown:]): in NSRadioModeMatrix
	deselect the previous selected cell only if the cell is valid.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7471 72102866-910b-0410-8b05-ffd578937521
2000-09-11 15:09:27 +00:00
Mirko Viviani
df00948e11 2000-09-10 Mirko Viviani <mirko.viviani@rccr.cremona.it>
* Tools/gpbs.m ([PasteboardEntry -lostOwnership]): workaround to avoid
	core dump due to NSConnection bug.

	* Source/NSWindow.m ([NSWindow -keyDown:]): discard and do not perform
	key equivalent for null character events. Triggered return key for
	default button cell.
	([NSWindow -defaultButtonCell]), ([NSWindow -setDefaultButtonCell:]),
	([NSWindow -disableKeyEquivalentForDefaultButtonCell]),
	([NSWindow -enableKeyEquivalentForDefaultButtonCell]): implemented.
	([NSWindow -dealloc]): release _defaultButtonCell

	* Headers/AppKit/NSWindow.h: added ivar and flag.

	* Source/NSOpenPanel.m ([NSOpenPanel -controlTextDidEndEditing:]),
	([NSOpenPanel -controlTextDidChange:]), ([NSOpenPanel -ok:]):
	implemented keyboard navigation.
	([NSOpenPanel -runModalForDirectory:file:types:]): do not allow
	branch selection if can't choose directories.
	([NSOpenPanel -_selectTextInColumn:]),
	([NSOpenPanel -_selectCellName:]): new private methods.
	([NSOpenPanel -filenames]): change for choose dirs.

	* Source/NSText.m ([NSText -keyDown:]): forwards text field illegal
	events to the next responder.

	* Source/NSBrowser.m ([NSBrowser -moveUp:]), ([NSBrowser -moveDown:]),
	([NSBrowser -moveLeft:]), ([NSBrowser -moveRight:]),
	([NSBrowser -keyDown:]): implemented keyboard navigation
	([NSBrowser -selectedCell]), ([NSBrowser -selectedCells]),
	([NSBrowser -columnOfMatrix:]), ([NSBrowser -selectedColumn]):
	changed return value from NSNotFound to -1 to conforms to NSMatrix
	([NSBrowser -doClick:]): fix for new return values, added support for
	multiple and branch selection.
	([NSBrowser -setLastColumn:]): mark column titles need display
	([NSBrowser -_getTitleOfColumn:]): fix for multiple selection.

	* Source/NSCell.m ([NSCell -setState:]): bug fix: set value to
	NSOnState if someone try to set NSMixedState in a two state cell.
	([NSCell -performClick:]): do not perform click if the cell is
	disabled.

	* Source/NSMatrix.m ([NSMatrix
	-_privateFrame:mode:numberOfRows:numberOfColumns:]),
	([NSMatrix -deselectAllCells]), ([NSMatrix -deselectSelectedCell]),
	([NSMatrix -selectAll:]): bug fix: set _selectRow and _selectColumn
	to -1 when no cells are selected
	([NSMatrix -performKeyEquivalent:]): saves _selectedRow and
	_selectedColumn.
	([NSMatrix -getRow:column:ofCell:]): check for null values for row and
	column.
	([NSMatrix -selectCellAtRow:column:]): deselect the current selection
	only in NSRadioModeMatrix mode.
	([NSMatrix -mouseDown:]): use the new code also for NSRadioModeMatrix
	and fix for this mode.

	* Source/NSSavePanel.m ([NSSavePanel -selectCellWithString:]): select
	text of the cell and enable okButton.
	([NSSavePanel -controlTextDidChange:]): implemented.
	([NSSavePanel -controlTextDidEndEditing:]): removed.
	([NSSavePanel -browser:createRowsForColumn:inMatrix:]): follows
	symbolic links.
	([NSSavePanel -_initWithoutGModel]): set browser doubleAction to
	performClick: of the _okButton. Set _okButton as default window button.
	Disable _okButton.
	([NSSavePanel -browser:selectCellWithString:inColumn:]),
	([NSSavePanel -selectText:]), ([NSSavePanel -keyDown:]): implemented
	keyboard navigation.
	([NSSavePanel -runModalForDirectory:file:]): enable _okButton if
	filename is valid.
	([NSSavePanel -_selectTextInColumn:]), ([NSSavePanel -_selectText:]),
	([NSSavePanel -_selectCellName:]): new private methods.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7468 72102866-910b-0410-8b05-ffd578937521
2000-09-10 21:55:17 +00:00
Nicola Pero
c91af70d96 Fix in NSTextView; implemented encoding/decoding of NSMatrix, NSForm
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7467 72102866-910b-0410-8b05-ffd578937521
2000-09-10 21:39:38 +00:00
Nicola Pero
854819af64 Fixed linking to the text container during initialization
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7466 72102866-910b-0410-8b05-ffd578937521
2000-09-10 21:38:04 +00:00
Nicola Pero
8744e90eae Implemented encoding/decoding
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7465 72102866-910b-0410-8b05-ffd578937521
2000-09-10 21:37:03 +00:00
Nicola Pero
dfd0b3ca80 Fixes for table columns; prefixed all NSMatrix ivars with underscores
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7463 72102866-910b-0410-8b05-ffd578937521
2000-09-10 15:09:20 +00:00
Nicola Pero
d59015f979 Updated for change in NSMatrix ivars
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7462 72102866-910b-0410-8b05-ffd578937521
2000-09-10 15:06:37 +00:00
Nicola Pero
9541af5ac3 Prefixed all ivars with underscores
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7461 72102866-910b-0410-8b05-ffd578937521
2000-09-10 15:05:00 +00:00
Nicola Pero
6b02a79f71 Do not resize columns which are not resizable
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7460 72102866-910b-0410-8b05-ffd578937521
2000-09-10 15:02:09 +00:00
Nicola Pero
10ad22071d Don't edit columns which are not editable
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7459 72102866-910b-0410-8b05-ffd578937521
2000-09-10 15:01:15 +00:00
Nicola Pero
16fd608dd2 Made table columns editable by default
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7458 72102866-910b-0410-8b05-ffd578937521
2000-09-10 14:59:25 +00:00
Nicola Pero
1d61a08756 Fixes for windows bigger than screen
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7452 72102866-910b-0410-8b05-ffd578937521
2000-09-08 17:09:42 +00:00
Nicola Pero
b9f192771d Various fixes and some new code for proper management of very big window
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7451 72102866-910b-0410-8b05-ffd578937521
2000-09-08 17:07:04 +00:00
Richard Frith-MacDonald
04cd8a4625 Minor tidyup
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7449 72102866-910b-0410-8b05-ffd578937521
2000-09-08 10:39:11 +00:00
Richard Frith-MacDonald
033960073c Submenu management bugfixes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7448 72102866-910b-0410-8b05-ffd578937521
2000-09-08 09:41:33 +00:00
Fred Kiefer
d74e41f68b *** empty log message ***
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7446 72102866-910b-0410-8b05-ffd578937521
2000-09-08 00:08:44 +00:00
Fred Kiefer
65a2f3b220 Changed varius places to make more consistent.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7445 72102866-910b-0410-8b05-ffd578937521
2000-09-08 00:07:42 +00:00
Nicola Pero
abb8b3f9d8 Fixes and implemented programmatically moving columns in table view
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7444 72102866-910b-0410-8b05-ffd578937521
2000-09-07 20:52:04 +00:00
Nicola Pero
d9b7ed8e0b Post info about old width when posting notification about column resized
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7443 72102866-910b-0410-8b05-ffd578937521
2000-09-07 20:39:37 +00:00
Nicola Pero
abab28e393 Bug fixings, implemented moving of columns programmatically.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7442 72102866-910b-0410-8b05-ffd578937521
2000-09-07 20:38:39 +00:00
Nicola Pero
29a7243364 Implemented column resizing in the table view; temporary workaround to
have string draw in the rect their asked to draw in


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7439 72102866-910b-0410-8b05-ffd578937521
2000-09-07 16:40:27 +00:00
Nicola Pero
28830d2c30 Added workaround to clip string in rect
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7438 72102866-910b-0410-8b05-ffd578937521
2000-09-07 16:37:41 +00:00
Nicola Pero
c7d86ddccb Implemented column resizing
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7437 72102866-910b-0410-8b05-ffd578937521
2000-09-07 16:36:05 +00:00
Nicola Pero
3874966236 Added column resizing code
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7436 72102866-910b-0410-8b05-ffd578937521
2000-09-07 16:35:05 +00:00
Nicola Pero
2f4c568e1e Added ivar for resized column
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7435 72102866-910b-0410-8b05-ffd578937521
2000-09-07 16:33:59 +00:00
Nicola Pero
eb554c520d Added ivar for column resizing
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7434 72102866-910b-0410-8b05-ffd578937521
2000-09-07 16:33:11 +00:00
Nicola Pero
07c7efa11c Huge speed up and simplification of dragging in NSSplitView
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7433 72102866-910b-0410-8b05-ffd578937521
2000-09-07 13:01:20 +00:00
Nicola Pero
15c4029af9 Huge simplification and speed up of dragging
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7432 72102866-910b-0410-8b05-ffd578937521
2000-09-07 12:59:28 +00:00
Nicola Pero
66fda1cf1f Removed annoying log in NSApplication
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7431 72102866-910b-0410-8b05-ffd578937521
2000-09-07 01:02:48 +00:00
Nicola Pero
bef15b5d9f Removed annoying log
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7430 72102866-910b-0410-8b05-ffd578937521
2000-09-07 01:01:07 +00:00
Nicola Pero
6bd1c1f88a Tidied
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7428 72102866-910b-0410-8b05-ffd578937521
2000-09-06 21:44:28 +00:00
Nicola Pero
eb536b2766 Fixes and little speed ups to NSBrowser
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7423 72102866-910b-0410-8b05-ffd578937521
2000-09-06 15:30:16 +00:00
Nicola Pero
3e1d117119 Fixed memory leak; do not retain delegate; cache scrollerWidth; use nil
instead of empty view


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7422 72102866-910b-0410-8b05-ffd578937521
2000-09-06 15:28:46 +00:00
Nicola Pero
7cf2efa7e2 Updated GMAppKit.m for the change in NSWindow's ivars
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7421 72102866-910b-0410-8b05-ffd578937521
2000-09-06 12:49:58 +00:00
Nicola Pero
8b0f6fea01 Updated for change in NSWindow's ivars
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7420 72102866-910b-0410-8b05-ffd578937521
2000-09-06 12:48:23 +00:00
Nicola Pero
42dd4bb604 Added object value related methods to NSControl
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7402 72102866-910b-0410-8b05-ffd578937521
2000-09-05 22:09:27 +00:00
Nicola Pero
560769832b Implemented missing object value methods
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7401 72102866-910b-0410-8b05-ffd578937521
2000-09-05 22:06:55 +00:00
Nicola Pero
e55aa22758 Added missing methods for object value
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7400 72102866-910b-0410-8b05-ffd578937521
2000-09-05 22:05:28 +00:00
Nicola Pero
94fc19b2a6 Some fixes for NSTextContainer; prefixed all of NSWindow's ivars with
underscores


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7399 72102866-910b-0410-8b05-ffd578937521
2000-09-05 17:32:31 +00:00
Nicola Pero
f76e7fe754 Do not register for notifications if not needed, bug fix
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7398 72102866-910b-0410-8b05-ffd578937521
2000-09-05 17:31:03 +00:00
Nicola Pero
35695a3b46 Updated for change in NSWindow's ivars
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7396 72102866-910b-0410-8b05-ffd578937521
2000-09-05 17:24:15 +00:00
Nicola Pero
26a0416e7c Prefixed all ivars with underscore
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7395 72102866-910b-0410-8b05-ffd578937521
2000-09-05 17:22:46 +00:00
Nicola Pero
4886431eba Implemented NSApplicationWillTerminateNotification
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7380 72102866-910b-0410-8b05-ffd578937521
2000-09-05 01:07:59 +00:00
Nicola Pero
e283291b1b Implemented encoding/decoding of NSScroller, NSClipView; fix for
encoding/decoding of NSScrollView


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7377 72102866-910b-0410-8b05-ffd578937521
2000-09-04 23:03:17 +00:00
Nicola Pero
35fb163728 Fixed decoding
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7376 72102866-910b-0410-8b05-ffd578937521
2000-09-04 23:00:28 +00:00
Nicola Pero
93a9b4e1ad Implemented encoding/decoding
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7375 72102866-910b-0410-8b05-ffd578937521
2000-09-04 22:59:23 +00:00
Fred Kiefer
9532564638 *** empty log message ***
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7374 72102866-910b-0410-8b05-ffd578937521
2000-09-04 18:43:01 +00:00
Fred Kiefer
4f98e88b87 Use more implementation from super to make this class temporary working
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7373 72102866-910b-0410-8b05-ffd578937521
2000-09-04 18:41:59 +00:00
Fred Kiefer
638a39c20b Added some basic implementation.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7372 72102866-910b-0410-8b05-ffd578937521
2000-09-04 18:41:31 +00:00
Nicola Pero
2a1fe3649f Updated key event processing for fix in the backend
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7370 72102866-910b-0410-8b05-ffd578937521
2000-09-04 02:03:37 +00:00