Alexandre Wilhelm
b5df5f730b
Fixed: CGPath is wrong when creating an arc
...
Previously when creating a CGPath with an arc, the path was wrong. It added a line when it wasn't necessary and when it was necessary it added a line to a wrong point.
Now CGPath works like in cocoa (If the specified path already contains a subpath, Quartz implicitly adds a line connecting the subpath’s current point to the beginning of the arc. If the path is empty, Quartz creates a new subpath with a starting point set to the starting point of the arc.)
Test app in Tests/Manual/CGPath/AppController.j
2013-05-23 14:07:04 -07:00
Martin Carlberg
a2257dab8f
New: Empty loop test cases for compiler generator
2013-05-22 11:41:17 +02:00
Martin Carlberg
ee4112b7f1
Fixed: Removed double spaces before '@ref' and '@selector' generated output from compiler.
...
'@ref' is generated to ' function(__input…' with the starting space if, for example, the code is 'return(@ref(a))'. This will create a space between 'return' and 'function(__input…'. When the compiler is generate the code this is not necessary.
2013-05-22 10:34:46 +02:00
Martin Carlberg
1d896c6ac9
Fixed: Code generator didn't generate ';' for empty loops
...
The line 'while (count--);' was generated to 'while (count--)'. The same with 'for(;;);' and 'for (a in []);'
2013-05-22 10:27:01 +02:00
Antoine Mercadal
42bc87d9ca
Merge pull request #1934 from Dogild/showcase
...
Fixed: Aristo showcase is broken because CPDatePicker
2013-05-21 15:30:15 -07:00
Alexandre Wilhelm
85e71017d9
capp_lint and code style
2013-05-21 15:28:33 -07:00
Antoine Mercadal
d8c8694c0d
nib2cib the xib
2013-05-21 15:27:45 -07:00
Antoine Mercadal
305fbb8ce2
Merge branch 'RadialGradient' of https://github.com/Dogild/cappuccino into pr-1933
2013-05-21 15:18:25 -07:00
Alexandre Wilhelm
0c613f1dde
Fixed bugs with showcase
2013-05-21 14:10:05 -07:00
Alexandre Wilhelm
14ab582a53
Fixed : Aristo showcase is broken because CPDatePicker
...
Previously the showcase of Aristo and Aristo2 didn't work because several bugs in the class CPDatePicker.
This PR fixes these problems :
- The first problem was when displaying a textual datePicker, the class tried to calculate different things for the calendar (good optimization as well).
- The second problem was about the calendar and the hands. It wasn't possible to display a PatternColor made with an image in a layer, now we use a PatternImage and the method CGContextDrawImage to draw the hands.
2013-05-21 13:53:16 -07:00
aparajita
6c2062c1f0
Merge pull request #1882 from ahankinson/fix-theme-disabled-controls
...
Theming fixes for disabled controls in Aristo2
2013-05-21 06:51:21 -07:00
Aparajita Fishman
7385f04d7f
Fixed: theme showcase was failing due to various bugs.
2013-05-21 09:50:46 -04:00
Alexandre Wilhelm
9d76ab70fe
Changed image for lineal gradient
2013-05-20 21:54:04 -07:00
Alexandre Wilhelm
ce22cebf07
Removed the reverse colors (it was a bad idea)
2013-05-20 21:53:35 -07:00
Alexandre Wilhelm
22d66438fb
Added test for linear/radial gradient
2013-05-20 19:08:44 -07:00
Alexandre Wilhelm
de4e28b5cc
Fixed bug with linear gradient when drawing it without CPGradient
2013-05-20 19:07:39 -07:00
Alexandre Wilhelm
5e0793c2ac
Fixed small init bug in CPBezierPath
2013-05-20 19:06:48 -07:00
Alexandre Wilhelm
54dd027c15
Removes previous test
2013-05-20 19:06:08 -07:00
Alexandre Wilhelm
ad33411ec6
New: CGContextDrawRadialGradient support
...
Canvas supports CGContextDrawRadialGradient as in cocoa. The CGGradientDrawingOptions is not actually supported.
Test app in Tests/Manual/CGCanvasContext
2013-05-20 15:08:46 -07:00
Aparajita Fishman
6bac934d0c
Fixed: changed indentation of generated code to Cappuccino standard of 4 spaces.
2013-05-18 18:42:26 -04:00
Alexander Ljungberg
8c5015a0bc
Test: verify compiler output for return statement without space.
...
Refs #1830 .
2013-05-18 01:00:49 +01:00
Alexander Ljungberg
302138c257
Fixed: OutputTest reversed expectation and test value in error messages.
...
The message would read "expected x but was y", where y would actually be the correct expected value and x the wrong one.
2013-05-18 00:59:20 +01:00
Alexander Ljungberg
501310c058
Formatting: OldBrowserCompatibility.js.
...
Refs #1929 .
2013-05-16 15:24:24 -07:00
Alexander Ljungberg
cb2ba64a73
Merge branch 'master' of github.com:cappuccino/cappuccino
2013-05-16 14:18:46 -07:00
Alexander Ljungberg
de1d6aad9c
Test: check compiler output for selectors with keywords in them.
...
Refs #1929 .
2013-05-16 14:17:31 -07:00
Aparajita Fishman
391ff7279d
Fixed: capp_lint errors.
2013-05-16 15:02:45 -04:00
Alexander Ljungberg
1d1016f08e
Test: reactivate the regex-simple-char-classes test.
...
This test failed with the old preprocessor but works fine now with the new compiler.
Refs #1929 .
2013-05-16 11:15:03 -07:00
Alexander Ljungberg
d040e60f60
Merge pull request #1929 from mrcarlberg/preprocess
...
Many compiler fixes
2013-05-16 10:03:38 -07:00
Martin Carlberg
3808427f24
Fixed: Accidental global variable
2013-05-16 16:15:29 +02:00
Martin Carlberg
b3e6eb74b2
Fixed: Reset all the macros when compiling a new file in the default implementation of the macro store.
2013-05-16 12:07:44 +02:00
Martin Carlberg
392aafb360
Revert "Revert "New: Added test cases for some preprocess directives in OutputTest.j""
...
This reverts commit 5e6c89ca8b .
Conflicts:
Tests/Objective-J/Preprocessor/OutputTests/OutputTest.j
2013-05-16 12:05:57 +02:00
Martin Carlberg
6556ccef80
Fixed: Removed use of global variable
2013-05-16 11:26:01 +02:00
Martin Carlberg
f96e934cf8
Fixed: Removed use of in some cases undefined global variables
2013-05-16 11:25:42 +02:00
Alexander Ljungberg
44a872659a
New: type check - CPPasteBoard setString:forType:.
...
When this method is given e,g, an array or CPData, it now crashes early instead of the pasteboard exhibiting strange behaviour.
2013-05-15 08:47:43 -07:00
Martin Carlberg
256c5b83da
Fixed: Typo, changed comma to semicolon
2013-05-15 15:35:03 +02:00
Martin Carlberg
5e6c89ca8b
Revert "New: Added test cases for some preprocess directives in OutputTest.j"
...
This reverts commit 9b709b85a9 .
2013-05-15 15:21:49 +02:00
Martin Carlberg
bf4a5b2c9a
Merge branch 'master' of https://github.com/cappuccino/cappuccino into preprocess
2013-05-15 09:08:26 +02:00
Alexander Ljungberg
6701117945
Fixed: [pasteboard declareTypes:… owner:nil]; would emit a warning.
...
Without this fix, declaring a type with a nil owner would cause a "DEPRECATED: object cannot be nil" warning to be issued.
This fix now allows a nil owner without warning.
2013-05-14 14:44:00 -07:00
Alexander Ljungberg
f2d9ef7720
Test: - CPPasteboard setString:forType: and stringForType:.
2013-05-14 14:40:41 -07:00
Alexander Ljungberg
3fb0dd725a
Fixed: CPLocale for English, United Kingdom had the wrong identifier.
2013-05-14 13:06:53 -07:00
Alexander Ljungberg
a324cb3306
Fixed: CPLocale detection didn't work.
...
Previously, if the browser provided a language string such as "en-US", CPLocale would try to look up the locale for "en_EN", which wouldn't exist so it'd always select the default language.
This fix uses the browser provided language string fully to select the appropriate locale.
2013-05-14 13:03:31 -07:00
Alexander Ljungberg
2a9f3deb0e
Merge pull request #1930 from mrcarlberg/cplocal_cant_handle_unknown_country_codes
...
Fixed: CPLocal can't handle unknown language codes
2013-05-14 12:00:39 -07:00
Alexander Ljungberg
89e81e97d1
Merge branch 'master' of github.com:cappuccino/cappuccino
2013-05-14 11:59:29 -07:00
Alexander Ljungberg
b4fb4ba941
Formatting: CPLocale.
...
Tabs to spaces and other whitespace changes.
2013-05-14 11:59:17 -07:00
Aparajita Fishman
eb859d42a4
Fixed: framework image names without @framework would cause nib2cib to fail.
...
I wasn't properly handling the case where _resourcePathForName would be called with a nil framework.
2013-05-14 07:54:08 -04:00
Martin Carlberg
9d86391bdb
Fixed: CPLocal can't handle unknown language codes
...
When the language code is not known it still sets the current language code
to the unknown code instead of the defualt 'en_US' code.
This makes the test cases for CPDateFormatter fail when run on a foreign system.
2013-05-14 13:30:30 +02:00
Martin Carlberg
9b709b85a9
New: Added test cases for some preprocess directives in OutputTest.j
...
Also fixed so OutputTest.j now uses the new compiler instead of the old.
2013-05-14 10:31:29 +02:00
Alexander Ljungberg
9bde63923c
Formatting: CPPredicateTest.
...
Refs #1914 .
2013-05-13 22:27:39 -07:00
Alexander Ljungberg
d7c676893d
Merge pull request #1914 from mrcarlberg/predicate_expression_equals_nil
...
CPExpression and CPPredicate can't handle nil as argument in method isEqual:
2013-05-13 22:21:05 -07:00
Alexander Ljungberg
8bc8ae4e3b
Merge pull request #1928 from mrcarlberg/ie_negative_width_height_crash
...
Fixed: IE8/9 (maybe 10 too) can't handle negative width or height.
2013-05-13 22:17:18 -07:00