Alexander Ljungberg
33fe1573ad
Ensure autocomplete menu is on top.
...
The menu should appear above other normal windows and controls like a regular CPMenu. To do this, put the pop up in its own window with the `CPPopUpMenuWindowLevel` window level.
2012-06-16 12:31:48 +01:00
Alexander Ljungberg
2574fac44a
Remove token field reference.
2012-06-16 12:31:48 +01:00
Alexander Ljungberg
b166995327
Move autocomplete into reusable class.
2012-06-16 12:31:48 +01:00
Alexander Ljungberg
feaf9c6f20
Improve CPTokenField autocomplete scrolling.
2012-06-16 12:31:48 +01:00
Alexander Ljungberg
0ef03d31b8
Refactor CPTokenField autocomplete.
...
The new code is simpler (single responsibility principle) and makes it easier to improve on autocomplete.
2012-06-16 12:31:48 +01:00
Alexander Ljungberg
80ee88d3a7
Hide another non-public API in CPTokenField.
2012-06-16 12:31:48 +01:00
Alexander Ljungberg
bbc45dd947
Support tokenField:representedObjectForEditingString: delegate method.
...
This improves support for represented objects and is used both when an autocompletion suggestion is used or when the name of a token is typed in by hand.
The behaviour of taking an array of strings from `completionsForSubstring` and then asking for a represented object once a choice has been accepted matches the behaviour of Cocoa.
2012-06-16 12:31:47 +01:00
Alexander Ljungberg
d07ee3ea23
Hide non-public API in CPTokenField.
...
Also improve documentation.
2012-06-16 12:31:47 +01:00
Alexander Ljungberg
7ffd65476b
Fixed: token field auto completions.
...
Auto completions are strings, not represented objects. Revert "Fix CPTokenField autocompletion to deal with represented objects"
This reverts commit 8b9a0edeba .
2012-06-16 12:31:47 +01:00
Alexander Ljungberg
ca0a07cab8
Formatting.
2012-06-16 12:31:47 +01:00
Antoine Mercadal
0d29f15b70
Merge pull request #1513 from BlairDuncan/MenuTimestampFix
...
Fix for menu selection that was broken with the change to CPEvent timestamp
2012-06-14 17:02:06 -07:00
Antoine Mercadal
714d36d8c8
Merge branch 'CPImageView-bindings' of https://github.com/cacaodev/cappuccino into pull1534
2012-06-14 13:05:04 -07:00
Antoine Mercadal
cd94819099
Merge branch 'issue1435' of https://github.com/stewa/cappuccino into issue1435
2012-06-14 11:58:49 -07:00
Antoine Mercadal
52199776d5
Merge pull request #1537 from mrcarlberg/cptableview_selection_radius
...
Added a themed attribute for round rect selection of rows. [+1]
2012-06-14 10:29:58 -07:00
Antoine Mercadal
ecdb064a5b
Makes CPButton to dim image when disabled by default
2012-06-13 15:21:45 -07:00
Antoine Mercadal
d67a03bfb4
make disabled buttonbar buttons more visible
2012-06-13 14:30:26 -07:00
Antoine Mercadal
c361d7a52a
Merge branch 'new-cpbuttonbar-artwork'
2012-06-13 10:12:05 -07:00
Antoine Mercadal
4a4aa5fc10
update artwork for CPButtonBar
2012-06-12 19:03:32 -07:00
Alexander Ljungberg
8791195673
Merge branch 'master' of github.com:cappuccino/cappuccino
2012-06-13 02:21:07 +01:00
Alexander Ljungberg
72374257ef
Minor optimisation and clean up.
2012-06-13 02:20:58 +01:00
Alexander Ljungberg
1b9def2101
Allow asymmetric toolbar margins. Foundation for theming.
...
Toolbars cannot be themed yet but when theming becomes possible this code should adapt readily.
2012-06-13 02:17:13 +01:00
Alexander Ljungberg
a66942b1b1
Fix and tweak toolbar margins.
2012-06-13 01:40:20 +01:00
Alexander Ljungberg
acd3425c43
Dynamic CPToolbar height,
...
* Support for tall custom widgets. You can now finally have that CPTableView you always wanted in your toolbar.
* "Labels only" mode now makes sense, resulting in a narrow text only toolbar instead of a very tall toolbar with centred labels.
* Use any size toolbar icons such as 48x48 and the toolbar adapts automatically (unlike Cocoa).
2012-06-13 01:26:33 +01:00
Alexander Ljungberg
70bc45ba12
Toolbar CPToolbarDisplayModeIconOnly support.
2012-06-12 23:26:43 +01:00
Alexander Ljungberg
026c210e64
Toolbar CPToolbarDisplayModeIconOnly support.
2012-06-12 23:05:16 +01:00
Alexander Ljungberg
3bc1849041
Improve toolbar item layout.
...
The height of all items is determined by the tallest item, like in Cocoa. But unlike Cocoa our toolbar is presently fixed height so in order to make this look well for small or large items, the whole row of items is now vertically centred, making the allocation of margin above and below automatic.
Furthermore if a toolbar item has a small view or a small icon, it is now centred within the available space above the label. For example, for a tiny icon in one item next to a normal size icon the tiny icon would be centre aligned with the larger icon.
2012-06-12 23:04:33 +01:00
Antoine Mercadal
17668aca17
Merge remote-tracking branch 'upstream/master'
2012-06-12 11:59:26 -07:00
Antoine Mercadal
2a48b0ca54
make actualResizeEvent a private method
2012-06-12 11:57:19 -07:00
Alexander Ljungberg
2a955884b8
Fix header.
2012-06-11 13:14:00 +01:00
Alexander Ljungberg
ad5403b538
Setting the shadow style just once will do.
2012-06-11 13:13:36 +01:00
cacaodev
299a664b9c
CPTableView -selectedColumn : missing return statement
2012-06-06 14:24:28 +02:00
Blair Duncan
eeceaa0c9b
unlite if mouse is moved off and cursor up hilites last item if none
2012-06-01 20:17:09 -04:00
aparajita
954ec26e80
Merge pull request #1551 from ggsato/subclassingDocController
...
fixed shared CPDocumentController instantiation and added its test
2012-05-26 12:44:18 -07:00
ggsato
fabe1d8991
formatting and now subclassing is tested by Open a document
2012-05-26 11:08:57 +09:00
Alexander Ljungberg
288ec78c3e
Fixed: split view autosave.
...
The fix to prevent incorrect autosaving prevented correct autosaving as well.
2012-05-26 00:04:12 +01:00
Martin Carlberg
49adcd85fc
Removed useless space after capp_lint warning
2012-05-25 10:54:10 +02:00
Martin Carlberg
8e785c2210
Removed set and get methods and blank line before if added.
2012-05-25 10:47:07 +02:00
Alexander Ljungberg
aa4eff9f8d
Format code, fix accidental global.
2012-05-25 00:04:46 +01:00
Alexander Ljungberg
09d5957c82
Code formatting.
2012-05-24 23:40:15 +01:00
ggsato
2a0ee14130
wrapped window.status clear statement
2012-05-25 01:52:09 +09:00
Alexander Ljungberg
e25394a322
Code formatting.
2012-05-24 17:10:46 +01:00
ggsato
ab1dc15393
moved types declaration
2012-05-24 23:58:59 +09:00
ggsato
3a750591bb
moved types declaration
2012-05-24 23:55:04 +09:00
ggsato
7da9877c5f
fixed shared CPDocumentController instantiation and added its test
2012-05-24 23:12:07 +09:00
Aparajita Fishman
1efc2e3c15
Fixed parsing in CGSizeFromString and CGPointFromString
2012-05-22 12:52:54 -07:00
Jiva DeVoe
d205c4eac7
updating to remove a comment and to fix a formatting issue
2012-05-18 10:25:06 -07:00
Jiva DeVoe
18662deec6
removed the if statement before the invalidate
2012-05-17 23:52:41 -07:00
Jiva DeVoe
d955eceafa
fixed an errant semicolon
2012-05-17 23:34:26 -07:00
Jiva DeVoe
995d529fb7
Added a very hacky workaround for the jittery resize bug in webkit. Ref: https://github.com/cappuccino/cappuccino/issues/1325
2012-05-17 23:10:04 -07:00
Aparajita Fishman
d4e460dac5
When popover closes implicitly, popoverShouldClose delegate method should be called.
...
Added extra button popover to test -close method, which does not consult popoverShouldClose.
2012-05-17 17:02:45 -07:00