Commit graph

1182 commits

Author SHA1 Message Date
mirko
47061712e4 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
69f05100bd 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
nico
96fe6f165d 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
nico
b698f8d816 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
nico
4134387228 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
nico
6dc9a7627f 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
nico
8492cab559 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
nico
f12bf1b152 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
nico
b5209ef383 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
nico
5ba581688b 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
ce4036953f 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
8a88035ef0 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
FredKiefer
1886549f43 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
nico
2fb8616472 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
nico
b3c7124bc9 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
nico
05d1e5f029 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
nico
8c59fd4fa2 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
nico
a64527f417 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
nico
a071dea3e5 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
nico
05fe129ea0 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
nico
ef3be61ec6 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
nico
4e451907a3 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
nico
f5617abc95 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
nico
32d269dea8 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
nico
858981c0df 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
nico
4a96f79258 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
nico
ef79bf6fe3 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
nico
902bfb76fb 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
nico
d3f3e00f40 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
FredKiefer
491780f038 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
FredKiefer
4b9f008f6d 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
nico
aa2ea2701f 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
nico
843b7bb18b Updated processing of key events to fix in the backend
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7369 72102866-910b-0410-8b05-ffd578937521
2000-09-04 02:00:14 +00:00
FredKiefer
7cf72d436f Corrected bug in [nextWordFromIndex:forward:]
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7364 72102866-910b-0410-8b05-ffd578937521
2000-09-03 21:02:00 +00:00
FredKiefer
20ac07cc12 [weightForString:] added "black"
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7363 72102866-910b-0410-8b05-ffd578937521
2000-09-03 21:01:32 +00:00
nico
09f3dae3ac Redraw only the necessary parts; tiny other speedups.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7358 72102866-910b-0410-8b05-ffd578937521
2000-09-03 19:30:19 +00:00
nico
dc0d54400b Fixed displaying a title in the slider
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7356 72102866-910b-0410-8b05-ffd578937521
2000-09-03 19:27:02 +00:00
nico
1eb0ceaace Minor speed ups; use an inline function instead of a private method
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7355 72102866-910b-0410-8b05-ffd578937521
2000-09-03 19:25:52 +00:00
nico
1294c6b8d5 Little speedup of drawing table background
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7354 72102866-910b-0410-8b05-ffd578937521
2000-09-03 19:23:28 +00:00
nico
71f6336184 Minor speedups in drawing; release the matrix columns sooner
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7353 72102866-910b-0410-8b05-ffd578937521
2000-09-03 19:22:08 +00:00
nico
cf3bc57640 Micro speedup in dealloc.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7352 72102866-910b-0410-8b05-ffd578937521
2000-09-03 19:20:29 +00:00
nico
54a83734c4 Enclosed creation of a matrix column into an autorelease pool; do not
create then destroy a column in the matrix if it is void


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7351 72102866-910b-0410-8b05-ffd578937521
2000-09-03 19:19:40 +00:00
nico
d9328f2a01 Fixed typo
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7349 72102866-910b-0410-8b05-ffd578937521
2000-09-03 19:14:00 +00:00
FredKiefer
d3c10d80e7 Changed system fonts of size 12 to 0. This will use Nicolas font
cache and keep font sizes consistent when changed.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7347 72102866-910b-0410-8b05-ffd578937521
2000-09-02 17:16:26 +00:00
FredKiefer
9dd0f9c269 Added missing RETAINs.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7346 72102866-910b-0410-8b05-ffd578937521
2000-09-02 17:09:50 +00:00
FredKiefer
aa7525475c Added class methods [weightForString:], [stringForWeight:] and
[encodingForRegistry:encoding:] to be used in subclasses.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7338 72102866-910b-0410-8b05-ffd578937521
2000-09-02 01:52:18 +00:00
nico
8b76bdfda4 Tidied
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7333 72102866-910b-0410-8b05-ffd578937521
2000-09-02 00:15:13 +00:00
nico
5311231e5c Optimization: cache and share default fonts
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7327 72102866-910b-0410-8b05-ffd578937521
2000-09-01 23:49:53 +00:00
nico
400e191b8c Fixed memory leak
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7325 72102866-910b-0410-8b05-ffd578937521
2000-09-01 20:35:22 +00:00
nico
145a792bfe Implemented TAB / Shift + TAB during editing
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7319 72102866-910b-0410-8b05-ffd578937521
2000-09-01 11:10:54 +00:00