[Kst] branches/work/kst/portto4/kst/src/libkstapp
Nicolas Brisset
nicolas.brisset at eurocopter.com
Thu May 5 22:45:27 CEST 2011
SVN commit 1230521 by brisset:
Small improvement (I hope) to the toolbars, with a more prominent "Create Plot" button.
Wished by Gregoire, and I think it's a rather good idea...
The only thing I'm still wondering is how toolbars will look by default, as here it is not in the location I expected until I have moved it and
exited kst (as toolbar status is saved on exit). I may have to look further...
M +5 -2 mainwindow.cpp
M +1 -0 mainwindow.h
--- branches/work/kst/portto4/kst/src/libkstapp/mainwindow.cpp #1230520:1230521
@@ -1418,10 +1418,13 @@
_modeToolBar->addAction(_yOnlyZoomAct);
_modeToolBar->addAction(_layoutModeAct);
+ _plotLayoutToolBar = addToolBar(tr("Plot Layout"));
+ _plotLayoutToolBar->setObjectName("Plot Layout Toolbar");
+ _plotLayoutToolBar->addAction(_createSharedAxisBoxAct);
+ _plotLayoutToolBar->addAction(_createPlotAct);
+
_annotationToolBar = addToolBar(tr("Advanced Layout"));
_annotationToolBar->setObjectName("Advanced Layout Toolbar");
- _annotationToolBar->addAction(_createSharedAxisBoxAct);
- _annotationToolBar->addSeparator();
_annotationToolBar->addAction(_createLabelAct);
_annotationToolBar->addAction(_createBoxAct);
_annotationToolBar->addAction(_createCircleAct);
--- branches/work/kst/portto4/kst/src/libkstapp/mainwindow.h #1230520:1230521
@@ -209,6 +209,7 @@
QToolBar *_editToolBar;
QToolBar *_rangeToolBar;
QToolBar *_modeToolBar;
+ QToolBar *_plotLayoutToolBar;
QToolBar *_toolsToolBar;
QToolBar *_annotationToolBar;
More information about the Kst
mailing list