[Kst] branches/work/kst/1.5/kst/src/libkstapp (silent)
Andrew Walker
arwalker at sumusltd.com
Thu Jul 26 21:03:12 CEST 2007
SVN commit 692990 by arwalker:
BUG:147208 SVN_SILENT update the plot list when a new plot is created from the menu
M +18 -2 kst.cpp
M +6 -5 kst.h
--- branches/work/kst/1.5/kst/src/libkstapp/kst.cpp #692989:692990
@@ -1955,6 +1955,7 @@
assert(w);
}
w->createPlot(KST::suggestPlotName(), false);
+ updateDialogsForPlot();
}
@@ -2084,7 +2085,7 @@
if (vm) {
viewManager->updateContents();
}
-
+
updateMemoryStatus();
}
@@ -2182,6 +2183,21 @@
}
+void KstApp::updateDialogsForPlot() {
+ if (!_stopping) {
+ KstCsdDialogI::globalInstance()->updateWindow();
+ KstEqDialogI::globalInstance()->updateWindow();
+ KstHsDialogI::globalInstance()->updateWindow();
+ KstVvDialogI::globalInstance()->updateWindow();
+ KstPsdDialogI::globalInstance()->updateWindow();
+ KstCurveDialogI::globalInstance()->updateWindow();
+ KstImageDialogI::globalInstance()->updateWindow();
+ updateDataManager(false);
+ updateViewManager(false);
+ }
+}
+
+
void KstApp::updateDataManager(bool onlyVisible) {
if (!onlyVisible || dataManager->isShown()) {
dataManager->update();
@@ -2624,4 +2640,4 @@
}
#include "kst.moc"
-// vim: ts=2 sw=2 et
+
--- branches/work/kst/1.5/kst/src/libkstapp/kst.h #692989:692990
@@ -365,17 +365,18 @@
/** calls doc->samplesUp */
void samplesUp();
-
+
/** calls update on all the dialogs */
void updateVisibleDialogs();
// is there ever a reason to update hidden dialogs?
void updateDialogs(bool onlyVisible = true);
void updateDataDialogs(bool dataManager = true, bool viewManager = true);
void updateDialogsForWindow();
+ void updateDialogsForPlot();
void updateDataNotifier();
void updateDataManager(bool onlyVisible);
void updateViewManager(bool onlyVisible);
-
+
/*** shows doc as modified, updates doc and dialogs */
void registerDocChange();
@@ -586,12 +587,12 @@
KConfig *_dataSourceConfig;
QValueList<KstOpen> _openQueue;
KstGraphicType _graphicType;
-
+
KstTopLevelView::ViewMode _viewMode;
QString _createType;
QGuardedPtr<KstDebugNotifier> _debugNotifier;
QGuardedPtr<KstDataNotifier> _dataNotifier;
};
-#endif // KST_H
-// vim: ts=2 sw=2 et
+#endif
+
More information about the Kst
mailing list