Randall Luecke and Aparajita Fishman
4b9c5e0d64
Removed gradient stuff that has been moved to the theme.
2010-08-02 12:40:46 -04:00
Alexander Ljungberg and Aparajita Fishman
2d6f343098
Closes #806 . Fixed: if a selected row was removed from a table view, the selection remained and would show up again if a new row was later added.
2010-08-02 12:40:40 -04:00
Alexander Ljungberg and Aparajita Fishman
a35a67e7f7
Switch to the standard macros in _resizeAllColumnUniformlyWithOldSize as originally intended by Randy Luecke.
2010-08-02 12:40:34 -04:00
Alexander Ljungberg and Aparajita Fishman
efa2d30737
Eliminated some accidental globals in uniform table column resizing.
2010-08-02 12:40:28 -04:00
Alexander Ljungberg and Aparajita Fishman
372ce1e37a
Fixed: after the intercell spacing commit, table column auto resizing on the first or last column would result in a total column width wider than the scroll width of the table. This would appear as the rightmost column sticking out and the table showing a horizontal scrollbar.
2010-08-02 12:40:15 -04:00
Alexander Ljungberg and Aparajita Fishman
d9162d1d8d
Clean up code in table column resizing paths in preparation for fixing it.
2010-08-02 12:40:06 -04:00
Alexander Ljungberg and Aparajita Fishman
9e2a7ea776
Fixed: calling CPTabView setTabViewType:CPNoTabsNoBorder before the first insertTabViewItem would cause an error. Fixed: if a tab item was added in CPNoTabsNoBorder mode, and the mode was later switched to CPTopTabsBezelBorder, that previously added tab item would have no label/tab. The solution is to maintain _labelsView in either mode; since in CPNoTabsNoBorder mode _labelsView is not in the view hierarchy anyhow the performance impact should be minimal.
2010-08-02 12:39:28 -04:00
Alexander Ljungberg and Aparajita Fishman
ac42809a2b
Fixed with CPTabView: don't remove the content and auxiliary views if the new views are the same as the old ones. This prevents flickering and needless redraws when the currently selected tab is reselected.
2010-08-02 12:39:19 -04:00
Alexander Ljungberg and Aparajita Fishman
a7a8ee7c6c
Implemented NSView viewDidHide and viewDidUnhide.
2010-08-02 12:39:06 -04:00
Randall Luecke and Aparajita Fishman
8bb2d49267
Sheets should be assigned to the platform window of the window it is attached to.
2010-08-02 12:38:15 -04:00
Randall Luecke and Aparajita Fishman
444e48dbf8
some fixes to default buttons to make them more cocoa compliant...
2010-08-02 12:37:10 -04:00
Aparajita Fishman
50103d64b0
Fix for issue #804 (doxygen fails to generate class references), also did a bit of formatting cleanup in CPColor.j
2010-07-30 16:29:58 -04:00
Aparajita Fishman
5a1afc5896
Another fix for issue #782 , uses class variable for the empty image placeholder.
2010-07-28 18:45:55 -04:00
Aparajita Fishman
4f663aaa6e
Fixes to 30004c5e93:
...
- Switched to _CG inline macros
- Cleanup up and fixed -drawRect
2010-07-28 18:34:59 -04:00
Aparajita Fishman
470fcaf13e
Full support for intercell spacing (issue #797 )
2010-07-28 17:51:05 -04:00
Aparajita Fishman
ff4f22a8a4
CPSearchField fixes/enhancements to commit 5b763928fe:
...
- Added more documentation for -defaultSearchTemplate.
- Capitalized the text of the menu items in the default template.
- Adding a separator before no recents menu item if there are items before it.
- Updated the test app to use the default template and then modify it.
- Updated the test app to maintain the state of the custom items.
2010-07-28 15:02:51 -04:00
Aparajita Fishman
5b763928fe
Fixes to commit 69273259a5:
...
- No longer setting the search menu template to the default, but -defaultSearchMenuTemplate was made public.
- Action and target for clear recents item is always set to CPSearchField -_searchFieldClearRecents: since that is a built-in type.
- Action and target for recents item is always set to CPSearchField -_searchFieldSearch: since that is a built-in type.
- Template menu items are copied via CPMenuItem -copy (which is now implemented), so all state is maintained.
2010-07-28 14:30:20 -04:00
Aparajita Fishman
6be1b89428
Full support for all NSScrollView border types, beginnings of a new tableview tester that shows dynamic changing of border type.
2010-07-27 16:42:50 -04:00
Aparajita Fishman
92897a91ed
Added -isBold accessor, fixel documentation to indicate font size is actually in css pixels, not points.
2010-07-27 16:37:13 -04:00
Aparajita Fishman
1d8ab840dc
Another shot at fixing #776
2010-07-27 14:14:45 -04:00
Aparajita Fishman
a8b0e7eee2
Merge branch 'master' of http://github.com/280north/cappuccino into my_master
2010-07-27 07:37:23 -04:00
Klaas Pieter Annema and Ross Boucher
90e9b86497
match CPTableView's alternating row colors with Aristo's
2010-07-26 22:48:58 -07:00
Klaas Pieter Annema and Ross Boucher
560ea75a25
added CPArrayController to AppKit.j
2010-07-26 22:48:40 -07:00
Klaas Pieter Annema and Ross Boucher
78fd972312
only reverse set the binding on end editing
2010-07-26 22:48:40 -07:00
Klaas Pieter Annema and Ross Boucher
0306c35b54
don't copy the selection indexes in setContent:
2010-07-26 22:48:39 -07:00
Aparajita Fishman
e8cd9c15fb
Another try at fixing issue #782
2010-07-26 19:58:13 -04:00
Aparajita Fishman
848abf116d
Cleaned up the state indicator (it was a little uneven) and centered it more horizontally in the state column.
2010-07-26 14:44:55 -04:00
Aparajita Fishman
e15ea5f2f0
Fix for issue #782 (CPImageView -setObjectValue wrongly sets src attribute to empty string)
2010-07-26 12:57:28 -04:00
Aparajita Fishman
fad96880eb
Simplified means of setting the default system font, now the CPSystemFontFace item only needs to be added to AppKit/Info.plist.
2010-07-25 19:37:24 -04:00
Aparajita Fishman
00de3edd5f
Cleaned up drawing code for _CPDropOperationDrawingView, increased width of highlight when highlighting entire table
2010-07-24 10:21:04 -04:00
Aparajita Fishman
30004c5e93
Support for CPBox in nib2cib, support for line, bezel and groove borders in CPBox as well as background color.
2010-07-24 09:54:31 -04:00
Aparajita Fishman
05303f3050
Port of NSGraphics
2010-07-24 09:49:50 -04:00
Aparajita Fishman
60313355c2
-hitTest was always returning self, which did not allow any other views to receive a mouse down
2010-07-24 09:44:57 -04:00
Aparajita Fishman
673f12164f
Resign as first responder only if CPSearchField and its super agree to.
2010-07-24 08:57:15 -04:00
Aparajita Fishman
69273259a5
More fixes to CPSearchField (Cocoa compliance and bugs):
...
- Added the ability to specify a separator in the template by using the tag CPSearchFieldSeparatorMenuItemTag.
- _recentSearches was not being initialized by -initWithCoder, moved that code into -_init.
- -setSearchMenuTemplate was not being invoked. Since having a recents menu is the default behavior in Cocoa, it should probably be the default behavior in cappuccino. To turn it off, set _maximumRecents to >= 254.
- -searchTextRectForBounds was using the wrong rect for -searchButtonRectForBounds and -cancelButtonRectForBounds, resulting in a rect that was too narrow and did not fill the space.
- Tightened up the spacing between the magnifying glass and the text to exactly Cocoa distance.
- Overhauled -
updateSearchMenu to fix some logic bugs.
- Made sure the search field becomes first responder after closing the search menu.
- Cleared the search string when clearing recent searches, this is what Safari does.
- Removed redundant invoking of -setDelegate in -initWithCoder.
- -_init has to be called last in _initWithCoder.
2010-07-23 22:37:28 -04:00
Aparajita Fishman
964b160233
Fix for issue #748
2010-07-23 18:02:51 -04:00
Aparajita Fishman
94ee852cfe
Implemented method of setting the default system font face. See http://groups.google.com/group/objectivej/browse_thread/thread/64f6a42d74d68386
2010-07-23 17:56:21 -04:00
Aparajita Fishman
91f14e38ef
Fix for issue #778
2010-07-23 17:18:08 -04:00
Aparajita Fishman
8eafad2193
Fix for issue #777 , also fixed a declared type while I was at it
2010-07-23 17:06:23 -04:00
Aparajita Fishman
cc6aa999b9
frame parameter is not being used in _initWithFrame, might as well leave it out, fixed typo in comment
2010-07-23 16:28:10 -04:00
Aparajita Fishman
7b49aa0c88
Fix for issue #776
2010-07-23 16:21:38 -04:00
Aparajita Fishman
ced9879b28
Cursor is not being reset to the original cursor when exiting a drag region or ending a drag, the drag destination may have set it to something else
2010-07-23 12:39:35 -04:00
Aparajita Fishman
9450f63f2a
Fixes to cacaodev/searchfield/ffb8f99603d96b903b6bb39bc4dcb15ad09465be...
...
- Replaced CG functions with inline _CG functions
- _canResignFirstResponder was not being initialized to YES
- -resignFirstResponder has to call super if _canResignFirstResponder == YES
2010-07-23 11:49:46 -04:00
Aparajita Fishman
15eeecb804
Merged cacoadev/searchfield into my_master
2010-07-23 08:42:24 -04:00
Randall Luecke
51f780b5f5
Merge branch 'master' of github.com:280north/cappuccino
2010-07-22 00:21:51 -05:00
Randall Luecke
cffbf86351
TableView theming
2010-07-22 00:21:02 -05:00
Alexander Ljungberg and Ross Boucher
4d1baac4db
Fixed: first clearing a \r keqyEquivalent from one button and then setting it on another would result in an exception.
2010-07-21 14:57:52 -07:00
Alexander Ljungberg and Ross Boucher
474623feb3
Added support for punctuation based key equivalents such as Cmd-' or Cmd-;. Fixed: [event characters] would contain Þ when Cmd-' was pressed and º for Cmd-; since the key codes for punctuation do not match the ASCII codes and String.fromCharCode does not work. Manual test included.
2010-07-21 14:52:05 -07:00
Ross Boucher
85f3691432
Don't add a "Shift" if it's not required.
2010-07-19 16:27:44 -07:00
Randall Luecke
a2e6f8f964
Initial theming of TableView header.
2010-07-15 22:32:00 -05:00