Alexander Ljungberg
8d14bdd819
CPToolbar autovalidate.
2012-06-28 22:41:41 +01:00
Alexander Ljungberg
23f3a01e3c
Merge pull request #1579 from slevenbits/cptoolbar-delegate
...
CPToolbar delegate fix
2012-06-28 20:27:23 +01:00
Aparajita Fishman
cae5486ec6
Added missing class checks in +initialize, regularized checking code
2012-06-28 12:05:18 -07:00
Alexander Ljungberg
a769618e3e
Don't copy an array we'll copy again 2 lines later.
...
If the delegate returns nil we're just copying nil, and if it does return an array we only use it for a single read-only `arrayByAddingObjectsFromArray:`.
2012-06-28 19:15:20 +01:00
Alexander Ljungberg
80d537958e
Fixed: CPToolbar delegate toolbarDefaultItemIdentifiers: is optional.
...
This fix makes it possible for a toolbar defined in a cib to have a delegate set without defining `toolbarDefaultItemIdentifiers:` like in Cocoa. You might be implementing other delegate methods.
2012-06-28 19:12:05 +01:00
Alexander Ljungberg
72374257ef
Minor optimisation and clean up.
2012-06-13 02:20:58 +01:00
Alexander Ljungberg
1b9def2101
Allow asymmetric toolbar margins. Foundation for theming.
...
Toolbars cannot be themed yet but when theming becomes possible this code should adapt readily.
2012-06-13 02:17:13 +01:00
Alexander Ljungberg
a66942b1b1
Fix and tweak toolbar margins.
2012-06-13 01:40:20 +01:00
Alexander Ljungberg
acd3425c43
Dynamic CPToolbar height,
...
* Support for tall custom widgets. You can now finally have that CPTableView you always wanted in your toolbar.
* "Labels only" mode now makes sense, resulting in a narrow text only toolbar instead of a very tall toolbar with centred labels.
* Use any size toolbar icons such as 48x48 and the toolbar adapts automatically (unlike Cocoa).
2012-06-13 01:26:33 +01:00
Alexander Ljungberg
70bc45ba12
Toolbar CPToolbarDisplayModeIconOnly support.
2012-06-12 23:26:43 +01:00
Alexander Ljungberg
026c210e64
Toolbar CPToolbarDisplayModeIconOnly support.
2012-06-12 23:05:16 +01:00
Alexander Ljungberg
3bc1849041
Improve toolbar item layout.
...
The height of all items is determined by the tallest item, like in Cocoa. But unlike Cocoa our toolbar is presently fixed height so in order to make this look well for small or large items, the whole row of items is now vertically centred, making the allocation of margin above and below automatic.
Furthermore if a toolbar item has a small view or a small icon, it is now centred within the available space above the label. For example, for a tiny icon in one item next to a normal size icon the tiny icon would be centre aligned with the larger icon.
2012-06-12 23:04:33 +01:00
Aparajita Fishman
aeb2671fc0
CPImageView enhancements
...
- Changed from deprecated image scaling constants to new ones.
- Added support for CPImageScaleProportionallyUpOrDown (thanks BlairDuncan).
- Cleaned up image layout code.
2012-04-12 14:55:46 -04:00
Alexander Ljungberg
a16388b57d
Allow toolbar size to be changed even after the toolbar has been created.
2012-02-24 20:38:05 +00:00
Alexander Ljungberg
98e54d2e09
Support for "small" size toolbars (CPToolbar sizeMode).
...
Support only in nib2cib and coding ATM. Calling setSizeMode: on an existing toolbar will not have an effect.
2012-02-24 20:10:36 +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
Alexander Ljungberg
dd5d8fcdce
Closes #1305 . Fixed: don't constrain max toolbar item width to the width of the label.
2011-07-29 02:42:42 -04:00
Randall Luecke
fc81483371
Fix typeo in CPToolbar.j CPToolbarItems to not respect maxSize. Closes #1305 .
2011-06-25 00:45:07 -07:00
Antoine Mercadal
3ddf6031fb
Support for tooltips on CPControls
2011-04-26 14:46:30 +02:00
Stephen Ierodiaconou
6a942630e4
Fixing spelling mistakes
2011-01-24 11:05:48 +02:00
Alexander Ljungberg
af30e96b7b
Cleanup.
2011-01-14 12:16:51 -03:00
Francisco Ryan Tolmasky I
3776a7bee1
Fix for invisible toolbar items sending their associated menu item as the sender for their actions.
...
Reviewed by me.
2010-12-04 10:43:34 -08:00
Francisco Ryan Tolmasky I
1cbaea0e3d
Further capp_linting - removing accidental global.
...
Reviewed by me.
2010-12-02 12:11:57 -08:00
Francisco Ryan Tolmasky I
99c1d18d95
Fix for targets and actions not working in nib2cibed toolbars.
...
Reviewed by me.
2010-11-03 00:36:30 -07:00
Ross Boucher
a45668e7cb
Updates to make nib2cib work better with CPToolbar (and with image resources in IB in general).
2010-11-02 20:31:43 -07: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
Randall Luecke
2a2b320be3
Added image support for overflow toolbaritems. Also disabled the menu items if the toolbar is disabled.
2010-07-06 22:37:58 -05:00
Alexander Ljungberg and Francisco Ryan Tolmasky I
49ae82d96a
Fixed: CPToolbar validateVisibleItems was called validateVisibleToolbarItems.
2010-05-24 15:53:12 -07:00
Francisco Ryan Tolmasky I
756877b94c
Removed some unecessary uses of sprintf.
...
Reviewed by me.
2010-02-25 12:38:50 -08:00
Francisco Ryan Tolmasky I
1524f80418
Fix for toolbar item's sending their views as senders for actions (should be the item itself).
...
Closes #493 .
Reviewed by me.
2010-02-22 00:49:35 -08:00
Stephen Ierodiaconou and Ross Boucher
6b3c95f09f
Fix for issue #473 . Call setEnabled from _CPToolbarItemView updateFromItem.
2010-02-16 10:43:48 -08:00
Francisco Ryan Tolmasky I
c36f975bbf
More support for toolbar items and nib2cib. Added support for CPToolbarShowColorsItem.
...
Reviewed by me.
2010-01-13 22:39:15 -08:00
Francisco Ryan Tolmasky I
e25a227e4d
Fix for updating target/action of toolbar items.
...
Reviewed by me.
2010-01-13 20:03:01 -08:00
Francisco Ryan Tolmasky I
e76ee3c96e
A few more changes for CPToolbar nib2cib support and added beginnings of search field support.
...
Reviewed by me.
2010-01-12 22:54:35 -08:00
Francisco Ryan Tolmasky I
1c89968b69
nib2cib support for the new CPToolbar/CPToolbarItem, also improved classes to pick up item property changes (i.e, setLabel:, setAction:, etc.) after the toolbar has been initialized
...
Conflicts:
Tools/nib2cib/NSAppKit.j
Tools/nib2cib/NSToolbarItem.j
2010-01-12 19:02:43 -08:00
Francisco Ryan Tolmasky I
2d367a8b47
Fix for not being able to drag window from spaces in toolbar.
...
Reviewed by me.
2009-11-18 22:08:57 -08:00
Francisco Ryan Tolmasky I
8f1e56e398
Implemented manual validation for toolbar items and fixed a number of toolbar bugs.
...
Closes #43 .
Closes #48 .
Reviewed by me.
2009-11-15 00:35:52 -08:00
Nicholas Small and Ross Boucher
bc6f168afa
Added some designated initializers to AppKit.
2009-10-09 00:03:52 -07:00
lowell vizon and Francisco Ryan Tolmasky I
377f331b47
Documentation Edits: Replaced <code> and <pre> tags with \c; this allows monospaced text to be displayed with formatted text without needing a new line. See AppKit/CPView after generating documentation for examples. Also added - and + signs to the above changes when referring to either an -instanceMethod or a +classMethod. --lowell@cocoastep
...
Signed-off-by: Francisco Ryan Tolmasky I <francisco@280north.com >
2009-08-08 03:50:50 +08:00
Francisco Ryan Tolmasky I
6cab77e005
More hash->UID name changes.
...
Reviewed by andrew.
2009-06-07 16:07:08 -07:00
Ross Boucher
850125b8ab
Add documentation groups
2009-05-18 15:43:36 -07:00
Ross Boucher
15b383886e
Adding support for shadows in the title bar.
2009-04-05 16:00:42 -07:00
Francisco Ryan Tolmasky I
03ec852804
Fixed a bug where changes in one toolbar affected other toolbars.
...
Reviewed by rossco.
2009-01-20 13:36:34 -08:00
Francisco Ryan Tolmasky I
ce5cfca43d
Fix for tag not being set on button in toolbar.
...
Reviewed by me.
2008-12-23 01:12:39 -08:00
Francisco Ryan Tolmasky I
459316f102
Major Window Fixes/Changes.
...
[#65 state:resolved].
[#58 state:resolved].
[#94 state:resolved].
Reviewed by me.
2008-12-22 13:53:48 -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
bbeba1e735
Fix for regression in toolbar copying behavior.
...
Reviewed by me.
2008-11-18 19:34:42 -08:00
Tom Robinson
88fbecb4d3
Intial CPToolbar coding / nib2cib support (still need CPToolbarItem support)
2008-11-11 02:29:33 -08:00
Francisco Ryan Tolmasky I
745df353c4
Fix for toolbar item's target set to null.
...
[#115 state:resolved]
Reviewed by me.
2008-10-27 01:51:08 -07: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