[Kst] kdeextragear-2/kst/kst
George Staikos
staikos at kde.org
Mon Sep 22 06:53:36 CEST 2003
CVS commit by staikos:
Add an option to clean up the layout.
CCMAIL: 64686 at bugs.kde.org
M +7 -0 kstview.cpp 1.44
M +2 -0 kstview.h 1.20
--- kdeextragear-2/kst/kst/kstview.cpp #1.43:1.44
@@ -109,4 +109,5 @@ KstView::KstView(KstApp *parent, const c
popupmenu->insertItem(i18n("&Delete Plot"), this, SLOT(deleteCurrentPlot()), Key_Delete);
+ popupmenu->insertItem(i18n("Clean Up Layout"), this, SLOT(cleanupLayout()));
_addMenu = new KPopupMenu(this);
@@ -1270,4 +1271,10 @@ void KstView::deleteCurrentPlot() {
update();
}
+}
+
+void KstView::cleanupLayout() {
+ needrecreate = true;
+ KST::plotList.arrangePlots(KST::plotList.getPlotCols());
+ update();
}
--- kdeextragear-2/kst/kst/kstview.h #1.19:1.20
@@ -89,4 +89,6 @@ public slots:
void printToGraphicsFile(const QString &Filename, int w, int h);
+ void cleanupLayout();
+
public:
KstMouse *MouseInfo;
More information about the Kst
mailing list