Alexander Ljungberg
ee2228a83c
Fixed: if [CPTokenField setObjectValue:X] was called while the token field was the first responder, the input value would be set to a string version of the object value due to CPTextField's setObjectValue method.
2010-10-02 15:36:29 -04:00
Klaas Pieter Annema and Alexander Ljungberg
9f4dd3c2b8
added various hacks to make the cptokenfield work with the new enstore admin
2010-10-02 15:36:24 -04:00
Klaas Pieter Annema and Alexander Ljungberg
c80a28077a
fixed some tokenfield issues
2010-10-02 15:36:19 -04:00
Klaas Pieter Annema and Alexander Ljungberg
47c631c58e
added CPTokenField
2010-10-02 15:36:11 -04:00
Alexander Ljungberg
ed4235d2f9
Fixed: setting any binding on a text field - even on an attribute like 'hidden' - would clear its placeholder string.
2010-10-02 14:42:06 -04:00
Alexander Ljungberg
2e22a0d5e8
Merge branch 'master' of github.com:280north/cappuccino
2010-10-01 17:30:17 -04:00
Alexander Ljungberg
1ae31c9374
Style fixes.
2010-10-01 17:28:55 -04:00
Klaas Pieter Annema
973c43843d
improve multiple selection login in CPCollectionView
2010-10-01 11:31:59 +02:00
Alexander Ljungberg
90709156c6
Merge branch '_CPImageAndTextView-tweaks' of http://github.com/aparajita/cappuccino
2010-09-30 23:52:27 -04:00
Alexander Ljungberg
0d15e59d0a
CPSlider code cleanup.
2010-09-30 23:51:12 -04:00
Aparajita Fishman
60fcb24159
De-lint, whitespace cleanup, typos
2010-09-30 21:14:47 -04:00
Aparajita Fishman
a175e71906
- Fixed type of _textSize.
...
- Changed NULL to nil.
2010-09-30 17:30:58 -04:00
Klaas Pieter Annema
e527c7e19f
fix another bug introduced in my last commit
2010-09-30 18:58:40 +02:00
Klaas Pieter Annema
790327fbe8
revert d18bba6b03, it had unexpected side effect
2010-09-30 18:44:00 +02:00
Klaas Pieter Annema
d18bba6b03
make sure CPScrollView always sets up it's corner and header view when initializing from coder
2010-09-30 18:40:45 +02:00
Klaas Pieter Annema
b221cc1853
properly decode allows multiple selection in CPCollectionView
2010-09-30 13:54:34 +02:00
Mike Fellows
1c597eb0df
Fix regression in CPBox's setBorder
2010-09-29 00:05:15 -07:00
Alexander Ljungberg
28dd74444f
Fixed a string of accidental globals in CPScroller.
2010-09-28 19:50:20 -04:00
Alexander Ljungberg
28cf834e0b
Merge branch 'CGGradientCreateWithColorComponents-location-fix' of http://github.com/eventualbuddha/cappuccino
2010-09-28 19:29:46 -04:00
Alexander Ljungberg
4dc102a3cf
Applied coding standards.
2010-09-28 19:00:59 -04:00
Brian Donovan
23a654d57a
Allow null locations per Quartz 2D documentation.
...
See http://developer.apple.com/library/ios/#DOCUMENTATION/GraphicsImaging/Conceptual/drawingwithquartz2d/dq_shadings/dq_shadings.html%23//apple_ref/doc/uid/TP30001066-CH207-TPXREF101
2010-09-28 08:22:09 -07:00
Klaas Pieter Annema
ffcbf87858
add basic support for drawing separators to CPBox
2010-09-28 14:50:20 +02:00
Paul Baumgart and Randall Luecke
a8d02f43e2
minor CPTableView clean-ups-- fix missing semi-colon, missing parameter type, and missing space
2010-09-27 22:43:58 -04:00
Paul Baumgart and Randall Luecke
7e863e7e96
selectTabViewItemAtIndex does not look up the TabViewItem to send to the delegate, which causes a JS ReferenceError; this commit fixes that
2010-09-27 22:42:55 -04:00
Randall Luecke
ee64c5d832
Proper decoding of delegate and datasource for the tableview.
2010-09-27 17:56:48 -04:00
Klaas Pieter Annema
65c48004ba
properly handle key events manually in the tableview
...
Commit cf6dc3fa5e was wrong. This commit should fix that.
2010-09-27 15:56:00 +02: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
cf6dc3fa5e
Manually handle key events in CPTableView
2010-09-27 11:50:23 +02:00
Klaas Pieter Annema
fb3da5c5bd
don't handle key events directly in CPScrollView
...
In stead CPScrollView will just pass the keyDown: event up the responder chain. If the event reaches the window, the window will send the correct action back to the first responder, if no responder before CPScrollView in the chain handles the event, CPScrollView will.
2010-09-27 11:50:23 +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
Francisco Ryan Tolmasky I
40dcfbd72c
Merge branch 'master' of github.com:280north/cappuccino
2010-09-27 06:49:18 +05:30
Francisco Ryan Tolmasky I
48d14840ee
Fix file encoding for CPTableView.j.
...
Reviewed by me.
2010-09-26 15:40:36 +05:30
Klaas Pieter Annema
d8c0d2da8e
don't reverse set binding if textfield is showing a bindings placeholder
2010-09-23 10:35:42 +02:00
Klaas Pieter Annema
e59f20668b
don't set objectValue in resignFirstResponder if it didn't change
...
This change makes sure that the textfield doesn't sent change notifications if the value didn't actually changed when resigning first responder.
2010-09-23 10:35:41 +02:00
Klaas Pieter Annema
8fe67b73da
implement _setCurrentValueIsPlaceholder in CPTextField
...
CPKeyValueBinding will sent _setCurrentValueIsPlaceholder: to indicate to an object that current value is a placeholder and should be displayed as such. This commit implements the method for CPTextField and adds a unit test to test the behavior.
2010-09-23 10:35:41 +02:00
Klaas Pieter Annema
2fba03dc75
fix style issues in CPTextField and CPKeyValueBindingTest
2010-09-23 10:35:41 +02:00
Klaas Pieter Annema
71f8d1db74
call selectionWill and didChange when setting selection indexes
2010-09-23 10:35:41 +02:00
Klaas Pieter Annema
098131e252
coding guideline improvements for CPArrayController
2010-09-23 10:35:41 +02:00
Klaas Pieter Annema
afc5b72092
made setting binding placeholder values slightly less hacky
2010-09-23 10:35:41 +02:00
Klaas Pieter Annema
14f494a25d
Properly set multiple value placeholders on textfields.
...
Previously CPKeyValueBinding would just set the binding marker placeholder values as the stringValue of the textfield. This commit fixes that and properly sets those values as the placeholder value.
2010-09-23 10:35:41 +02:00
Brian Donovan and Ross Boucher
6dd872f2d2
Fix CPScrollView -contentSize return type.
2010-09-21 21:43:28 +05:30
Mike Fellows and Randall Luecke
461bb65263
Set vertical slider disabled track-color to the proper background images, stop overwriting the horizontal slider disabled track-color background images with those meant for the vertical slider - fixes issue #737
2010-09-20 01:37:03 -04:00
Randall Luecke
9777e4c52f
Added a missing import to the new CPTabView, and fixed the import for the test.
2010-09-20 01:28:57 -04:00
Derek Hammer and Randall Luecke
dd89a98242
Renaming class to CPTabView from CPTabView2. Also doing a little clean up for style.
2010-09-20 01:21:45 -04:00
Derek Hammer and Randall Luecke
9b57d04181
Tabs to spaces
2010-09-20 01:20:58 -04:00
Derek Hammer and Randall Luecke
8e74418a5c
Replacing CPTabView with new one
2010-09-20 01:20:48 -04:00
Derek Hammer and Randall Luecke
3350579675
Patch to fix error. :(
2010-09-20 01:20:40 -04:00
Derek Hammer and Randall Luecke
46c14f3766
Adding the real skeleton
...
Copying previous constants
Removing unnecessary constants
Borrowing initialization from my old implementation.
Refactoring the initialization method and adding setBackgroundColor: override.
Removing +initialize (no theming support yet) and -viewDidMoveToWindow (not sure why this was there?)
Implement the bulk of the new CPTabView
Adding delegate selectors. Don't think this is complete, though. What about when a user clicks on a segmented tab control?!
Adding delegate
Think I may have fixed the delegate blocking for selected segment control items
Adding tests. Fixing a bug by reverting to old way. Delegates still broken.
Cleaning up the test.
Resolving delegate issues (thanks Saikat!).
Switching tab appearance based on type enum. Updating tests to slightly test this.
Conflicts:
AppKit/CPTabView2.j
2010-09-20 01:20:31 -04:00
Randall Luecke
0aa65de6df
Fix for CPCookie not working after DOM checks.
2010-09-19 23:26:52 -04:00
Alexander Ljungberg
7692f80f64
Additional fixes of inadvertent globals.
2010-09-17 16:48:00 -04:00