Aparajita Fishman
93fb849296
Import fixes
2013-01-24 19:18:39 +08:00
Aparajita Fishman
866e1f00f7
Objj2 compiler fixes
...
- Each file compiles individually with no errors or warnings.
- Added missing imports.
- Fixed imports to remove circularity.
- Removed unnecessary imports.
- Added missing headers.
- Added missing action_button.png.
- Replace CPMakeRect with CGRectMake.
2013-01-23 15:48:56 +07:00
Aparajita Fishman
4f377bcebe
Objj2 compiler fixes
...
Compiled all files individually:
- Added missing imports.
- Added @class/@global declarations to break circular dependencies.
- Misc. code cleanup.
Conflicts:
AppKit/CPWindow/_CPWindow.j
AppKit/Platform/DOM/CPPlatformWindow+DOM.j
2013-01-23 15:48:55 +07:00
Antoine Mercadal
f8c9466d04
Add other missing imports
2013-01-22 15:47:33 -08:00
Antoine Mercadal
ef62191e6b
Fix missing imports and @global and @class
2013-01-22 15:44:56 -08:00
Antoine Mercadal
94439f0d10
Add new found warnings fixes
2013-01-22 12:47:29 -08:00
Antoine Mercadal
2385f48fe4
Add missing imports
2013-01-22 12:27:19 -08:00
Alexander Ljungberg
3c684404ed
Eliminate mystery CGPointPointer.
2013-01-20 16:44:40 +00: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
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
73ddadc0f0
Add missing theme attribute in CPTableView
2013-01-10 11:57:17 -08:00
Antoine Mercadal
b1ffd8d556
Make default row height a theme attribute
2013-01-09 20:24:27 -08:00
Alexander Ljungberg
c2f9b91fe2
Implicit sort descriptor binding support.
...
Sort descriptor bindings are now automatically established when a table view has a column value binding (normally to an array controller).
2012-10-14 19:39:39 +01:00
Alexander Ljungberg
da91ab9879
Fixed: implicitly set selectionIndexes.
...
`CPTableView`'s `selectionIndexes` binding shouldn't be set automatically unless the content binding was also set automatically (through a table column binding).
Assume that manual content binding implies a desire to manually bind selection indexes (and sort descriptors) as well.
2012-10-14 19:31:53 +01:00
Aparajita Fishman
3fd8d3e5be
Implemented CPTableView -clickedColumn
2012-10-02 17:20:39 -04:00
Alexander Ljungberg
59ad8499df
Refs #1676 . Whitespace.
2012-09-24 17:05:35 +01:00
Johan Stille
632fba9dd5
Null check when laying out columns in CPTableView.
2012-09-24 13:17:24 +02:00
Blair Duncan
04f650dde7
Windows selection compatibility. Fix for issue 1390
2012-09-03 23:47:11 -04:00
Alexander Ljungberg
0e68729d7f
Fixed: dragged table view columns ignored custom column header views.
2012-08-29 16:41:43 +01:00
Alexander Ljungberg
31ab70d6fc
Refs #1530 . Fixed: table views could not be interacted with if they couldn't become the first responder.
2012-08-01 18:59:54 +01:00
Alexander Ljungberg
9b77f1b7ac
Notify when a CPTableView column moves.
...
Both through `CPNotificationCenter` and to the delegate.
2012-07-17 22:57:36 +01:00
cacaodev and Aparajita Fishman
2cf9fdf0d0
Check for sendsActionOnEndEditing
2012-07-13 07:45:08 -07:00
cacaodev and Aparajita Fishman
7c01f14bfe
Fix for #1593
2012-07-13 07:44:48 -07:00
aparajita
629f12a851
Merge pull request #1543 from cacaodev/CPTableView-content-binding
...
Added support for using bindings with CPTableView content (as opposed to CPTableColumn value bindings)
2012-07-12 19:58:12 -07:00
Aparajita Fishman
1d29fda5fd
Added missing @
2012-07-04 16:25:59 -04:00
Antoine Mercadal
cd94819099
Merge branch 'issue1435' of https://github.com/stewa/cappuccino into issue1435
2012-06-14 11:58:49 -07:00
Antoine Mercadal
52199776d5
Merge pull request #1537 from mrcarlberg/cptableview_selection_radius
...
Added a themed attribute for round rect selection of rows. [+1]
2012-06-14 10:29:58 -07:00
cacaodev
299a664b9c
CPTableView -selectedColumn : missing return statement
2012-06-06 14:24:28 +02:00
Martin Carlberg
49adcd85fc
Removed useless space after capp_lint warning
2012-05-25 10:54:10 +02:00
Martin Carlberg
8e785c2210
Removed set and get methods and blank line before if added.
2012-05-25 10:47:07 +02:00
cacaodev
db8f2fdf75
Added support for CPTableView content binding, generally used with view-based tables.
...
Grouped the 3 ways to set objectValue on a dataview (content binding, column value binding or regular delegate method) under one main method: _setObjectValueFortableColumn:row:ForView:
Also fixed a bug where the dragging rows didn't have their bindings applied. Columns and row dragging are now using the previous method for setting data view objectValue.
Updated TableBindings example: table with content binding vs. columns with value binding.
2012-05-16 15:57:26 +02:00
Martin Carlberg
183260d9e3
Added a themed attribute for round rect selection of rows.
...
Selections in the tableview can now have round corners. The default is a regular
rect, but if the selecction radius is changed. Nice good looking round rect
selections will appear.
2012-05-11 16:14:14 +02:00
Stefan Wallström
19804720af
CPTableView: Don't update selection etc unless becoming first responder succeeds.
...
Fix for issue #1435
2012-05-10 13:42:37 +02:00
Aparajita Fishman
36bfc7c675
Fixed decode methods to return the correct defaults, removed unnecessary containsValueForKey and || with defaults
2012-04-24 10:15:19 +02:00
Aparajita Fishman
c028c0ad26
Fixed infinite loop when finished editing a tableview cell.
2012-04-12 17:09:20 -04:00
Antoine Mercadal
71cfeae5f1
fix typo preventing the highlighting color to be draw.
2012-04-10 16:08:17 -07:00
Blair Duncan
6ede1ccb04
Unnecessary globals
2012-04-10 17:25:46 -04:00
Aparajita Fishman
e2ead56256
Collection KVC fixes, nextObject correctness
...
- Moved common CPArray/CPSet collection KVC operators to _CPCollectionKVCOperators.
- Implemented KVC operator dispatch using Objective-J.
- Fixed infinite loop with empty collection in @min, @max and @sum operators.
- Correctly return valueForUndefinedKey when necessary.
- valueForUndefinedKey reason uses raw description for consistency, class' overridden description may not helpful at all.
- Don't create a forwarder for @ operators with property paths.
- Fixed CPSet -valueForKeyPath to correctly deal with nil/undefined/empty values.
- Added tests for collection KVC operators.
- enumerator -nextObject should always compare against nil for clarity, correctness, and consistency.
2012-04-03 22:16:55 -07:00
Alexander Ljungberg
da80176935
Minor optimisation.
2012-03-25 14:15:18 +01:00
Alexander Ljungberg
2951a83e73
CPArray enumerateObjectsWithOptions:usingBlock:.
2012-03-22 17:05:59 +00:00
Alexander Ljungberg
90514bd3cb
Test table view notifications for deselectAll. Verify absence of CPTableViewSelectionIsChangingNotification when changing programmatically.
2012-03-18 15:21:09 +00:00
Alexander Ljungberg
1bf632a575
Rename shouldShowOutlineViewForItem to shouldShowOutlineDisclosureControlForItem.
...
ShouldShowOutlineView is not a great delegate method name for a control called an outline view. The original Cocoa name refers to an 'OutlineCell' which we don't have so that's not appropriate either.
2012-03-15 00:14:25 +00:00
Alexander Ljungberg
58a2fce110
Code formatting.
2012-03-10 12:01:40 +00:00
Randall Luecke
dd7d36da43
call layoutSubviews when the tableview lays out its subviews.
2012-02-02 19:34:11 -05:00
Alexander Ljungberg
b26b0a321b
Reinstate defensive coding for numeric parameters in CPTableView.
2012-01-27 14:54:10 +00:00
Aparajita Fishman
1c2a304ee5
Assignment of function is a statement and should be semicolon terminated. Some miscellaneous linting as well.
2012-01-05 17:51:37 -10:00
Blair Duncan
bb7876759a
unnecessary globals
2011-12-10 23:10:22 -05:00
Alexander Ljungberg
a5854f129d
Fixes #1411 . In IE, no table/outline view selection highlights would render for certain CIBs.
...
This fix also enables `setSelectionHighlightStyle: CPTableViewSelectionHighlightStyleSourceList` in Internet Explorer. Even that the gradient effect can't be rendered and the fallback regular rendering will be used, the proper field value might still be useful for subclasses or saving out to CIBs etc.
2011-12-06 23:29:57 +00:00
Antoine Mercadal
db76044880
fix zombie group rows style. closes #1376
2011-11-05 00:24:54 +01:00
Alexander Ljungberg
021f5bb030
Fixed: disappearing or fuzzy table header dividing lines at certain table sizes.
2011-10-20 18:51:59 +01:00