Alexander Ljungberg
3cee00323c
Don't separate statements by commas.
2011-11-10 12:31:16 +00:00
Brian Donovan
156610ee07
Allow CPAlert subclasses to use +alertWithMessageText:... et al.
2011-08-05 08:32:44 -07:00
Stephen Ierodiaconou
6a942630e4
Fixing spelling mistakes
2011-01-24 11:05:48 +02:00
Alexander Ljungberg
e8b1063647
Whitespace cleanup.
2010-12-29 23:17:18 -03:00
Antoine Mercadal
60ff3ca0a1
Support for HUD style
...
use [alert setTheme:[CPTheme defaultHUDTheme]] or [alert setTheme:[CPTheme defaultTheme]] to switch theme.
Add deprecated procies setWindowStyle: and windowStyles;
2010-11-11 18:24:17 +01:00
Antoine Mercadal
6b42ef3cb1
fix: CPAlert fails to runModal if ran sheetModal before
2010-11-11 17:38:39 +01:00
Nicholas Small
5c961d4f16
Restore CPAlert -setTitle: functionality.
2010-11-10 17:43:21 -05:00
Nicholas Small
c21cdc2916
Cleanup CPAlert.
2010-11-10 17:39:56 -05:00
Antoine Mercadal
3bfa427134
Add setTitle: and title, deprecated proxies for setMessageText: and messageText
...
Add some missing Cocoa accessors
Fix acessors for messageText and informativeText that returned CPTextField instead of CPString
2010-11-10 11:02:27 +01:00
Antoine Mercadal
9a8c4bd431
move CPAlertLabelOffset to a theme attribute
2010-11-10 10:25:23 +01:00
Antoine Mercadal
dc72b55361
remove the title of the panel. Cocoa doesn't display any title
2010-11-09 18:33:39 +01:00
Antoine Mercadal
ee4ef882dd
add X and Y offet theme properties for supression button
2010-11-09 18:27:26 +01:00
Antoine Mercadal
23c2f4bb8c
remove the movable thing and remove the bezel-color them attribute
2010-11-09 18:08:13 +01:00
Antoine Mercadal
bd01955f39
support for setShowsSupressionButton
2010-11-09 18:02:24 +01:00
Antoine Mercadal
ee343c7533
make window not movable by dragging background if sheet + capp_lint/sorting/cleaning/commenting
2010-11-09 17:01:11 +01:00
Antoine Mercadal
961071e3fa
refactor a method
2010-11-09 16:55:33 +01:00
Antoine Mercadal
0219341ee8
add support for setShowHelp:
2010-11-09 16:41:41 +01:00
Antoine Mercadal
bf63147ca3
Cleaning CPAlert, add accessoryView
2010-11-09 15:21:25 +01:00
Francisco Ryan Tolmasky I
52f7844aee
Made it so .h files are automatically included in AppKit (avoiding needing to manually include Platform.h, etc.).
...
Also changed a bunch of <AppKit/*> imports to "*" imports.
Reviewed by me.
2010-11-01 11:10:01 -07:00
Klaas Pieter Annema
6e9f82212b
rename CPView +themeClass to +defaultThemeClass
2010-10-25 14:15:22 +02:00
Aparajita Fishman and Alexander Ljungberg
b823eb7fe0
Fixes for Cocoa compliance
2010-08-27 14:04:28 -04:00
Alexander Ljungberg
65d957f9f5
Fixed: an ivar was not being properly initialized in CPAlert.
2010-08-24 14:00:12 -04:00
Alexander Ljungberg
9968896bbd
When running CPAlert as a sheet, automatically activate the CPDocModalWindowMask window style if needed.
2010-08-24 12:14:24 -04:00
Alexander Ljungberg
1a27ae39a3
Removed CPAlert long message test from last commit since this branch already has its own long message test. Also slight clean up.
2010-08-24 11:58:36 -04:00
cacaodev and Alexander Ljungberg
ee4802e513
CPAlert: Attached alerts. Added a new method -beginSheetModalForWindow: that calls -alertDidEnd:returnCode: on ending. CPAlertTest update testing it.
...
Fixed a bug in CPWindow where the didEndSelector was reset too early. This bug was visible only when trying to chain sheet alerts.
Fixed a local/instance variable conflict in AttachedSheet/AppController.j
2010-08-24 11:50:44 -04:00
Alexander Ljungberg
447c33b806
Don't layout CPAlert in layoutSubviews since it's not a real view. This avoids the theme showcase error where the CPAlert windowing code was activated by the theme descriptor setup.
2010-08-22 23:01:52 -04:00
Alexander Ljungberg
e766a2c945
Fixed: if a CPAlert message was 3 lines or more and there was no informative text, the upper half of the CPAlert buttons would not react to clicks as the blank informative label partially covered them.
2010-08-21 17:47:03 -04:00
Alexander Ljungberg
fbd5a78cf0
Don't make space for CPAlert informative text if there is none. Consider the theme size a minimum size.
2010-08-20 12:41:20 -04:00
Alexander Ljungberg
f39c1a2eb8
Try to help the build bot by not calling CPAlert setWindowStyle: in init.
2010-08-20 03:01:37 -04:00
Alexander Ljungberg
c06068c931
Themable CPAlert which automatically grows height-wise to accommodate all text. Adjustable icons, margins, spacing and fonts.
2010-08-19 23:03:35 -04:00
Alexander Ljungberg
62f81f2601
Remove hardcoded Aristo theme from CPAlert. New CPTheme method to get the default HUD theme style, which defaults to the default theme + "-HUD". Clean up CPAlert slightly.
2010-08-19 19:11:52 -04:00
Alexander Ljungberg and Ross Boucher
32fb13a9a9
Fixed: long titles in CPAlert buttons would be cut off. Fix is to use the standard 80 pixels width as a minimum width only.
2010-06-19 18:26:19 -07:00
Alexander Ljungberg and Ross Boucher
4b86115d30
Set the alert default button using the CPCarriageReturnCharacter key equivalent to match the recent Cappuccino change for default buttons.
2010-06-19 15:42:29 -07:00
Alexander Ljungberg and Ross Boucher
12a49d0ee1
CPAlert informative text support.
2010-06-19 15:41:15 -07:00
Alexander Ljungberg
381a44148e
Special keys such as backspace and escape can now be used as key equivalents through checking for their unicode representations in [CPEvent characters]. This replaces the earlier raw key code approach.
2010-06-07 19:09:10 -04:00
Alexander Ljungberg
4a048657c5
If a button is named "Cancel" in a CPAlert window, give it the 'escape' key equivalent.
2010-06-07 19:08:50 -04:00
luddep and Ross Boucher
62379b21c1
Quick fix for @"Aristo" being hardcoded in CPAlert.j
2010-01-24 01:17:20 -08:00
Ross Boucher
e4f6d0db1f
Fixes an issue with HUD style alert panels. Closes #343 .
2009-11-24 22:13:20 -05:00
Ross Boucher
970f848b84
Make CPAlert slightly (but only slightly) more externally hackable
2009-11-17 17:03:42 -08:00
Ross Boucher
b2d994bd66
Adds support for warning before closing documents that have unsaved changes.
...
Includes changes to the multiple documents per window controller stuff.
2009-10-27 17:36:46 -07:00
Ross Boucher
82404265fb
Warn when closing an unsaved document.
2009-10-26 22:18:58 -07:00
Jake MacMullin and Ross Boucher
e125139777
Fixed a bug where the CPAlert was being displayed with black text on a black background if the styleMask was set to 'CPHUDBackgroundWindowMask' and something else. #220
2009-10-09 00:06:44 -07:00
lowell vizon and Francisco Ryan Tolmasky I
377f331b47
Documentation Edits: Replaced <code> and <pre> tags with \c; this allows monospaced text to be displayed with formatted text without needing a new line. See AppKit/CPView after generating documentation for examples. Also added - and + signs to the above changes when referring to either an -instanceMethod or a +classMethod. --lowell@cocoastep
...
Signed-off-by: Francisco Ryan Tolmasky I <francisco@280north.com >
2009-08-08 03:50:50 +08:00
Ross Boucher
fe56cbb77f
update alerts to 0.7
2009-05-19 10:02:24 -07:00
Ross Boucher
850125b8ab
Add documentation groups
2009-05-18 15:43:36 -07:00
Francisco Tolmasky
f6c0d93c47
Merged from master.
...
Reviewed by me.
2009-02-17 14:46:40 -08:00
nciagra and Ross Boucher
69cf9b34b1
Some refactoring of CPAlert to allow setting window style.
2009-01-29 21:15:52 -08:00
nciagra and Ross Boucher
d2b11a9ba4
Updated CPAlert code and window style
2009-01-29 20:51:41 -08:00
Francisco Ryan Tolmasky I
30f905a253
Changed imports to @imports.
...
Reviewed by me.
2008-11-18 20:17:24 -08:00
Ross Boucher
937865ef83
There was a missing @end in CPAlert.j
2008-11-10 11:17:39 -08:00