Commit graph

441 commits

Author SHA1 Message Date
Richard Frith-MacDonald
4906cb9402 Fixed typo
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@3528 72102866-910b-0410-8b05-ffd578937521
1999-01-05 21:27:31 +00:00
Richard Frith-MacDonald
3732a3f592 Tidied initialisation code
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@3527 72102866-910b-0410-8b05-ffd578937521
1999-01-05 21:24:06 +00:00
Richard Frith-MacDonald
49d9358051 Bugfixes suggested by stark@easynet.fr
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@3525 72102866-910b-0410-8b05-ffd578937521
1999-01-05 18:42:33 +00:00
Richard Frith-MacDonald
07295c17fe Many updates to fix problems with menus etc
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@3500 72102866-910b-0410-8b05-ffd578937521
1998-12-22 12:34:03 +00:00
Adam Fedor
9b5c4cc695 Makefile changes to compile thinkg in place.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@3496 72102866-910b-0410-8b05-ffd578937521
1998-12-20 21:27:47 +00:00
Richard Frith-MacDonald
ca8037b919 Tidying window list management
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@3495 72102866-910b-0410-8b05-ffd578937521
1998-12-20 06:19:06 +00:00
Richard Frith-MacDonald
fbab6c3769 Addede update for NSApplication.h omitted in error
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@3489 72102866-910b-0410-8b05-ffd578937521
1998-12-18 10:19:03 +00:00
Richard Frith-MacDonald
799075eb24 New instance variable windows_menu_count for tolerabe performance
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@3488 72102866-910b-0410-8b05-ffd578937521
1998-12-18 10:16:51 +00:00
Richard Frith-MacDonald
391fbd557b More windows menu improvements.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@3487 72102866-910b-0410-8b05-ffd578937521
1998-12-17 22:42:16 +00:00
Richard Frith-MacDonald
49b1a3e9f1 1998-12-17 Matthias Klose <doko@cs.tu-berlin.de>
* {,*}/GNUmakefile: Include Version and GNUmakefile.local.
        * Tools/GNUmakefile.preamble: Set ADDITIONAL_LIB_DIRS.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@3483 72102866-910b-0410-8b05-ffd578937521
1998-12-17 16:16:03 +00:00
Richard Frith-MacDonald
60ded0ffb4 Reinstate changes to NSWindow.m to keep it working.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@3480 72102866-910b-0410-8b05-ffd578937521
1998-12-17 13:06:17 +00:00
Richard Frith-MacDonald
b824752830 Fixed ASSIGN macro from NSObject.h
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@3479 72102866-910b-0410-8b05-ffd578937521
1998-12-17 11:11:22 +00:00
Felipe A. Rodriguez
9104a852b4 * NSWindow.m acceptsFirstResponder implement.
* NSView.m: removeFromSuperview remove view from responder chain.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@3476 72102866-910b-0410-8b05-ffd578937521
1998-12-16 22:33:40 +00:00
Richard Frith-MacDonald
b07c73de04 More tidying.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@3471 72102866-910b-0410-8b05-ffd578937521
1998-12-16 17:36:48 +00:00
Richard Frith-MacDonald
13d9f5fb02 Removed keyDown method
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@3470 72102866-910b-0410-8b05-ffd578937521
1998-12-16 15:23:25 +00:00
Richard Frith-MacDonald
6ee33bb429 Many many improvements
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@3469 72102866-910b-0410-8b05-ffd578937521
1998-12-16 15:21:55 +00:00
Adam Fedor
cd4581d03a Remove duplicate function
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@3468 72102866-910b-0410-8b05-ffd578937521
1998-12-16 14:08:57 +00:00
Felipe A. Rodriguez
48d1a0486f tweak acceptsFirstResponder
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@3467 72102866-910b-0410-8b05-ffd578937521
1998-12-16 12:57:41 +00:00
Felipe A. Rodriguez
1551c447ac * NSCell.m acceptsFirstResponder implement, editWithFrame: adjust further,
selectWithFrame: preliminary implementation.
	* NSButton.m: acceptsFirstResponder implement.
	* NSText.m: shouldDrawInsertionPoint test for field editor status.
	* NSTextField.m: mouseDown: use field editor instead of previous non OS
	text field cell editor code, textShouldEndEditing: implement.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@3466 72102866-910b-0410-8b05-ffd578937521
