Klaas Pieter Annema
815e64356d
implement _minimumFrameSize in CPButton
2011-05-24 12:29:23 +02:00
Alexander Ljungberg
a51a051cee
Fixed: if a button was unarchived it would have no continuous push delay and a 0 interval.
2011-05-11 19:15:44 -04:00
Mike Fellows
a801860f90
Move the functionality from CPStepper's _CPContinuousButton object into CPButton so any CPButton can be made continuous
2011-01-19 12:02:43 -08:00
Klaas Pieter Annema
8faa17ad33
reset allow mixed state when bound
2011-01-07 15:20:12 +01:00
Klaas Pieter Annema
c2bab5b369
fix [CPButton setObjectValue:CPOnState]
2011-01-07 14:14:19 +01:00
Francisco Ryan Tolmasky I
ffea2de826
Style fixes.
...
Reviewed by me.
2010-12-09 13:00:52 -08:00
Ross Boucher
b80c48886a
Merge branch 'cpbutton-rounded-bezel-style-support' of https://github.com/primalmotion/cappuccino into primalmotion-cpbutton-rounded-bezel-style-support
...
Conflicts:
AppKit/Themes/Aristo/ThemeDescriptors.j
2010-12-08 13:23:14 -08:00
Daniel Brajkovic
6093530175
Added some documentation to CPButton.j
2010-11-18 13:18:01 -06:00
Antoine Mercadal
3c18282510
add support for theme state rounded
2010-11-18 12:07:44 +01:00
Aparajita Fishman
5cd00d71c7
Fixed sizeToFit drawing when there is no image, setNeedsDisplay is no longer needed after sizeToFit.
2010-11-06 17:12:09 -04: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
Aparajita Fishman
c3b5dc747a
CPButton bezelRectForBounds and contentRectForBounds were modifying the bounds parameter in place without copying it.
2010-09-30 17:27:06 -04:00
Klaas Pieter Annema
57813ea3fb
change CPButton imageOffset theme property to image-offset
2010-09-15 12:34:16 +02:00
Aparajita Fishman and Klaas Pieter Annema
ce2c662872
Fixes to previous CPButton image positioning commit.
...
- Checkbox and radio selected states would not show in the images. It turns out that the image and alternate image cannot be encoded->decoded->set without messing up the theme, and unfortunately the theme blending task (during a jake build) would do so. So for now this means that we cannot encode non-theme images with a button class, which is unlikely to happen.
- Since we cannot access themes in the NS classes, I went ahead and started to make some constants in a few control classes so that the values can be changed in one place and affect the theme and nib2cib.
2010-09-10 09:56:26 +02:00
Aparajita Fishman and Klaas Pieter Annema
6680a1f2a7
Overhaul of CPButton and supporting classes to support image positioning the way Cocoa does
2010-09-08 22:13:39 +02:00
Klaas Pieter Annema
c9752195ac
several CPButton theming additions
...
- made image and alternate image a theme property
- made image margins theme-able
2010-08-25 13:26:44 +02:00
Aparajita Fishman and Alexander Ljungberg
05edec8a8b
Removed CPButton -setDefaultButton, new version of CPButton after merging with latest master.
2010-08-22 18:53:52 -04:00
Randall Luecke
6e796d7a22
Fix for endless loop with default buttons.
2010-08-16 15:05:46 -05:00
Randall Luecke
90a45dca29
some fixes to default buttons to make them more cocoa compliant...
2010-08-01 20:19:26 -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
Klaas Pieter Annema
f40fc321fe
Make the window perform it's defaults button's key equivalent after the default keyDown messages are handled
2010-06-16 14:17:58 +02:00
Alexander Ljungberg and Ross Boucher
44555ac724
UTF compatible CFData base64 string encoder and decoder. Use it for CPButton key equivalent archiving. Also ordered CPText.j constants by value and removed the empty CPText class definition as it caused errors with nib2cib. Fixed: the key equivalent for forward delete (CPDeleteFunctionKey, \uF728) was transformed to '(' (\u0028) when archived and unarchived.
2010-06-11 09:39:19 -07:00
Ross Boucher
421ae6b316
Make CPButton archive its key equivalents, and make nib2cib support the feature.
2010-06-10 10:41:15 -07:00
Alexander Ljungberg
c26ebe0bd2
Added support for menu key equivalents such as Escape or Cmd-Delete. Refactored code to recognize key equivalents for reuse between CPMenu and CPButton. Added unit tests for CPMenu key equivalents.
2010-06-07 19:09:15 -04:00
Alexander Ljungberg
381a44148e
Special keys such as backspace and escape can now be used as key equivalents through checking for their unicode representations in [CPEvent characters]. This replaces the earlier raw key code approach.
2010-06-07 19:09:10 -04:00
Alexander Ljungberg
44f5086600
Key equivalents for CPButton.
2010-06-07 19:08:44 -04:00
Alexander Ljungberg and Ross Boucher
3c5dab1f34
Implemented CPCoding for CPButton imageDimsWhenDisabled. Fixed a problem where setImageDimsWhenDisabled:NO would not cause a redraw even if the image was previously dimmed.
2010-05-24 11:17:25 -07:00
Klaas Pieter Annema and Ross Boucher
ee2f361425
Reimplemented setImageDimsWhenDisabled: on CPButton to only dim the image instead of the entire button
2010-05-12 16:51:28 -07:00
Scott Kyle and Ross Boucher
b0d355a71c
Some somewhat minor style fixes
2010-03-24 19:46:38 -07:00
Ross Boucher
e759c5343b
Add a missing import in CPButton, and a test to ensure you can create one on the command line.
2010-02-22 11:07:11 -08:00
Ross Boucher
91681d7846
Move more constants to CPControl.j
2010-02-17 17:06:09 -08:00
Francisco Ryan Tolmasky I
bc53288fca
Fix for failing CPAttributedString test.
...
Reviewed by me.
2010-02-13 16:14:18 -08:00
Ross Boucher
9a7484e57d
Fix Typo. Closes #463 .
2010-02-13 12:06:52 -08:00
Francisco Ryan Tolmasky I
4d7f5a8a09
Fix for fixing state after turning setAllowsMixedState to NO.
...
Reviewed by me.
2009-11-17 19:17:58 -08: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
0235076fb6
Fix for typos in CPButton.j.
...
Closes #139 .
Reviewed by me.
2009-05-24 14:20:18 -07:00
Francisco Ryan Tolmasky I
4758154014
Fix for mis-sized sizeToFit in CPButton.
...
Reviewed by me.
2009-05-19 12:22:15 -07:00
Francisco Ryan Tolmasky I
6d8e1705b8
Cleaned up button's sizeToFit.
...
Reviewed by me.
2009-05-19 12:02:10 -07:00
Ross Boucher
850125b8ab
Add documentation groups
2009-05-18 15:43:36 -07:00
Francisco Tolmasky
94f83a92b7
Added Radio and checkbox classes.
...
Remaining works:
- Fix artwork issue
- nib2cib support
Closes #77 .
Reviewed by me.
2009-05-16 15:53:49 -07:00
Francisco Tolmasky
8c1f6f3014
CPButton cleanup from residual pre-theme code.
...
Reviewed by me.
2009-05-15 21:40:11 -07:00
Francisco Tolmasky
862af9cbae
First stab at fixing Themeing API.
...
Reviewed by me.
2009-05-10 13:04:02 -07:00
Ross Boucher
ae8fd0c2d4
add size to fit for buttons. Closes #34 .
2009-05-05 22:10:00 -07:00
Ross Boucher
acb1929b49
Add default button style
2009-04-14 01:32:14 -07:00
Ross Boucher
0c63a5aba4
Add defaultButton to CPWindow, set up default key bindings
2009-04-13 21:22:32 -07:00
Francisco Tolmasky
e5ea6b242d
Fixed Aristo affecting unbordered pop up buttons.
...
Reviewed by me.
2009-03-22 12:40:06 -07:00
Francisco Tolmasky
51ad4b2b06
Further work on CPTextField.
...
Reviewed by me.
2009-02-18 13:06:56 -08:00
Francisco Tolmasky
6ad037e469
Fix for major theme state bug.
...
Reviewed by me.
2009-02-18 02:22:10 -08:00
Francisco Tolmasky
50baf5fd50
Further improvements.
...
Reviewed by me.
2009-02-10 01:12:34 -08:00