Commit graph

2324 commits

Author SHA1 Message Date
Fred Kiefer
be89206db1 Added an [init] method, use this in [sharedColorPanel]. Replaced
reference to GMModel, with more general call on NSBundle. (This is
commented out, but some time in the futur we might use NIB files)


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@9661 72102866-910b-0410-8b05-ffd578937521
2001-04-22 23:00:40 +00:00
Fred Kiefer
69b40d2270 [initialize] call [NSUserDefaults standardUserDefaults] as a
workaround for the setlocal() problem. Otherwise colorFromString:
will fail later on for the system colours.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@9660 72102866-910b-0410-8b05-ffd578937521
2001-04-22 22:59:52 +00:00
Richard Frith-Macdonald
6b1e2ed8ff Fix for property lists color descriptions.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@9657 72102866-910b-0410-8b05-ffd578937521
2001-04-22 11:07:11 +00:00
Richard Frith-Macdonald
5d695fe3fe Fix for loading color lists from file.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@9656 72102866-910b-0410-8b05-ffd578937521
2001-04-22 10:44:40 +00:00
Richard Frith-Macdonald
b3856d6423 iPermit provision of services to self.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@9618 72102866-910b-0410-8b05-ffd578937521
2001-04-18 09:25:39 +00:00
Nicola Pero
515d897141 Fixed memory problem in the gmodel code
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@9617 72102866-910b-0410-8b05-ffd578937521
2001-04-17 22:19:19 +00:00
Nicola Pero
5c0c96e081 Fixed memory problem - destinations are not supposed to be retained
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@9616 72102866-910b-0410-8b05-ffd578937521
2001-04-17 22:17:35 +00:00
Adam Fedor
7394190039 Set visible flag to NO on miniaturize
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@9595 72102866-910b-0410-8b05-ffd578937521
2001-04-17 03:17:23 +00:00
Mirko Viviani
f005f68b2c * Source/NSButtonCell.m ([NSButtonCell -drawInteriorWithFrame:
inView:]): fix mask if cell is highlighted and it isn't in off state.

* Source/NSCell.m ([NSCell -trackMouse:inRect:ofView:untilMouseUp:]):
set next cell state and send action after -stopTracking:

* Source/NSBrowser.m ([NSBrowser -keyDown:]): does nothing for arrow up
and down.
([NSBrowser -moveUp:]): removed.
([NSBrowser -moveDown:]): removed.
([NSBrowser -_performLoadOfColumn:]): fix matrix creation, enable
matrix autoscroll.
([NSBrowser -_performLoadOfColumn:]): implemented reusesColumns.

* Source/NSMatrix.m ([NSMatrix -keyDown:]): implemented keyboard
navigation.
([NSMatrix -moveUp:]): likewise.
([NSMatrix -moveDown:]): likewise.
([NSMatrix -moveLeft:]): likewise.
([NSMatrix -moveRight:]): likewise.
([NSMatrix -performClick:]): implemented.
([NSMatrix -mouseDown:]): scroll rect only if autoscroll is enabled,
do not hightlight a cell directly but use the matrix method.
Now it handles only NSListModeMatrix mode to reduce complexity
introduced by other modes.
([NSMatrix -_mouseDownNonListMode:]): fixed.
([NSMatrix -highlightCell:atRow:column:]): enable the cell dotted
outline.
([NSMatrix -drawCellAtRow:column:]): likewise.
([NSMatrix -drawRect:]): removed drawing of dotted outline. Rewritten
due to changes in -getRow:column:forPoint:
([NSMatrix -getRow:column:forPoint:]): set row and column to -1 if
point is not inside a cell.
([NSMatrix -_selectCell:atRow:column:]): use mnemonic value for cell
state, does not enable dotted outline and check for nil aCell.
([NSMatrix -selectTextAtRow:column:]): likewise.
([NSMatrix -_setState:highlight:startIndex:endIndex:]): use matrix
highlightCell: method and mnemonic for cell state.
([NSMatrix -deselectAllCells]): likewise.
([NSMatrix -selectAll:]): likewise.
([NSMatrix -setSelectionFrom:to:anchor:highlight:]): likewise.
([NSMatrix -performKeyEquivalent:]): select next cell state.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@9594 72102866-910b-0410-8b05-ffd578937521
2001-04-16 19:52:52 +00:00
Adam Fedor
8ea14cc868 Document gstate methods
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@9593 72102866-910b-0410-8b05-ffd578937521
2001-04-16 03:31:59 +00:00
Adam Fedor
b2937b7086 Add comments to releaseGState
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@9592 72102866-910b-0410-8b05-ffd578937521
2001-04-16 03:20:07 +00:00
Adam Fedor
7d43bc3311 release the gstate when invalidating coords
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@9591 72102866-910b-0410-8b05-ffd578937521
2001-04-16 03:18:04 +00:00
Adam Fedor
e197e9a3c4 Fix imgae compositing - intersect fromRect
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@9589 72102866-910b-0410-8b05-ffd578937521
2001-04-14 20:06:13 +00:00
Adam Fedor
1ff4d1c990 Load backend as a bundle.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@9580 72102866-910b-0410-8b05-ffd578937521
2001-04-13 20:04:04 +00:00
Nicola Pero
9007f47800 Indented
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@9572 72102866-910b-0410-8b05-ffd578937521
2001-04-12 14:20:26 +00:00
Nicola Pero
040f694d58 Fixed memory leak in GMUnarchiver
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@9571 72102866-910b-0410-8b05-ffd578937521
2001-04-12 14:12:11 +00:00
Nicola Pero
22bceb3df4 Fixed huge memory leak
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@9570 72102866-910b-0410-8b05-ffd578937521
2001-04-12 14:11:29 +00:00
Nicola Pero
518cf57a43 Replaced an #import in custom object in model code with #include
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@9569 72102866-910b-0410-8b05-ffd578937521
2001-04-12 14:08:11 +00:00
Nicola Pero
dcfb1df1a9 Indented - replace an import with an include
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@9568 72102866-910b-0410-8b05-ffd578937521
2001-04-12 14:07:13 +00:00
Fred Kiefer
93df5a9fa4 ee text
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@9546 72102866-910b-0410-8b05-ffd578937521
2001-04-09 21:30:24 +00:00
Fred Kiefer
f1ca42b9ea [initWithFrame:] removed superflous [setCell:] call, as this gets
one in the super implementation.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@9545 72102866-910b-0410-8b05-ffd578937521
2001-04-09 21:29:35 +00:00
Fred Kiefer
77b0f2bfb1 Corrected the handling of the cellClass so that every subclass of
NSControl, that uses a cell, has its own implementaion of
[cellClass] and [setCellClass].


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@9544 72102866-910b-0410-8b05-ffd578937521
2001-04-09 21:28:49 +00:00
Fred Kiefer
499f86c8df Added notifiaction strings from NSComboBox.m
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@9543 72102866-910b-0410-8b05-ffd578937521
2001-04-09 21:27:19 +00:00
Fred Kiefer
ca7d708943 Added aditional methods for text completion.
Corrected the handling of the cellClass so that every subclass of
NSControl, that uses a cell, has its own implementaion of
[cellClass] and [setCellClass].


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@9542 72102866-910b-0410-8b05-ffd578937521
2001-04-09 21:26:34 +00:00
Fred Kiefer
7630d53c8a Added aditional methods for text completion
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@9541 72102866-910b-0410-8b05-ffd578937521
2001-04-09 21:24:53 +00:00
Nicola Pero
503a6b6715 Use the NSFileManager public API in NSSavePanel
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@9533 72102866-910b-0410-8b05-ffd578937521
2001-04-06 22:43:06 +00:00
Nicola Pero
29e5e5ea83 Use the public NSFileManager API to enumerate the contents of a directory,
so that the library is not broken when the internals of NSFileManager are
changed


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@9532 72102866-910b-0410-8b05-ffd578937521
2001-04-06 22:41:55 +00:00
Jonathan Gapen
69277bd2e0 Path-finding update.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@9498 72102866-910b-0410-8b05-ffd578937521
2001-03-26 23:14:15 +00:00
Mirko Viviani
afec355a80 * Source/NSCell.m ([NSCell -drawInteriorWithFrame:inView:]): do not
check if the control that owns the cell is the first responder.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@9485 72102866-910b-0410-8b05-ffd578937521
2001-03-23 21:06:42 +00:00
Nicola Pero
142baecf94 Added NSDottedRect to Tools/Functions.m to make the tools compile
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@9478 72102866-910b-0410-8b05-ffd578937521
2001-03-22 22:14:01 +00:00
Nicola Pero
630ee9a923 Added void implementation of NSDottedFrameRect
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@9477 72102866-910b-0410-8b05-ffd578937521
2001-03-22 22:12:51 +00:00
Adam Fedor
f8da2295c7 Use version file
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@9476 72102866-910b-0410-8b05-ffd578937521
2001-03-22 21:57:48 +00:00
Adam Fedor
9d5267194b Version 0.6.8
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@9475 72102866-910b-0410-8b05-ffd578937521
2001-03-22 21:54:33 +00:00
Mirko Viviani
631fba3e97 * Source/NSBrowser.m ([NSBrowser -_unloadFromColumn:]): fix index out
of bound (patch by Enrico Sersale <enrico@imago.ro>)


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@9474 72102866-910b-0410-8b05-ffd578937521
2001-03-22 16:38:24 +00:00
Mirko Viviani
60b8f20ce4 * Source/NSButtonCell.m ([NSButtonCell -setCellAttribute:to:]):
implemented.
([NSButtonCell -cellAttribute:]): implemented.