1998-12-16 11:48:33 +00:00
Richard Frith-MacDonald
9b25f83278 Various updates to get keyboard equivalents for buttons working (especially
for panels).


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@3461 72102866-910b-0410-8b05-ffd578937521
1998-12-15 16:20:22 +00:00
Richard Frith-MacDonald
dd6cce428b Completed services
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@3459 72102866-910b-0410-8b05-ffd578937521
1998-12-14 16:03:48 +00:00
Richard Frith-MacDonald
c9fe894641 Added alert panels and fixed for submenus of services menu.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@3458 72102866-910b-0410-8b05-ffd578937521
1998-12-14 15:59:51 +00:00
Richard Frith-MacDonald
57f59001f8 Added NSEraseRect() and tidied
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@3457 72102866-910b-0410-8b05-ffd578937521
1998-12-14 11:47:49 +00:00
Felipe A. Rodriguez
81aa95a861 minor tweak to NSView
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@3455 72102866-910b-0410-8b05-ffd578937521
1998-12-14 10:28:51 +00:00
Felipe A. Rodriguez
f29476bc08 * NSWindow.m renmae captureMouse: to _captureMouse: (designate as non OS),
various methods add fieldEditor support.
	* GSContext.m/GSContext.h revert to previous code as solution discussed
	with Adam Fedor regarding backends had problems I had not forseen.
	* NSBrowserCell.h/.m specify text subcell as an NSCell, eliminate image
	cell, copyWithZone: optimize and eliminate use of ASSIGN (fixes serious
	dealloc bug), highlight: eliminate method (fixes dup display bug).
	* NSButtonCell.m copyWithZone: optimize and eliminate use of ASSIGN
	* NSStringDrawing.h/.m remove unimplemented draw methods from Category
	(these are backend specific, can't be defined twice and are already
	implemented in xraw).
	* NSApplication.h redefine initialize_gnustep_backend () per Adam's
	redefinition in the backend.
	* Functions.m/.h remove initialize_gnustep_backend()
 	* NSCell.m preliminary implementation of fieldEditor mechanism,
	copyWithZone: optimize and eliminate use of ASSIGN
	* NSControl.m rename cell class global to _NSCONTROL_CELL_CLASS
	* NSMatrix.m implement NSControl's updateCell: to prevent unecessary
	matrix drawing if possible.
	* NSView.m -resizeWithOldSuperviewSize reverted code to my own once more
	(fewer lines and no if/else logic), changed code to use view frame instead
	of bounds per 3.3/4.2 docs, optimize to avoid floating point math and scale
	adjustment unless view has been scaled.
	* NSScrollView.m define as externs various PS* functions for use in
	drawing, polish drawing, move all backend code to front.
	* Tools/dummy.m define dummy PS* functions employed in gui.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@3454 72102866-910b-0410-8b05-ffd578937521
