Commit graph

7890 commits

Author SHA1 Message Date
Pierre-Yves Rivaille
7269d0c8eb * Source/NSTableHeaderCell.m: New drawing code, support for
highlighted cells.
* Source/NSTableHeaderView.m: support for drawing highlighted
  column, support for NSTableView mouseDownInHeaderOfTableColumn:
  and didClickTableColumn: delegate messages.
* Source/NSTableView.m: rewrite of -mouseDown method.
  rewrite of selection handling to fully support the specs
  new tableView:didClickTableColumn: and
  tableView:mouseDownInHeaderOfTableColumn delegate messages
  [NSTableView -setHighlightedTableColumn:]
  [NSTableView -highlightedTableColumn]: methods implemented.
* Headers/gnustep/gui/NSTableView.h:
  new _highlightedTableColumn ivar.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12521 72102866-910b-0410-8b05-ffd578937521
2002-02-13 16:34:40 +00:00
Richard Frith-Macdonald
fcfe13f6db minor fix
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12513 72102866-910b-0410-8b05-ffd578937521
2002-02-12 19:10:31 +00:00
Nicola Pero
9d1b198a9e Textfields should now work again
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12498 72102866-910b-0410-8b05-ffd578937521
2002-02-11 17:21:38 +00:00
Nicola Pero
9dfbbceaf2 Updated for changes in semantics of NSMutableAttributedString -string
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12497 72102866-910b-0410-8b05-ffd578937521
2002-02-11 17:21:13 +00:00
Nicola Pero
025eee8a38 Fixed selecting text in textviews which was broken by my previous fix
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12494 72102866-910b-0410-8b05-ffd578937521
2002-02-11 16:40:02 +00:00
Nicola Pero
ca71e9de80 Always update the internal knowledge of the first text view when a
text container tells us that it has changed text view


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12493 72102866-910b-0410-8b05-ffd578937521
2002-02-11 16:37:21 +00:00
Nicola Pero
b7d009fa07 Always inform the layout manager that the textview is changed
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12492 72102866-910b-0410-8b05-ffd578937521
2002-02-11 16:36:55 +00:00
Richard Frith-Macdonald
f20aa934fc nib loading fix added.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12491 72102866-910b-0410-8b05-ffd578937521
2002-02-11 16:29:15 +00:00
Richard Frith-Macdonald
3e53223862 Add patch to avoid unnecessary redrawing.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12490 72102866-910b-0410-8b05-ffd578937521
2002-02-11 14:06:00 +00:00
Nicola Pero
b6b6fdd813 Fixed dealloc of NSLayoutManager for layout managers which have not been -init
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12485 72102866-910b-0410-8b05-ffd578937521
2002-02-11 02:42:37 +00:00
Nicola Pero
90f3074971 Fixed dealloc so that it can dealloc a layout manager which has not been
-init


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12484 72102866-910b-0410-8b05-ffd578937521
2002-02-11 02:42:12 +00:00
Nicola Pero
8e7bfb06a7 Fixes in the layout manager so that it no longer crash if you use it without
a text container - updated NSText startup sequence for this change


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12483 72102866-910b-0410-8b05-ffd578937521
2002-02-11 02:03:24 +00:00
Nicola Pero
6a3a289ea7 Updated setup of the text system for changes in NSLayoutManager
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12482 72102866-910b-0410-8b05-ffd578937521
2002-02-11 02:02:10 +00:00
Nicola Pero
435e2fe226 Fixed problems with no text container being set ... typically happening
early during initialization


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12481 72102866-910b-0410-8b05-ffd578937521
2002-02-11 02:01:29 +00:00
Nicola Pero
ae95ed3ec9 Fixed method returning a text container for when there is no text
container set ... typically happening during text system setup


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12480 72102866-910b-0410-8b05-ffd578937521
2002-02-11 02:00:35 +00:00
Pierre-Yves Rivaille
0b88049e99 Source/GSFontInfo.m
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12475 72102866-910b-0410-8b05-ffd578937521
2002-02-09 16:17:35 +00:00
Pierre-Yves Rivaille
927b233997 [GSFontInfo -defaultLineHeightForFont]: descender is substracted not
added to ascender to give the lineHeight


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12474 72102866-910b-0410-8b05-ffd578937521
2002-02-09 16:16:00 +00:00
Richard Frith-Macdonald
6d009268eb Patch to check style mask when miniaturising
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12462 72102866-910b-0410-8b05-ffd578937521
2002-02-09 08:58:37 +00:00
Nicola Pero
474076b08a Fixed wrong date in my last changelog entry
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12433 72102866-910b-0410-8b05-ffd578937521
2002-02-08 02:03:05 +00:00
Nicola Pero
4197a3cdd4 Tidied indentation of a line
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12432 72102866-910b-0410-8b05-ffd578937521
2002-02-08 02:01:34 +00:00
Nicola Pero
290e9242c8 Implemented keybindings for moving/selecting by words in a textview
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12431 72102866-910b-0410-8b05-ffd578937521
2002-02-08 01:57:22 +00:00
Nicola Pero
88673b67b5 Uncommented moving by words modifying selection
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12430 72102866-910b-0410-8b05-ffd578937521
2002-02-08 01:54:49 +00:00
Nicola Pero
1b09f51ad0 Simplified existing code for moving by words; added moving by words
and modifying selection


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12429 72102866-910b-0410-8b05-ffd578937521
2002-02-08 01:54:21 +00:00
Nicola Pero
f3f65c281e Rewritten moving a word forward or backward
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12428 72102866-910b-0410-8b05-ffd578937521
2002-02-08 01:53:18 +00:00
Nicola Pero
0fdf9640ca Code cleaning and rearranging in GSSimpleLayoutManager
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12426 72102866-910b-0410-8b05-ffd578937521
2002-02-06 19:22:08 +00:00
Nicola Pero
638a861702 Code moved and cleaned a bit
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12425 72102866-910b-0410-8b05-ffd578937521
2002-02-06 19:21:29 +00:00
Nicola Pero
32cd7fb23f Removed old unused unfinished layout manager code
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12421 72102866-910b-0410-8b05-ffd578937521
2002-02-06 16:22:03 +00:00
Nicola Pero
b80cbdf0af Removed old unused declarations
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12420 72102866-910b-0410-8b05-ffd578937521
2002-02-06 16:21:15 +00:00
Nicola Pero
0615a29ffc Removed old unused layout code
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12419 72102866-910b-0410-8b05-ffd578937521
2002-02-06 16:20:43 +00:00
Richard Frith-Macdonald
d20683b862 Improve performance by handing out proxy to internal string
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12418 72102866-910b-0410-8b05-ffd578937521
2002-02-06 13:55:49 +00:00
Richard Frith-Macdonald
e931b93591 Fix mouseDown invocation in NSWindow
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12416 72102866-910b-0410-8b05-ffd578937521
2002-02-06 10:29:26 +00:00
Nicola Pero
53e07cbe85 Fixed bug in typing enter at the end of text
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12415 72102866-910b-0410-8b05-ffd578937521
2002-02-06 01:39:35 +00:00
Nicola Pero
42b0b2ef67 Fixed bug when typing enter at the end of text; fixed drawing insertion
point when there is no text


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12414 72102866-910b-0410-8b05-ffd578937521
2002-02-06 01:39:11 +00:00
Nicola Pero
5198e15983 Indentation changes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12413 72102866-910b-0410-8b05-ffd578937521
2002-02-06 01:06:03 +00:00
Nicola Pero
701315fa80 Implemented shift-leftarrow and shift-rightarrow in editing text
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12411 72102866-910b-0410-8b05-ffd578937521
2002-02-05 13:23:00 +00:00
Nicola Pero
f1dd23a32f Implemented moveBackwardsAndModifySelection: and moveForwardAndModifySelection:
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12410 72102866-910b-0410-8b05-ffd578937521
2002-02-05 13:21:54 +00:00
Nicola Pero
9532b29b88 Activate Shift-LeftArrow and Shift-RightArrow
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12409 72102866-910b-0410-8b05-ffd578937521
2002-02-05 13:21:14 +00:00
Nicola Pero
b56d289977 textview: implemented transpose: and bound it to Control-t; updated
keybinding list to be as on openstep


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12396 72102866-910b-0410-8b05-ffd578937521
2002-02-03 14:02:40 +00:00
Nicola Pero
e724b5f449 Updated to be as on openstep
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12395 72102866-910b-0410-8b05-ffd578937521
2002-02-03 14:01:30 +00:00
Nicola Pero
ec39a9cf5e Implemented transpose: (which is bound to Control-t)
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12394 72102866-910b-0410-8b05-ffd578937521
2002-02-03 14:00:40 +00:00
Nicola Pero
dd287980ee Added transpose: ; removed category and cleaned up a bit
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12393 72102866-910b-0410-8b05-ffd578937521
2002-02-03 14:00:07 +00:00
Richard Frith-Macdonald
e63280a9fb Bugfixes for removing view from view and for ordring windos in.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12392 72102866-910b-0410-8b05-ffd578937521
2002-02-03 07:23:10 +00:00
Fred Kiefer
8ddb9f1d72 Made NSFontPanel behave more like the orignal on Next.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12380 72102866-910b-0410-8b05-ffd578937521
2002-02-02 00:31:49 +00:00
Fred Kiefer
f2d4e5e7bf [reloadDefaultFontFamilies] load the family browser and redisplay
the selected font. [setPanelFont:isMultiple:] load the face
browser, store font weight and traits and display font name in
preview only if no preview string is set. [_initWithoutGModel]
made the set button the default button. Split most code from
[_togglePreview:] into separate method [_doPreview], which is
called, when the preview state should not change. In [_doPreview]
only display font name if preview string is not set.
[browser:selectRow:inColumn:], when selecting a family select a
face with the same weight and traits as the originaly
selected. When selecting a face, store its weight and traits.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12379 72102866-910b-0410-8b05-ffd578937521
2002-02-02 00:30:41 +00:00
Fred Kiefer
d9e15a0361 New ivars for traits, weight and a future preview string.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12378 72102866-910b-0410-8b05-ffd578937521
2002-02-02 00:29:58 +00:00
Fred Kiefer
827edcb7eb [orderFrontFontPanel:] no longer sets the selected font on the
panel, as this gets done by the panel itself.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12377 72102866-910b-0410-8b05-ffd578937521
2002-02-02 00:28:52 +00:00
Fred Kiefer
670fccda89 Corrected [TIFFRepresentation], was calling the wrong
NSBitmapImageRep method.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12376 72102866-910b-0410-8b05-ffd578937521
2002-02-02 00:27:32 +00:00
Richard Frith-Macdonald
25010783ce Fix missed file for GIS api change
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12374 72102866-910b-0410-8b05-ffd578937521
2002-02-01 18:19:04 +00:00
Richard Frith-Macdonald
5834d85e1c Expect new GSI api
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12370 72102866-910b-0410-8b05-ffd578937521
2002-02-01 15:31:21 +00:00
Richard Frith-Macdonald
9de3b40693 Use new GSI api from base library
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12360 72102866-910b-0410-8b05-ffd578937521
2002-02-01 11:01:27 +00:00