Ticket #2313 (closed tweak: obsolete)
page-templates-default – Add a checkbox whether this is default page template for this book
Reported by: | deyan | Owned by: | diana |
---|---|---|---|
Priority: | major | Milestone: | X3 |
Component: | uncategorized | Version: | 2.0 |
Keywords: | Cc: | ||
Category: | unknown | Effort: | |
Importance: | 60 | Ticket_group: | |
Estimated Number of Hours: | 0 | Add Hours to Ticket: | 0 |
Billable?: | yes | Total Hours: | 0 |
Analysis_owners: | deyan | Design_owners: | diana |
Imp._owners: | diana | Test_owners: | |
Analysis_reviewers: | Changelog: | ||
Design_reviewers: | meddle | Imp._reviewers: | meddle, deyan |
Test_reviewers: | Analysis_score: | 3.5 | |
Design_score: | 3.5 | Imp._score: | 3 |
Test_score: | 0 |
Description (last modified by deyan) (diff)
Add a checkbox in add to template dialog that says whether this is the default template for creating new pages in the book. Should be unchecked by default. If checked, new pages should be created from this template.
Add a checkbox in add to template dialog that says whether this is the default template for creating new frames. Should be unchecked by default. If checked, new frames should be created from this template.
NOTE: the main resource is not considered to be aspplied from the default template.
This should be refined when changing the main resource of a frame is doable.
Attachments
Change History
comment:1 Changed 15 years ago by dido
- Category set to unknown
- Analysis_score set to 0
- Importance set to 60
- Test_score set to 0
- Design_score set to 0
- Imp._score set to 0
comment:2 Changed 15 years ago by diana
- Design_owners set to diana
- Owner set to diana
- Status changed from new to s1a_analysis_started
- Imp._owners set to diana
- Description modified (diff)
comment:3 Changed 15 years ago by diana
- Status changed from s1a_analysis_started to s1b_analysis_finished
comment:4 Changed 15 years ago by deyan
- Status changed from s1b_analysis_finished to s1c_analysis_ok
- Description modified (diff)
comment:5 Changed 15 years ago by diana
- Status changed from s1c_analysis_ok to s2a_design_started
- Add two templated keys in BookR4: KEY_DEFAULT_FRAME_TEMPLATE - holds the default template for the frames in the current book and KEY_DEFAULT_FRAME_TEMPLATE
- In BookH add two methods getDefaultFrameTemplate - gets the default value for the frame template in the book and getDefaultPageTemplate - gets the default value for the page templates in the book.
- In BookView class in addNewPage method check if the default page template is none_ref and if not, the default template is applied to the newly created page.
- In TemplateInfo class add new boolean isDefault that is true if the template is chosen to be a default one and false otherwise.
- In TemplateInfo class add a getter method for the isDefault and add another one boolean parameter in the constructors of the class to initialize the variable.
- In TemplateDialog class add another one SubCheckBox to hold the value for the default template option (named isDefaultTemplateCheckBox) and add getter method for it (named getIsDefaultTemplateCheckBox).
- In TemplateUtil:createTemplate add another one boolean variable createDefaultTemplate - true if the template will be used as a default one, false otherwise. And if true the created template is set to the current book key (KEY_DEFAULT_FRAME_TEMPLATE or KEY_DEFAULT_FRAME_TEMPLATE).
- In ResourceImportUtil:insert check if the KEY_DEFAULT_FRAME_TEMPLATE is not none_ref and if so the default template is applied to the created frame.!!!Note: this is only for the keys that are not main resource!!!!!
comment:6 Changed 15 years ago by diana
- Status changed from s2a_design_started to s2b_design_finished
comment:8 Changed 15 years ago by diana
- Status changed from s2c_design_ok to s3a_implementation_started
comment:9 Changed 15 years ago by diana
- Status changed from s3a_implementation_started to s3b_implementation_finished
comment:10 Changed 15 years ago by meddle
- Status changed from s3b_implementation_finished to s3c_implementation_ok
- Analysis_score changed from 0 to 3.5
- Imp._reviewers set to meddle, deyan
- Design_score changed from 0 to 3.5
- Design_reviewers set to meddle
- Imp._score changed from 0 to 3
Merged to the trunk at [8636].
In future tasks make sure you are synchronized with the trunk before giving us the patch.
And analysis score?????
comment:11 Changed 13 years ago by meddle
- Status changed from s3c_implementation_ok to closed
- Resolution set to obsolete
Closing all the tickets before M Y1