Aparajita Fishman
17f07ee888
capp_lint will not flag CPRectEdge, more linking
2013-01-20 07:24:00 +07:00
Aparajita Fishman
7c831fa19d
capp_lint flags deprecated CPPoint/Rect/Size types/functions
...
- Changed to corresponding CG types/functions in all files
- Fixed some demo app bugs
2013-01-19 16:51:56 +07:00
Antoine Mercadal
a4bfd2c9f7
Add missing imports
2013-01-18 10:38:03 -08:00
Martin Carlberg
458fa9d02e
Fixed a lot of small bugs found by new warning message from compiler
2013-01-18 14:24:37 +01:00
Antoine Mercadal
6432528d37
Merge branch 'master' into Aristo2
...
Conflicts:
AppKit/CPWindow/CPWindow.j
2013-01-11 14:05:27 -08:00
Aparajita Fishman
95511b5311
Window resize tweak...
...
- If a window is fixed width or fixed height, then no resize cursor is shown and no resize area is active on the edges that cannot be resized.
- Optimized CG calls in CPWindow.
- Added fixed height window to test app.
2013-01-11 21:56:04 +07:00
Alexandre Wilhelm
18d0cf51ef
Removed unused code
2013-01-10 17:32:47 -08:00
Antoine Mercadal
35e29a0615
Fix bug introducing during previous merge
2013-01-10 10:38:10 -08:00
Antoine Mercadal
e13948957c
Merge branch 'master' into Aristo2
...
Conflicts:
AppKit/CPWindow/CPWindow.j
AppKit/CPWindow/_CPWindowView.j
2013-01-10 10:24:33 -08:00
Alexandre Wilhelm
68d4b9d2cd
Fixed bug with indicator
2013-01-09 16:02:24 -08:00
Alexandre Wilhelm
2309e18eb7
Added themable support for shadow window
2013-01-09 14:21:41 -08:00
Alexandre Wilhelm
9b9f877942
Added themable _CPWindowView
2013-01-09 13:09:43 -08:00
Aparajita Fishman
f1a171a94c
Window resize fixes
...
- Track mouse exit from window resize rect instead of unconditionally setting arrow cursor.
- Don't show the resize cursors for full platform windows.
- Show the resize down cursor if the top of a window is being resized and it has reached the bottom of the menubar.
- Make windows in CPToolbarTest resizable to test resizing behavior with toolbars.
- Added a full platform window and menubar to the test app.
2013-01-05 11:13:53 +08:00
Alexander Ljungberg
d072f17896
Optimisation.
2013-01-04 11:28:09 +00:00
Alexander Ljungberg
0d31f79f53
Constrain window resize to usable area of platform window.
2013-01-04 11:28:09 +00:00
Aparajita Fishman
b869312e4f
Finished full window resize support
...
- The main run loop resets the cursor if it falls outside of all windows during a mouse move.
- Added cursors supported by CSS that are not in NSCursor.
- Code cleanup in CPCursor.
- Cursors now indicate available resize directions if there is a window min/max size.
- Reduced slop to 3, what it is in Cocoa.
- Added a second non-min/max window to the demo.
2013-01-04 15:19:00 +08:00
Aparajita Fishman
deb6224cf8
Support for resizing windows on all sides
2013-01-04 15:17:29 +08:00
Alexandre Wilhelm
6561e4f84e
Init of Aristo2
2013-01-03 11:22:46 -08:00
Alexander Ljungberg
074e9f70a0
Fixed: incorrect - CPWindow contentRectForFrameRect: and frameRectForContentRect: for borderless windows with toolbars.
...
The window views driving non standard windows (such as borderless or bridge windows) did not take the toolbar into account when calculating the content rect.
Apart from being wrong, this could lead to the content view overlapping the toolbar if the content view was set after the toolbar was prepared.
Perhaps the thought was that the base _CPWindowView shouldn't make assumptions about the placement and sizing of a toolbar and leave that up to subclasses, but the _CPWindowView tile method already did.
2012-11-17 10:06:08 +00:00
Alexander Ljungberg
9f59ac96dd
Inactive window title, start on window theming support.
...
Now the key window can be recognised by the window title.
2012-08-15 01:03:08 +01:00
Alexander Ljungberg
5a8c94183a
Refs #1364 . Formatting, don't shadow window global.
2012-08-11 19:35:05 +01:00
Darrell Walisser
bff22779ae
-capp_lint
2012-08-04 13:53:05 -04:00
Darrell Walisser
97b3679101
Merge remote-tracking branch 'upstream/master'
...
Conflicts:
AppKit/CPApplication.j
AppKit/CPWindow/_CPDocModalWindowView.j
2012-07-29 12:31:47 -04:00
Aparajita Fishman
cae5486ec6
Added missing class checks in +initialize, regularized checking code
2012-06-28 12:05:18 -07:00
Darrell Walisser
1e6f0090da
-allow any window to become a sheet
2012-05-06 12:06:23 -04:00
Alexander Ljungberg
1476efce90
Minor formatting.
2012-05-03 01:36:17 +01:00
dwalisser
604a49634d
Merge remote-tracking branch 'upstream/master'
2011-11-24 09:43:10 -05:00
Antoine Mercadal
86079af3b1
implement CPWindow setMovable: API. close #1358
2011-10-26 11:05:07 +02:00
Darrell Walisser
6eace4258f
-initial stab at doc-modal sheets
2011-09-18 16:08:10 -04:00
Alexander Ljungberg
dedf3cd90f
More AppKit coding standards.
2011-02-28 23:55:29 -03:00
Francisco Ryan Tolmasky I
d69f46f7ee
More capp_linting.
...
Reviewed by me.
2010-12-09 13:45:29 -08: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
Francisco Ryan Tolmasky I
abdc601d92
Fix for IE not loading bug.
...
Reviewed by me.
2010-04-08 23:58:31 -07:00
Francisco Ryan Tolmasky I
c33e2ee51f
Fixed a bug with objj_debug_typecheck incorrectly misidentifying empty string as not a CPString. Also fixed a number of type declarations after running with objj_msgSend_decorate(objj_typecheck_decorator); turned on.
...
Reviewed by me.
2010-02-21 13:37:20 -08:00
Randall Luecke and Ross Boucher
a3d168b646
left unnessisary line... whoops
2010-01-04 10:24:45 -05:00
Randall Luecke and Ross Boucher
5018df511b
fix for window overlapping the menu bar if the user dragged it up there.
2010-01-04 10:24:38 -05:00
Francisco Ryan Tolmasky I
8f1e56e398
Implemented manual validation for toolbar items and fixed a number of toolbar bugs.
...
Closes #43 .
Closes #48 .
Reviewed by me.
2009-11-15 00:35:52 -08:00
Francisco Ryan Tolmasky I
312a48a3fe
Fix for borderless bridge windows showing and allowing the user to use resize indicator.
...
Reviewed by me.
2009-11-14 14:41:09 -08:00
Ross Boucher
df8c648d70
Add an unsaved state affordance to the close button on standard windows.
2009-10-30 10:53:47 -07:00
cacaodev and Ross Boucher
d79ed12b5c
Attached sheet implementation
2009-10-08 12:02:26 -07:00
Francisco Ryan Tolmasky I
e8dd56bda7
Added HTML 5 drag and drop support for WebKit/Safari.
...
Reviewed by me.
2009-08-17 03:50:52 -07:00
Francisco Ryan Tolmasky I
ab8add681e
A number of fixes and improvements to the platform window subsystem.
...
Reviewed by me.
2009-08-17 03:50:51 -07:00
Francisco Ryan Tolmasky I
2e37945b4f
Removed remaining references to CPDOMWindowBridge.
...
Reviewed by me.
2009-07-27 12:06:07 -07:00
Ross Boucher
6cd92e1278
Force windows to stay within the bounds of the browser window
2009-05-04 21:54:02 -07:00
nciagra and Ross Boucher
3bc50c1c3b
Allow _CPWindowView to set its own toolbarItem labelShadowColor.
2009-04-06 21:19:46 -07:00
Francisco Tolmasky
180c42b9d5
Added setFullBridge:/isFullBridge.
...
Reviewed by me.
2009-02-19 22:56:07 -08:00
Francisco Tolmasky
1f54d5de0e
Some cleanup.
...
Reviewed by me.
2009-02-18 23:28:13 -08:00
Francisco Ryan Tolmasky I
b29dc6052e
Further reorg.
...
Reviewed by me.
2008-12-26 23:54:20 -08:00
Francisco Ryan Tolmasky I
3afd7a9a69
A bit more CPWindow code reorg.
...
Reviewed by me.
2008-12-26 21:35:10 -08:00