Commit graph

52 commits

Author SHA1 Message Date
espectador
c0ef7df9ed Verify if there is error information to be displayed in an Alert panel
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@34242 72102866-910b-0410-8b05-ffd578937521
2011-12-02 23:15:07 +00:00
ericwa
465552f777 * Source/NSAlert.m: Use NSImageScaleProportionallyUpOrDown on
app icon button cell.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@34165 72102866-910b-0410-8b05-ffd578937521
2011-11-12 01:16:17 +00:00
fredkiefer
3cdc68a09b Replace #include -> #import
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32451 72102866-910b-0410-8b05-ffd578937521
2011-03-04 11:33:22 +00:00
wlux
c8a398925b Fix NSAlert implementation so that buttons are assigned tags starting
with NSAlertFirstButtonReturn, except if the panel was created with
the backward compatibility method +alertWithMessageText:defaultButton:...
Also assign appropriate key equivalents to buttons in panels created
with the old OpenStep alert panel functions.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30515 72102866-910b-0410-8b05-ffd578937521
2010-05-31 22:20:38 +00:00
wlux
be698a3d7c Propagate the change of NSWindow's designated initializer to all
affected subclasses.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30394 72102866-910b-0410-8b05-ffd578937521
2010-05-15 20:43:27 +00:00
wlux
ddddcb1144 Fix incorrect return code of NSRunAlertPanel when called in a non-gui
application.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30222 72102866-910b-0410-8b05-ffd578937521
2010-04-23 15:12:06 +00:00
fredkiefer
851b8ece4d Final set of #include -> #import replacement in additional headers.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30097 72102866-910b-0410-8b05-ffd578937521
2010-04-07 08:59:43 +00:00
rfm
f6b454e7e1 Fixes for bug #29085
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29864 72102866-910b-0410-8b05-ffd578937521
2010-03-07 08:28:11 +00:00
fredkiefer
3a1e3b1b35 Started cleanup of #includes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29833 72102866-910b-0410-8b05-ffd578937521
2010-03-04 10:12:13 +00:00
wlux
bac9319cc7 If the message text of an alert panel is too wide to fit into the
panel wrap its text to the scroll view's width. Limit the width and
height of alert panels to 60% of the screen's width and height
respectively.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29157 72102866-910b-0410-8b05-ffd578937521
2009-12-21 23:44:44 +00:00
wlux
cb299e33c8 Fix a regression in the alert sheet functions which has introduced a
variant of #26101 where only one callback was used.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28959 72102866-910b-0410-8b05-ffd578937521
2009-11-05 21:56:42 +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
c58602f5f5 * Source/NSAlert.m: Offset color by less in -resetWindow. Remove
redundant logic for calling the "didEnd" method in the NSBeginSheet...
	functions.
	* Source/NSApplication.m: Add code to reset parent window in 
	beginSheet:... method.  Also added check to make sure the
	modalDelegate is not nil.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28411 72102866-910b-0410-8b05-ffd578937521
2009-07-26 02:56:56 +00:00
gcasa
9529d2cdb7 * Source/NSAlert.m: Remove category for setAttachedSheet method.
* Source/NSApplication.m: Added private category to add 
	setAttachedSheet: to NSWindow.  Modified beginSheet:... method
	to call the new method with the sheet that is associated with it.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28410 72102866-910b-0410-8b05-ffd578937521
2009-07-26 00:56:29 +00:00
gcasa
b34fbf2d07 * Source/NSAlert.m: GSAlertSheet - removed unecessary parentWindow
and  container ivars in interface declaration.  Removed uneeded
	accessors for parentWindow and contentRect.  Added check in
	frameFromParentWindowFrame to check to see if parent is initialized
	prior to using it.   Removed NSBox in the init.. method since it 
	could cause issues with drawing.   Added code to lighten the 
	color of the background of the sheet relative to the parent window.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28409 72102866-910b-0410-8b05-ffd578937521
