Alexander Ljungberg
27584544d9
Fixed: tab views added in IB didn't resize properly.
...
IB sets `autoresizesSubviews` to NO for tab views by default. In Cocoa this doesn't make any difference because `NSTabView` ignores this setting.
This fix makes it so that Cappuccino's tab view also works with `autoresizesSubviews` off.
2012-11-18 19:24:13 +00:00
Alexander Ljungberg
acd98b5c88
Clarify CPTabView code.
2012-08-28 14:32:04 +01:00
Alexander Ljungberg
f535a6a242
Minor CPTabView optimisation.
2012-08-28 11:42:38 +01:00
cacaodev
d581dec6cf
CPTabView: Do not track the segment when the delegate disallows item selection.
2012-02-13 00:32:22 +01:00
cacaodev
6a42d601c5
CPTabView: remove duplicate code.
2012-02-10 16:31:45 +01:00
cacaodev
59ce74a3df
CPTabView : _selectedIndex was undefined after decoding an empty tab view (no items).
...
A visible bug was that the first item added was not immediately selected. Updated CPTabViewNib example, shows the bug fixed.
2012-02-10 16:29:50 +01:00
Alexander Ljungberg
c7d3ccb13a
Add missing header to CPTabView.
2012-01-27 12:33:07 +00:00
Alexander Ljungberg
a081f98fd1
Refs #1440 . Whitespace cleanup.
2012-01-27 12:32:11 +00:00
cacaodev
7a41282912
CPTabView: Fix a bug where a CPTabView would not reflect immediately the replacement of the selected item's view.
...
Updated CPTabViewNib to show a setView: on the current item.
If the view changes on a non selected item, the tabView content will be
updated when this item is selected.
2012-01-26 14:45:42 +01:00
cacaodev
c8f8c01d2f
CPTabView : _setTabView: on newly decoded CPTabViewItems
...
A CPTabViewItem needs to know about its tabView.
2012-01-26 14:34:52 +01:00
cacaodev
7f6db7bf98
CPTabView: Fix a bug where -selectedTabViewItem was raising instead of returning nil when no tab items (i.e. _selectedItemIndex = -1) and causing nib2cib to fail.
...
Added An empty Tab View to CPTabViewNib test app.
Needs a jake sudo-install for changes to take effects.
2012-01-26 10:44:46 +01:00
Alexander Ljungberg
f0bba44e45
Completed CPTabView documentation.
2011-04-03 17:56:31 -04:00
Aparajita Fishman
044a605e47
Added font methods so that nib2cib can do font substitution
2011-03-28 23:51:45 -04:00
Aparajita Fishman
b0af42e236
Removed extra blank line
2011-03-11 12:39:54 -05:00
Aparajita Fishman
d303e6e96c
Initial commit before testing.
2011-03-08 17:40:41 -05:00
Alexander Ljungberg
af30e96b7b
Cleanup.
2011-01-14 12:16:51 -03:00
Francisco Ryan Tolmasky I
4db1e28677
Merge branch 'trunk' of https://github.com/meelash/cappuccino into meelash-trunk
2011-01-08 15:27:34 -08:00
meelash
d6cbc52790
Fix for issue #302 CPTabViewItem _tabView is not set. Closes #302
2011-01-08 15:15:13 -05:00
Antoine Mercadal
ae67b00c4d
remove the change in tabViewItemAtIndex:
2011-01-04 20:06:53 +01:00
Antoine Mercadal
29430df66d
fix small bugs in CPTabView
2011-01-04 19:36:05 +01:00
Francisco Ryan Tolmasky I
e2327fcf94
Fix for remaining delegate reference instead of _delegate in CPTabView.
...
Closes #1061 .
Reviewed by me.
2010-12-26 15:36:06 -08:00
Ross Boucher
ab083a3baf
Clean up several flaws in CPTabView:
...
- should not force empty space above and below, but only where the tabs are
- box should fill frame when no tabs are present
- ivars should be prefixed with underscore
- not sure about the current background color code, may revisit
2010-12-15 15:48:42 -08:00
Alexander Ljungberg
04a19543a5
Fix CPTabView decoding to work better with nib2cib.
2010-11-11 20:21:24 -03:00
Alexander Ljungberg
ed1c5714a3
Closes #971 . Fixed: nib2cib did not work with the new CPTabView.
2010-11-05 13:51:51 -03:00
Alexander Ljungberg
dfe03458d0
Fixed: decoding a CPTabView would result in "TypeError: Result of expression 'aRect' [null] is not an object" due to incomplete initialisation.
2010-11-05 13:30:57 -03:00
Antoine Mercadal
b9095b2176
box is now resized using CPViewHeightSizable
2010-11-02 13:02:24 +01: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
Antoine Mercadal
3d82203893
remove 'drunk' code and simply use resizing masks
2010-10-19 22:53:52 +02:00
Antoine Mercadal
560c971aeb
capp_lint
2010-10-13 13:41:35 +02:00
Antoine Mercadal
8fc465b63a
fix: CPTabView not resizable
...
fix: delegate problem with uninitialized variable
2010-10-13 13:37:28 +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
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
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
Alexander Ljungberg
c277ae7f68
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-07-30 21:03:00 -04:00
Alexander Ljungberg
7c78753865
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-07-30 21:02:50 -04:00
Ross Boucher
0c66606d1d
Closes #517 .
...
Adds missing delegate accessor.
2010-03-06 00:01:36 -08:00
Nicholas Small
d2cd3b899f
Fix CPTabViewItem -tabView.
2009-12-16 00:22:35 -05:00
Ross Boucher
341eddb9f9
Fixes a tab view bug with removing tabs.
...
Closes #274 .
Kudos go to jtietema for tracking down the bug.
2009-10-22 10:20:14 -07:00
Ross Boucher
850125b8ab
Add documentation groups
2009-05-18 15:43:36 -07:00
nciagra and Ross Boucher
e10445807c
Fix for CPTabView not having its bezel drawn before being added as a subview.
2009-04-06 22:26:25 -07:00
Thomas Balthazar and Ross Boucher
5500792ed3
[ #243 state:resolved] : Error in CPTabView.indexOfTabViewItemWithIdentifier
2009-04-04 22:41:12 -07:00
Ross Boucher
17bb6aac05
Fix typo in CPTabView.j
2009-01-19 01:25:54 -08:00
tlrobinson
77315d0268
Merge branch 'master' of git@github.com:280north/cappuccino
2008-12-10 19:03:03 -08:00
tlrobinson
f29be2f69c
CPTabView and CPTabViewItem coding and nib2cib support
2008-12-10 19:02:22 -08:00
Francisco Ryan Tolmasky I
d92fc8c4d0
Cleaned up old deprecated documentation stuff and added documentation to deploy.
...
Reviewed by me.
2008-12-10 15:57:31 -08:00
Francisco Ryan Tolmasky I
5144a5a579
Added @accessor support, @import, and fixed spacing bug with @selector.
...
Reviewed by ross.
2008-10-26 00:48:49 -07:00
Ross Boucher
f228934e54
Initial conversion to Doxygen style comments.
2008-10-12 15:57:01 -07:00