Bug 143857 - Save Data menu item does not appear to do anything
Summary: Save Data menu item does not appear to do anything
Status: RESOLVED FIXED
Alias: None
Product: kst
Classification: Applications
Component: general (show other bugs)
Version: 1.x
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: kst
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-04 23:47 UTC by Andrew Walker
Modified: 2007-06-29 22:14 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Walker 2007-04-04 23:47:42 UTC
Version:           HEAD (using KDE KDE 3.5.1)
OS:                Linux

PROBLEM:

The File... Save Data menu item appears to have no effect when selected

It should at least toggle its checkmark to show that the user has taken some action.

If, on the other hand, it really does nothing then it should be removed.
Comment 1 Netterfield 2007-04-05 16:25:05 UTC
The "Save Data" option causes the data to be saved in the kst file, when a kst 
file is saved.  Ideally this would actually be a checkbox in the save dialog, 
not in the menu...

the following patch will make the check box work, but the feature's UI is 
still marginal..

Index: kst.cpp
===================================================================
--- kst.cpp     (revision 650125)
+++ kst.cpp     (working copy)
@@ -420,8 +420,9 @@
   connect(PauseAction, SIGNAL(toggled(bool)), this, 
SLOT(updatePausedState(bool)));

   /************/
-  _saveData = new KToggleAction(i18n("Save Da&ta"),"save_vector_data", 0,
-                                  actionCollection(), "save_vector_data");
+  //_saveData = new KToggleAction(i18n("Save Da&ta"),"save_vector_data", 0,
+  _saveData = new KToggleAction(i18n("Save Da&ta"), 0,0,0,0,
+                               actionCollection(), "save_vector_data");
   _saveData->setToolTip(i18n("Save Vector Data To Disk"));
   _saveData->setWhatsThis(i18n("When selected, data in vectors will be saved 
into the Kst file."));
Comment 2 Andrew Walker 2007-04-05 20:56:49 UTC
It looks like better than nothing for this the 1.4 release.
Comment 3 Netterfield 2007-04-06 03:47:34 UTC
SVN commit 650986 by netterfield:

saveData uses a check box, not an icon.

Reviewed by Andrew

CCBUG: 143857


 M  +2 -2      kst.cpp  


--- trunk/extragear/graphics/kst/src/libkstapp/kst.cpp #650985:650986
@@ -420,8 +420,8 @@
   connect(PauseAction, SIGNAL(toggled(bool)), this, SLOT(updatePausedState(bool)));
 
   /************/
-  _saveData = new KToggleAction(i18n("Save Da&ta"),"save_vector_data", 0,
-                                  actionCollection(), "save_vector_data");
+  _saveData = new KToggleAction(i18n("Save Da&ta"), 0,0,0,0,
+				actionCollection(), "save_vector_data");
   _saveData->setToolTip(i18n("Save Vector Data To Disk"));
   _saveData->setWhatsThis(i18n("When selected, data in vectors will be saved into the Kst file."));
 
Comment 4 Andrew Walker 2007-04-12 21:08:45 UTC
If the user opens an existing Kst file (or does a Save As... on a new session) when they re-save they will not be presented with a save dialog as the filename is already known. Is it safe to assume they always want to keep the same saveData option? Or can we just tell them to do a Save As... if they want to change it?
In the former case is there a way of knowing how the file was originally saved?
Comment 5 Netterfield 2007-04-13 04:35:32 UTC
good point.
Maybe this feature belongs with the vectors rather than with save?
Comment 6 Andrew Walker 2007-05-10 21:23:36 UTC
So should we add a checkbox to the vector dialog that allows the user to set this on a per vector basis? Presumbably this would apply only to vectors read from file (generated vectors can recreate their data).
Comment 7 Andrew Walker 2007-06-29 22:14:22 UTC
Original bug report has been addressed. Another bug report should be submitted if the UI for the functionality is not adequate.