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
Francisco Tolmasky
a30e91052e
Removed themability from title and image in CPButton.
...
Reviewed by me.
2009-02-07 20:21:03 -08:00
Francisco Tolmasky
abd86c676b
Theming for CPScroller.
...
Reviewed by me.
2009-02-07 18:38:34 -08:00
Francisco Tolmasky
df5f6c692f
Additional theme changes.
...
Reviewed by me.
2009-02-05 21:17:59 -08:00
Francisco Ryan Tolmasky I
e4b2988864
Added more customizability.
...
Reviewed by me.
2009-02-03 22:47:02 -08:00
Francisco Ryan Tolmasky I
c8101d481e
Fix spacing issues in CPPopUpButton.
...
Reviewed by me.
2009-01-28 17:20:29 -08:00
Francisco Ryan Tolmasky I
d0db80335b
Fixed bug where buttons wouldn't shrink after sizeToFitting.
...
Reviewed by me.
2009-01-28 12:38:55 -08:00
Francisco Ryan Tolmasky I
f28f2c6e8c
Performance improvements to pop up menus.
...
Reviewed by me.
2009-01-27 16:57:46 -08:00
Francisco Ryan Tolmasky I
10b34965bd
Added support for cross-browser text shadows in _CPImageAndTextView.
...
Reviewed by me.
2009-01-27 15:41:32 -08:00
Francisco Ryan Tolmasky I
9e7fd7f74f
Began integrating new imageandtextview into CPButton.
...
Reviewed by me.
2009-01-27 01:06:21 -08:00
Francisco Ryan Tolmasky I
b0d5ca2830
Added vertical alignment support to _CPImageAndTextView.
...
Reviewed by me.
2009-01-26 22:35:01 -08:00
Francisco Ryan Tolmasky I
9e9266712a
Changed _CPImageAndTitleView to _CPImageAndTextView.
...
Reviewed by me.
2009-01-23 18:01:05 -08:00
Francisco Ryan Tolmasky I
8de321c780
Final fix for buttons not working when disabled.
...
[#188 state:resolved]
Reviewed by me.
2009-01-21 11:43:45 -08:00
Thomas Balthazar and Francisco Ryan Tolmasky I
99f6492f29
work in progress
...
Signed-off-by: Francisco Ryan Tolmasky I <francisco@280north.com >
2009-01-22 00:59:35 +08:00