2009-07-26 00:35:13 +00:00
gcasa
ee53b24c7e * Source/NSAlert.m: Implementation of GSAlertSheet.
* Source/NSApplication.m: Change order in which setWindowParent:
	and runModalForWindow: are called in beginSheet:... method.
	* Source/NSDrawer.m: Remove notifications when drawer is closed
	in dealloc.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28392 72102866-910b-0410-8b05-ffd578937521
2009-07-13 18:12:52 +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
gcasa
d1db66cd7c Revert previous change.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28225 72102866-910b-0410-8b05-ffd578937521
2009-04-16 20:05:32 +00:00
gcasa
e13e7a38a5 Correct issue with sheets/panels appearing beneath other modal panels.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28224 72102866-910b-0410-8b05-ffd578937521
2009-04-16 19:02:30 +00:00
gcasa
bff13e455a * Source/NSAlert.m: in the method _initWithoutGModel add a call
to setLevel: to set the level to NSModalPanelWindowLevel.   This was
	not previously being done and was causing alert panels to get lost 
	behind other application windows.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28195 72102866-910b-0410-8b05-ffd578937521
2009-04-10 14:25:20 +00:00
fredkiefer
7d79f9683b Correct the calling of the delegate methods in the alert sheet
functions. Should fix #26101.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28185 72102866-910b-0410-8b05-ffd578937521
2009-04-07 20:54:41 +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
wlux
2282372272 Trigger the action of NSButton and NSPopUpButton in their keyDown
method only for the Space key.
Fix key view loop of NSAlert panels and NSSavePanel so that all
buttons become reachable with the Tab key.
Make Escape key equivalent of the Cancel button of NSSavePanel.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27011 72102866-910b-0410-8b05-ffd578937521
2008-11-05 23:01:37 +00:00
wlux
4b6d5a490a Pass correct arguments to the didEndSelector passed to NSAlert's
-beginSheetModalForWindow:delegate:didEndSelector:contextInfo: method.
Fix swapping of title and informative message text in NSAlerts. Also
supply a default title "Alert" if none is set.
Determine key equivalent of NSAlert buttons from their localized titles.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27010 72102866-910b-0410-8b05-ffd578937521
2008-11-05 22:47:50 +00:00
fedor
ce41d782c1 Revert library license version to 2 until applications can be converted
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26619 72102866-910b-0410-8b05-ffd578937521
2008-06-10 04:01:49 +00:00
fredkiefer
e25cceb710 Change all files to use GPL 3 and LGPL 3.
Prepare for next release.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@25536 72102866-910b-0410-8b05-ffd578937521
2007-10-29 21:16:17 +00:00
fredkiefer
9a371e74bd Diverse gui patches by Wolfgang Lux <wolfgang.lux@gmail.com>.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@25451 72102866-910b-0410-8b05-ffd578937521
2007-09-04 23:29:05 +00:00
fredkiefer
c2b80f256b Add some 10.4 methods.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@25348 72102866-910b-0410-8b05-ffd578937521
2007-07-23 16:29:29 +00:00
rfm
d81d25b9c8 Revert file accidentally committed
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@25285 72102866-910b-0410-8b05-ffd578937521
2007-06-22 13:28:14 +00:00
rfm
f5113092cc Attempt to improve frame and bounds setting.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@25284 72102866-910b-0410-8b05-ffd578937521
2007-06-22 09:59:17 +00:00
rfm
f8aac2ba14 Fixed accidentally deleted line
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24963 72102866-910b-0410-8b05-ffd578937521
2007-04-03 06:30:50 +00:00
rfm
ed70a012c1 Fixes for bug #18494
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24962 72102866-910b-0410-8b05-ffd578937521
2007-04-02 12:53:54 +00:00
stoyan
e93c75500d * Source/NSAlert.m: (-_initWithoutGModel): Set selected text
background color to [NSColor controlLightHighlightColor].



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24927 72102866-910b-0410-8b05-ffd578937521
2007-03-23 11:33:37 +00:00
ratmice
b021b55986 * Source/NSAlert.m (-_initWithoutGModel): Add missing nil
at end of call to -dictionaryWithObjectsAndKeys:



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24685 72102866-910b-0410-8b05-ffd578937521
2007-02-22 23:59:45 +00:00
stoyan
356fe34636 * Source/NSAlert.m: (-_initWithoutGModel): Set selected text
background color to white. Now we can see selection of message text.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24681 72102866-910b-0410-8b05-ffd578937521
2007-02-21 23:54:12 +00:00
stoyan
b66361b65f Source/NSAlert.m: Forgot to commit change of button style.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24678 72102866-910b-0410-8b05-ffd578937521
2007-02-21 16:19:59 +00:00
stoyan
5b4d0809ef Source/NSAlert.m: little fix for previous commit.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24676 72102866-910b-0410-8b05-ffd578937521
2007-02-21 13:29:18 +00:00
stoyan
f24549513c Source/NSAlert.m: (_initWithoutGModel): Removed setting of buttons style.
(_makeButtonWithRect:): Change style of button from NSMomentaryPushButton to
NSMomentaryPushInButton.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24675 72102866-910b-0410-8b05-ffd578937521
2007-02-21 13:28:23 +00:00
stoyan
39d23ee41b Source/NSAlert.m: Revert my last change regarding icon dimming.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24674 72102866-910b-0410-8b05-ffd578937521
2007-02-21 13:20:06 +00:00
stoyan
8c6f69140a * Source/NSAlert.m: (-_initWithoutGModel):
Make buttons refuse first responder to avoid drawing
dashed frame.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24671 72102866-910b-0410-8b05-ffd578937521
2007-02-21 00:46:01 +00:00
stoyan
d35931d37c * Source/NSAlert.m: (-_initWithoutGModel): Disable dimming of
panel image. Change highlinting mask of alternate and other
  buttons.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24670 72102866-910b-0410-8b05-ffd578937521
