Commit 42dfdcc3 authored by Pierre-Antoine Rouby's avatar Pierre-Antoine Rouby
Browse files

doc: dev: Complete Model section.

Showing with 18 additions and 4 deletions
+18 -4
......@@ -137,7 +137,7 @@ in {{{file(src/Solver)}}} (see section [[Solver]]).
[fn:qt-mv] The Qt Model/View documentation web page:
https://doc.qt.io/qt-5/model-view-programming.html
** TODO Model
** Model
The model is a set of Python classes. In Pamhyr2, this classes must
respect some constraint. Each model class must inherits
......@@ -258,7 +258,7 @@ other components are linked to one of these basic components.
}
#+end_src
*** TODO SQL
*** SQL
The model must be export to a database file to create a study save
file. This file use SQLite3[fn:sqlite] format and the extention
......@@ -403,8 +403,22 @@ of Bar (Listing [[sql-bar]] and [[sql-foo]]).
[fn:sqlite] The SQLite web site: https://www.sqlite.org/index.html
(last access 2023-09-20)
*** TODO List class
*** TODO Dict class
*** List class
A abstract class PamhyrModelList is available and provide some of
basic methods for object list in Model. This abstract class implement
some classic action in View like: insert new object, delete object,
sort, move object up, move object down, and so on. An variant exists
for multiple list with same type of object, each sublist is called
tab, because in View, this kind of list si prensented in different
table PamhyrModelListWithTab.
*** Dict class
A abstract class PamhyrModelDict is available and provide some of
basic methods for object dictionary in Model. This class is like
PamhyrModelList but use a dictionary instead of list.
** TODO View
*** TODO UI file
*** TODO Translate
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment