Commit graph

459 commits

Author SHA1 Message Date
ericwa
82ac6117e8 Replace sel_eq with sel_isEqual
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31285 72102866-910b-0410-8b05-ffd578937521
2010-09-09 23:50:38 +00:00
fredkiefer
da660947da Correction of last changes as pointed out by Derek Fawcus
<dfawcus@employees.org>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31032 72102866-910b-0410-8b05-ffd578937521
2010-07-26 11:05:07 +00:00
fredkiefer
7957a90007 Add support for backtab character.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31026 72102866-910b-0410-8b05-ffd578937521
2010-07-25 20:51:40 +00:00
wlux
e225579e41 Avoid a race with some lame window managers, which could lead to a
crash when a window is closed and deallocated while a tool tip is
visible.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30513 72102866-910b-0410-8b05-ffd578937521
2010-05-31 21:55:33 +00:00
fredkiefer
e64aca8bb2 few compiler warning fixes plus a lot of #import replacement.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30448 72102866-910b-0410-8b05-ffd578937521
2010-05-24 10:48:14 +00:00
wlux
afd9a10680 Fix a rather long standing incompatibility between GNUstep and Cocoa
and make -initWithContentRect:styleMask:backing:defer: the designated
initializer of NSWindow.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30368 72102866-910b-0410-8b05-ffd578937521
2010-05-12 14:47:10 +00:00
fredkiefer
b308995696 Make dealloc of NSWindow a tiny bit saver.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30321 72102866-910b-0410-8b05-ffd578937521
2010-05-08 20:18:14 +00:00
dpsimons
a3603ff386 Handle nil view passed to _checkTrackingRectangles:forEvent:
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30233 72102866-910b-0410-8b05-ffd578937521
2010-04-24 17:21:22 +00:00
dpsimons
259dc054b6 fix problems with overlaps between toolbars, window contents, and in-window menus
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30206 72102866-910b-0410-8b05-ffd578937521
2010-04-20 19:37:10 +00:00
rmottola
ee1aa5dc70 removed c99-ism
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30144 72102866-910b-0410-8b05-ffd578937521
2010-04-13 22:54:33 +00:00
ericwa
f2fd7b10c2 Fix for delivery of rightMouseDragged: and otherMouseDragged: which were not working
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30120 72102866-910b-0410-8b05-ffd578937521
2010-04-11 00:31:59 +00:00
dpsimons
d5c7b875c9 Fix crash caused by close being called recursively
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30087 72102866-910b-0410-8b05-ffd578937521
2010-04-05 16:07:46 +00:00
wlux
b69e5ffdbd Remove a stray semicolon, which made NSWindow ignore all GSAppKitWindowLeave
events. This was the cause for, e.g., somewhat too sticky tooltips.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30075 72102866-910b-0410-8b05-ffd578937521
2010-03-30 07:28:05 +00:00
theraven
14205ea54b Removed all uses of @defs() from -gui, so it now compiles cleanly with the non-fragile ABI. All ivars that must be accessed from other classes are now wrapped in PACKAGE_SCOPE. With clang, this expands to @package, with GCC it expands to @public.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30045 72102866-910b-0410-8b05-ffd578937521
2010-03-27 00:01:03 +00:00
fredkiefer
46bba406d0 Add two Cocoa debug helper methods.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29924 72102866-910b-0410-8b05-ffd578937521
2010-03-13 15:17:21 +00:00
jonathanosx
5c1cbe5755 Fix to prevent restoring an NSWindowFrame to a completely off-screen location.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29747 72102866-910b-0410-8b05-ffd578937521
2010-02-25 18:30:10 +00:00
gcasa
87c74dc4c2 * Source/NSWindow.m: Remove private menu - (void) _menuUpdate, since
it was causing performance issue on windows as the menu was updating
	each time through the runloop.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29668 72102866-910b-0410-8b05-ffd578937521
