[Kst] kdeextragear-2/kst/kst
George Staikos
staikos at kde.org
Tue Jun 8 21:48:33 CEST 2004
CVS commit by staikos:
minor fixlets, and stub for data mode
M +12 -1 kst.cpp 1.140
M +2 -0 kst.h 1.66
M +3 -1 kst2dplot.cpp 1.63
--- kdeextragear-2/kst/kst/kst.cpp #1.139:1.140
@@ -1118,6 +1121,12 @@ void KstApp::slotUpdateDataMsg(const QSt
}
+
+bool KstApp::dataMode() const {
+ return DataMode->isChecked();
+}
+
+
void KstApp::toggleDataMode() {
- /*view->setDataMode(DataMode->isChecked());*/
+ DataMode->setChecked(!DataMode->isChecked());
}
--- kdeextragear-2/kst/kst/kst.h #1.65:1.66
@@ -114,4 +114,6 @@ class KstApp : public KMdiMainFrm {
QString newWindow(bool prompt = true);
+ bool dataMode() const;
+
protected:
virtual void customEvent(QCustomEvent *e);
--- kdeextragear-2/kst/kst/kst2dplot.cpp #1.62:1.63
@@ -842,6 +842,6 @@ void Kst2DPlot::resize(const QSize& size
void Kst2DPlot::paint(QPainter& p) {
- KstPlotBase::paint(p);
_buffer.paintInto(p, geometry());
+ KstPlotBase::paint(p); // hmmm we might want some of this behind, no?
//paint(p, 0);
}
@@ -1885,4 +1885,6 @@ void Kst2DPlot::mouseMoveEvent(QWidget *
assert(newType != INACTIVE && newType != LABEL_TOOL);
}
+ } else if (KstApp::inst()->dataMode()) {
+ // FIXME data mode implementation
}
More information about the Kst
mailing list