Alexander Ljungberg
c8991e07b9
Merge pull request #1355 from primalmotion/cappuccino
...
---
if setTitle: is called on a CPWindow with the primaryPlatformWindow as platformWindow,
the main pages title is changed. This patch prevent changing the primaryPlatformWindows title.
This is not optimal, but this is better than changing the title at each window setTitle: call
2011-09-17 10:55:43 +01:00
Klaas Pieter Annema
67b2671dad
improve key view loops
...
- include the window's content view at the start of the key view loop
- set the initial first responder to the window's content view (and keep it that way unless it is explicitly changed)
- CPWindow should return NO from acceptsFirstResponder (Cocoa compliance).
- change the type of setInitialFirstResponder, this is compliant with Cocoa. The new key view loop code will break if initial first responder is anything but a view
- change the implementation of selectNextKeyView:, selectPreviousKeyView:, selectKeyViewFollowingView: and selectKeyViewPrecedingView: to follow to Cocoa's documentation
2011-09-15 16:39:24 +02:00
Antoine Mercadal
afa691376e
fix unable to change mainWindow's title
2011-09-02 14:00:49 +02:00
Antoine Mercadal
28772d3254
use CPWindow's title for platform window
2011-08-31 19:17:10 +02:00
Antoine Mercadal
3d5b30ab9e
add CPPopover (Cocoa API compliant)
2011-07-08 15:50:29 +02:00
Antoine Mercadal
10940ace13
improve CPToolTips. Make them more cocoa like. Remove usage of CPAttachedWindow
2011-05-15 22:15:37 +02:00
Alexander Ljungberg
37cad2f59a
Merge pull request #1245 from primalmotion/cappuccino
...
---
This is a basic merge of the TNKits tooltip system in Cappuccino.
2011-05-11 19:30:41 -04:00
Randall Luecke
cd05d30f86
Fix for setting a new platform window on a visisble window throwing a DOM exception.
2011-05-01 21:01:13 -04:00
Antoine Mercadal
3ddf6031fb
Support for tooltips on CPControls
2011-04-26 14:46:30 +02:00
Klaas Pieter Annema
71d8582f94
make unhandled keyboard events travel past the window
2011-04-20 16:21:28 +02:00
Stephen Ierodiaconou
6a942630e4
Fixing spelling mistakes
2011-01-24 11:05:48 +02:00
Randall Luecke
c390b19d4b
Much needed documentation of CPSplitView and some docs for CPWindow.
2011-01-23 17:50:39 -05:00
Alexander Ljungberg
6ab679a725
Optimise _processKeyboardUIKey by only declaring the keys of interest once.
2010-12-15 01:06:02 +01:00
Brian Donovan
2c0c8b59a2
Fix documentation typo.
2010-12-07 11:44:48 -08:00
Klaas Pieter Annema
80ec35fd0a
Merge branch 'hover-states'
2010-11-17 10:11:11 +01:00
Francisco Ryan Tolmasky I
fb8d834036
Improved key view loop algorithm.
...
Reviewed by me.
2010-11-16 19:33:08 -08:00
Francisco Ryan Tolmasky I
4191153d0b
Fix for key views not being properly auto-calculated.
...
Closes #965 .
Reviewed by me.
2010-11-16 15:24:09 -08:00
Klaas Pieter Annema
923770d95a
style cleanup
2010-11-15 14:27:43 +01:00
Klaas Pieter Annema
011b8d250a
remove second implementation of _processKeyboardUIKey:
2010-11-15 14:25:47 +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
Paul Baumgart
01852d8075
Fix a bunch of missing @imports.
...
All classes (excluding the ones prefixed with underscores) in Foundation
and AppKit can now be loaded individually except CPOpenPanel and
CPSavePanel. These two classes have some sort of dependency cycle
that seems impossible to resolve without forward declarations (which
we don't have).
2010-10-05 15:54:25 -07:00
Klaas Pieter Annema
4211abd0b0
handle tab key as early as possible in CPWindow sendEvent:
2010-09-27 11:53:07 +02:00
Klaas Pieter Annema
e6bd921746
fix CPWindow to only sent certain not handled keys as actions
...
In Cocoa CPWindow will only send moveDown: (down arrow), moveUp: (up arrow), moveLeft: (left arrow), moveRight: (right arrow), pageUp: (page up), pageDown: (page down) and complete: (escape) down the responder chain. This commits makes us fully compatible with Cocoa except that we send scrollPageDown: and scrollPageUp: in stead of pageUp: and pageDown:.
2010-09-27 11:50:23 +02:00
Klaas Pieter Annema
7aa7d61984
Implement hover states.
...
- Set CPWindow _acceptsMouseMovedEvents default to YES
- Add CPThemeStateHovered to CPTheme
- Add hovered logic to CPControl is hovered
2010-09-17 12:06:01 +02: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
Randall Luecke
6e796d7a22
Fix for endless loop with default buttons.
2010-08-16 15:05:46 -05:00
Randall Luecke
90a45dca29
some fixes to default buttons to make them more cocoa compliant...
2010-08-01 20:19:26 -05:00
Ross Boucher
f26d2f4ebf
Merge remote branch 'klaaspieter/fix-751-cpwindow-center'
2010-07-28 16:03:48 -07:00
Nicholas Small
3070634aab
Make -center on a bridge window into a no-op.
2010-07-28 18:06:08 -04:00
Klaas Pieter Annema
478b5eaba3
make sure CPWindow center never puts it's window origin at a negative coordinate
2010-07-09 12:46:54 +02:00
nciagra
bd06b8a867
Modifier keys will fire flagsChanged: instead of keyDown: and keyUp:, like Cocoa does.
2010-06-16 22:02:40 -04:00
Alexander Ljungberg and Ross Boucher
db3514a2c1
Only allow a single window frame animation at a time; stop the previous animation before starting a new one. This allows e.g. a sheet animating open to 'turn around' and animate right back out. Fixed: if a sheet was closed before it finished animating open, for example by hitting a keyboard equivalent immediately, CPWindow would crash with "Uncaught TypeError: Cannot read property 'sheet' of null".
2010-06-16 08:46:54 -07:00
Klaas Pieter Annema
f40fc321fe
Make the window perform it's defaults button's key equivalent after the default keyDown messages are handled
2010-06-16 14:17:58 +02:00
Ross Boucher
fed39694f6
Improve the handling of key window's losing their status.
2010-06-12 18:23:51 -07:00
Scott Kyle and Randall Luecke
1899250a53
Semicolons are nice...
2010-06-10 16:42:28 -05:00
Alexander Ljungberg
44f5086600
Key equivalents for CPButton.
2010-06-07 19:08:44 -04:00
Saikat Chakrabarti and Ross Boucher
c8759babae
Adding checks for existence of DOM when calling CPPlatformWindow+DOM-only methods
...
Conflicts:
AppKit/CPWindow/CPWindow.j
2010-06-06 11:48:15 -07:00
Ross Boucher
09727909b3
Fix for menuless windows. Closes #640 .
2010-05-01 14:47:43 -07:00
Tom Robinson
0d97dfacd6
give zero sized borderless bridge windows a default size if we're not in the browser so they show up in NativeHost.
2010-04-27 12:56:24 -07:00
Alexander Ljungberg and Ross Boucher
639a32ea7e
CPWindow alpha value support.
2010-04-21 15:47:25 -07:00
Nicholas Small
6a8126337c
Added right click responder methods and context menu support.
2010-03-31 15:56:18 -04:00
Ross Boucher
7ab41cf195
If there is no key window or no main window make the first opened window those things.
2010-03-28 09:03:33 -07:00
Ross Boucher
b0e0156880
Fix support for initial first responder.
2010-03-27 13:08:47 -07:00
Ross Boucher
ef7ad8ee8e
A few minor bug fixes for key/main window handling.
2010-03-13 22:49:06 -08:00
Ross Boucher
c514fd7a08
Fix an issue where window levels weren't kept in sync with dom window layers.
...
Closes #507 .
2010-03-06 00:57:59 -08:00
Ross Boucher
29a0de3636
Fix document title's not being synced properly.
2010-03-05 20:09:23 -08:00
Ross Boucher
398d61097c
Typo in miniaturize:
2010-03-02 15:27:40 -08:00
Ross Boucher
4a43e4fda6
Overhaul of the key/main window status, esp. with respect to assigning new values after a window
...
closes or after a window is minimized, and with app activation/deactivation.
2010-03-02 15:16:10 -08:00
Ross Boucher
01aec1f78e
If the mainWindow tries to become main again, just return early.
2010-03-01 18:07:38 -08:00