Changeset 1180
- Timestamp:
- 03/08/10 22:17:47 (5 months ago)
- Location:
- trunk/doc/sphinx/source
- Files:
-
- 3 modified
-
doc/delegates.rst (modified) (3 diffs)
-
doc/models.rst (modified) (1 diff)
-
tutorial/videostore.rst (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/doc/sphinx/source/doc/delegates.rst
r1006 r1180 8 8 :Date: |today| 9 9 10 `Delegates` are a cornerstone of the Qt model/ view framework. A delegate is10 `Delegates` are a cornerstone of the Qt model/delegate/view framework. A delegate is 11 11 used to display and edit data from a `model`. 12 12 … … 19 19 20 20 All Camelot delegates are subclasses of :class:`QAbstractItemDelegate`. 21 22 The `PyQT website <http://www.riverbankcomputing.com/static/Docs/PyQt4/html/classes.html>`_ 23 provides detailed information the differenct classes involved in the 24 model/delegate/view framework. 21 25 22 26 .. _specifying-delgates: … … 41 45 The above code will result in: 42 46 43 .. image:: ../_static/ rating.png47 .. image:: ../_static/editors/StarEditor_editable.png 44 48 45 49 If no `delegate` field attribute is given, a default one will be taken 46 50 depending on the sqlalchemy field type. 47 51 52 All available delegates can be found in :mod:`camelot.view.controls.delegates` 53 48 54 Available delegates 49 55 =================== 50 56 51 All available delegates can be found in :mod:`camelot.view.controls.delegates` 52 53 .. automodule:: camelot.view.controls.delegates.booldelegate 54 :members: 55 .. automodule:: camelot.view.controls.delegates.codedelegate 56 :members: 57 .. automodule:: camelot.view.controls.delegates.colordelegate 58 :members: 59 .. automodule:: camelot.view.controls.delegates.coloredfloatdelegate 60 :members: 61 .. automodule:: camelot.view.controls.delegates.comboboxdelegate 62 :members: 63 .. automodule:: camelot.view.controls.delegates.currencydelegate 64 :members: 65 .. automodule:: camelot.view.controls.delegates.datedelegate 66 :members: 67 .. automodule:: camelot.view.controls.delegates.datetimedelegate 68 :members: 69 .. automodule:: camelot.view.controls.delegates.filedelegate 70 :members: 71 .. automodule:: camelot.view.controls.delegates.floatdelegate 72 :members: 73 .. automodule:: camelot.view.controls.delegates.imagedelegate 74 :members: 75 .. automodule:: camelot.view.controls.delegates.integerdelegate 76 :members: 77 .. automodule:: camelot.view.controls.delegates.intervalsdelegate 78 :members: 79 .. automodule:: camelot.view.controls.delegates.manytomanydelegate 80 :members: 81 .. automodule:: camelot.view.controls.delegates.many2onedelegate 82 :members: 83 .. automodule:: camelot.view.controls.delegates.one2manydelegate 84 :members: 85 .. automodule:: camelot.view.controls.delegates.onetomanychoicesdelegate 86 :members: 87 .. automodule:: camelot.view.controls.delegates.plaintextdelegate 88 :members: 89 .. automodule:: camelot.view.controls.delegates.richtextdelegate 90 :members: 91 .. automodule:: camelot.view.controls.delegates.stardelegate 92 :members: 93 .. automodule:: camelot.view.controls.delegates.smileydelegate 94 :members: 95 .. automodule:: camelot.view.controls.delegates.texteditdelegate 96 :members: 97 .. automodule:: camelot.view.controls.delegates.timedelegate 98 :members: 99 .. automodule:: camelot.view.controls.delegates.virtualaddressdelegate 100 :members: 57 .. automodule:: camelot.view.controls.delegates 101 58 102 59 Attributes common to most delegates -
trunk/doc/sphinx/source/doc/models.rst
r838 r1180 19 19 ====================== 20 20 21 .. automodule:: sqlalchemy.types 22 :members: 21 SQLAlchemy provides a number of field types that map to available data types in SQL, more information on those 22 can be found on the `SQLAlchemy website <http://www.sqlalchemy.org/docs/reference/sqlalchemy/types.html>`_ . 23 23 24 24 Camelot field types -
trunk/doc/sphinx/source/tutorial/videostore.rst
r638 r1180 215 215 from camelot.model.i18n import Translation 216 216 return [Section('relation', 217 Icon('tango/2 4x24/apps/system-users.png'),217 Icon('tango/22x22/apps/system-users.png'), 218 218 items = [Person, Organization]), 219 219 Section('configuration', 220 Icon('tango/2 4x24/categories/preferences-system.png'),220 Icon('tango/22x22/categories/preferences-system.png'), 221 221 items = [Memento, Translation]) 222 222 ] … … 231 231 232 232 Section('movies', 233 Icon('tango/2 4x24/mimetypes/x-office-presentation.png'),233 Icon('tango/22x22/mimetypes/x-office-presentation.png'), 234 234 items = [Movie]) 235 235 … … 249 249 from example.model import Movie 250 250 return [Section('movies', 251 Icon('tango/2 4x24/mimetypes/x-office-presentation.png'),251 Icon('tango/22x22/mimetypes/x-office-presentation.png'), 252 252 items = [Movie]), 253 253 Section('relation', 254 Icon('tango/2 4x24/apps/system-users.png'),254 Icon('tango/22x22/apps/system-users.png'), 255 255 items = [Person, Organization]), 256 256 Section('configuration', 257 Icon('tango/2 4x24/categories/preferences-system.png'),257 Icon('tango/22x22/categories/preferences-system.png'), 258 258 items = [Memento, Translation]) 259 259 ] … … 373 373 374 374 Section('movies', 375 Icon('tango/2 4x24/mimetypes/x-office-presentation.png'),375 Icon('tango/22x22/mimetypes/x-office-presentation.png'), 376 376 items = [Movie, Director]) 377 377
