Difference between revisions of "Features/Save-As"
Line 19: | Line 19: | ||
* Targeted release: 0.112 | * Targeted release: 0.112 | ||
* Last updated: 24th April 2017 | * Last updated: 24th April 2017 | ||
− | * Percentage of completion: | + | * Percentage of completion: 90% |
== Detailed Description == | == Detailed Description == | ||
Line 27: | Line 27: | ||
== Benefit to Sugar == | == Benefit to Sugar == | ||
− | ''What is the benefit to the platform? If this is a major capability update, what has changed? If this is a new feature, what capabilities does it bring? Why will Sugar become a better platform or project because of this feature?'' | + | ''What is the '''benefit''' to the platform? If this is a major capability update, what has changed? If this is a new feature, what capabilities does it bring? Why will Sugar become a better platform or project because of this feature?'' |
Currently Sugar saves objects to the Journal with the name of the activity. In the original toolkit design, the name was displayed to the top left of the toolbar so that a user could enter their own name. At that time, the user had a 'keep' button on the toolbar which enabled an object to be saved while continuing to work as found on most document based applications. | Currently Sugar saves objects to the Journal with the name of the activity. In the original toolkit design, the name was displayed to the top left of the toolbar so that a user could enter their own name. At that time, the user had a 'keep' button on the toolbar which enabled an object to be saved while continuing to work as found on most document based applications. | ||
Line 45: | Line 45: | ||
''What work do the developers have to accomplish to complete the feature in time for release? Is it a large change affecting many parts of the distribution or is it a very isolated change? What are those changes?'' | ''What work do the developers have to accomplish to complete the feature in time for release? Is it a large change affecting many parts of the distribution or is it a very isolated change? What are those changes?'' | ||
+ | |||
+ | * pull request review, | ||
+ | * documentation changes. | ||
Feature is implemented in activity.py (sugar and sugar3). | Feature is implemented in activity.py (sugar and sugar3). | ||
Line 50: | Line 53: | ||
==UI Design== | ==UI Design== | ||
− | |||
− | |||
Direct impact on work flow. A visual mockup is in https://github.com/sugarlabs/sugar-toolkit/pull/4 | Direct impact on work flow. A visual mockup is in https://github.com/sugarlabs/sugar-toolkit/pull/4 | ||
Line 59: | Line 60: | ||
== User Experience == | == User Experience == | ||
− | |||
When the user presses the stop button or ctrl + q, a dialog will appear giving the opportunity to name or rename the associated Journal entry. | When the user presses the stop button or ctrl + q, a dialog will appear giving the opportunity to name or rename the associated Journal entry. | ||
Line 68: | Line 68: | ||
== Dependencies == | == Dependencies == | ||
− | |||
No dependencies. | No dependencies. | ||
Line 77: | Line 76: | ||
== Documentation == | == Documentation == | ||
− | |||
− | |||
See PR #327 at https://github.com/sugarlabs/sugar-toolkit-gtk3 | See PR #327 at https://github.com/sugarlabs/sugar-toolkit-gtk3 | ||
== Release Notes == | == Release Notes == | ||
− | |||
− | |||
Save As | Save As | ||
A user or deployment can enable this feature by setting gsetting 'save as' to True). This feature provides a capability comparable to the 'save' and 'save as' capabilities offered by conventional document processing programs such as those of Libre Office. | A user or deployment can enable this feature by setting gsetting 'save as' to True). This feature provides a capability comparable to the 'save' and 'save as' capabilities offered by conventional document processing programs such as those of Libre Office. | ||
− | |||
== Comments and Discussion == | == Comments and Discussion == | ||
− | + | * Link to the discussion on lists.sugarlabs.org: http://lists.sugarlabs.org/archive/sugar-devel/2017-April/054141.html | |
− | * | ||
* See [[{{TALKPAGENAME}}|the discussion tab for this feature.]] <!-- This adds a link to the "discussion" tab associated with your page. This provides the ability to have ongoing comments or conversation without bogging down the main feature page. --> | * See [[{{TALKPAGENAME}}|the discussion tab for this feature.]] <!-- This adds a link to the "discussion" tab associated with your page. This provides the ability to have ongoing comments or conversation without bogging down the main feature page. --> |
Revision as of 20:34, 24 April 2017
Summary
Provides the 'save' and 'save as' capabilities common to document processing applications.
Owner
- Name: Utkarsh Tiwari
- Email: Utkarsh Tiwari <iamutkarshtiwari@gmail.com>
Current status
- Targeted release: 0.112
- Last updated: 24th April 2017
- Percentage of completion: 90%
Detailed Description
- for a new document (start new), when the user quits the activity, a popup provides an opportunity for the user to give the document a name. The user can also decide not to save it.
- for an existing document, when the user quits the activity, a popup provides an opportunity to give it a new name. In this case, it will be saved under the new name and the original will be preserved. If the user chooses not to provide a new name, the document is saved replacing the original.
- provides a setting to enable or disable the feature
Benefit to Sugar
What is the benefit to the platform? If this is a major capability update, what has changed? If this is a new feature, what capabilities does it bring? Why will Sugar become a better platform or project because of this feature?
Currently Sugar saves objects to the Journal with the name of the activity. In the original toolkit design, the name was displayed to the top left of the toolbar so that a user could enter their own name. At that time, the user had a 'keep' button on the toolbar which enabled an object to be saved while continuing to work as found on most document based applications.
Currently, there is no keep button because Sugar does that automatically. This change comes with a serious flaw. Sugar uses the existing jobject when an activity is opened so that the original is overwritten. For example, a TurtleBlocks program could be resumed and the user decide to do a new program. His previous program is lost.
With this feature, the activity creates a new object cloned from the original. If the user saves the document (Turtle Blocks program) under a different name, the original remains in the Journal. If the name is not changed, the object replaces the original.
This feature is modeled on the behavior of the 'save' and 'save as' feature of conventional document handling programs.
Make sure to note here as well if this feature has been requested by a specific deployment, or if it has emerged from a bug report.
Requested by Tony Anderson. Implemented by Utkarsh Tiwari as part of GSOC 2016.
Scope
What work do the developers have to accomplish to complete the feature in time for release? Is it a large change affecting many parts of the distribution or is it a very isolated change? What are those changes?
- pull request review,
- documentation changes.
Feature is implemented in activity.py (sugar and sugar3). A gsetting was added to make enabling the feature optional.
UI Design
Direct impact on work flow. A visual mockup is in https://github.com/sugarlabs/sugar-toolkit/pull/4
How To Test
User Experience
When the user presses the stop button or ctrl + q, a dialog will appear giving the opportunity to name or rename the associated Journal entry.
The user can chose not to save the object.
If the document has been resumed from the Journal or the Home View, the user will be able to supply a new name so that this entry is added to the Journal instead of overwriting the original.
Dependencies
No dependencies.
Contingency Plan
None necessary, revert to previous release behaviour.
Documentation
See PR #327 at https://github.com/sugarlabs/sugar-toolkit-gtk3
Release Notes
Save As
A user or deployment can enable this feature by setting gsetting 'save as' to True). This feature provides a capability comparable to the 'save' and 'save as' capabilities offered by conventional document processing programs such as those of Libre Office.
Comments and Discussion
- Link to the discussion on lists.sugarlabs.org: http://lists.sugarlabs.org/archive/sugar-devel/2017-April/054141.html
- See the discussion tab for this feature.