View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0015744 | Scribus | Internal | public | 2019-07-19 14:19 | 2020-04-11 05:33 |
Reporter | ale | Assigned To | |||
Priority | normal | Severity | feature | Reproducibility | N/A |
Status | new | Resolution | open | ||
Product Version | 1.5.5.svn | ||||
Summary | 0015744: Allow "modules" to attach themeselves to the preferences and document settings | ||||
Description | currently, each "module" must be added to ui/preferencesdialog.h/cpp . in an effort to allow a better, modularisation of the scribus code, there should be a mechanism that allows the modules (like the table of contents) to add themselves to the preferences or document settings. | ||||
Tags | No tags attached. | ||||
Patch | No | ||||
related to | 0015739 | new | Metabug: improve code modularity |
|
Hi Ale Can you define a module? Plugins add themselves to Preferences via void PreferencesDialog::addPlugins() |
|
hi craig of course scribus does not have modules. but there are group of features that behave in an "independent way". almost like a module. the question came up while working on a new table of contents. i think that pdf and external tools might be similar cases, too. indeed plugins inspired me to fill this ticket. i've been told only to use plugins for things like file loaders (and avoid them for things like a table of contents) so i'm looking for a similar comfort while working on "normal" code. currently, if i want to add a functionality that is well encapsulated, i cannot really do so and at latest as soon as i start the integration with the whole system, i have to edit several files. not being able to create self contained functionalities makes it harder to: - understand how an existing feature works. - add all the bindings (preferences, menus, translations, ...) for a new feature. - maintain the bindings to the surrounding code while programming a new feature. |
Date Modified | Username | Field | Change |
---|---|---|---|
2019-07-19 14:19 | ale | New Issue | |
2019-07-19 14:20 | ale | Relationship added | related to 0015739 |
2019-07-19 14:20 | ale | Category | - => Internal |
2019-07-19 15:20 | jghali | Summary | Allow "modules" to attach themeselves to the preferences and docuemnt settings => Allow "modules" to attach themeselves to the preferences and document settings |
2020-04-10 19:00 | cbradney | Note Added: 0047502 | |
2020-04-11 05:33 | ale | Note Added: 0047509 |