Commit Graph

2606 Commits

Author SHA1 Message Date
Mathieu Virbel 37c2a39928 textinput: clear cache and force refresh on gl context reloading. closes #494 2012-08-07 07:48:52 +02:00
Jeff Pittman 186695d73e Made headway on a refresh of the tests, which now have the modified fruit data, and new use of DataStore. Added treatment for selection_mode = none for selection.handle_selection(). Added ListView to several of the selection tests that were calling list_adapter.get_view(), when they should be calling list_view.get_item_view(). Corrected tests for changes, but still getting failure for checks after ListView instantiation, which should be calling check_for_empty_selection(). 2012-08-06 22:02:43 -05:00
Qua-non 06f6f598a2 UIX:ScreenManager: ensure screen is orphaned before before adding it to
screenmanager
2012-08-07 02:58:39 +05:30
Jeff Pittman 107814ed3d Restored list_cascade_setter.py. Fixed comments about custom list adapter vs. using a setter-type binding. 2012-08-06 15:58:49 -05:00
Jeff Pittman f791156f26 Started moving to use of setter() in creating bindings between list adapters, with an example of a custom list adapter left in list_cascade.py. 2012-08-06 13:35:27 -05:00
Jeff Pittman 4bd512afe2 Merge remote-tracking branch 'upstream/master' into uix-listview 2012-08-06 13:17:35 -05:00
Eric S. Bullington bcd4f5c9ca Merge branch 'master' of https://github.com/kivy/kivy into spinner_mod 2012-08-06 12:34:33 -04:00
Eric S. Bullington 4d28733b91 Changed is_down Boolean property to is_open 2012-08-06 12:30:12 -04:00
Jeff Pittman 046949a240 Deleted AccumulatingListAdapter as it can be done with straight ListAdapter. Plus, it was not restricted to accumulating only, anyway. In the revised example, now called list_cascade_setter.py, is first use of the setter() method for the to-side of a binding, which had been overlooked. 2012-08-06 10:36:57 -05:00
Mathieu Virbel 00749fa9a3 fix little doc typo 2012-08-06 17:15:02 +02:00
Mathieu Virbel 4ca24551d6 Merge branch 'videoplayer_improvements' of https://github.com/aspidites/kivy into aspidites-videoplayer_improvements 2012-08-06 17:04:17 +02:00
Eric S. Bullington 845f31b416 Modified spinner to close on (re-)click 2012-08-06 10:52:16 -04:00
Mathieu Virbel ff69bb179b screenmanager: fix fade transition 2012-08-06 16:37:18 +02:00
Mathieu Virbel 5d59a668d4 Merge pull request #606 from kivy/atlas_texture_region
Atlas: pass CoreImage instead of just TextureRegion
2012-08-06 07:05:07 -07:00
Mathieu Virbel 40aa5e49ff Merge pull request #611 from kivy/markup_fix
Markup fix
2012-08-06 07:04:52 -07:00
Jeff Pittman 120479bd90 Did docs clean-up for Adapter classes. 2012-08-06 06:30:10 -05:00
Jeff Pittman 1f557282b5 Cleaned selection docs. 2012-08-06 06:01:10 -05:00
Jeff Pittman ae42deb52b Removed list_disclosure.py example. Idea for an exandable list item functionality is still mentioned in comments. It could be developed as a new listview type, instead of putting into the current listview. 2012-08-06 05:24:19 -05:00
Jeff Pittman 3eb01f569b Bumped the expected release for new additions to 1.5. Renamed adapters/util to args_converters for a dedicated name. 2012-08-06 04:50:12 -05:00
Qua-non 63d25db96b atlas: use os.sep to be platform independent 2012-08-06 04:57:44 +05:30
Qua-non 6e1b7ef0d3 Loader: fix path for image-missing on windows and close file before
calling unlink in case of file not found or similar error
Atlas: fix path conversion for windows
2012-08-06 04:37:51 +05:30
Jeff Pittman c7b1851f73 Selection had no memory of previously selected items, because the data used in
the examples were just strings primarily. To further development with a more
realistic environment, a DataStore class was created, with simple set and get
property methods, operating on a key into a dict of records. The simple scheme
for the records is that they must all contain an is_selected boolean for
storing the state of selection. The fruit dataset was modified accordingly,
into two datastores: categories and fruits. A new simple dataset was also
created for integer data used in several examples.

For view instances to be associated with data records in a datastore, an index
property was added to SelectableItem. This index into the data list is used in
selection operations to keep selection of data items in sync with item view
instances.

