Christophe Serafin
12c427a9cf
enable CPControl to use setControlSize. Created an example with CPStepper
2014-08-01 16:57:02 -07:00
daboe01
7cbb103376
fix selecting last newline error
2014-07-31 20:35:29 +02:00
daboe01
d686a0dadf
reverseSetValuesFor: handle multiple selection
2014-07-30 21:09:41 +02:00
Antoine Mercadal
eb186f550c
Merge branch 'master' of https://github.com/cappuccino/cappuccino
2014-07-30 11:32:59 -07:00
Antoine Mercadal
01b631aea6
FIXED: Popover not showing in correct platform window.
...
This was fixed a month ago, but additional later commits added a dumb test preventing this to work correctly
2014-07-30 11:31:54 -07:00
Aparajita Fishman
293114f1a0
Fixed: delete methods erased entire field
...
Previously, the deleteForward:, deleteBackward: and delete: methods in CPTextField called setStringValue, which would consult a formatter, and if the formatter failed all of the text would be deleted.
Now the code has been refactored such that when one of the delete methods is invoked via a key event, the formatter is not used and the DOM event is used, which results in the expected behavior.
A bug in checking the selected range was also fixed in deleteForward:.
The CPFormatter test was updated with buttons to call the delete methods directly to ensure they work correctly when not invoked from a key event.
Closes #1997
2014-07-29 23:32:14 +04:00
Antoine Mercadal
20b92c03cb
Merge pull request #2161 from Dogild/CPComboBoxDataSource
...
New: added protocol CPComboBoxDataSource
2014-07-29 11:22:37 -07:00
Antoine Mercadal
b6d76eb84e
Merge pull request #2163 from t00f/predicate_editor_with_date
...
set CPDatePicker elements to days, months, year when used within a CPPre...
2014-07-28 17:29:25 -07:00
Alexandre Wilhelm
25bb51f4a3
New: added protocol CPComboBoxDataSource
...
Added protocol CPComboBoxDataSource
2014-07-28 13:38:11 -07:00
Christophe Serafin
4a3f51e550
set CPDatePicker elements to days, months, year when used within a CPPredicateRowTemplate
2014-07-28 12:51:32 -07:00
Alexander Ljungberg
07c0de71ec
New: support line-by-line scrolling with old scroll wheel devices in Firefox.
...
Without this change, using a traditional scroll wheel mouse with discrete steps would result in very slow scrolling in Firefox.
With this fix we handle these events like in Cocoa: as "[im]preciseScrollingDeltas", which `CPScrollView` in turn knows to apply the configurable line scroll amount for. For backwards compatibility, [event deltaX] and [event deltaY] are premultiplied with a suitable constant, while [event scrollingDeltaX] and [event scrollingDeltaY] show the true values needed.
Browsers other than Firefox seem to always send pixel scrolling information even for old style scrolling devices, at least on the Mac, so are not affected by this change.
Fixes #2013 .
2014-07-23 15:04:07 +01:00
Alexander Ljungberg
7470f4ffcf
New: CPEvent scrollingDeltaX, scrollingDeltaY and hasPreciseScrollingDeltas.
...
Refs #2013 .
2014-07-23 15:00:30 +01:00
Alexander Ljungberg
81f9748313
Merge pull request #2013 from daboe01/fix-scrollwheel-speed-on-firefox
...
Fixed: scroll wheel speed is way to low in firefox [+1]
2014-07-23 13:49:19 +01:00
daboe01
9cf8ec5dd7
formatting
2014-07-20 19:55:49 +02:00
daboe01
f5187b1533
_characterRangeForUn...: ternary operator
2014-07-20 11:44:03 +02:00
Alexandre Wilhelm
f13c96839e
Fixed synthax in CPTextView
2014-07-19 19:07:08 -07:00
Alexandre Wilhelm
776f68c9dd
Fixed style in CPTextView
2014-07-19 18:46:25 -07:00
Antoine Mercadal
ed307adb22
Merge pull request #2135 from Dogild/TokenFieldDelegate
...
Fixed: unsigned delegate methods of CPTokenField erased by CPTextField
2014-07-18 18:42:49 -07:00
Antoine Mercadal
8001688daf
Merge pull request #2076 from cacaodev/issue2039
...
FIXED: Error when binding several objects to the same objectController [+1]
2014-07-18 18:42:18 -07:00
Antoine Mercadal
4c0687b9a5
Merge branch 'fix-menu-enabled-bindings' of https://github.com/daboe01/cappuccino into daboe01-fix-menu-enabled-bindings
2014-07-15 10:22:46 -07:00
daboe01
aad875e113
make the plain look as white as in cocoa
2014-07-12 14:03:32 +02:00
Alexandre Wilhelm and daboe01
39eeaea7e7
Fixed: circular import with CPText
...
Previously CPText was in CPTextView.j, now it is in CPText.j.
It fixes some other circular import as well, fixes some global var to import.
Fixed some code style.
2014-07-12 14:03:32 +02:00
daboe01
81a8e91180
fix cut with empty selection
2014-07-12 13:58:39 +02:00
Alexandre Wilhelm and daboe01
4fc6f6f59b
Fixed: refactoring delegate methods
2014-07-12 13:58:39 +02:00
Alexandre Wilhelm and daboe01
dd2f573f27
Fixed: changed a bit the readability of the file
2014-07-12 13:58:39 +02:00
Alexandre Wilhelm and daboe01
ff8ddc431b
New: Added protocol CPTextViewDelegate
2014-07-12 13:58:38 +02:00
daboe01
d703945aa3
corrected inheritance
2014-07-12 13:58:38 +02:00
Alexandre Wilhelm and daboe01
f4aba5f9ea
New: Added protocol CPTextDelegate
2014-07-12 13:58:38 +02:00
Alexandre Wilhelm and daboe01
393113c3e3
Fixed: capp_lint
2014-07-12 13:58:38 +02:00
Alexandre Wilhelm and daboe01
f2db18820a
Fixed: CPLog.error is used instead of abstract exception
2014-07-12 13:58:38 +02:00
daboe01
e04d300e18
next try
2014-07-12 13:58:38 +02:00
daboe01
685f836f41
another try
2014-07-12 13:58:38 +02:00
daboe01
d4f5ad641a
more dom protection
2014-07-12 13:58:38 +02:00
daboe01
007d437ee8
dom projection
2014-07-12 13:58:38 +02:00
daboe01
00e380e8d8
more dom protection
2014-07-12 13:58:38 +02:00
daboe01
56749d9494
protecting document access with PLATFORM(DOM)
2014-07-12 13:58:38 +02:00
daboe01
cf10d37c90
automated tests and cleanup
2014-07-12 13:58:38 +02:00
daboe01
f9de34e36d
font panel fix
2014-07-12 13:58:38 +02:00
daboe01
aa889be140
formatting
2014-07-12 13:58:38 +02:00
daboe01
6da6838bde
beginning/end of line navigation + cleanup
2014-07-12 13:58:37 +02:00
daboe01
07a0be303f
smart cutting+cleanup
2014-07-12 13:58:37 +02:00
daboe01
ddbe0af290
fix <cr> issue
2014-07-12 13:58:37 +02:00
daboe01
e71f0f44a4
fix relayouting optimization bug
2014-07-12 13:58:37 +02:00
daboe01
39f3bc7100
better workaorund for chrome bug
2014-07-12 13:58:37 +02:00
daboe01
211a145e58
stability improvement
2014-07-12 13:58:37 +02:00
daboe01
d2339b915f
spooky chrome fix
2014-07-12 13:58:37 +02:00
daboe01
24c2651745
reverting erroneous patch
2014-07-12 13:58:37 +02:00
daboe01
36e95b93b4
typesetter fix
2014-07-12 13:58:37 +02:00
daboe01
e7a44e0b15
removed debugging code
2014-07-12 13:58:37 +02:00
daboe01
fbdb21ac72
style
2014-07-12 13:58:37 +02:00