Saikat Chakrabarti
45df8c0f74
Fix bug with unsetThemeState + more tests.
2014-03-09 15:15:11 -07:00
Alexander Ljungberg
e6acc3c336
Fixed: missing var, minor tweaks.
...
Refs #2073 .
2014-03-06 14:03:46 +00:00
Saikat Chakrabarti
b6b4015a82
Introduce .and and .without syntax for ThemeStates.
2014-03-01 23:26:20 -08:00
Saikat Chakrabarti
2fd8940c02
Allow array arguments to various methods that take ThemeStates
2014-03-01 23:11:24 -08:00
Saikat Chakrabarti
7408710761
Move placement of CPThemeStates cache to above the cache method for clarity.
2014-02-28 11:14:46 -08:00
Saikat Chakrabarti
745ad7cc34
Clean up the interface a bit to consolidate ThemeState methods onto one object. Keep CPThemeState as just a helper function.
2014-02-26 13:11:43 -08:00
Saikat Chakrabarti
df148e4946
Fix a small typo in CPTheme.j themestate caching
2014-02-21 14:29:31 -08:00
Saikat Chakrabarti
cf99a7bf18
Fix bug that was turning dictionary keys into objects
2014-02-20 18:14:01 -08:00
Saikat Chakrabarti
727b519750
Remove unused method in CPTheme
2014-02-20 18:09:47 -08:00
Saikat Chakrabarti
861d093d80
All ThemeStates always have at least one state - the normal state
2014-02-20 17:52:16 -08:00
Saikat Chakrabarti
c3d2decdec
Fix bugs with CPThemeAttribute encoding and decoding
2014-02-20 17:30:28 -08:00
Saikat Chakrabarti
d862d701f3
Add note to ThemeState object about it being private
2014-02-20 17:30:28 -08:00
Saikat Chakrabarti
7eb35ef33d
Clarify documentation for CPThemeState()
2014-02-20 17:30:28 -08:00
Saikat Chakrabarti
1563b0bf55
Get all tests to pass
2014-02-20 17:30:28 -08:00
Saikat Chakrabarti
bad731c86f
Fix subtracting theme states
2014-02-20 17:30:28 -08:00
Saikat Chakrabarti
5309cc5916
Change CPTheme implementation to fix how searching for a matching theme works
2014-02-20 17:30:28 -08:00
Saikat Chakrabarti
9e61991ad2
Fix bug when setting themeStates in a themeAttribute
2014-02-20 17:30:27 -08:00
Saikat Chakrabarti
c644e8a30f
Change CPTheme to be hash-backed to make it a bit faster
2014-02-20 17:30:27 -08:00
Saikat Chakrabarti
45a237af16
Handle null inputs for subtracting CPThemes.
2014-02-20 17:30:27 -08:00
Saikat Chakrabarti
7d304fbd51
First round of changes to change theming system to use arrays and not bitmasks as their underlying datatype
2014-02-20 17:30:27 -08:00
Aparajita Fishman
b198fee11a
Fixed: default class theme value could be CPNull.
...
The class method +themeAttributes returns a dictionary, so CPNull has to be used instead of nil. Previously, if the class theme attribute was used, there was no attempt to convert CPNull to nil, which could have unintended consequences.
2013-03-15 10:02:31 -04:00
Aparajita Fishman
d25ff21030
Fixed: _CPThemeAttribute _parentAttribute had confusing name
...
Previously _CPThemeAttribute had an ivar called _parentAttribute, which represented the attribute from the theme descriptor, as opposed to the attribute for a particular instance of a view.
This commit renames that ivar to _themeDefaultAttribute, so it is clearer where it gets its values.
2013-03-14 23:57:39 -04:00
Aparajita Fishman
6dc9aa815a
Fixed: eliminated duplicate CPThemeStateSelectedTableDataView state
...
CPThemeStateSelectedTableDataView and CPThemeStateSelectedDataView were the same, and were not used in any consistent or meaningful way.
This commit eliminates CPThemeStateSelectedTableDataView, only CPThemeStateSelectedDataView is used now.
2013-03-14 17:06:23 -04:00
Alexander Ljungberg
5b05dc92a1
More dictionary literals.
2013-02-25 18:27:44 +00:00
Alexander Ljungberg
8bcbeb0aa9
Improve code readability with dictionary literals.
2013-02-25 17:02:36 +00:00
Alexander Ljungberg
9dbfa99284
Lint.
2013-01-20 17:14:44 +00:00
Martin Carlberg
458fa9d02e
Fixed a lot of small bugs found by new warning message from compiler
2013-01-18 14:24:37 +01:00
Martin Carlberg
c297e926f9
Compiler now works with jake and can compiler the whole Cappuccino framework. A lot of test cases still fail
2012-12-16 17:38:47 +01:00
Alexander Ljungberg
9f59ac96dd
Inactive window title, start on window theming support.
...
Now the key window can be recognised by the window title.
2012-08-15 01:03:08 +01:00
Alexander Ljungberg
b166995327
Move autocomplete into reusable class.
2012-06-16 12:31:48 +01:00
Aparajita Fishman
e2ead56256
Collection KVC fixes, nextObject correctness
...
- Moved common CPArray/CPSet collection KVC operators to _CPCollectionKVCOperators.
- Implemented KVC operator dispatch using Objective-J.
- Fixed infinite loop with empty collection in @min, @max and @sum operators.
- Correctly return valueForUndefinedKey when necessary.
- valueForUndefinedKey reason uses raw description for consistency, class' overridden description may not helpful at all.
- Don't create a forwarder for @ operators with property paths.
- Fixed CPSet -valueForKeyPath to correctly deal with nil/undefined/empty values.
- Added tests for collection KVC operators.
- enumerator -nextObject should always compare against nil for clarity, correctness, and consistency.
2012-04-03 22:16:55 -07:00
Antoine Mercadal
d7971322cb
Merge pull request #1291 from miLibris/CPTheme-coding-fixes
...
_CPThemeAttribute fix : encode missing _defaultTheme value
2012-01-06 07:21:09 -08: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
Luc Vauvillier
6fe49fbf8d
_CPThemeAttribute fix : encode missing _defaultTheme value
2011-06-01 17:02:01 +02:00
Klaas Pieter Annema
c87cb4bacd
properly fix CPThemeStateNormal behavior
...
- revert the previous fix
- explicitly check for CPThemeStateNormal in hasThemeState:
- update the test case
2011-01-05 12:30:14 +01:00
Klaas Pieter Annema
b6ea6530b7
hasThemeState: always returned no for normal state
2011-01-05 10:44:50 +01:00
Klaas Pieter Annema
80ec35fd0a
Merge branch 'hover-states'
2010-11-17 10:11:11 +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
Klaas Pieter Annema
c7fdad883a
add deprecation warning for class that have themeClass implemented
2010-10-25 16:14:33 +02:00
Klaas Pieter Annema
6e9f82212b
rename CPView +themeClass to +defaultThemeClass
2010-10-25 14:15:22 +02:00
Randall Luecke
99201dc3db
Initial commit for group rows in the TableView. Drawing code still needs to be cleaned up a LOT... still buggy. i.e. after you select a group row, any rows after that which are selected then get selected with a gray highlight color.
2010-10-08 00:44:17 -04:00
Klaas Pieter Annema
7aa7d61984
Implement hover states.
...
- Set CPWindow _acceptsMouseMovedEvents default to YES
- Add CPThemeStateHovered to CPTheme
- Add hovered logic to CPControl is hovered
2010-09-17 12:06:01 +02:00
Aparajita Fishman and Klaas Pieter Annema
0c4ce1e756
Additions to the theme API to open it up to developers and provide access to theme attributes defined in ThemeDescriptors.j:
...
- Current theme blend is available via CPApplication -themeBlend.
- List of themes is available via CPApplication -themes.
- CPThemeBlend adds the following methods:
themes
themeNames
- CPTheme adds a number of methods to access theme attributes:
classNames
attributesForClass:
attributeNamesForClass:
attributeWithName:forClass: (was _attributeWithName:forClass:)
valueForAttributeWithName:forClass
valueForAttributeWithName:inState:forClass:
- _CPThemeAttribute -values was added to access the dictionary of attribute values.
- Theme browser application that demonstrates the API.
- In the course of making the test app, added the function CGInsetEqualToInset().
2010-09-16 10:28:06 +02:00
Alexander Ljungberg
62f81f2601
Remove hardcoded Aristo theme from CPAlert. New CPTheme method to get the default HUD theme style, which defaults to the default theme + "-HUD". Clean up CPAlert slightly.
2010-08-19 19:11:52 -04:00
Randall Luecke
cffbf86351
TableView theming
2010-07-22 00:21:02 -05:00
Randall Luecke
d6ac30be75
CPTableView dataViews when selected now use the new CPThemeStateSelectedDataView state to avoid conflict with other CPControl theme states.
2010-05-19 01:55:01 -05:00
Ross Boucher
c478afee0f
Add a missing import to CPTheme.
...
Closes #527 .
2010-03-05 12:38:59 -08:00
Francisco Ryan Tolmasky I
b4c7af498b
Spacing fix.
...
Reviewed by me.
2009-06-01 17:38:19 -07:00
Francisco Ryan Tolmasky I
6ddb7851f6
Added generation code in a comment for future use if necessary.
...
Reviewed by me.
2009-06-01 17:17:45 -07:00
Ross Boucher
850125b8ab
Add documentation groups
2009-05-18 15:43:36 -07:00