Commit Graph
543 Commits
Author SHA1 Message Date
Aparajita Fishman 698f2fe77f Call to NS_initWithCoder MUST be first, later code relies on a properly constructed object. 2010-08-21 19:39:02 -04:00
Aparajita Fishman 28b0242eb1 For consistency with Cocoa, -setKeyEquivalent should be sent to set the theme state of the button, regardless of whether it ends up being the default button or not. 2010-08-21 10:07:40 -04:00
Aparajita Fishman 0fe41e8b86 Default button fixes...
- CPButton -setKeyEquivalent was sending CPWindow -setDefaultButton. This is not Cocoa behavior, but more importantly it was causing an infinite loop, because CPWindow -setDefaultButton does (and is supposed to) send CPButton -setKeyEquivalent.

- CPButton -viewWillMoveToWindow should do nothing if the window is the same or the new window is nil. Otherwise, if the new window is nil and the button is the default button, -setDefaultButton ends up erasing the button's key equivalent. When awakening from a cib, this causes the button to never become the default, because during cib awakening -viewWillMoveToWindow is sent 3 times, the second time to a nil window. If a button does not belong to any window, there is no harm in keeping its key equivalent, and setting the default button is supposed to be an explicit operation.

- NSButton -initWithCoder should not send -setKeyEquivalent because it has side effects.

- CPWindow -setDefaultButton should check for a key equivalent of CPNewlineCharacter as well for consistency with CPButton.
2010-08-21 09:52:59 -04:00
Aparajita Fishman 56b9e792e0 Merge remote branch 'refs/remotes/280north/master' into my_master
Conflicts:
	AppKit/CPBox.j
2010-08-12 19:10:10 -04:00
Randall Luecke da0af13142 Added basic suppport for CPOutlineView in the nib2cib tool
Conflicts:

	AppKit/CPOutlineView.j
2010-08-12 13:11:41 -05:00
Aparajita Fishman 026c9ae6e3 Whitespace fixes :), added missed initialization of loop var, added encodeWithCoder, in some cases it is invoked 2010-08-12 11:11:33 -04:00
Aparajita Fishman 1d21dc8b95 Merge branch 'master' of http://github.com/280north/cappuccino into my_master
Conflicts:
	AppKit/CPGraphics.j
	AppKit/CPScrollView.j
	AppKit/CPTableView.j
	AppKit/CPTextField.j
2010-08-12 10:35:56 -04:00
Aparajita Fishman ca9d09134f Multiple fixes...
1. CPRadio should not draw its background color by default when created from a nib.

2. Substituted named constants for magic number bit flags.

3. Don't set the matrix view background color unless the nib said to draw its background.

4. NIB_CONNECTION_EQUIVALENCY_TABLE wants UIDs, changed self -> [self UID].
2010-08-12 01:12:21 -04:00
Aparajita Fishman ab5e2dd774 Fix for issue #816 (NSTableView/CPTableView do not read selection highlight style and column resizing style) 2010-08-12 00:06:52 -04:00
Aparajita Fishman 0b1b1bbe0b Fix for issue #817 (Support for alignment and line break mode in NSTextField/CPTextField) 2010-08-11 23:53:34 -04:00
Aparajita Fishman fcf9c0bc84 Full support for all NSScrollView border types, beginnings of a new tableview tester that shows dynamic changing of border type. 2010-08-11 22:49:37 -04:00
Aparajita Fishman a0bcae2404 The Cocoa default is always to draw column lines, this wasn't being set in CPTableColumnView. 2010-08-11 18:16:48 -05:00
Aparajita Fishman cbdfc1add9 The Cocoa default is always to draw column lines, this wasn't being set in CPTableColumnView. 2010-08-11 19:00:44 -04:00
Aparajita Fishman f6d09557af Revert this change, it breaks text labels >12pt 2010-08-11 18:37:39 -04:00
Aparajita Fishman 66f84ede6e Fix for issue #799 (NSFont replaces LucidaGrande-Bold 13 with the theme font) 2010-08-11 17:16:44 -05:00
Aparajita Fishman 5b1ca8a7f9 Fix for issue #807 (NSTextField sets text color unconditionally, which causes theme lookup failure later) 2010-08-11 17:07:51 -05:00
Aparajita Fishman 1e3958652a Merge branch 'refs/heads/master' into my_master
Conflicts:
	AppKit/CPSearchField.j
	AppKit/CPTableView.j
	AppKit/CPTextField.j
	Jakefile
	Tools/nib2cib/NSTableView.j
