[Kst] extragear/graphics/kst/kst
George Staikos
staikos at kde.org
Mon Jun 20 02:26:49 CEST 2005
SVN commit 427226 by staikos:
disable transparency for 2dplot. It's way too messy to implement efficiently
in this class at this point.
M +31 -0 kst2dplot.cpp
M +1 -0 kst2dplot.h
--- trunk/extragear/graphics/kst/kst/kst2dplot.cpp #427225:427226
@@ -7760,104 +7760,126 @@
_xTicksInPlot = yes;
}
+
void Kst2DPlot::setXTicksOutPlot(bool yes) {
_xTicksOutPlot = yes;
}
+
void Kst2DPlot::setYTicksInPlot(bool yes) {
_yTicksInPlot = yes;
}
+
void Kst2DPlot::setYTicksOutPlot(bool yes) {
_yTicksOutPlot = yes;
}
+
bool Kst2DPlot::xTicksInPlot() const {
return _xTicksInPlot;
}
+
bool Kst2DPlot::xTicksOutPlot() const {
return _xTicksOutPlot;
}
+
bool Kst2DPlot::yTicksInPlot() const {
return _yTicksInPlot;
}
+
bool Kst2DPlot::yTicksOutPlot() const {
return _yTicksOutPlot;
}
+
bool Kst2DPlot::suppressTop() const {
return _suppressTop;
}
+
bool Kst2DPlot::suppressBottom() const {
return _suppressBottom;
}
+
void Kst2DPlot::setSuppressTop(bool yes) {
_suppressTop = yes;
}
+
void Kst2DPlot::setSuppressBottom(bool yes) {
_suppressBottom = yes;
}
+
void Kst2DPlot::setXTransformedExp(const QString& exp) {
_xTransformedExp = exp;
_xTransformed = !exp.stripWhiteSpace().isEmpty();
}
+
void Kst2DPlot::setYTransformedExp(const QString& exp) {
_yTransformedExp = exp;
_yTransformed = !exp.stripWhiteSpace().isEmpty();
}
+
const QString& Kst2DPlot::xTransformedExp() const {
return _xTransformedExp;
}
+
const QString& Kst2DPlot::yTransformedExp() const {
return _yTransformedExp;
}
+
void Kst2DPlot::pushCurveHasPoints(bool yes) {
for (KstBaseCurveList::Iterator i = Curves.begin(); i != Curves.end(); ++i) {
(*i)->pushHasPoints(yes);
}
}
+
void Kst2DPlot::popCurveHasPoints() {
for (KstBaseCurveList::Iterator i = Curves.begin(); i != Curves.end(); ++i) {
(*i)->popHasPoints();
}
}
+
void Kst2DPlot::pushCurveHasLines(bool yes) {
for (KstBaseCurveList::Iterator i = Curves.begin(); i != Curves.end(); ++i) {
(*i)->pushHasLines(yes);
}
}
+
void Kst2DPlot::popCurveHasLines() {
for (KstBaseCurveList::Iterator i = Curves.begin(); i != Curves.end(); ++i) {
(*i)->popHasLines();
}
}
+
void Kst2DPlot::pushCurvePointDensity(int pointDensity) {
for (KstBaseCurveList::Iterator i = Curves.begin(); i != Curves.end(); ++i) {
(*i)->pushPointDensity(pointDensity);
}
}
+
void Kst2DPlot::popCurvePointDensity() {
for (KstBaseCurveList::Iterator i = Curves.begin(); i != Curves.end(); ++i) {
(*i)->popPointDensity();
}
}
+
void Kst2DPlot::changeToMonochrome(int pointStylePriority, int lineStylePriority, int lineWidthPriority,
int maxLineWidth, int pointDensity, bool forPrint) {
// change plot background to white, foreground to black,
@@ -7941,23 +7963,32 @@
return true;
}
+
void Kst2DPlot::setXReversed(bool yes) {
_xReversed = yes;
}
+
void Kst2DPlot::setYReversed(bool yes) {
_yReversed = yes;
}
+
bool Kst2DPlot::xReversed() const {
return _xReversed;
}
+
bool Kst2DPlot::yReversed() const {
return _yReversed;
}
+void Kst2DPlot::setTransparent(bool) {
+ // Do not allow transparency
+}
+
+
#undef LABEL_PRECISION
#include "kst2dplot.moc"
--- trunk/extragear/graphics/kst/kst/kst2dplot.h #427225:427226
@@ -228,6 +228,7 @@
virtual void wheelEvent(QWidget *view, QWheelEvent *e);
virtual void setHasFocus(bool hasFocus);
virtual void removeFocus(QPainter& p);
+ virtual void setTransparent(bool transparent);
void cancelZoom(QWidget *view);
bool moveSelfHorizontal(bool left);
More information about the Kst
mailing list