diff options
author | kris <kris@FreeBSD.org> | 2004-03-07 06:57:48 +0800 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 2004-03-07 06:57:48 +0800 |
commit | 2d98463837a1e0c6da04af6b18bb97c2facf6832 (patch) | |
tree | 271c02ceed9c2efa57612d89e871e444865e9d50 /math/xgfe/files/patch-xgfeMain.cpp | |
parent | 858410a415be7dbea866cff4c9189e9cfa82f7ca (diff) | |
download | freebsd-ports-gnome-2d98463837a1e0c6da04af6b18bb97c2facf6832.tar.gz freebsd-ports-gnome-2d98463837a1e0c6da04af6b18bb97c2facf6832.tar.zst freebsd-ports-gnome-2d98463837a1e0c6da04af6b18bb97c2facf6832.zip |
Update to xgfe 2.1, switch to QT 3, respect NOPORTDOCS, fix build
with gcc 3.
Submitted by: Marius Strobl <marius@alchemy.franken.de>
PR: ports/59024
Diffstat (limited to 'math/xgfe/files/patch-xgfeMain.cpp')
-rw-r--r-- | math/xgfe/files/patch-xgfeMain.cpp | 115 |
1 files changed, 115 insertions, 0 deletions
diff --git a/math/xgfe/files/patch-xgfeMain.cpp b/math/xgfe/files/patch-xgfeMain.cpp new file mode 100644 index 000000000000..5b3378dbc41e --- /dev/null +++ b/math/xgfe/files/patch-xgfeMain.cpp @@ -0,0 +1,115 @@ +diff -u xgfeMain.cpp.orig xgfeMain.cpp +--- xgfeMain.cpp.orig Wed Sep 30 04:26:25 1998 ++++ xgfeMain.cpp Thu Oct 30 21:42:04 2003 +@@ -62,40 +62,40 @@ + gnuInt->setFuncPlotType("splot"); + + // save filename +- gnuInt->setPlotFilename(filenameEdit->text()); ++ gnuInt->setPlotFilename(string(filenameEdit->text())); + + // save function +- gnuInt->setPlotFunction(functionEdit->text()); ++ gnuInt->setPlotFunction(string(functionEdit->text())); + + // save x and y variable names +- gnuInt->setXVariableName(varX->text()); +- gnuInt->setYVariableName(varY->text()); ++ gnuInt->setXVariableName(string(varX->text())); ++ gnuInt->setYVariableName(string(varY->text())); + + // save x,y,z ranges +- gnuInt->setXRangeStart(xStart->text()); +- gnuInt->setXRangeEnd(xEnd->text()); +- gnuInt->setYRangeStart(yStart->text()); +- gnuInt->setYRangeEnd(yEnd->text()); +- gnuInt->setZRangeStart(zStart->text()); +- gnuInt->setZRangeEnd(zEnd->text()); ++ gnuInt->setXRangeStart(string(xStart->text())); ++ gnuInt->setXRangeEnd(string(xEnd->text())); ++ gnuInt->setYRangeStart(string(yStart->text())); ++ gnuInt->setYRangeEnd(string(yEnd->text())); ++ gnuInt->setZRangeStart(string(zStart->text())); ++ gnuInt->setZRangeEnd(string(zEnd->text())); + + // set x,y,z axis labels +- gnuInt->setXlabel(xLabel->text()); +- gnuInt->setXOffset_X(XLabelOffset_X->text()); +- gnuInt->setXOffset_Y(XLabelOffset_Y->text()); +- +- gnuInt->setYlabel(yLabel->text()); +- gnuInt->setYOffset_X(YLabelOffset_X->text()); +- gnuInt->setYOffset_Y(YLabelOffset_Y->text()); +- +- gnuInt->setZlabel(zLabel->text()); +- gnuInt->setZOffset_X(ZLabelOffset_X->text()); +- gnuInt->setZOffset_Y(ZLabelOffset_Y->text()); ++ gnuInt->setXlabel(string(xLabel->text())); ++ gnuInt->setXOffset_X(string(XLabelOffset_X->text())); ++ gnuInt->setXOffset_Y(string(XLabelOffset_Y->text())); ++ ++ gnuInt->setYlabel(string(yLabel->text())); ++ gnuInt->setYOffset_X(string(YLabelOffset_X->text())); ++ gnuInt->setYOffset_Y(string(YLabelOffset_Y->text())); ++ ++ gnuInt->setZlabel(string(zLabel->text())); ++ gnuInt->setZOffset_X(string(ZLabelOffset_X->text())); ++ gnuInt->setZOffset_Y(string(ZLabelOffset_Y->text())); + + // save title +- gnuInt->setTitle(titleLabel->text()); +- gnuInt->setTitleOffset_X(titleOffset_X->text()); +- gnuInt->setTitleOffset_Y(titleOffset_Y->text()); ++ gnuInt->setTitle(string(titleLabel->text())); ++ gnuInt->setTitleOffset_X(string(titleOffset_X->text())); ++ gnuInt->setTitleOffset_Y(string(titleOffset_Y->text())); + + // filename option is checked + if (filenameCB->isChecked() == TRUE) +@@ -130,30 +130,30 @@ + gnuInt->setReplotFlag(1); // set replot flag to true + + // save filename +- gnuInt->setPlotFilename(filenameEdit->text()); ++ gnuInt->setPlotFilename(string(filenameEdit->text())); + + // save function +- gnuInt->setPlotFunction(functionEdit->text()); ++ gnuInt->setPlotFunction(string(functionEdit->text())); + + // don't set ranges because they can't be reset in a replot + + // set x,y,z axis labels +- gnuInt->setXlabel(xLabel->text()); +- gnuInt->setXOffset_X(XLabelOffset_X->text()); +- gnuInt->setXOffset_Y(XLabelOffset_Y->text()); +- +- gnuInt->setYlabel(yLabel->text()); +- gnuInt->setYOffset_X(YLabelOffset_X->text()); +- gnuInt->setYOffset_Y(YLabelOffset_Y->text()); +- +- gnuInt->setZlabel(zLabel->text()); +- gnuInt->setZOffset_X(ZLabelOffset_X->text()); +- gnuInt->setZOffset_Y(ZLabelOffset_Y->text()); ++ gnuInt->setXlabel(string(xLabel->text())); ++ gnuInt->setXOffset_X(string(XLabelOffset_X->text())); ++ gnuInt->setXOffset_Y(string(XLabelOffset_Y->text())); ++ ++ gnuInt->setYlabel(string(yLabel->text())); ++ gnuInt->setYOffset_X(string(YLabelOffset_X->text())); ++ gnuInt->setYOffset_Y(string(YLabelOffset_Y->text())); ++ ++ gnuInt->setZlabel(string(zLabel->text())); ++ gnuInt->setZOffset_X(string(ZLabelOffset_X->text())); ++ gnuInt->setZOffset_Y(string(ZLabelOffset_Y->text())); + + // save title +- gnuInt->setTitle(titleLabel->text()); +- gnuInt->setTitleOffset_X(titleOffset_X->text()); +- gnuInt->setTitleOffset_Y(titleOffset_Y->text()); ++ gnuInt->setTitle(string(titleLabel->text())); ++ gnuInt->setTitleOffset_X(string(titleOffset_X->text())); ++ gnuInt->setTitleOffset_Y(string(titleOffset_Y->text())); + + if (filenameCB->isChecked() == TRUE) // filename option is checked + { |