Klaas Pieter Annema
de73c05316
add colorwell to change bordercolor to Scrollview theming test
2010-09-10 14:28:09 +02:00
Klaas Pieter Annema
fba8b85c90
theming changes to CPScrollView
...
- Add bottom corner view and make it's background color a theme property
- Make the border color themeable
2010-09-10 14:20:19 +02:00
Klaas Pieter Annema
20557190d9
make the scroller width themeable
2010-09-10 14:20:18 +02:00
Klaas Pieter Annema
4e4e7ae015
properly position the vertical scrollbar
...
The vertical scrollbar would be one pixel of if there was:
- no headerview (overlapping the border)
- a headerview, but no cornerview
2010-09-10 14:20:18 +02:00
Klaas Pieter Annema
64b733b1ea
remove bottom corner view drawing in CPScrollView
2010-09-10 14:20:18 +02:00
Klaas Pieter Annema
b75dcd7ac4
made the scrollview line border color themeable
2010-09-10 14:20:17 +02:00
Klaas Pieter Annema
bcacee2147
draw the bottom corner in CPScrollView
2010-09-10 14:20:17 +02:00
Klaas Pieter Annema
e77d28f761
properly decode CPColorWell color as an object in stead of bool
2010-09-10 14:17:39 +02:00
Sami Samhuri and Klaas Pieter Annema
d52cbb7077
Don't set placeholder text on hex text field
2010-09-10 10:02:14 +02:00
Sami Samhuri and Klaas Pieter Annema
ba9df402b0
Use a CPTextField for hex input in CPSliderColorPicker
...
The old DOM based field only accepted a few characters, and not even hex
chars. Backspace and other expected functionality was broken. Switching
to a CPTextField makes it behave as expected.
2010-09-10 10:02:04 +02:00
Sami Samhuri and Klaas Pieter Annema
c78b5e580a
Reliably convert colors to hex strings
...
Converting a hex string to CPColor and back to a hex string now returns
the same initial hex string. (Fixed an off-by-one error)
2010-09-10 10:01:57 +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
Klaas Pieter Annema
04b331ad55
decode CPTableColumn resizing mask as integer
2010-09-09 16:36:32 +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
Koen Bok and Klaas Pieter Annema
5b7497093c
Made flatten work with custom themes.
2010-09-08 16:12:22 +02:00
Klaas Pieter Annema
b092ed8c2c
only load Aristo from AppKit/Resources
...
Other themes are loaded from the main bundle's resource directory
2010-09-08 16:12:21 +02:00
Klaas Pieter Annema
1952bc2b76
unhide the cornerview when a tableview is unarchived
2010-09-08 13:28:18 +02:00
Klaas Pieter Annema
b6da0fdf06
start of CPSplitView theming
2010-09-07 10:23:21 +02:00
Alexander Ljungberg
e704d42adb
Fixed: if CPArrayController setPreserveSelection was off and a selected item disappeared, an invalid selection state could occur. The error was caused by a slightly overeager early-out optimisation in __setSelectionIndexes.
2010-09-04 22:12:08 -04:00
Randall Luecke
ad679e7c34
Merge remote branch 'luddep/native-scrolling-2'
2010-09-02 23:29:44 -04:00
luddep
75f6db436b
fix for clearing the hiding of the scroll element timeout not working. This improved performance. Also make the actual dom element smaller and the inner one bigger, since sometimes deltas need to be larger than 150px.
2010-09-02 22:25:09 +02:00
Aparajita Fishman and Alexander Ljungberg
b4f7df4786
Graphics primitives
...
- Implemented CGRectDivide/CPDivideRect.
- Implemented CPDrawTiledRects/CPDrawColorTiledRects.
- Removed CPDrawGrayBezel and CPDrawGroove, they were not being done in a Cocoa-compliant way, and the Cocoa way is not really useful right now.
- Moved border drawing code back to CPScrollView since CPDrawGrayBezel/CPDrawGroove are gone.
- Test app to do simple demo of the new functions.
- Removed trailing whitespace.
2010-08-31 22:26:54 -04:00
Sami Samhuri and Alexander Ljungberg
f7ef182d33
Add 3px padding to the right of menu bar icons
2010-08-31 22:15:46 -04:00
Aparajita Fishman and Alexander Ljungberg
be36e17bd8
Make the names in +themeShowcaseExcludes case-insensitive
2010-08-31 22:09:29 -04:00
luddep
da8ea72593
fix for scrolling not working in windows other than the default bridge one.
2010-08-31 14:22:46 +02:00
luddep
5effa853a3
use visibility instead of display to hide the scroll dom element. Using display made the div reset its scroll offset.
2010-08-31 14:09:49 +02:00
luddep
0780a68fba
fix for not being able to interact with DOM elements in views such as CPTextField
2010-08-31 09:36:54 +02:00
luddep
b61192a050
Initial lower level native scrolling attempt. Fixes scroll deltas globally, rather than in just CPScrollView.
2010-08-30 12:27:28 +02:00
Blair Duncan and Randall Luecke
b27560c51e
Fix for issue 841 where the edit cursor would not always flash
2010-08-27 19:46:55 -04:00
Aparajita Fishman and Alexander Ljungberg
18696e6bc2
Ensure CPControl -performClick unhighlights the button if the action throws.
2010-08-27 15:58:35 -04:00
Aparajita Fishman and Alexander Ljungberg
4f2914a123
Implementation of CPFont -ascender, -descender and -defaultLineHeightForFont, supporting method +metricsOfFont in CPStringDrawing and CPPlatformString, and Font Metrics Explorer test app.
2010-08-27 14:32:03 -04:00
Aparajita Fishman and Alexander Ljungberg
b823eb7fe0
Fixes for Cocoa compliance
2010-08-27 14:04:28 -04:00
Klaas Pieter Annema
f4e7386a0a
fix gridColor when decoding a CPTableView
...
Don't default to a gray color when there is no grid color in the cib.
The tableview theme will automatically set the correct grid color.
2010-08-26 16:29:46 +02:00
Klaas Pieter Annema
86ee790ea1
implement missing __setSelectionIndex:
2010-08-25 15:57:35 +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
Klaas Pieter Annema
64000215a4
Call CPObjectController designated initializer from init and initialize _observedKeys instance variable
2010-08-25 13:15:19 +02:00
Alexander Ljungberg
65d957f9f5
Fixed: an ivar was not being properly initialized in CPAlert.
2010-08-24 14:00:12 -04:00
Alexander Ljungberg
aef19c3b13
Merge branch 'master' of github.com:280north/cappuccino
2010-08-24 12:30:51 -04:00
Alexander Ljungberg
9968896bbd
When running CPAlert as a sheet, automatically activate the CPDocModalWindowMask window style if needed.
2010-08-24 12:14:24 -04:00
Alexander Ljungberg
1a27ae39a3
Removed CPAlert long message test from last commit since this branch already has its own long message test. Also slight clean up.
2010-08-24 11:58:36 -04:00
cacaodev and Alexander Ljungberg
ee4802e513
CPAlert: Attached alerts. Added a new method -beginSheetModalForWindow: that calls -alertDidEnd:returnCode: on ending. CPAlertTest update testing it.
...
Fixed a bug in CPWindow where the didEndSelector was reset too early. This bug was visible only when trying to chain sheet alerts.
Fixed a local/instance variable conflict in AttachedSheet/AppController.j
2010-08-24 11:50:44 -04:00
Klaas Pieter Annema
60dd1863b3
Implement objectsAtIndexes on _CPObservableArray to return another _CPObservableArray instance
2010-08-24 11:41:52 +02:00
Klaas Pieter Annema
71408e7c3a
made CPObjectController call it's designated initializer (init)
2010-08-24 11:41:51 +02:00
Alexander Ljungberg
febdf4092e
New implementation of change notifications from CPArrayController.
...
It is crucial that we send notification only before and after complete changes. In the middle notifications might cause observers to see or react to inconsistent data (e.g. selection indexes pointing to rows no longer present). Added some unit tests - more might be needed in the future. Fixed: before and after values when observing array controller key paths during content changes or rearranges were wrong. Fixed: the array controller sent out multiple redundant change notifications.
2010-08-23 18:53:29 -04:00
Alexander Ljungberg
a3d89c8d78
Ignore table view row selection of already selected rows. This avoids potential infinite recursion caused by the explicit bindings propagation.
2010-08-23 18:51:00 -04:00
Alexander Ljungberg
b9086f134a
Don't include table column header graphics in the showcase - they're not really widgets which make sense standing alone.
2010-08-22 23:03:51 -04:00
Alexander Ljungberg
447c33b806
Don't layout CPAlert in layoutSubviews since it's not a real view. This avoids the theme showcase error where the CPAlert windowing code was activated by the theme descriptor setup.
2010-08-22 23:01:52 -04:00
Aparajita Fishman and Alexander Ljungberg
ae47ba78cd
Use [self respondsToSelector] instead of class_respondsToSelector
2010-08-22 22:06:38 -04:00
Aparajita Fishman and Alexander Ljungberg
2f51358ea0
Added documentation for the excluded mechanism.
2010-08-22 22:06:31 -04:00
Aparajita Fishman and Alexander Ljungberg
c91c513b60
Proposed method of excluding themed objects from the theme showcase.
...
- Also added class_respondsToSelector, it was a no-brainer.
- Cleaned up trailing whitespace in CPThemeBlend.j. Woo-hoo!
2010-08-22 22:06:22 -04:00