2010-08-11 10:27:35 -04:00
Aparajita Fishman 627c300b4a Switched to using bit mask constants 2010-08-09 18:02:40 -04:00
Aparajita Fishman 00812025c2 Fix for issue #818 (NSView does not read hidden flag) 2010-08-09 18:02:32 -04:00
Aparajita Fishman 661c9a9de1 Made sure to remove the .doc directories first, fixed exec 2010-08-09 15:41:00 -04:00
Aparajita Fishman e7c8174717 Switched to using bit mask constants 2010-08-09 14:19:37 -04:00
Aparajita Fishman 814c0a4830 Fix for issue #818 (NSView does not read hidden flag) 2010-08-09 12:19:30 -04:00
Aparajita Fishman dc6e7aefe4 Fix for issue #817 (Support for alignment and line break mode in NSTextField/CPTextField) 2010-08-09 10:16:36 -04:00
Aparajita Fishman 0adfd30ea3 Fix for issue #816 (NSTableView/CPTableView do not read selection highlight style and column resizing style) 2010-08-09 09:59:57 -04:00
Aparajita Fishman 107a041efe Remove @import statements from source files, doxygen doesn't parse them correctly. 2010-08-08 15:12:00 -04:00
Aparajita Fishman 10c12e7e4d Better diff with previous version 2010-08-02 14:35:44 -04:00
Aparajita Fishman 5f3baa519b Fix for issue #807 (NSTextField sets text color unconditionally, which causes theme lookup failure later) 2010-08-02 12:06:06 -04:00
Aparajita Fishman 69860f220d Fixes/enhancements to jake docs:
- We now have class hierarchy information! Don't remove generated headers before doxygen runs so it can generate class hierarchies. Now the headers are cleaned up separately.

- Added inline collapsible class hierarchy diagrams within each class.

- Enabled the built-in search! It's awesome!

- Changed image format to gif, dot is generated invalid png on Mac OS X.

- Explicitly turned off generation of to do and bug list.

- Turned off most warnings, most of them are useless warnings arising from the fact that we are pretending Objective-J is Objective-C.

- Doxyfile format updated to 1.7.1.
2010-07-31 18:18:40 -04:00
Aparajita Fishman 364a11491d Full support for intercell spacing (issue #797) 2010-07-30 16:14:53 -07:00
Aparajita Fishman 48a89fd828 frame parameter is not being used in _initWithFrame, might as well leave it out, fixed typo in comment 2010-07-29 09:56:55 -07:00
Andreas aea19c5cd0 Add modal stylemask in nib2cib 2010-07-28 15:33:45 -07:00
Aparajita Fishman 470fcaf13e Full support for intercell spacing (issue #797) 2010-07-28 17:51:05 -04:00
Ross Boucher d4a0f0cd21 Merge remote branch 'klaaspieter/fix/787-cptablecolumn-editability' 2010-07-28 14:12:49 -07:00
Klaas Pieter Annema 8cfba4c242 only offset a nib2cib'ed textfield if it has a bezel 2010-07-28 14:09:11 -07:00
Aparajita Fishman cce13b4b45 NSMenuItem is not reading the tag for some reason 2010-07-28 14:07:45 -07:00
Aparajita Fishman c3c996f1f7 Don't substitute the font if the textfield is not editable (a label) 2010-07-28 13:50:52 -07:00
Aparajita Fishman ce40536578 NSMenuItem is not reading the tag for some reason 2010-07-27 16:49:30 -04:00
Aparajita Fishman 8bfedd3c28 Don't substitute the font if the textfield is not editable (a label) 2010-07-27 16:48:54 -04:00
Aparajita Fishman 6be1b89428 Full support for all NSScrollView border types, beginnings of a new tableview tester that shows dynamic changing of border type. 2010-07-27 16:42:50 -04:00
Aparajita Fishman 7e0ade21e1 Forgot to update NSFont with aparajita@fad96880eb4d68edd60714b697ab6a3d3531100d 2010-07-26 14:32:13 -04:00
Aparajita Fishman fad96880eb Simplified means of setting the default system font, now the CPSystemFontFace item only needs to be added to AppKit/Info.plist. 2010-07-25 19:37:24 -04:00
Aparajita Fishman 30004c5e93 Support for CPBox in nib2cib, support for line, bezel and groove borders in CPBox as well as background color. 2010-07-24 09:54:31 -04:00
Aparajita Fishman 94ee852cfe Implemented method of setting the default system font face. See http://groups.google.com/group/objectivej/browse_thread/thread/64f6a42d74d68386 2010-07-23 17:56:21 -04:00
Aparajita Fishman cc6aa999b9 frame parameter is not being used in _initWithFrame, might as well leave it out, fixed typo in comment 2010-07-23 16:28:10 -04:00
Aparajita Fishman fe2bc9f523 Removed redundant code, fixed to work with theming of tableview grid color 2010-07-23 12:08:22 -04:00
Klaas Pieter Annema f73d8a55de implemented isEditable nib2cib support for CPTableColumn 2010-06-29 17:47:36 +02:00
Ross Boucher 7e25166ce1 Revert the fixed frame size assumption for now. 2010-06-23 19:13:56 -07:00
Ross Boucher 1b174b86ca Buttons should also be re-centered after their height is changed in nib2cib. 2010-06-16 08:14:04 -07:00
Aparajita Fishman 16be03b162 If first segment is enabled and mode is one-only, _selectedSegment is correctly set to 0 2010-06-15 19:11:31 -07:00
Francisco Ryan Tolmasky I 9a3c2d5311 Fix for scrolling affecting background windows with NativeHost.
Reviewed by me.
2010-06-12 18:33:59 -07:00