1998-12-14 09:54:38 +00:00
Richard Frith-MacDonald
6130d3c1f9 Completed alert panel functions
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@3453 72102866-910b-0410-8b05-ffd578937521
1998-12-14 08:58:53 +00:00
Richard Frith-MacDonald
a16cc86632 Revert to previous version
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@3446 72102866-910b-0410-8b05-ffd578937521
1998-12-13 11:29:13 +00:00
Richard Frith-MacDonald
35c3e329d7 Minor tidy up.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@3436 72102866-910b-0410-8b05-ffd578937521
1998-12-12 10:04:50 +00:00
Richard Frith-MacDonald
7c66b0ba8b Minor tidying
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@3435 72102866-910b-0410-8b05-ffd578937521
1998-12-12 10:03:44 +00:00
Richard Frith-MacDonald
8d9e4a1ec6 Minor bugfix and comment added.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@3434 72102866-910b-0410-8b05-ffd578937521
1998-12-12 09:55:57 +00:00
Richard Frith-MacDonald
7e21acf74e Fixed error in the, deliberately wrong :-) code for rounding view sizes down
to an integer number of points.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@3433 72102866-910b-0410-8b05-ffd578937521
1998-12-12 09:53:54 +00:00
Richard Frith-MacDonald
ef7322b34a Revert to version of resizing with correct logic
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@3432 72102866-910b-0410-8b05-ffd578937521
1998-12-12 06:46:14 +00:00
Richard Frith-MacDonald
a3caf04554 resizeWithOldSuperviewSize: revert to previous code (in order to fix bug
introduced when MaxX or Y is specified but not Min.  Added reliable
code to avoid fractional values.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@3431 72102866-910b-0410-8b05-ffd578937521
1998-12-12 06:40:23 +00:00
Adam Fedor
2d9477c8ed Remove method table init.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@3430 72102866-910b-0410-8b05-ffd578937521
1998-12-11 13:39:07 +00:00
Felipe A. Rodriguez
b17663409e * GNUAlertPanel rename to GSAlertPanel (to maintain a common naming style
along the NS* lines within the AppKit public API).  Move code to NSPanel
	as it is conceptually a private panel class for the sake of the public
	NS* panel functions.
	* GNUServicesManager.m/.h rename to GSServicesManager (to maintain a
	common naming style along the NS* lines within the AppKit public API).


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@3429 72102866-910b-0410-8b05-ffd578937521
1998-12-10 21:14:52 +00:00
Adam Fedor
81abcf1f75 Change backend initialization
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@3428 72102866-910b-0410-8b05-ffd578937521
1998-12-10 19:53:41 +00:00
Felipe A. Rodriguez
8d0237fbfa Added Files:
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@3427 72102866-910b-0410-8b05-ffd578937521
1998-12-10 18:09:59 +00:00
Felipe A. Rodriguez
134a561e0c * NSWindow.h change window style enum to match WindowMaker's definition.
* GNUAlertPanel.m NSGetAlertPanel() replace centering code with call to
	center method, change window style mask, add class initialize.
	* libgnustep-gui.m rename to Functions.m.
	* Functions.m add new file as location for generic NS* and GS* functions,
	move backend NSEventMaskFromType() into it.
	* NSApplication.m discardEventsMatchingMask:.. rewrite (fix bugs),
	runModalSession: dump all events not for modal window (fixes modal panel
	button display bug), arrangeInFront: preliminary implemenation.
	* NSCell.m: Polish.
	* NSWindow.m: center remove display invocation per 4.2 docs.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@3426 72102866-910b-0410-8b05-ffd578937521
1998-12-10 18:07:24 +00:00
Felipe A. Rodriguez
caab58e8db * NSView.m resizeWithOldSuperviewSize: revert to previous code and add bug
fixes from new.  Fixes bugs in new code when MaxX or Y is specified but not
	Min.  Avoids fractional values and fewer lines of code.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@3425 72102866-910b-0410-8b05-ffd578937521
1998-12-09 17:49:55 +00:00
Richard Frith-MacDonald
2eb6fb3f87 Auto-resize fixes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@3424 72102866-910b-0410-8b05-ffd578937521
1998-12-09 06:42:19 +00:00
Felipe A. Rodriguez
872ab1e340 * NSApplication.m: polish, eliminate a couple of compiler warnings.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@3423 72102866-910b-0410-8b05-ffd578937521
1998-12-09 05:32:07 +00:00
Felipe A. Rodriguez
3a0de0df6c * NSScroller.m move backend code into frontend, polish code, remove ifdefs.
* TrackingRectangle.m/.h rename class to GS* prefix (GSTrackingRect).
	* NSView.m resizeWithOldSuperviewSize: floor possibly fractional results.
	displayIfNeededIgnoringOpacity: rewrite to fix obscure bugs in auto
	display.  Minor tweaks in other display methods for same reasons.
	* NSView.h rename invalidatedRectangle to invalidRect.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@3421 72102866-910b-0410-8b05-ffd578937521
1998-12-09 01:26:37 +00:00
Richard Frith-MacDonald
427b47b20d bugfixes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@3420 72102866-910b-0410-8b05-ffd578937521
1998-12-08 20:36:32 +00:00
Richard Frith-MacDonald
002a54d59e iGet alert panels working
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@3419 72102866-910b-0410-8b05-ffd578937521
1998-12-08 20:34:00 +00:00
Richard Frith-MacDonald
eee36f424d Small bugfixes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@3405 72102866-910b-0410-8b05-ffd578937521
1998-12-07 15:39:28 +00:00
Richard Frith-MacDonald
69750e6900 Bugfixes in object creation methods
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@3404 72102866-910b-0410-8b05-ffd578937521
1998-12-07 15:36:51 +00:00
Richard Frith-MacDonald
b0146d57c0 Small performance hack
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@3401 72102866-910b-0410-8b05-ffd578937521
1998-12-07 11:58:44 +00:00
Richard Frith-MacDonald
8c43926ae3 Minor bugfix
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@3396 72102866-910b-0410-8b05-ffd578937521
1998-12-06 20:18:48 +00:00
Richard Frith-MacDonald
0b270c17b4 Fixed path setup error
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@3393 72102866-910b-0410-8b05-ffd578937521
1998-12-06 19:51:44 +00:00
Felipe A. Rodriguez
fe9e59eb35 * NSView.m resizeWithOldSuperviewSize: fully implement.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@3392 72102866-910b-0410-8b05-ffd578937521
1998-12-05 21:27:19 +00:00