43 | | * The naming convention(or the rules - there can be some exceptions so convention may be is not the right word): |
44 | | * there |
| 43 | * The naming convention(or the rules - there can show some exceptions so convention may be is not the right word): |
| 44 | * It is recommended not to have module with name x.y if there is already module named x.y.z. |
| 45 | * Modules for the reader ends with .viewer and for the author - with .editor. (i.e. org.sophie2.extra.pdf.editor, org.sophie2.extra.pdf.viewer, etc..) |
| 46 | * When you write module which provides specific functionality you have to add .func before its name.(For example org.sophie2.main.func.file, org.sophie2.main.func.config - functional modules are always with org.sophie2.main prefix) |
| 47 | * When you create module which is concrete implementation of a base library, name it like the base module but with main except the base word.(org.sophie2.base.media -> org.sophie2.main.media) |
| 48 | * If you want to write a module which is not concrete implementation of base library or concrete functionality(and is not core logic or base library), name it with org.sophie2.main. prefix before the module name. |
| 49 | * Add .commons and .util suffices when needed so the first rule is respected. |
| 50 | * Note: write in comments section for more ideas about naming convention. |
| 51 | * Remove: |
| 52 | * org.sophie2.main module |
| 53 | * view word in main halos, layout and menus module. |
| 54 | * org.sophie2.messy module |
| 55 | * org.sophie2.main.func.file |
| 56 | * Rename: |
| 57 | * org.sophie2.main.view to org.sophie2.main.app.view and remove the Main class there |
| 58 | * org.sophie2.extra modules to org.sophie2.extra.func |
| 59 | * org.sophie2.base to org.sophie2.base.commons |
| 60 | * org.sophie2.main.media to org.sophie2.main.func.media |
| 61 | * org.sophie2.main.model to org.sophie2.main.app.model |
| 62 | * org.sophie2.main.model.book.format.r1/r2 to org.sophie2.main.persistence.r1/r2 |
| 63 | * Create: |
| 64 | * org.sophie2.reader module with FakeReaderMain and with reader.bundles.config file |
| 65 | * org.sophie2.main.func.resources and move resource manipulation and view classes there |
| 66 | * org.sophie2.main.model.text with text model. |
| 67 | * org.sophie2.func.image with image functionality. |
| 68 | * new legacy package in main.app, main.model, with legacy views and logic. |
| 69 | * org.sophie2.core.prolib |
| 70 | * org.sophie2.core.testing |
| 71 | * org.sophie2.main.app.dialogs and move the dialogs from main.app.view and main.func.file there |
| 72 | * org.sophie2.main.func.hottext |
| 73 | |
| 74 | * Move: |
| 75 | * BookExtra in main.app module |
| 76 | * mvc.logic in core.mvc under legacy package |
| 77 | * org.sophie2.main.dialogs.input to org.sophie2.main.app.dialogs |
| 78 | |