From: <su...@us...> - 2008-05-29 13:33:44
|
Revision: 2814 http://tora.svn.sourceforge.net/tora/?rev=2814&view=rev Author: subik Date: 2008-05-29 06:33:40 -0700 (Thu, 29 May 2008) Log Message: ----------- Stray/unecessary "save changes to editor" dialogs that don't make much sense or no modified data. Modified Paths: -------------- trunk/tora/ISSUES trunk/tora/src/toworksheet.h trunk/tora/src/toworksheetwidget.cpp trunk/tora/src/toworksheetwidget.h Modified: trunk/tora/ISSUES =================================================================== --- trunk/tora/ISSUES 2008-05-29 13:14:14 UTC (rev 2813) +++ trunk/tora/ISSUES 2008-05-29 13:33:40 UTC (rev 2814) @@ -59,7 +59,7 @@ Oracle: better handling on extents tab if no access to dba_extents view. -Stray/unecessary "save changes to editor" dialogs that don't make much sense or no modified data. +[DONE in revision #2812?] Stray/unecessary "save changes to editor" dialogs that don't make much sense or no modified data. Modified: trunk/tora/src/toworksheet.h =================================================================== --- trunk/tora/src/toworksheet.h 2008-05-29 13:14:14 UTC (rev 2813) +++ trunk/tora/src/toworksheet.h 2008-05-29 13:33:40 UTC (rev 2814) @@ -160,7 +160,7 @@ void saveHistory(void); void viewResources(void); void query(const QString &str, execType type); - bool checkSave(bool input); + virtual bool checkSave(bool input); void saveDefaults(void); void setup(bool autoLoad); Modified: trunk/tora/src/toworksheetwidget.cpp =================================================================== --- trunk/tora/src/toworksheetwidget.cpp 2008-05-29 13:14:14 UTC (rev 2813) +++ trunk/tora/src/toworksheetwidget.cpp 2008-05-29 13:33:40 UTC (rev 2814) @@ -177,7 +177,12 @@ return false; } +bool toWorksheetWidget::checkSave(bool input) +{ + return false; +} + // override parent. void toWorksheetWidget::windowActivated(QWidget *widget) { Modified: trunk/tora/src/toworksheetwidget.h =================================================================== --- trunk/tora/src/toworksheetwidget.h 2008-05-29 13:14:14 UTC (rev 2813) +++ trunk/tora/src/toworksheetwidget.h 2008-05-29 13:33:40 UTC (rev 2814) @@ -56,6 +56,14 @@ void windowActivated(QWidget *widget); virtual bool describe(const QString &query); + /*! \brief Prevent unecessary "save changes to editor" + that don't make much sense. + toWorksheetWidget objects are used for diplaying data + only - so no saving is required at all. + This method cuts off toWorksheet::checkSave()s + */ + bool checkSave(bool input); + public slots: /** * create context menus This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |