Commit graph

1495 commits

Author SHA1 Message Date
FredKiefer
cc4d2beb72 Added some methods for font size and one function for glyphs from
the MacOS X specification.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@9753 72102866-910b-0410-8b05-ffd578937521
2001-05-01 21:19:33 +00:00
FredKiefer
0bb86e273d Implemented the button, bezel and groove drawing with
NSDrawTiledRects. The old implemention is still here. It should be
deleted later on.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@9749 72102866-910b-0410-8b05-ffd578937521
2001-04-30 17:43:34 +00:00
FredKiefer
af0f3d64f4 Moved implementation of drawing functions from xgps
backend to here. Corrected some of them.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@9743 72102866-910b-0410-8b05-ffd578937521
2001-04-29 22:30:52 +00:00
FredKiefer
0e5fce0086 Call GSWSetViewIsFlipped instead of GSWViewIsFlipped.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@9742 72102866-910b-0410-8b05-ffd578937521
2001-04-29 22:27:10 +00:00
FredKiefer
0bb2eca5a9 Moved the old text functions from backend to here.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@9741 72102866-910b-0410-8b05-ffd578937521
2001-04-29 22:26:13 +00:00
FredKiefer
64373ede6f Undid last change, as this is now obsolete.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@9735 72102866-910b-0410-8b05-ffd578937521
2001-04-28 14:02:31 +00:00
nico
5157649c3c Fixed bug occurring when some rows were removed and some of them were
selected.  New code checks for it and deals with it.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@9703 72102866-910b-0410-8b05-ffd578937521
2001-04-25 20:40:46 +00:00
mirko
b207eef86a * Source/NSMatrix.m ([NSMatrix -_mouseDownNonListMode:]): does not
performSelector is the mouse goes up in cell.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@9677 72102866-910b-0410-8b05-ffd578937521
2001-04-23 21:06:43 +00:00
CaS
33cc5feb49 Text storage fix.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@9667 72102866-910b-0410-8b05-ffd578937521
2001-04-23 09:32:45 +00:00
FredKiefer
44d5bea7bb Also replaced GMModel with NSBundle in [init].
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@9662 72102866-910b-0410-8b05-ffd578937521
2001-04-22 23:01:23 +00:00
FredKiefer
6eac6d65c8 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
FredKiefer
79af5108d3 [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
CaS
3b298794cb 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
CaS
e4f6b1c03b 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
CaS
9e852273e7 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
fedor
2e12eecee4 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
8f6950db88 * 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
fedor
d03a6be506 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
fedor
d36bd1251f 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
fedor
af00a6311e 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
fedor
2882908e94 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
FredKiefer
e2522b69c0 [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
FredKiefer
68edce8d37 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
FredKiefer
8186809048 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
FredKiefer
bdc819cd6d 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
FredKiefer
13f8324f10 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
nico
35d2fbace3 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
mirko
bdfe911e3c * 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
mirko
3a101f6bc1 * 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
5a0ddcdeba * 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
CaS
96b026ab00 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
FredKiefer
07880d18ad 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
FredKiefer
434e5cff50 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
FredKiefer
5d58b4955d [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
jagapen
43ce620412 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
nico
9cce7ef9f2 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
nico
b5fd85f00c 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
nico
722ab78210 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
nico
87e7d36591 Updated encoding names for change in the base library names
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@9347 72102866-910b-0410-8b05-ffd578937521
2001-03-13 20:42:10 +00:00
nico
fe734480f2 Fixed how angles are managed when drawing arcs: do it postscript-like
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@9308 72102866-910b-0410-8b05-ffd578937521
2001-03-07 13:09:22 +00:00
fedor
bb5d3f6310 Fix declarations
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@9304 72102866-910b-0410-8b05-ffd578937521
2001-03-06 03:29:55 +00:00
nico
d3b32aaf20 Fixes to appending an arc
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@9252 72102866-910b-0410-8b05-ffd578937521
2001-03-01 01:47:32 +00:00
FredKiefer
bef7e3dc54 [_initWithoutGModel] set target and action for the main colour well.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@9188 72102866-910b-0410-8b05-ffd578937521
2001-02-20 01:02:06 +00:00
richard
771677e59e Tidyups
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@9186 72102866-910b-0410-8b05-ffd578937521
2001-02-19 20:50:49 +00:00
FredKiefer
f01a6a52bd [_initBackendWindow:] corrected the registration of drag types,
when a window gets realized. We have to use a copy here, as the
original will get changed.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@9163 72102866-910b-0410-8b05-ffd578937521
2001-02-19 00:39:28 +00:00
richard
7106a1459a Color dragging minor improvement.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@9162 72102866-910b-0410-8b05-ffd578937521
2001-02-18 18:10:35 +00:00
richard
a002d02682 Modifiefd color well to act more like NeXTstep one
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@9160 72102866-910b-0410-8b05-ffd578937521
2001-02-18 15:53:19 +00:00
nico
03ebf1803c Make the rectangle to copy in device space integral before copying
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@9155 72102866-910b-0410-8b05-ffd578937521
2001-02-18 15:09:15 +00:00
nico
0e9438aeb4 Fixed handling of first responder status to the document view
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@9151 72102866-910b-0410-8b05-ffd578937521
2001-02-17 20:39:38 +00:00
FredKiefer
b7b85df10a Added methods to handle target and action.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@9146 72102866-910b-0410-8b05-ffd578937521
2001-02-14 22:50:06 +00:00