2007-02-21 00:38:44 +00:00
fredkiefer
51cb07957d Improve drawing with themes and cleanup.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24669 72102866-910b-0410-8b05-ffd578937521
2007-02-20 22:04:45 +00:00
esersale
c3fb754bc2 * Source/NSAlert.m: (-_initWithoutGModel): added [setImageDimsWhenDisabled: NO} to not show the application icon dimmed.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24656 72102866-910b-0410-8b05-ffd578937521
2007-02-19 19:13:33 +00:00
rfm
2f1b6de391 Patch to left alight long (multi-line) messages
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24213 72102866-910b-0410-8b05-ffd578937521
2006-12-18 15:16:14 +00:00
ratmice
5e61106dce * Source/NSAlert.m: Add GSRunExceptionPanel function
and GSExceptionPanel class.
        * Headers/AppKit/NSPanel.h: Declare GSRunExceptionPanel.
        * Source/NSApplication.m (_NSAppKitUncaughtExceptionHandler):
        Use GSRunExceptionPanel.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23973 72102866-910b-0410-8b05-ffd578937521
2006-10-27 19:10:07 +00:00
rfm
2ed1c70692 Tweaks to avoid new compiler warnings with gcc-4.1 and some 64bit issues.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23126 72102866-910b-0410-8b05-ffd578937521
2006-07-04 21:31:49 +00:00
CaS
6988bf34c2 Coding style fixups
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@22019 72102866-910b-0410-8b05-ffd578937521
2005-11-16 11:34:25 +00:00
fedor
db3c52eab8 Update FSF Address.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@21259 72102866-910b-0410-8b05-ffd578937521
2005-05-26 02:52:46 +00:00
FredKiefer
acd661c622 Small changes for NSAlert.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@21250 72102866-910b-0410-8b05-ffd578937521
2005-05-22 23:53:35 +00:00
alexm
5040adbaae 2004-11-09 22:36 Alexander Malmberg <alexander@malmberg.org>
* Source/GSInfoPanel.m (_value_from_info_plist_for_key): Rename to
	value_from_info_plist_for_key.
	(_nil_or_not_of_class): Rename to nil_or_not_of_class.
	Update callers.
	(-initWithDictionary:): Fix comment typo.
	* Source/NSAlert.m: Whitespace cleanups.
	* Source/NSPrinter.m: Whitespace cleanups.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@20332 72102866-910b-0410-8b05-ffd578937521
2004-11-09 21:37:43 +00:00