[Kst] branches/work/kst/portto4/kst/src/libkstapp
Mike Fenton
mike at staikos.net
Mon Feb 4 22:04:33 CET 2008
SVN commit 770971 by fenton:
Add new Plot Marker settings Tab to control properties of Major/Minor Tick/Grid Lines.
Settings are not currently connected.
M +9 -0 dialog.cpp
M +1 -0 dialog.h
M +3 -0 libkstapp.pro
A plotmarkerstab.cpp [License: GPL (v2+)]
A plotmarkerstab.h [License: GPL (v2+)]
A plotmarkerstab.ui
M +7 -0 plotrenderitemdialog.cpp
M +2 -0 plotrenderitemdialog.h
--- branches/work/kst/portto4/kst/src/libkstapp/dialog.cpp #770970:770971
@@ -62,6 +62,15 @@
}
+DialogPage* Dialog::getDialogPage(const QString& pageName) {
+ QList<QListWidgetItem*> items = _listWidget->findItems(pageName, Qt::MatchExactly);
+ if (!items.empty()) {
+ return _itemHash.value(items[0]);
+ }
+ return 0;
+}
+
+
void Dialog::setVisible(bool visible) {
_listWidget->setVisible(_itemHash.count() > 1);
--- branches/work/kst/portto4/kst/src/libkstapp/dialog.h #770970:770971
@@ -34,6 +34,7 @@
void addDialogPage(DialogPage *page);
void removeDialogPage(DialogPage *page);
+ DialogPage* getDialogPage(const QString &pageName);
Q_SIGNALS:
void ok();
--- branches/work/kst/portto4/kst/src/libkstapp/libkstapp.pro #770970:770971
@@ -88,6 +88,7 @@
stroketab.cpp \
svgitem.cpp \
tabwidget.cpp \
+ plotmarkerstab.cpp \
vectordialog.cpp \
vectoreditordialog.cpp \
vectormodel.cpp \
@@ -170,6 +171,7 @@
svgitem.h \
stroketab.h \
tabwidget.h \
+ plotmarkerstab.h \
vectordialog.h \
vectoreditordialog.h \
vectormodel.h \
@@ -216,6 +218,7 @@
powerspectrumtab.ui \
scalartab.ui \
stroketab.ui \
+ plotmarkerstab.ui \
vectoreditordialog.ui \
vectortab.ui \
viewmanager.ui \
--- branches/work/kst/portto4/kst/src/libkstapp/plotrenderitemdialog.cpp #770970:770971
@@ -17,6 +17,7 @@
#include "objectstore.h"
#include "mainwindow.h"
#include "document.h"
+#include "plotmarkerstab.h"
#include "curve.h"
#include "curvedialog.h"
@@ -43,6 +44,12 @@
addRelations();
setupContent();
+
+ DialogPage* appearancePage = getDialogPage(tr("Appearance"));
+ if (appearancePage) {
+ _plotMarkersTab = new PlotMarkersTab(this);
+ appearancePage->addDialogTab(_plotMarkersTab);
+ }
}
--- branches/work/kst/portto4/kst/src/libkstapp/plotrenderitemdialog.h #770970:770971
@@ -19,6 +19,7 @@
namespace Kst {
class ContentTab;
+class PlotMarkersTab;
class ObjectStore;
class PlotRenderItem;
@@ -40,6 +41,7 @@
private:
ContentTab *_contentTab;
+ PlotMarkersTab* _plotMarkersTab;
PlotRenderItem* _plotItem;
QList<DialogPage*> _relationPages;
More information about the Kst
mailing list