[Kst] branches/work/kst/portto4/kst/src/libkstapp
Mike Fenton
mike at staikos.net
Fri Oct 26 22:59:08 CEST 2007
SVN commit 729755 by fenton:
Add initial stub version of PlotRenderItemDialog.
M +3 -0 libkstapp.pro
M +7 -0 plotrenderitem.cpp
M +1 -0 plotrenderitem.h
A plotrenderitemdialog.cpp [License: GPL (v2+)]
A plotrenderitemdialog.h [License: GPL (v2+)]
A plotrenderitemdialog.ui
M +1 -1 viewitem.h
--- branches/work/kst/portto4/kst/src/libkstapp/libkstapp.pro #729754:729755
@@ -75,6 +75,7 @@
pictureitem.cpp \
plotaxisitem.cpp \
plotitem.cpp \
+ plotrenderitemdialog.cpp \
plotitemmanager.cpp \
plotrenderitem.cpp \
powerspectrumdialog.cpp \
@@ -157,6 +158,7 @@
pictureitem.h \
plotaxisitem.h \
plotitem.h \
+ plotrenderitemdialog.h \
plotitemmanager.h \
plotrenderitem.h \
powerspectrumdialog.h \
@@ -207,6 +209,7 @@
layouttab.ui \
matrixeditordialog.ui \
matrixtab.ui \
+ plotrenderitemdialog.ui \
powerspectrumtab.ui \
scalareditordialog.ui \
scalartab.ui \
--- branches/work/kst/portto4/kst/src/libkstapp/plotrenderitem.cpp #729754:729755
@@ -17,6 +17,8 @@
#include "plotitemmanager.h"
#include "application.h"
+#include "plotrenderitemdialog.h"
+
#include <QTime>
#include <QMenu>
#include <QStatusBar>
@@ -804,6 +806,11 @@
}
+void PlotRenderItem::edit() {
+ PlotRenderItemDialog editDialog(this);
+ editDialog.exec();
+}
+
void PlotRenderItem::updateCursor(const QPointF &pos) {
if (checkBox().contains(pos)) {
setCursor(Qt::ArrowCursor);
--- branches/work/kst/portto4/kst/src/libkstapp/plotrenderitem.h #729754:729755
@@ -115,6 +115,7 @@
void zoomYIn();
void zoomNormalizeYtoX();
void zoomLogY();
+ virtual void edit();
protected:
virtual void contextMenuEvent(QGraphicsSceneContextMenuEvent *event);
--- branches/work/kst/portto4/kst/src/libkstapp/viewitem.h #729754:729755
@@ -130,7 +130,7 @@
/*FIXME these should be made private for only undo commands to access*/
public Q_SLOTS:
- void edit();
+ virtual void edit();
void raise();
void lower();
void createLayout();
More information about the Kst
mailing list