Commit graph

23 commits

Author SHA1 Message Date
Candice Bentéjac
41e885d9ff Linting: Clean-up files 2024-09-12 10:50:13 +02:00
Fabien Castan
c986b4a134 [common] DictModel get does not raise errors as in Python
getr raises an error if the key does not exist
2024-06-15 17:10:46 +02:00
Fabien Castan
dba781a469 [common] CoreObject: Cannot use ClassSignal in __del__ 2020-09-04 19:54:27 +02:00
Julien-Haudegond
b5e126c2e4 [core] add values method to CoreListModel 2020-08-28 10:31:43 +02:00
Julien-Haudegond
6eeea3bb44 [common] Core: add destroyed signal to CoreObject 2020-08-27 11:44:35 +02:00
Julien-Haudegond
9316b8212e [common] Core: replace CoreSignal with PySignal 2020-08-27 11:41:46 +02:00
Julien-Haudegond
887b33490e [core] avoid direct includes to PySide2 2020-08-13 14:24:44 +02:00
Yann Lanthony
6ac4a9d712 [desc][qt] use QVariantList for list-type properties
* required for PySide2 > 5.11.1 (and compatible with 5.11.1)
* AttributeItemDelegate: test for list length to determine whether to create a slider component (if range is set to None on Python side, it will be an empty list on the QML/JS side)
2019-01-04 17:30:38 +01:00
Yann Lanthony
e391d76a82 [common] add 'values' method on DictModels 2018-01-12 13:59:07 +01:00
Yann Lanthony
f3caf529aa [common] CoreListModel: implement __getitem__ 2017-12-04 11:08:49 +01:00
Yann Lanthony
9530ad6805 [core] update CoreListModel
* added setObjectList method
2017-11-30 21:36:32 +01:00
Yann Lanthony
6945cb7738 [core] fix: CoreListModel.indexOf actually returns the index 2017-11-17 17:51:41 +01:00
Yann Lanthony
a2e1369c9a [common] improve core models
* CoreListModel:
    * allow removal of multiple contiguious elements
    * add insert method 
* CoreDictModel:
    * use del to remove elemvent from list
2017-11-06 18:34:14 +01:00
Fabien Castan
17e77f2e82 [core] add 'items' on CoreModel 2017-10-31 12:09:26 +01:00
Fabien Castan
46f6865a25 [core] implement uid computation for ListAttributes and GroupAttributes 2017-10-31 10:46:32 +01:00
Yann Lanthony
d0c0a28d5d [common] introduce ListModel
*qt: for now, use QObjectListModel for both Dict and List models
2017-10-23 19:55:32 +02:00
Yann Lanthony
2a213b70cf [common] add 'parent' field to CoreObject
useful to match QObject's API
2017-10-23 19:55:32 +02:00
Yann Lanthony
1e306f8408 rename Model to DictModel + augment API
* add "update" and "reset" methods
* core: no more default keyAttrName
* qt: if keyAttrName is empty, don't register items in internal dictionnary
2017-10-23 19:54:55 +02:00
Yann Lanthony
9c7d0c1b1c [desc] Attribute inherits BaseObject and expose members as properties
* also expose graph.Attribute's desc as a property
* introduce Variant in data structure backend API
2017-10-23 15:07:09 +02:00
Fabien Castan
540fe3d47f [common] CoreModel: raise an error in getter if the parameter does not exist 2017-10-16 12:24:00 +02:00
Yann Lanthony
78c4b7f4f2 [common] add 'connect' method to CoreSignal
For now, callbacks are not triggered when 'emit' is called, since we might not need this level of update when using the non-UI version of meshroom. 
TODO: Make sure of this
2017-10-02 15:53:59 +02:00
Fabien Castan
2fcdc586a6 [bin] fix statistics 2017-10-02 14:56:36 +02:00
Yann Lanthony
547e6c93b6 rename "types" to "common" to avoid name conflict
types is already a standard python package
2017-09-25 20:04:41 +02:00
Renamed from meshroom/types/core.py (Browse further)