When creating item view instances in ListView there is now a lookup call to
the datastore to check for selection of the associated data item record. The
data item record tested so far carries an is_selected boolean, but the code
was written to allow for an is_selected() function.
2012-08-05 12:41:06 -05:00
Jeff Pittman db65461bf3 Made selection docs improvements. 2012-08-04 09:48:02 -05:00
Jeff Pittman d8a6458836 Removed filter choice from selection_mode, and made a section in ListView docs for ideas on possibilities for action on_selection_change. 2012-08-04 08:42:19 -05:00
Qua-non c33b789a7f Unit Tests: add Graphics testcase for issue #609 2012-08-04 16:24:14 +05:30
Jeff Pittman e51da87134 Added allownone=True for obj in ObjectAdapter, and for fruit_name in the list cascade examples, and modified the detail view variants in the list examples to clear widgets and redraw if the the selected fruit is None. 2012-08-04 05:28:53 -05:00
Jeff Pittman 7bc0e0ce90 Added ObserverView docs. 2012-08-04 04:21:57 -05:00
Jeff Pittman b0da0e8150 Syntax fixes. 2012-08-04 03:39:47 -05:00
Jeff Pittman ba8b009bb2 Added docs for ObjectAdapter. Changed ObjectAdapter to have the obj property or a obj_bind_from property. Owner, for use when a property is used as the from side of the object source binding, is now called cls, for consistency with ListAdapter and other usage. 2012-08-04 03:34:02 -05:00
Qua-non b6bc3e8839 Markup: remove 'len -1' left over from internal testing.
Fixes markup valign calculation closes #609 and #576
2012-08-04 12:10:51 +05:30
Jeff Pittman 0d29acae75 Added two new classes, ObjectAdapter and ObserverView, which work together in a fashion similar to the way ListAdapter and ListView work. ObjectAdapter can be used to hold the selection of a ListAdapter. ObserverView is a view associated with this relationship, as showin the the list_cascade_oo.py example. The detail view on the right is an ObserverView, showing the view associated with the ObjectAdapter instance observing the fruit selection. 2012-08-03 17:50:22 -05:00
Jeff Pittman 8e8b732667 Made a pass through listview docs, adjusting for recent changes. 2012-08-02 22:34:18 -05:00
Jeff Pittman ea7ce02a89 Removed the experiment with ButtonBehavior. Worked over bindings and events widely. Realized the place to put the call to check_for_empty_selection(), as things are now, is at the bottom of listview.hard_populate(). Cleaned up all of the examples for the changes. 2012-08-02 20:53:41 -05:00
Jeff Pittman 42e20b1880 Added ButtonBehavior for use with SelectableItem. Removed use of selection_target mechanism. 2012-08-02 16:00:05 -05:00
Jeff Pittman e39fe34189 Renamed multiple_cascade example to accumulating, for the adapter used. 2012-08-02 13:33:42 -05:00
Jeff Pittman 70067c712d Updated todo list. 2012-08-02 13:16:45 -05:00
Jeff Pittman 2cc422d53b Found a much better solution for the relationship between ListAdapter and SelectableItem. Now ListAdapter sets up the binding between SelectableItem on_release event and ListAdapter.handle_selection(). handle_selection(), additionally, now has to check obj.selection_target before calling the new internal _handle_selection(obj) on the selection_target. 2012-08-02 12:46:14 -05:00
Jeff Pittman e242f9b406 Made temporary changes to get the kv template to work with list_cascade_images.py. Will have to review the way list_adapter is set into SelectableItem. 2012-08-02 11:45:18 -05:00
Jeff Pittman caec459146 Added Factory register call, and trying to use CompositeListItem in the template for the new thumbnailed cascading lists example. 2012-08-02 10:55:21 -05:00
Jeff Pittman 753696f78b Added an example to work with new fruit images. 2012-08-02 09:28:57 -05:00
Mathieu Virbel 460cc8ea3c ios: add entry about how to see the kivy logs/exception + add processcraft in the app store apps 2012-08-02 16:09:46 +02:00
Jeff Pittman 189dea9b19 Added thumbnail images for fruits, all from wikipedia.org. 2012-08-02 04:29:41 -05:00
Jeff Pittman dafb48c8e8 Simplified fruit names in sample data. 2012-08-02 04:28:44 -05:00
Jeff Pittman 71581a228e Made misspelling and formatting fixes in listview docs. 2012-08-01 17:24:36 -05:00
Jeff Pittman f61176eb93 Added more docs for listview examples in the listview.py header, including an ascii drawing of the listview <-> listadapter relationship, as it is now. 2012-08-01 16:59:14 -05:00
Jeff Pittman d4a4823ce5 Removed unused selection arguments where ListView makes its own instance of SimpleListAdapter. Added beefier section for list adapters in ListView docs. 2012-08-01 13:51:25 -05:00
Mathieu Virbel d3c94cc990 Merge branch 'master' of ssh://github.com/kivy/kivy 2012-08-01 20:44:52 +02:00
Mathieu Virbel a601a6b3c5 reload: for texture / images, when we are reloading, prevent to use the Cache for storing the temporary image object, as well as the texture created from that Image object. closes #581 2012-08-01 20:43:54 +02:00
Jeff Pittman 23ac1d8601 Improvement of the composite list view example. 2012-08-01 12:53:43 -05:00
Jeff Pittman cd7febcbf8 Improved the kv example docs comment. 2012-08-01 11:34:26 -05:00