#include "jkqtpbaseplotterstyle.h" #include #include #include "jkqtcommon/jkqtptools.h" JKQTBasePlotterStyle::JKQTBasePlotterStyle(): debugShowRegionBoxes(false), debugRegionLineWidth(3), CSVdecimalSeparator("."), CSVcommentInitializer("# "), plotBorderTop(5), plotBorderLeft(5), plotBorderBottom(5), plotBorderRight(5), defaultGraphWidth(2), defaultGraphSymbolSize(10), defaultGraphSymbolLineWidth(1), widgetBackgroundBrush(QApplication::palette().color(QPalette::Window)), exportBackgroundBrush(QColor("white")), plotBackgroundBrush(QColor("white")), plotFrameColor(QColor("black")), plotFrameWidth(2), plotFrameRounding(0), plotFrameVisible(false), plotLabelFontName(QApplication::font().family()+"+XITS"), plotLabelFontSize(12), useAntiAliasingForSystem(true), useAntiAliasingForGraphs(true), useAntiAliasingForText(true), defaultTextColor(QColor("black")), defaultFontSize(8), defaultFontName(QApplication::font().family()+"+XITS"), defaultPalette(JKQTPMathImageMATLAB), graphFillColorDerivationMode(JKQTPFFCMLighterColor), graphErrorColorDerivationMode(JKQTPFFCMDarkerColor), graphErrorFillColorDerivationMode(JKQTPFFCMEvenLighterColor), keyStyle(*this), xAxisStyle(*this), yAxisStyle(*this), rightColorbarAxisStyle(*this), topColorbarAxisStyle(*this) { /* keyStyle=JKQTPKeyStyle(*this); xAxisStyle=JKQTPCoordinateAxisStyle(*this); yAxisStyle=JKQTPCoordinateAxisStyle(*this); rightColorbarAxisStyle=JKQTPCoordinateAxisStyle(*this); topColorbarAxisStyle=JKQTPCoordinateAxisStyle(*this); */ defaultGraphColors<(i)); defaultGraphFillStyles<=0) { defaultGraphColors.push_back(jkqtp_String2QColor(settings.value(group+"default_graph_styles/color"+QString::number(id), jkqtp_QColor2String(QColor("red"))).toString())); } id=readID(k, group+"default_graph_styles/line_style"); if (id>=0) { defaultGraphPenStyles.push_back(jkqtp_String2QPenStyle(settings.value(group+"default_graph_styles/line_style"+QString::number(id), jkqtp_QPenStyle2String(Qt::SolidLine)).toString())); } id=readID(k, group+"default_graph_styles/symbol"); if (id>=0) { defaultGraphSymbols.push_back(String2JKQTPGraphSymbols(settings.value(group+"default_graph_styles/symbol"+QString::number(id), JKQTPGraphSymbols2String(JKQTPCross)).toString())); } id=readID(k, group+"default_graph_styles/fill_style"); if (id>=0) { defaultGraphFillStyles.push_back(jkqtp_String2QBrushStyle(settings.value(group+"default_graph_styles/fill_style"+QString::number(id), jkqtp_QBrushStyle2String(Qt::SolidPattern)).toString())); } } if (defaultGraphColors.size()==0) { for (int i=defaultGraphColors.size(); i