* Source/NSPopUpButton.m ([NSPopUpButton -keyDown:]): implemented
keyboard selection.
([NSPopUpButton -resignFirstResponder]): implemented.
([NSPopUpButton -resignKeyWindow]): implemented.

* Source/NSPopUpButtonCell.m ([NSPopUpButtonCell
-drawInteriorWithFrame:inView:]): from -drawWithFrame:inView:

* Source/NSButton.m ([NSButton -becomeFirstResponder]): set cell first
responder.
([NSButton -resignFirstResponder]): likewise.
([NSButton -becomeKeyWindow]): likewise.
([NSButton -resignKeyWindow]): likewise.

* Source/NSBrowserCell.m ([NSBrowserCell -drawInteriorWithFrame:
inView:]): draw correct dotted box.

* Source/NSBrowser.m ([NSBrowser -becomeFirstResponder]): make first
responder the latest column.
([NSBrowser -acceptsFirstResponder]): accepts first responder status.
([NSBrowser -keyDown:]): handle tabs to select next/previous key view.
([NSBrowser -moveRight:]): make browser column the first responder.
([NSBrowser -moveUp:]): likewise.
([NSBrowser -moveDown:]): likewise.
([NSBrowser -moveLeft:]): likewise.
([NSBrowser -_unloadFromColumn:]): remove columns from superview and
array.
([NSBrowser -_remapColumnSubviews:]): set the correct first responder.

* Source/NSWindow.m ([NSWindow -sendEvent:]): retain/release first
responder for keyUp/keyDown events. Discard NSLeftMouseDown for closed
windows.
([NSWindow -dealloc]): release _originalResponder

* Source/NSView.m ([NSView -removeSubview:]): remove next responder.

* Source/NSCell.m ([NSCell -setUpFieldEditorAttributes:]): clear
selected range.
([NSCell -editWithFrame:inView:editor:delegate:event:]): redisplay
textObject after invoking mouseDown:
([NSCell -drawInteriorWithFrame:inView:]): draw dotted-line outline
when first responder.
([NSCell -setCellAttribute:to:]): implemented.

* Source/NSTextView.m ([NSTextView -moveUp:]): don't call
_illegalMovement: for the text field editor.
([NSTextView -moveDown:]): likewise.
([NSTextView -moveLeft:]): likewise.
([NSTextView -moveRight:]): likewise.

* Source/NSTextField.m ([NSTextField -textDidEndEditing:]): fixed
return/tab/backtab text movement code.

* Headers/gnustep/gui/NSGraphics.h: added NSDottedFrameRect prototype.

* Headers/gnustep/gui/NSMatrix.h: added ivars for dotted frame rect.
* Source/NSMatrix.m ([NSMatrix -selectCell:]): implemented.
([NSMatrix -_selectCell:atRow:column:]): new method.
([NSMatrix -selectCellAtRow:column:]): call _selectCell:atRow:column:
([NSMatrix -selectCellWithTag:]): likewise.
([NSMatrix -selectAll:]): Do not select disabled or editable cells.
([NSMatrix -textDidEndEditing:]): fixed return/tab/backtab text
movement code.
([NSMatrix -_selectNextSelectableCellAfterRow:column:]): don't select
disabled cells.
([NSMatrix -_selectPreviousSelectableCellBeforeRow:column:]): likewise.
([NSMatrix -_privateFrame:mode:numberOfRows:numberOfColumns:]): set
dottedRow and dottedColumn.
([NSMatrix -insertRow:withCells:]): likewise.
([NSMatrix -removeColumn:]): likewise.
([NSMatrix -removeRow:]): likewise.
([NSMatrix -mouseDown:]): likewise and discard disabled cells.
([NSMatrix -drawRect:]): set shows cell first responder.
([NSMatrix -becomeFirstResponder]): draw dotted box for cell.
([NSMatrix -resignFirstResponder]): likewise.
([NSMatrix -becomeKeyWindow]): likewise.
([NSMatrix -resignKeyWindow]): likewise.
([NSMatrix -_setNeedsDisplayDottedCell]): likewise.
([NSMatrix -selectTextAtRow:column:]): set shows cell first responder.
([NSMatrix -setState:atRow:column:]): likewise. Deselect previous
selected cell in radio mode.