2010-02-18 22:19:27 +00:00
rmottola
d1ecd0f9e2 revert accidental commit
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29544 72102866-910b-0410-8b05-ffd578937521
2010-02-11 11:22:52 +00:00
rmottola
e536c19dce do not draw form background
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29534 72102866-910b-0410-8b05-ffd578937521
2010-02-10 11:14:21 +00:00
qmathe
613b3813bd Fixed button actions which were sent to the button itself when the target is
the first responder. We don't give anymore the first responder status to a 
button on a click.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29471 72102866-910b-0410-8b05-ffd578937521
2010-02-03 19:12:02 +00:00
gcasa
48a4ef2ece * Source/NSWindow.m: Uncomment updateMenu:.. method call in
-[NSWindow update] method.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29383 72102866-910b-0410-8b05-ffd578937521
2010-01-24 08:05:45 +00:00
gcasa
3daab3781d Update menu code and set menu on window creation.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29373 72102866-910b-0410-8b05-ffd578937521
2010-01-23 23:41:07 +00:00
rmottola
13e9913ec8 do not process GSAppKitWindowLeave events for closed windows
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29332 72102866-910b-0410-8b05-ffd578937521
2010-01-20 14:58:59 +00:00
gcasa
20283d50fd * Source/NSWindow.m: Temporarily revert previous change for debugging.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29302 72102866-910b-0410-8b05-ffd578937521
2010-01-17 06:01:58 +00:00
gcasa
83dac5cfec * Source/NSWindow.m: Don't use the flags for key/main window tracking.
These flags are getting out of sync due to different behavior on
	different backends.  Also, it's better to keep the state in one place
	instead of keeping them in sync.  I changed all of the instances of
	_f.is_key to [self isKeyWindow] and all of the instances of _f.is_main
	to [self isMainWindow] and those methods now check with NSApp to 
	determine if the current window is main.   I realize this is slower
	than the previous method of using flags, but it is also more resilient
	and reliable when the backend sends extra events.  This corrects the
	issue on Windows where we were losing the main window and had two 
	windows marked as "main".


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29295 72102866-910b-0410-8b05-ffd578937521
2010-01-16 19:56:27 +00:00
dpsimons
6d057abc84 Raise an exception instead of crashing (at least on Windows) when we fail to obtain a window from the back end.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29284 72102866-910b-0410-8b05-ffd578937521
2010-01-14 23:57:11 +00:00
gcasa
dcea95cb77 * Headers/Additions/GNUstepGUI/GSTheme.h: Added methods
to support adding menus and processing commands from windows, if
       appropriate.
       * Headers/Additions/GNUstepGUI/GSWindowDecorationView.h: Added
       new methods for menu and toolbar flags.
       * Headers/AppKit/NSInterfaceStyle.h: Added new interface style.
       * Source/GNUmakefile: Added header.
       * Source/GSStandardWindowDecorationView.m: Change include
       to include header in new location.
       * Source/GSThemeMenu.m: Default theme implementation for
       Menus.
       * Source/GSWindowDecorationView.m: Add the setHasMenu:/setHasToolbar:
       flags.
       * Source/NSWindow.m: Use the theme to set the menu instead of
       setting it directly.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29271 72102866-910b-0410-8b05-ffd578937521
