Commit graph

8418 commits

Author SHA1 Message Date
Richard Frith-MacDonald
325a6086ac Tidy
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7554 72102866-910b-0410-8b05-ffd578937521
2000-09-19 22:38:56 +00:00
Richard Frith-MacDonald
8bde8b0bb1 Internal storage fix.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7553 72102866-910b-0410-8b05-ffd578937521
2000-09-19 22:36:30 +00:00
Fred Kiefer
ef0f89c568 *** empty log message ***
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7546 72102866-910b-0410-8b05-ffd578937521
2000-09-18 23:35:03 +00:00
Fred Kiefer
915919b6a5 [initWithFrame:] switch of the creation of a NSLayoutManager.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7545 72102866-910b-0410-8b05-ffd578937521
2000-09-18 23:34:02 +00:00
Fred Kiefer
c834c9bc02 Removed GSSimpleLayoutManager code and use new interface to it.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7544 72102866-910b-0410-8b05-ffd578937521
2000-09-18 23:33:30 +00:00
Fred Kiefer
587ec24012 Two new NSTextView like methods.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7543 72102866-910b-0410-8b05-ffd578937521
2000-09-18 23:32:50 +00:00
Fred Kiefer
b92894add8 Include new file GSSimpleLayoutManager.m
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7542 72102866-910b-0410-8b05-ffd578937521
2000-09-18 23:32:16 +00:00
Fred Kiefer
40aa76c126 New file extracted from NSText.m. This class is now a subclass of
NSLayoutManager and uses a similar interface.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7541 72102866-910b-0410-8b05-ffd578937521
2000-09-18 23:31:39 +00:00
Adam Fedor
68a960712b Protect with ifdeffs
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7528 72102866-910b-0410-8b05-ffd578937521
2000-09-16 21:02:07 +00:00
Mirko Viviani
51d87dae28 2000-09-14 Mirko Viviani <mirko.viviani@rccr.cremona.it>
* Source/NSPanel.m ([GSAlertPanel
	-initWithContentRect:styleMask:backing:defer:screen:]): set alternate
	return image.
	* Source/NSOpenPanel.m ([NSOpenPanel -controlTextDidEndEditing:]):
	removed.
	* Source/NSSavePanel.m ([NSSavePanel -controlTextDidEndEditing:]):
	repost currentEvent.
	([NSSavePanel -_initWithoutGModel]): removed form cell action, set
	_okButton image.
	([NSSavePanel -_performReturn:]): removed.
	* Images/common_retH.tiff: new file.
	* Images/GNUmakefile (IMAGE_FILES): update.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7518 72102866-910b-0410-8b05-ffd578937521
2000-09-14 21:53:03 +00:00
Nicola Pero
1941caf1ef Fixed memory leaks when posting notifications about editing in NSMatrix
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7514 72102866-910b-0410-8b05-ffd578937521
2000-09-14 11:44:45 +00:00
Nicola Pero
d2966c95a3 Fixed memory leaks in editing
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7513 72102866-910b-0410-8b05-ffd578937521
2000-09-14 11:43:20 +00:00
Mirko Viviani
05a9cab8f7 2000-09-13 Mirko Viviani <mirko.viviani@rccr.cremona.it>
* Source/NSBrowser.m ([NSBrowser -_performLoadOfColumn:]): fixed
	intercell space values.

	* Source/NSText.m ([NSText -keyDown:]): removed forward for illegal
	text field events.

	* Source/NSSavePanel.m ([NSSavePanel -controlTextDidEndEditing:]):
	implemented for text field movement.
	([NSSavePanel -_performReturn:]): new private method.
	([NSSavePanel -_initWithoutGModel]): set form cell action to
	_performReturn:

	* Source/NSOpenPanel.m ([NSOpenPanel -controlTextDidEndEditing:]): call
	super.
	([NSOpenPanel -_selectCellName:]):,
	([NSOpenPanel -controlTextDidChange:]): enable okButton if there is
	text in the text field.
	([NSOpenPanel -ok:]): returns if nothing selected.

	* Tools/gpbs.m ([PasteboardEntry -lostOwnership]): removed workaround.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7506 72102866-910b-0410-8b05-ffd578937521
2000-09-13 20:18:01 +00:00
Fred Kiefer
1c3f0d5515 *** empty log message ***
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7492 72102866-910b-0410-8b05-ffd578937521
2000-09-12 23:16:45 +00:00
Fred Kiefer
ded1b5c698 [encodingForRegistry:encoding:] added more encodings
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7491 72102866-910b-0410-8b05-ffd578937521
2000-09-12 23:15:51 +00:00
Nicola Pero
1e0eb6e0fc Updated code in decoding NSMenus from gmodels to the new changes in
NSMenu code


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7483 72102866-910b-0410-8b05-ffd578937521
2000-09-12 20:44:08 +00:00
Nicola Pero
f3bc3104ed Updated NSMenu, NSMenuItem decoding code for change in NSMenu, NSMenuItem
code in the gui library


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7482 72102866-910b-0410-8b05-ffd578937521
2000-09-12 20:43:02 +00:00
Mirko Viviani
c4b7684011 2000-09-11 Mirko Viviani <mirko.viviani@rccr.cremona.it>
* Source/NSText.m ([NSText -moveLeft:sender]): deselect text that
	starts at the beginning of the line.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7472 72102866-910b-0410-8b05-ffd578937521
2000-09-11 21:44:53 +00:00
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