* Source/NSSavePanel.m (createRowsForColumn:): use _gsSavePanelCompare:
and check extension against _requiredFileType and not "app", "bundle",
etc.
([NSString -_gsSavePanelCompare:]): filename compare.
([NSSavePanel -_initWithoutGModel]): set key view for keyboard
interaction.
([NSSavePanel -keyDown:]): removed.
([NSSavePanel -controlTextDidEndEditing:]): removed.

* Source/NSOpenPanel.m ([NSOpenPanel -_shouldShowExtension:isDir:]):
added isDir argument.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@9473 72102866-910b-0410-8b05-ffd578937521
2001-03-22 00:27:37 +00:00
Richard Frith-Macdonald
2bbfbf1bb5 Coding/decoding fixes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@9469 72102866-910b-0410-8b05-ffd578937521
2001-03-21 08:09:58 +00:00
Fred Kiefer
9e20f65fb0 *** empty log message ***
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@9468 72102866-910b-0410-8b05-ffd578937521
2001-03-21 00:12:54 +00:00
Fred Kiefer
86fd9af034 Made NSColor an abstract class, without ivars.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@9467 72102866-910b-0410-8b05-ffd578937521
2001-03-21 00:11:57 +00:00
Fred Kiefer
c465e1eb7b Define concret subclasses of NSColor and moved code into this
subclasses.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@9466 72102866-910b-0410-8b05-ffd578937521
2001-03-21 00:11:15 +00:00
Fred Kiefer
95acf3e0cc Corrected two errors in [writeToFile:] introduced by the last
changes.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@9465 72102866-910b-0410-8b05-ffd578937521
2001-03-21 00:10:29 +00:00
Fred Kiefer
1e529a1d34 [containsPoint:] corrected and simplified a bit, but this still
needs a complete rework.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@9464 72102866-910b-0410-8b05-ffd578937521
2001-03-21 00:09:29 +00:00
Jonathan Gapen
47e27604ad Instance var updates.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@9460 72102866-910b-0410-8b05-ffd578937521
2001-03-20 00:05:56 +00:00
Jonathan Gapen
5aaa58693c Modernize NSPrinter code.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@9458 72102866-910b-0410-8b05-ffd578937521
2001-03-19 23:34:36 +00:00
Nicola Pero
75d3d7dbef New solution to the make_services problem
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@9434 72102866-910b-0410-8b05-ffd578937521
2001-03-18 16:01:04 +00:00
Nicola Pero
c329757a88 New nice way to tell gnustep-make to use the local make_services rather
than the installed one


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@9433 72102866-910b-0410-8b05-ffd578937521
2001-03-18 15:59:00 +00:00
Nicola Pero
4f04c4c078 Updated
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@9424 72102866-910b-0410-8b05-ffd578937521
2001-03-17 10:16:48 +00:00
Nicola Pero
d32c118cf3 Commented out all empty assignments
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@9410 72102866-910b-0410-8b05-ffd578937521
2001-03-16 23:50:11 +00:00
Nicola Pero
1d729472c6 Changes to GNUmakefiles, tidied, updated, simplified, speeded up
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@9409 72102866-910b-0410-8b05-ffd578937521
2001-03-16 23:47:20 +00:00
Nicola Pero
40b3c49785 Only create the ./$(GNUSTEP_OBJ_DIR)/Parsers directory if it doesnt exist
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@9408 72102866-910b-0410-8b05-ffd578937521
2001-03-16 23:44:00 +00:00
Nicola Pero
f372a3a0c2 Standardized installation of headers
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@9407 72102866-910b-0410-8b05-ffd578937521
2001-03-16 23:43:17 +00:00