Alexander Ljungberg
1c007461bd
Draw table view gridlines precisely inside the right side of cells so that grid line positioning and spacing matches Cocoa.
...
Checked against Cocoa with 0, 1, 2 and 3 px intercell spacing.
2011-05-30 17:46:46 -04:00
Alexander Ljungberg
89974796b1
Fixed: table view's rectOfColumn: method returned a rect reduced by the intercell spacing. It should return the rect of the entire column. Fixed: when a column was selected the column selection colour would not cover the whole column. Fixed: in recent builds, table view header divider lines did not line up with body divider lines.
...
Ultimately, intercell spacing is only applied, as the name implies, inside of cells. It is not applied in the header, nor at the column or row level. Only data views inside of cells are offset.
2011-03-29 00:33:32 -04:00
Alexander Ljungberg
4f6d939634
Minor table view cleanup.
2011-03-28 22:14:11 -04:00
Randall Luecke
24fbf27880
Headerview and corner view fixes
2011-03-12 01:24:15 -05:00
Alexander Ljungberg
af30e96b7b
Cleanup.
2011-01-14 12:16:51 -03:00
Randall Luecke
5a0c8f4a8b
Legacy tableviews cibs dont decode properly. Closes #850
2010-12-26 17:31:54 -06:00
Francisco Ryan Tolmasky I
1cbaea0e3d
Further capp_linting - removing accidental global.
...
Reviewed by me.
2010-12-02 12:11:57 -08:00
Randall Luecke
4f6c83cb3a
Fix for setFont: not working in the table header because of the new theme stuff.
2010-11-23 01:20:38 -05: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
Klaas Pieter Annema
6e9f82212b
rename CPView +themeClass to +defaultThemeClass
2010-10-25 14:15:22 +02: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
Alexander Ljungberg
7692f80f64
Additional fixes of inadvertent globals.
2010-09-17 16:48:00 -04:00
Klaas Pieter Annema
ac26827f32
make CPTableHeaderView divider color theme-able
2010-09-14 14:47:10 +02:00
Randall Luecke
1e490f1796
Fix for column reordering with hidden columns. Closes #637
2010-08-11 15:59:04 -05:00
Randall Luecke
33e4a082d6
Some visual changes to column dragging to make it a bit more like cocoa.
2010-08-09 18:43:11 -05:00
Randall Luecke
13b2a886f3
Changed CPRect and CPPoint functions to _CG
2010-08-09 17:36:33 -05:00
Randall Luecke
21614e15b2
Draw column header lines by default.
2010-08-09 14:05:58 -05:00
Randall Luecke
cffbf86351
TableView theming
2010-07-22 00:21:02 -05:00
Randall Luecke
a2e6f8f964
Initial theming of TableView header.
2010-07-15 22:32:00 -05:00
Klaas Pieter Annema and Randall Luecke
6bd8e96ac0
fixed a bug where the table header would attempt to set content inset on a _CPImageAndTextView
2010-05-25 14:02:52 -05:00
Klaas Pieter Annema and Randall Luecke
d06d69966b
used content inset in stead of frame offset to properly place the table header text
2010-05-25 14:02:41 -05:00
Klaas Pieter Annema and Randall Luecke
004829ac9e
table header view nib2cib updates
2010-05-25 14:02:30 -05:00
Klaas Pieter Annema and Randall Luecke
5479c77ae6
changed the table header view image height to 23.0
2010-05-25 14:00:46 -05:00
Randall Luecke
e0a3a683a5
access ivars directly from within CPTableHeaderView class.
2010-05-12 19:44:07 -05:00
Ross Boucher
4afa2bfada
clean up style issues
2010-05-11 23:20:02 -07:00
Randall Luecke
bf71045381
Fixed bug where column reordering would be off if the table didn't sit at (0,0) on a window.
2010-05-11 19:39:51 -05:00
Klaas Pieter Annema
a0cf7d5787
made table column reordering work in non full-bridged apps
2010-05-05 12:56:23 +02:00
Klaas Pieter Annema
e7fc9d9912
fixed a bug where column reordering would break when the last column was hidden
2010-05-05 12:25:09 +02:00
Klaas Pieter Annema
bdb0fb1310
some cleanup
2010-05-05 12:24:05 +02:00
Klaas Pieter Annema
006f7e0c15
- fixed a out of bounds error when clicking in the table header outside of any column
...
- made the dragged table column appear gray
- gave the tablecolumn drag view a white background
2010-05-05 12:23:55 +02:00
Klaas Pieter Annema
93afa11ef9
- switch columns when the dragged column is more than halfway over the previous/next column
...
- constrain the horizontal coordinates within the header view
2010-05-05 12:23:07 +02:00
Klaas Pieter Annema
040e7bc9ee
- made the _dragViewForTableColumn:event:offset: method private
...
- removed the multiple column support from _dragViewForTableColumn:event:offset: (Cocoa doesn't allow multiple column selection / dragging)
- made the dragview the size of the dragged column
2010-05-05 12:23:00 +02:00
Klaas Pieter Annema
6bb8514253
- gave the drag column a proper 'image' representation
...
- constrained the drags y coordinates
- made sure a drag is never out of bounds
2010-05-05 12:22:53 +02:00
Klaas Pieter Annema
85283cff38
- refactored mouse interaction
...
- implemented basic column reordering
2010-05-05 12:22:42 +02:00
Klaas Pieter Annema
ef68408fff
refactored CPTableHeaderView mouse interaction
2010-05-05 12:22:36 +02:00
Klaas Pieter Annema
4ef9202e92
made the tableview handle hiding and showing of columns properly
2010-04-29 14:22:46 +02:00
Randall Luecke
e0483e316e
Fixed bug with nib2cib tableviews loading incorrect resources.
2010-03-14 17:24:36 -04:00
cacaodev and Randall Luecke
20853e3ad7
CPTableView & al. : change CPThemeStateHighlighted to CPThemeStateSelected to avoid conflicts with CPControl -highlight: method.
2010-03-09 11:43:37 -05:00
Ross Boucher
203e0d150b
Update table headers to return the cursor to normal if the window doesn't accept mousemoved events.
2010-02-27 12:22:52 -08:00
cacaodev and Randall Luecke
9a16921a32
CPTableHeaderView: Avoid vertical lines disapearring when autoresizing the table.
...
Fix cursor updates disabled when table autoresizing is NoAutoresizing.
nil check table headerView before sending a message to itself or to a table column header view.
Conflicts:
AppKit/CPTableHeaderView.j
2010-02-26 11:35:49 -05:00
Ross Boucher
ef5aead17d
Disabled resize cursor support in CPTableViewHeader
2010-02-24 21:22:07 -08:00
Randall Luecke
629428739d
Fixed error when headerview was set to nil on the CPTableView.
2010-02-20 17:44:45 -05:00
BlairDuncan and Randall Luecke
26df9e861f
Fix for cursor showing resize indicator when column isn't user resizable.
2010-02-20 03:58:38 -05:00
Randall Luecke
c48d306195
Initial refactor/rewrite of auto resizing columns.
2010-02-19 03:23:29 -05:00
Randall Luecke
72edd7376e
temp fix for auto resizing when user manually resizes. Uniform resizing is still broken.
2010-02-16 03:56:17 -05:00
Randall Luecke
59756ff1b3
Made the hit test area for the column resizing a bit smaller.
2010-02-16 03:40:05 -05:00
Ross Boucher
f3257c0847
Add trunaction defaults to the table view cells
2010-02-15 23:05:23 -08:00
Ross Boucher
3e40deba5f
Fix a lot of style issues.
...
Change a 1px value.
Closes #444 .
2010-02-15 21:27:27 -08:00
Ross Boucher
8617990206
Add much better support for CPTableView to nib2cib.
2010-02-15 17:28:35 -08:00
Randall Luecke
4237000fc9
TableView:
...
Set a CPThemeStateHighlighted for both selecting and sorting.
Do not change sort descriptors when selecting with a modifier flag.
Conflicts:
AppKit/CPTableView.j
2010-02-14 21:33:20 -05:00