2010-01-13 20:51:30 +00:00
wlux
f17e5bb858 Use the first responder's undo manager in an NSWindow's undo: and
redo: actions if available. Avoids the need for overriding these
methods in any responder class which supports undo/redo and is
compatible with OS X.
Generalize user interface validation for NSWindow.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29158 72102866-910b-0410-8b05-ffd578937521
2009-12-22 00:14:16 +00:00
fredkiefer
138604f74e Patch by German Arias <german@xelalug.org>.
Allows to get icon placement from separate process.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29153 72102866-910b-0410-8b05-ffd578937521
2009-12-21 17:27:56 +00:00
qmathe
3e5a1cefaa Added NSWindow 'title' binding
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29113 72102866-910b-0410-8b05-ffd578937521
2009-12-10 12:43:35 +00:00
rfm
e954a93ff3 tweaks
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29044 72102866-910b-0410-8b05-ffd578937521
2009-11-20 13:36:46 +00:00
wlux
bf0766fd29 Improve key view loop processing by always shifting keyboard focus to
the next and previous key view, respectively, upon receving Ctrl-Tab
and Ctrl-Shift-Tab keyboard events.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29013 72102866-910b-0410-8b05-ffd578937521
2009-11-14 22:45:23 +00:00
fredkiefer
82e0d9ae48 Small changes to NSWindow.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28992 72102866-910b-0410-8b05-ffd578937521
2009-11-12 09:05:22 +00:00
wlux
9326ec2792 Fix an issue where a window's delegate could be called during
deallocation. This also avoids unnecessary screen flicker when the
window is closed.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28960 72102866-910b-0410-8b05-ffd578937521
2009-11-05 22:23:52 +00:00
rfm
bc795fdaa1 fix for activation with suppressed icon window
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28837 72102866-910b-0410-8b05-ffd578937521
2009-10-18 08:02:40 +00:00
rfm
3325226e5c Partial code for using miniaturised app icon to unhide a hidden app.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28832 72102866-910b-0410-8b05-ffd578937521
2009-10-17 15:18:26 +00:00
rfm
817142915c Suppress app icon window by simply not ordering it in.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28831 72102866-910b-0410-8b05-ffd578937521
2009-10-17 05:35:56 +00:00
fredkiefer
9e33aabc27 Get NSToolbar setVisible: to really display/hide the toolbar.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28722 72102866-910b-0410-8b05-ffd578937521
2009-09-21 16:04:36 +00:00
gcasa
c48ab519e9 * Headers/AppKit/NSWindow.h
* Source/NSApplication.m
	* Source/NSWindow.m: Added ivar for attached sheet back.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28433 72102866-910b-0410-8b05-ffd578937521
2009-08-02 14:16:13 +00:00
gcasa
57489095d8 * Headers/AppKit/NSWindow.h: Comment out _attachedSheet ivar.
* Source/NSAlert.m: Change code to use hightlightWithLevel: method
	in resetWindow method.
	* Source/NSApplication.m: Stub out setAttachedSheet method.
	* Source/NSWindow.m: Remove new ivar for next release and stub out
	attachedSheet method.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28415 72102866-910b-0410-8b05-ffd578937521
2009-07-27 16:31:32 +00:00
gcasa
5c6bc58428 Initial changes for sheet implementation. More to come.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28283 72102866-910b-0410-8b05-ffd578937521
2009-05-14 22:17:48 +00:00
fredkiefer
2395ea184f Replace nil with [NSDate distantFuture] in calls to nextEventMatchingMask:...dequeue:.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28025 72102866-910b-0410-8b05-ffd578937521
2009-03-02 16:26:23 +00:00
fredkiefer
e90778c29d Add more missing localization includes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28015 72102866-910b-0410-8b05-ffd578937521
2009-03-01 19:04:58 +00:00
gcasa
41997744bb * Source/NSWindow.m: Correct compilation error.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27792 72102866-910b-0410-8b05-ffd578937521
2009-02-04 22:43:26 +00:00
rfm
6d9fd6d690 Fix typo in method to set parent window of a child, optimise color handling in themes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27742 72102866-910b-0410-8b05-ffd578937521
2009-01-31 09:59:32 +00:00
fredkiefer
60af32a0f7 Add backend support for the NSWindow child mechanism and use it for
popup buttons.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27719 72102866-910b-0410-8b05-ffd578937521
2009-01-29 09:37:30 +00:00
fredkiefer
0a03a0999e Avoid annoying messages on first system startup about empty map table.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27713 72102866-910b-0410-8b05-ffd578937521
2009-01-28 18:05:26 +00:00
rfm
e5a4ab5b40 keep main menu available when using micrtosoft style
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27692 72102866-910b-0410-8b05-ffd578937521
2009-01-25 18:28:20 +00:00
rfm
0d5c221a7d per-window menu setting tweaks.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27686 72102866-910b-0410-8b05-ffd578937521
2009-01-25 13:47:30 +00:00
rfm
e2011f6fb3 iiiignore invalid tracking rectangles
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27665 72102866-910b-0410-8b05-ffd578937521
2009-01-24 08:38:21 +00:00