NEW: Using Q_SIGNALS/Q_SLOTS instead of signals/slots MOC-keywords ... this allows for interoperability with other signals/slots frameworks

This commit is contained in:
jkriege2 2023-07-22 14:26:02 +02:00
parent 3e4f039efb
commit 677985ae35
51 changed files with 112 additions and 111 deletions

View File

@ -83,6 +83,7 @@ Changes, compared to \ref page_whatsnew_V4_0_0 "v4.0.0" include:
<li>NEW: secondary axes: added functionality to manage additional secondary axes in a JKQTPBasePlotter and to select which x-/y-Axis to use for drawing a JKQTPPlotElement</li> <li>NEW: secondary axes: added functionality to manage additional secondary axes in a JKQTPBasePlotter and to select which x-/y-Axis to use for drawing a JKQTPPlotElement</li>
<li>NEW: You can use additional syntax derived from CCS to define colors in style.ini.files (or when using jkqtp_String2QColor() ): You can use full CSS-color syntax with functions <code>"rgb(R,G,B)"</code>, <code>"rgba(...)"</code>, <code>"hsl(...)"</code>, <code>"hsv(...)"</code>, <code>"gray(...)"</code>, <code>"green(...)"</code>, <code>"red(...)"</code>, <code>"blue(...)"</code>.</li> <li>NEW: You can use additional syntax derived from CCS to define colors in style.ini.files (or when using jkqtp_String2QColor() ): You can use full CSS-color syntax with functions <code>"rgb(R,G,B)"</code>, <code>"rgba(...)"</code>, <code>"hsl(...)"</code>, <code>"hsv(...)"</code>, <code>"gray(...)"</code>, <code>"green(...)"</code>, <code>"red(...)"</code>, <code>"blue(...)"</code>.</li>
<li>NEW: several new color palettes (especially stepped/categorial palettes), e.g. JKQTPMathImageColorPalette::JKQTPMathImageOkabeIto_STEP, JKQTPMathImageColorPalette::JKQTPMathImageIBMColorBlindSafe, JKQTPMathImageColorPalette::JKQTPMathImageIBMColorBlindSafe_STEP, ...</li> <li>NEW: several new color palettes (especially stepped/categorial palettes), e.g. JKQTPMathImageColorPalette::JKQTPMathImageOkabeIto_STEP, JKQTPMathImageColorPalette::JKQTPMathImageIBMColorBlindSafe, JKQTPMathImageColorPalette::JKQTPMathImageIBMColorBlindSafe_STEP, ...</li>
<li>NEW: Using Q_SIGNALS/Q_SLOTS instead of signals/slots MOC-keywords ... this allows for interoperability with other signals/slots frameworks, thanks to <a href="https://github.com/nickmontini">user:nickmontini</a> for the proposal</li>
</ul></li> </ul></li>
<li>JKQTMathText:<ul> <li>JKQTMathText:<ul>

View File

@ -14,7 +14,7 @@ class ContourPlotAnimator: public QObject {
ContourPlotAnimator(JKQTPDatastore* ds_, JKQTPlotter* pplot_, int NX_, int NY_,double w_, double h_, double dx_, size_t cPotential_); ContourPlotAnimator(JKQTPDatastore* ds_, JKQTPlotter* pplot_, int NX_, int NY_,double w_, double h_, double dx_, size_t cPotential_);
void start(int delayMS); void start(int delayMS);
protected slots: protected Q_SLOTS:
void step(); void step();
protected: protected:
double angle; double angle;

View File

@ -17,9 +17,9 @@ class TestMain : public QWidget {
explicit TestMain(QWidget *parent = 0); explicit TestMain(QWidget *parent = 0);
virtual ~TestMain(); virtual ~TestMain();
signals: Q_SIGNALS:
public slots: public Q_SLOTS:
void enableRed(bool enabled); void enableRed(bool enabled);
void enableGreen(bool enabled); void enableGreen(bool enabled);
void enableBlue(bool enabled); void enableBlue(bool enabled);

View File

@ -22,7 +22,7 @@ class TestForm : public QWidget
explicit TestForm(QWidget *parent = 0); explicit TestForm(QWidget *parent = 0);
~TestForm(); ~TestForm();
public slots: public Q_SLOTS:
void updateMath(); void updateMath();
private: private:
Ui::TestForm *ui; Ui::TestForm *ui;

View File

@ -31,9 +31,9 @@ class TestWidgetBarcharts : public QWidget
public: public:
explicit TestWidgetBarcharts(QWidget *parent = 0); explicit TestWidgetBarcharts(QWidget *parent = 0);
signals: Q_SIGNALS:
public slots: public Q_SLOTS:
void setBarchartLogLog(bool checked); void setBarchartLogLog(bool checked);

View File

@ -32,9 +32,9 @@ class TestWidgetContourPlots : public QWidget
public: public:
explicit TestWidgetContourPlots(QWidget *parent = 0); explicit TestWidgetContourPlots(QWidget *parent = 0);
signals: Q_SIGNALS:
public slots: public Q_SLOTS:
protected: protected:

View File

@ -27,9 +27,9 @@ class TestWidgetEmptyPlot : public QWidget
public: public:
explicit TestWidgetEmptyPlot(QWidget *parent = 0); explicit TestWidgetEmptyPlot(QWidget *parent = 0);
signals: Q_SIGNALS:
public slots: public Q_SLOTS:
protected: protected:

View File

@ -30,9 +30,9 @@ class TestWidgetFunctionPlots : public QWidget
public: public:
explicit TestWidgetFunctionPlots(QWidget *parent = 0); explicit TestWidgetFunctionPlots(QWidget *parent = 0);
signals: Q_SIGNALS:
public slots: public Q_SLOTS:
void setPFuncStyle(); void setPFuncStyle();

View File

@ -29,9 +29,9 @@ class TestWidgetGeometry : public QWidget
public: public:
explicit TestWidgetGeometry(QWidget *parent = 0); explicit TestWidgetGeometry(QWidget *parent = 0);
signals: Q_SIGNALS:
public slots: public Q_SLOTS:
protected: protected:

View File

@ -29,9 +29,9 @@ class TestWidgetGraphs : public QWidget
public: public:
explicit TestWidgetGraphs(QWidget *parent = nullptr); explicit TestWidgetGraphs(QWidget *parent = nullptr);
signals: Q_SIGNALS:
protected slots: protected Q_SLOTS:
void setErrorLineStyle(int index); void setErrorLineStyle(int index);
void setESSymbol(int index); void setESSymbol(int index);

View File

@ -27,9 +27,9 @@ class TestWidgetImages : public QWidget
public: public:
explicit TestWidgetImages(QWidget *parent = 0); explicit TestWidgetImages(QWidget *parent = 0);
signals: Q_SIGNALS:
public slots: public Q_SLOTS:
void setImgPalette(int index); void setImgPalette(int index);

View File

@ -29,9 +29,9 @@ class TestWidgetLogGraphs : public QWidget
public: public:
explicit TestWidgetLogGraphs(QWidget *parent = 0); explicit TestWidgetLogGraphs(QWidget *parent = 0);
signals: Q_SIGNALS:
public slots: public Q_SLOTS:
protected: protected:

View File

@ -31,9 +31,9 @@ class TestWidgetParamScatterPlots : public QWidget
public: public:
explicit TestWidgetParamScatterPlots(QWidget *parent = 0); explicit TestWidgetParamScatterPlots(QWidget *parent = 0);
signals: Q_SIGNALS:
public slots: public Q_SLOTS:
void setPSPSymmErrors(bool checked); void setPSPSymmErrors(bool checked);

View File

@ -26,9 +26,9 @@ class TestWidgetPeaksPlots : public QWidget
public: public:
explicit TestWidgetPeaksPlots(QWidget *parent = nullptr); explicit TestWidgetPeaksPlots(QWidget *parent = nullptr);
signals: Q_SIGNALS:
public slots: public Q_SLOTS:
void setDrawBaseline(bool checked); void setDrawBaseline(bool checked);
void setYPeaks(bool checked); void setYPeaks(bool checked);

View File

@ -32,9 +32,9 @@ class TestWidgetRGBImages : public QWidget
public: public:
explicit TestWidgetRGBImages(QWidget *parent = 0); explicit TestWidgetRGBImages(QWidget *parent = 0);
signals: Q_SIGNALS:
public slots: public Q_SLOTS:
void setRGBColorBars(bool checked); void setRGBColorBars(bool checked);
void setRGBMode1(int mode); void setRGBMode1(int mode);

View File

@ -16,9 +16,9 @@ class TestMain : public QTabWidget
public: public:
explicit TestMain(QWidget *parent = 0); explicit TestMain(QWidget *parent = 0);
signals: Q_SIGNALS:
public slots: public Q_SLOTS:
protected: protected:

View File

@ -15,7 +15,7 @@ public:
virtual ~JKQTPExampleApplication(); virtual ~JKQTPExampleApplication();
void addExportStepFunctor(const std::function<void(void)>& f); void addExportStepFunctor(const std::function<void(void)>& f);
int exec(); int exec();
public slots: public Q_SLOTS:
void notifyReadyForScreenshot(); void notifyReadyForScreenshot();
protected: protected:
bool waitForScreenshotReady; bool waitForScreenshotReady;

View File

@ -17,9 +17,9 @@ class MandelbrotMainWindow : public QMainWindow
public: public:
explicit MandelbrotMainWindow(QWidget *parent = nullptr); explicit MandelbrotMainWindow(QWidget *parent = nullptr);
~MandelbrotMainWindow(); ~MandelbrotMainWindow();
signals: Q_SIGNALS:
void readyForScreenshot(); void readyForScreenshot();
protected slots: protected Q_SLOTS:
void paletteChanged(JKQTPMathImageColorPalette pal); void paletteChanged(JKQTPMathImageColorPalette pal);
void plotZoomChangedLocally(double newxmin, double newxmax, double newymin, double newymax, JKQTPlotter* sender); void plotZoomChangedLocally(double newxmin, double newxmax, double newymin, double newymax, JKQTPlotter* sender);
void maxIterationsChanged(int maxIter); void maxIterationsChanged(int maxIter);

View File

@ -19,7 +19,7 @@ class TestMultiplotUI : public QDialog
explicit TestMultiplotUI(JKQTPlotter* plotTop_, JKQTPlotter* plotBot_, JKQTPlotter* plotRight_, QGridLayout* plotLayout_, QWidget *parent = nullptr); explicit TestMultiplotUI(JKQTPlotter* plotTop_, JKQTPlotter* plotBot_, JKQTPlotter* plotRight_, QGridLayout* plotLayout_, QWidget *parent = nullptr);
~TestMultiplotUI(); ~TestMultiplotUI();
protected slots: protected Q_SLOTS:
void updatePlot(); void updatePlot();
private: private:
JKQTPlotter* plotTop; JKQTPlotter* plotTop;

View File

@ -36,7 +36,7 @@ class SpeedTestPlot: public JKQTPlotter {
SpeedTestPlot(); SpeedTestPlot();
virtual ~SpeedTestPlot(); virtual ~SpeedTestPlot();
protected slots: protected Q_SLOTS:
void plotNewData(); void plotNewData();
void updateDataSize(size_t newSize, bool updatePlots=true); void updateDataSize(size_t newSize, bool updatePlots=true);
static double addOutlier(double prob, double height); static double addOutlier(double prob, double height);

View File

@ -11,7 +11,7 @@ public:
virtual ~JKQTPStylePlainTextEdit(); virtual ~JKQTPStylePlainTextEdit();
protected: protected:
void contextMenuEvent(QContextMenuEvent *event) override; void contextMenuEvent(QContextMenuEvent *event) override;
protected slots: protected Q_SLOTS:
void changeCurrentLineValueTo(const QString &targetText); void changeCurrentLineValueTo(const QString &targetText);
void addTransparencyToCurrentLineValue(const QString &targetText); void addTransparencyToCurrentLineValue(const QString &targetText);
void addMathFontSpecifier(const QString &newMath); void addMathFontSpecifier(const QString &newMath);

View File

@ -18,7 +18,7 @@ class TestStyling : public QMainWindow
explicit TestStyling(QWidget *parent = nullptr); explicit TestStyling(QWidget *parent = nullptr);
~TestStyling(); ~TestStyling();
protected slots: protected Q_SLOTS:
void on_btnUpdate_clicked(); void on_btnUpdate_clicked();
void on_btnLoad_clicked(const QString &filename=QString()); void on_btnLoad_clicked(const QString &filename=QString());
void on_btnSave_clicked(); void on_btnSave_clicked();

View File

@ -17,7 +17,7 @@ class FormWithJKQTPlotter : public QWidget
public: public:
explicit FormWithJKQTPlotter(QWidget *parent = nullptr); explicit FormWithJKQTPlotter(QWidget *parent = nullptr);
~FormWithJKQTPlotter(); ~FormWithJKQTPlotter();
protected slots: protected Q_SLOTS:
void on_chkLogX_toggled(bool checked); void on_chkLogX_toggled(bool checked);
void on_chkLogY_toggled(bool checked); void on_chkLogY_toggled(bool checked);
void on_btnReplot_clicked(); void on_btnReplot_clicked();

View File

@ -18,9 +18,9 @@ class TestUserInteraction : public QMainWindow
public: public:
explicit TestUserInteraction(QWidget *parent = nullptr); explicit TestUserInteraction(QWidget *parent = nullptr);
signals: Q_SIGNALS:
public slots: public Q_SLOTS:
void setMouseMoveAction(int index); void setMouseMoveAction(int index);
void setLeftMouseAction(int index); void setLeftMouseAction(int index);
void setLeftCtrlMouseAction(int index); void setLeftCtrlMouseAction(int index);

View File

@ -948,7 +948,7 @@ class JKQTFASTPLOTTER_LIB_EXPORT JKQTFastPlotter :
/** \brief draw the contents onto any <a href="http://doc.qt.io/qt-5/qpainter.html">QPainter</a>, starting at (0,0), returns the size of the whole plot in \a size, if supplied with the supplied\a background color */ /** \brief draw the contents onto any <a href="http://doc.qt.io/qt-5/qpainter.html">QPainter</a>, starting at (0,0), returns the size of the whole plot in \a size, if supplied with the supplied\a background color */
void draw(QPainter* painter, QColor background, QSize* size); void draw(QPainter* painter, QColor background, QSize* size);
signals: Q_SIGNALS:
/** \brief emitted whenever the graph sizes (borders, plotWidth, plotHeight) change*/ /** \brief emitted whenever the graph sizes (borders, plotWidth, plotHeight) change*/
void plotterSizesChanged(); void plotterSizesChanged();
/** \brief emitted whenever the graph is replotted */ /** \brief emitted whenever the graph is replotted */
@ -967,7 +967,7 @@ class JKQTFASTPLOTTER_LIB_EXPORT JKQTFastPlotter :
void mouseDragged(double x_start, double y_start, double x_end, double y_end, Qt::KeyboardModifiers modifiers); void mouseDragged(double x_start, double y_start, double x_end, double y_end, Qt::KeyboardModifiers modifiers);
/** \brief emitted after the mouse has been dragged with the left button clicked */ /** \brief emitted after the mouse has been dragged with the left button clicked */
void mouseDragFinished(double x_start, double y_start, double x_end, double y_end, Qt::KeyboardModifiers modifiers); void mouseDragFinished(double x_start, double y_start, double x_end, double y_end, Qt::KeyboardModifiers modifiers);
public slots: public Q_SLOTS:
/** \brief copy the current plot image to the clipboard */ /** \brief copy the current plot image to the clipboard */
void copyImage(); void copyImage();
/** \brief replot everything (slowest possible plotting) */ /** \brief replot everything (slowest possible plotting) */
@ -1031,7 +1031,7 @@ class JKQTFASTPLOTTER_LIB_EXPORT JKQTFPPlot: public QObject {
/** \brief start a replot of the parent widget */ /** \brief start a replot of the parent widget */
void replot(); void replot();
public slots: public Q_SLOTS:
void setVisible(bool visible) { this->visible=visible; replot(); } void setVisible(bool visible) { this->visible=visible; replot(); }
}; };
@ -1487,7 +1487,7 @@ class JKQTFASTPLOTTER_LIB_EXPORT JKQTFPXRangePlot: public JKQTFPPlot {
{ {
return this->showCenterline; return this->showCenterline;
} }
public slots: public Q_SLOTS:
void setCenterline(int centerline) { void setCenterline(int centerline) {
if (this->centerline!=centerline) { if (this->centerline!=centerline) {
this->centerline=centerline; this->centerline=centerline;
@ -1651,7 +1651,7 @@ class JKQTFASTPLOTTER_LIB_EXPORT JKQTFPYRangePlot: public JKQTFPPlot {
{ {
return this->showCenterline; return this->showCenterline;
} }
public slots: public Q_SLOTS:
void setCenterline(int centerline) { void setCenterline(int centerline) {
if (this->centerline!=centerline) { if (this->centerline!=centerline) {
this->centerline=centerline; this->centerline=centerline;
@ -2570,7 +2570,7 @@ class JKQTFASTPLOTTER_LIB_EXPORT JKQTFPimagePlot: public JKQTFPPlot {
this->height=height; this->height=height;
replot(); replot();
} }
public slots: public Q_SLOTS:
void setRotation(int rotation) { void setRotation(int rotation) {
if (this->rotation!=rotation) { if (this->rotation!=rotation) {
this->rotation=rotation; this->rotation=rotation;
@ -2977,7 +2977,7 @@ class JKQTFASTPLOTTER_LIB_EXPORT JKQTFPRGBImageOverlayPlot: public JKQTFPPlot {
void setImage(void* imageRed, JKQTFPImageFormat imageFormatRed, int width, int height, double xmin, double xmax, double ymin, double ymax); void setImage(void* imageRed, JKQTFPImageFormat imageFormatRed, int width, int height, double xmin, double xmax, double ymin, double ymax);
void setImage(void* imageRed, JKQTFPImageFormat imageFormatRed, void* imageGreen, JKQTFPImageFormat imageFormatGreen, int width, int height, double xmin, double xmax, double ymin, double ymax); void setImage(void* imageRed, JKQTFPImageFormat imageFormatRed, void* imageGreen, JKQTFPImageFormat imageFormatGreen, int width, int height, double xmin, double xmax, double ymin, double ymax);
void setImage(void* imageRed, JKQTFPImageFormat imageFormatRed, void* imageGreen, JKQTFPImageFormat imageFormatGreen, void* imageBlue, JKQTFPImageFormat imageFormatBlue, int width, int height, double xmin, double xmax, double ymin, double ymax); void setImage(void* imageRed, JKQTFPImageFormat imageFormatRed, void* imageGreen, JKQTFPImageFormat imageFormatGreen, void* imageBlue, JKQTFPImageFormat imageFormatBlue, int width, int height, double xmin, double xmax, double ymin, double ymax);
public slots: public Q_SLOTS:
inline void setRotation(int rotation) { inline void setRotation(int rotation) {
if (this->rotation!=rotation) { if (this->rotation!=rotation) {
this->rotation=rotation; this->rotation=rotation;
@ -3238,7 +3238,7 @@ class JKQTFASTPLOTTER_LIB_EXPORT JKQTFPimageOverlayPlot: public JKQTFPPlot {
inline QColor getColor() const { inline QColor getColor() const {
return this->color; return this->color;
} }
public slots: public Q_SLOTS:
inline void setRotation(int rotation) { inline void setRotation(int rotation) {
if (this->rotation!=rotation) { if (this->rotation!=rotation) {
this->rotation=rotation; this->rotation=rotation;
@ -3370,7 +3370,7 @@ class JKQTFASTPLOTTER_LIB_EXPORT JKQTFPQScaleBarXPlot: public JKQTFPPlot {
{ {
return this->position; return this->position;
} }
public slots: public Q_SLOTS:
void setPosition(int pos) { void setPosition(int pos) {
setPosition(static_cast<Position>(pos)); setPosition(static_cast<Position>(pos));
} }

View File

@ -115,7 +115,7 @@ class JKQTPLOTTER_LIB_EXPORT JKQTPBarVerticalGraph: public JKQTPBarGraphBase {
*/ */
virtual bool getYMinMax(double& miny, double& maxy, double& smallestGreaterZero) override; virtual bool getYMinMax(double& miny, double& maxy, double& smallestGreaterZero) override;
public slots: public Q_SLOTS:
protected: protected:
@ -159,7 +159,7 @@ class JKQTPLOTTER_LIB_EXPORT JKQTPBarVerticalErrorGraph: public JKQTPBarVertical
/** \brief returns whether the errors of the bars are symmetric */ /** \brief returns whether the errors of the bars are symmetric */
bool getBarErrorSymmetric() const; bool getBarErrorSymmetric() const;
public slots: public Q_SLOTS:
/** \brief sets whether the errors of the bars are symmetric */ /** \brief sets whether the errors of the bars are symmetric */
void setBarErrorSymmetric(bool __value); void setBarErrorSymmetric(bool __value);
/** \brief sets the error style of the bar */ /** \brief sets the error style of the bar */
@ -256,7 +256,7 @@ class JKQTPLOTTER_LIB_EXPORT JKQTPBarHorizontalGraph: public JKQTPBarGraphBase {
virtual int getKeyColumn() const override; virtual int getKeyColumn() const override;
/** \brief returns the column used as "value" for the current graph (typically this call getXColumn(), but for horizontal graphs like filled curves or barcharts it may call getYColumn() ) */ /** \brief returns the column used as "value" for the current graph (typically this call getXColumn(), but for horizontal graphs like filled curves or barcharts it may call getYColumn() ) */
virtual int getValueColumn() const override; virtual int getValueColumn() const override;
public slots: public Q_SLOTS:
/** \brief sets the column used as "key" for the current graph (typically this call setXColumn(), but for horizontal graphs like filled curves or barcharts it may call setYColumn() ) */ /** \brief sets the column used as "key" for the current graph (typically this call setXColumn(), but for horizontal graphs like filled curves or barcharts it may call setYColumn() ) */
virtual void setKeyColumn(int __value) override; virtual void setKeyColumn(int __value) override;
/** \brief sets the column used as "value" for the current graph (typically this call setXColumn(), but for horizontal graphs like filled curves or barcharts it may call setYColumn() ) */ /** \brief sets the column used as "value" for the current graph (typically this call setXColumn(), but for horizontal graphs like filled curves or barcharts it may call setYColumn() ) */
@ -306,7 +306,7 @@ class JKQTPLOTTER_LIB_EXPORT JKQTPBarHorizontalErrorGraph: public JKQTPBarHorizo
/** \brief returns whether the errors of the bars are symmetric */ /** \brief returns whether the errors of the bars are symmetric */
bool getBarErrorSymmetric() const; bool getBarErrorSymmetric() const;
public slots: public Q_SLOTS:
/** \brief sets whether the errors of the bars are symmetric */ /** \brief sets whether the errors of the bars are symmetric */
void setBarErrorSymmetric(bool __value); void setBarErrorSymmetric(bool __value);
/** \brief sets the error style of the bar */ /** \brief sets the error style of the bar */

View File

@ -170,7 +170,7 @@ class JKQTPLOTTER_LIB_EXPORT JKQTPBarGraphBase: public JKQTPXYBaselineGraph, pub
/** \copydoc m_baselineStyle */ /** \copydoc m_baselineStyle */
const JKQTPGraphLineStyleMixin& baselineStyle() const; const JKQTPGraphLineStyleMixin& baselineStyle() const;
public slots: public Q_SLOTS:
/** \copydoc m_fillMode */ /** \copydoc m_fillMode */
void setFillMode(JKQTPBarGraphBase::FillMode mode); void setFillMode(JKQTPBarGraphBase::FillMode mode);

View File

@ -95,7 +95,7 @@ class JKQTPLOTTER_LIB_EXPORT JKQTPBoxplotGraphBase: public JKQTPGraph, public JK
/** \copydoc useRelativeBoxWidth */ /** \copydoc useRelativeBoxWidth */
bool getUseRelativeBoxWidth() const; bool getUseRelativeBoxWidth() const;
public slots: public Q_SLOTS:
/** \brief set the color of the graph (colors all elements, based on the given color \a c ) */ /** \brief set the color of the graph (colors all elements, based on the given color \a c ) */
virtual void setColor(QColor c); virtual void setColor(QColor c);
/** \copydoc sortData */ /** \copydoc sortData */
@ -228,7 +228,7 @@ class JKQTPLOTTER_LIB_EXPORT JKQTPBoxplotElementBase: public JKQTPPlotElement, p
/** \copydoc medianConfidenceIntervalWidth */ /** \copydoc medianConfidenceIntervalWidth */
double getMedianConfidenceIntervalWidth() const; double getMedianConfidenceIntervalWidth() const;
public slots: public Q_SLOTS:
/** \brief set the color of the graph (colors all elements, based on the given color \a c ) */ /** \brief set the color of the graph (colors all elements, based on the given color \a c ) */
virtual void setColor(QColor c); virtual void setColor(QColor c);

View File

@ -83,7 +83,7 @@ class JKQTPLOTTER_LIB_EXPORT JKQTPEvaluatedFunctionWithErrorsGraphDrawingBase: p
public slots: public Q_SLOTS:
/** \brief set color, fill color and error color at the same time */ /** \brief set color, fill color and error color at the same time */
void setColor(QColor c); void setColor(QColor c);

View File

@ -122,7 +122,7 @@ class JKQTPLOTTER_LIB_EXPORT JKQTPEvaluatedFunctionGraphBase: public JKQTPGraph
double getDataCleanupMaxAllowedAngleDegree() const; double getDataCleanupMaxAllowedAngleDegree() const;
/** \copydoc displaySamplePoints */ /** \copydoc displaySamplePoints */
bool getDisplaySamplePoints() const; bool getDisplaySamplePoints() const;
public slots: public Q_SLOTS:
/** \copydoc minSamples */ /** \copydoc minSamples */
void setMinSamples(const unsigned int & __value); void setMinSamples(const unsigned int & __value);
/** \copydoc maxRefinementDegree */ /** \copydoc maxRefinementDegree */
@ -254,7 +254,7 @@ public:
/** \copydoc JKQTPGraph::usesColumn() */ /** \copydoc JKQTPGraph::usesColumn() */
virtual bool usesColumn(int c) const override; virtual bool usesColumn(int c) const override;
public slots: public Q_SLOTS:
/** \brief sets the error params as a pointer to an internal COPY of the given vector (not the data of the vector, as then the size would be unknown!!!) */ /** \brief sets the error params as a pointer to an internal COPY of the given vector (not the data of the vector, as then the size would be unknown!!!) */
void setErrorParams(const QVector<double>& errorParams); void setErrorParams(const QVector<double>& errorParams);
/** \copydoc errorParameterColumn */ /** \copydoc errorParameterColumn */

View File

@ -86,7 +86,7 @@ public:
/** \copydoc tmax */ /** \copydoc tmax */
double getTMax() const; double getTMax() const;
public slots: public Q_SLOTS:
/** \copydoc tmin */ /** \copydoc tmin */
void setTMin(double val); void setTMin(double val);
/** \copydoc tmax */ /** \copydoc tmax */

View File

@ -65,7 +65,7 @@ public:
/** \copydoc m_fillMode */ /** \copydoc m_fillMode */
FillMode getFillMode() const; FillMode getFillMode() const;
public slots: public Q_SLOTS:
/** \brief set line-color, fill color and symbol color */ /** \brief set line-color, fill color and symbol color */
void setColor(QColor c); void setColor(QColor c);
/** \copydoc m_fillMode */ /** \copydoc m_fillMode */
@ -227,7 +227,7 @@ class JKQTPLOTTER_LIB_EXPORT JKQTPFilledCurveYGraph: public JKQTPFilledCurveGrap
virtual int getKeyColumn() const override; virtual int getKeyColumn() const override;
/** \brief returns the column used as "value" for the current graph (typically this call getXColumn(), but for horizontal graphs like filled curves or barcharts it may call getYColumn() ) */ /** \brief returns the column used as "value" for the current graph (typically this call getXColumn(), but for horizontal graphs like filled curves or barcharts it may call getYColumn() ) */
virtual int getValueColumn() const override; virtual int getValueColumn() const override;
public slots: public Q_SLOTS:
/** \brief sets the column used as "key" for the current graph (typically this call setXColumn(), but for horizontal graphs like filled curves or barcharts it may call setYColumn() ) */ /** \brief sets the column used as "key" for the current graph (typically this call setXColumn(), but for horizontal graphs like filled curves or barcharts it may call setYColumn() ) */
virtual void setKeyColumn(int __value) override; virtual void setKeyColumn(int __value) override;
/** \brief sets the column used as "value" for the current graph (typically this call setXColumn(), but for horizontal graphs like filled curves or barcharts it may call setYColumn() ) */ /** \brief sets the column used as "value" for the current graph (typically this call setXColumn(), but for horizontal graphs like filled curves or barcharts it may call setYColumn() ) */

View File

@ -156,7 +156,7 @@ class JKQTPLOTTER_LIB_EXPORT JKQTPGeoSymbol: public JKQTPPlotAnnotationElement,
virtual void drawKeyMarker(JKQTPEnhancedPainter& painter, QRectF& rect) override; virtual void drawKeyMarker(JKQTPEnhancedPainter& painter, QRectF& rect) override;
/** \brief returns the color to be used for the key label */ /** \brief returns the color to be used for the key label */
virtual QColor getKeyLabelColor() const override; virtual QColor getKeyLabelColor() const override;
public slots: public Q_SLOTS:
/** set the symbol color and symbol fill color */ /** set the symbol color and symbol fill color */
virtual void setColor(QColor c); virtual void setColor(QColor c);
@ -265,7 +265,7 @@ class JKQTPLOTTER_LIB_EXPORT JKQTPGeoText: public JKQTPPlotAnnotationElement, pu
virtual void drawKeyMarker(JKQTPEnhancedPainter& painter, QRectF& rect) override; virtual void drawKeyMarker(JKQTPEnhancedPainter& painter, QRectF& rect) override;
/** \brief returns the color to be used for the key label */ /** \brief returns the color to be used for the key label */
virtual QColor getKeyLabelColor() const override; virtual QColor getKeyLabelColor() const override;
public slots: public Q_SLOTS:
/** \brief set line and fill color */ /** \brief set line and fill color */
virtual void setColor(QColor c) ; virtual void setColor(QColor c) ;

View File

@ -94,7 +94,7 @@ class JKQTPLOTTER_LIB_EXPORT JKQTPImageBase: public JKQTPGraph {
double getWidth() const; double getWidth() const;
/** \copydoc height */ /** \copydoc height */
double getHeight() const; double getHeight() const;
public slots: public Q_SLOTS:
/** \copydoc x */ /** \copydoc x */
void setX(double __value); void setX(double __value);
@ -407,7 +407,7 @@ class JKQTPLOTTER_LIB_EXPORT JKQTPImage: public JKQTPImageBase {
virtual void setParent(JKQTBasePlotter* parent) override; virtual void setParent(JKQTBasePlotter* parent) override;
/** \copydoc JKQTPImageBase::setTitle() */ /** \copydoc JKQTPImageBase::setTitle() */
virtual void setTitle(const QString& title) override; virtual void setTitle(const QString& title) override;
public slots: public Q_SLOTS:
/** \brief saves the image (asking the user for a filename, if \a filename is empty) /** \brief saves the image (asking the user for a filename, if \a filename is empty)
* *
* \param filename name of the file that should be create (if empty, a file save dialog is shown) * \param filename name of the file that should be create (if empty, a file save dialog is shown)
@ -564,7 +564,7 @@ class JKQTPLOTTER_LIB_EXPORT JKQTPMathImage: public JKQTPMathImageBase, public J
public: public:
/** \copydoc JKQTPImageBase::setTitle() */ /** \copydoc JKQTPImageBase::setTitle() */
virtual void setTitle(const QString& title) override; virtual void setTitle(const QString& title) override;
public slots: public Q_SLOTS:
/** \brief saves the image (asking the user for a filename, if \a filename is empty) /** \brief saves the image (asking the user for a filename, if \a filename is empty)
* *
* \param filename name of the file that should be create (if empty, a file save dialog is shown) * \param filename name of the file that should be create (if empty, a file save dialog is shown)

View File

@ -118,7 +118,7 @@ class JKQTPLOTTER_LIB_EXPORT JKQTPOverlayImage: public JKQTPImageBase {
virtual void setTitle(const QString& title) override; virtual void setTitle(const QString& title) override;
/** \copydoc JKQTPImageBase::setParent() */ /** \copydoc JKQTPImageBase::setParent() */
virtual void setParent(JKQTBasePlotter* parent) override; virtual void setParent(JKQTBasePlotter* parent) override;
public slots: public Q_SLOTS:
/** \brief save the plotted image as a file with \a filename and format \a outputFormat */ /** \brief save the plotted image as a file with \a filename and format \a outputFormat */
void saveImagePlotAsImage(const QString &filename=QString(""), const QByteArray &outputFormat=QByteArray()); void saveImagePlotAsImage(const QString &filename=QString(""), const QByteArray &outputFormat=QByteArray());
/** \brief copy the plotted image as an image into the clipboard */ /** \brief copy the plotted image as an image into the clipboard */

View File

@ -466,7 +466,7 @@ class JKQTPLOTTER_LIB_EXPORT JKQTPRGBMathImage: public JKQTPMathImageBase {
public: public:
/** \copydoc JKQTPImageBase::setTitle() */ /** \copydoc JKQTPImageBase::setTitle() */
virtual void setTitle(const QString& title) override; virtual void setTitle(const QString& title) override;
public slots: public Q_SLOTS:
/** \brief save the plotted image as a file with \a filename and format \a outputFormat */ /** \brief save the plotted image as a file with \a filename and format \a outputFormat */
void saveImagePlotAsImage(const QString &filename=QString(""), const QByteArray &outputFormat=QByteArray()); void saveImagePlotAsImage(const QString &filename=QString(""), const QByteArray &outputFormat=QByteArray());
/** \brief copy the plotted image as an image into the clipboard */ /** \brief copy the plotted image as an image into the clipboard */

View File

@ -57,7 +57,7 @@ public:
const JKQTPGraphLineStyleMixin& baselineStyle() const; const JKQTPGraphLineStyleMixin& baselineStyle() const;
public slots: public Q_SLOTS:
/** \brief color of symbols and impulses in one call */ /** \brief color of symbols and impulses in one call */
virtual void setColor(QColor c); virtual void setColor(QColor c);
@ -131,7 +131,7 @@ public:
/** \copydoc JKQTPXYGraph::getYMinMax() */ /** \copydoc JKQTPXYGraph::getYMinMax() */
virtual bool getYMinMax(double& miny, double& maxy, double& smallestGreaterZero) override; virtual bool getYMinMax(double& miny, double& maxy, double& smallestGreaterZero) override;
public slots: public Q_SLOTS:
/** \brief sets the column used as "key" for the current graph (typically this call setXColumn(), but for horizontal graphs like filled curves or barcharts it may call setYColumn() ) */ /** \brief sets the column used as "key" for the current graph (typically this call setXColumn(), but for horizontal graphs like filled curves or barcharts it may call setYColumn() ) */
virtual void setKeyColumn(int __value) override; virtual void setKeyColumn(int __value) override;
/** \brief sets the column used as "value" for the current graph (typically this call setXColumn(), but for horizontal graphs like filled curves or barcharts it may call setYColumn() ) */ /** \brief sets the column used as "value" for the current graph (typically this call setXColumn(), but for horizontal graphs like filled curves or barcharts it may call setYColumn() ) */
@ -170,7 +170,7 @@ class JKQTPLOTTER_LIB_EXPORT JKQTPImpulsesHorizontalErrorGraph: public JKQTPImpu
/** \brief returns whether the errors of the bars are symmetric */ /** \brief returns whether the errors of the bars are symmetric */
bool getErrorSymmetric() const; bool getErrorSymmetric() const;
public slots: public Q_SLOTS:
/** \brief sets whether the errors of the bars are symmetric */ /** \brief sets whether the errors of the bars are symmetric */
void setErrorSymmetric(bool __value); void setErrorSymmetric(bool __value);
/** \brief sets the error style of the bar */ /** \brief sets the error style of the bar */
@ -250,7 +250,7 @@ class JKQTPLOTTER_LIB_EXPORT JKQTPImpulsesVerticalErrorGraph: public JKQTPImpuls
/** \brief returns whether the errors of the bars are symmetric */ /** \brief returns whether the errors of the bars are symmetric */
bool getErrorSymmetric() const; bool getErrorSymmetric() const;
public slots: public Q_SLOTS:
/** \brief sets whether the errors of the bars are symmetric */ /** \brief sets whether the errors of the bars are symmetric */
void setErrorSymmetric(bool __value); void setErrorSymmetric(bool __value);
/** \brief sets the error style of the bar */ /** \brief sets the error style of the bar */

View File

@ -67,7 +67,7 @@ public:
/** \copydoc dependentVariableName */ /** \copydoc dependentVariableName */
QString getDependentVariableName() const; QString getDependentVariableName() const;
public slots: public Q_SLOTS:
/** \copydoc errorFunction */ /** \copydoc errorFunction */
void setErrorFunction(const QString & __value); void setErrorFunction(const QString & __value);
/** \copydoc function */ /** \copydoc function */

View File

@ -98,7 +98,7 @@ class JKQTPLOTTER_LIB_EXPORT JKQTPRangeBase: public JKQTPPlotElement, public JKQ
bool getFillRange() const; bool getFillRange() const;
/** \copydoc plotRangeLines */ /** \copydoc plotRangeLines */
bool getPlotRangeLines() const; bool getPlotRangeLines() const;
public slots: public Q_SLOTS:
/** \brief set the color of the graph (all lines and filling) */ /** \brief set the color of the graph (all lines and filling) */
virtual void setColor(QColor c); virtual void setColor(QColor c);

View File

@ -69,7 +69,7 @@ public:
Q_PROPERTY(bool drawSymbols READ getDrawSymbols WRITE setDrawSymbols) Q_PROPERTY(bool drawSymbols READ getDrawSymbols WRITE setDrawSymbols)
Q_PROPERTY(JKQTPSpecialLineType specialLineType READ getSpecialLineType WRITE setSpecialLineType) Q_PROPERTY(JKQTPSpecialLineType specialLineType READ getSpecialLineType WRITE setSpecialLineType)
public slots: public Q_SLOTS:
/** \brief set line-color, fill color and symbol color */ /** \brief set line-color, fill color and symbol color */
void setColor(QColor c); void setColor(QColor c);
/** \copydoc m_drawSymbols */ /** \copydoc m_drawSymbols */
@ -132,7 +132,7 @@ class JKQTPLOTTER_LIB_EXPORT JKQTPSpecialLineVerticalGraph: public JKQTPSpecialL
virtual int getKeyColumn() const override; virtual int getKeyColumn() const override;
/** \brief returns the column used as "value" for the current graph (typically this call getXColumn(), but for horizontal graphs like filled curves or barcharts it may call getYColumn() ) */ /** \brief returns the column used as "value" for the current graph (typically this call getXColumn(), but for horizontal graphs like filled curves or barcharts it may call getYColumn() ) */
virtual int getValueColumn() const override; virtual int getValueColumn() const override;
public slots: public Q_SLOTS:
/** \brief sets the column used as "key" for the current graph (typically this call setXColumn(), but for horizontal graphs like filled curves or barcharts it may call setYColumn() ) */ /** \brief sets the column used as "key" for the current graph (typically this call setXColumn(), but for horizontal graphs like filled curves or barcharts it may call setYColumn() ) */
virtual void setKeyColumn(int __value) override; virtual void setKeyColumn(int __value) override;
/** \brief sets the column used as "value" for the current graph (typically this call setXColumn(), but for horizontal graphs like filled curves or barcharts it may call setYColumn() ) */ /** \brief sets the column used as "value" for the current graph (typically this call setXColumn(), but for horizontal graphs like filled curves or barcharts it may call setYColumn() ) */

View File

@ -86,7 +86,7 @@ public:
/** \copydoc violinFrequencyColumn */ /** \copydoc violinFrequencyColumn */
int getViolinFrequencyColumn() const; int getViolinFrequencyColumn() const;
public slots: public Q_SLOTS:
/** \brief set the color of the graph (colors all elements, based on the given color \a c ) */ /** \brief set the color of the graph (colors all elements, based on the given color \a c ) */
virtual void setColor(QColor c); virtual void setColor(QColor c);
/** \copydoc violinFrequencyColumn */ /** \copydoc violinFrequencyColumn */

View File

@ -45,9 +45,9 @@ class JKQTPLOTTER_LIB_EXPORT JKQTPMathImageColorPaletteComboBox: public QComboBo
JKQTPMathImageColorPalette getColorPalette() const; JKQTPMathImageColorPalette getColorPalette() const;
void setColorPalette(JKQTPMathImageColorPalette palette); void setColorPalette(JKQTPMathImageColorPalette palette);
void setCurrentColorPalette(JKQTPMathImageColorPalette palette); void setCurrentColorPalette(JKQTPMathImageColorPalette palette);
signals: Q_SIGNALS:
void currentPaletteChanged(JKQTPMathImageColorPalette palette); void currentPaletteChanged(JKQTPMathImageColorPalette palette);
protected slots: protected Q_SLOTS:
void intIndexChanged(int i); void intIndexChanged(int i);
}; };
@ -113,11 +113,11 @@ class JKQTPLOTTER_LIB_EXPORT JKQTPKeyPositionComboBox: public QComboBox {
JKQTPKeyPosition getPosition() const; JKQTPKeyPosition getPosition() const;
void setPosition(JKQTPKeyPosition position); void setPosition(JKQTPKeyPosition position);
signals: Q_SIGNALS:
void currentPositionChanged(JKQTPKeyPosition pos); void currentPositionChanged(JKQTPKeyPosition pos);
protected: protected:
void addPosition(JKQTPKeyPosition position, const QString& name, const QIcon& icon=QIcon()); void addPosition(JKQTPKeyPosition position, const QString& name, const QIcon& icon=QIcon());
protected slots: protected Q_SLOTS:
void posChanged(int index); void posChanged(int index);
}; };
@ -135,11 +135,11 @@ class JKQTPLOTTER_LIB_EXPORT JKQTPKeyLayoutComboBox: public QComboBox {
JKQTPKeyLayout getKeyLayout() const; JKQTPKeyLayout getKeyLayout() const;
void setKeyLayout(JKQTPKeyLayout layout); void setKeyLayout(JKQTPKeyLayout layout);
signals: Q_SIGNALS:
void currentLayoutChanged(JKQTPKeyLayout layout); void currentLayoutChanged(JKQTPKeyLayout layout);
protected: protected:
void addKeyLayout(JKQTPKeyLayout layout, const QString& name); void addKeyLayout(JKQTPKeyLayout layout, const QString& name);
protected slots: protected Q_SLOTS:
void currentIndexChangedP(int index); void currentIndexChangedP(int index);
}; };

View File

@ -35,9 +35,9 @@ class JKQTPLOTTER_LIB_EXPORT JKQTPEnhancedDoubleSpinBox : public QDoubleSpinBox
public: public:
JKQTPEnhancedDoubleSpinBox(QWidget* parent=nullptr); JKQTPEnhancedDoubleSpinBox(QWidget* parent=nullptr);
~JKQTPEnhancedDoubleSpinBox(); ~JKQTPEnhancedDoubleSpinBox();
signals: Q_SIGNALS:
void editingFinished(double value); void editingFinished(double value);
protected slots: protected Q_SLOTS:
void intEditingFinished(); void intEditingFinished();
}; };
@ -53,9 +53,9 @@ class JKQTPLOTTER_LIB_EXPORT JKQTPEnhancedSpinBox : public QSpinBox {
public: public:
JKQTPEnhancedSpinBox(QWidget* parent=nullptr); JKQTPEnhancedSpinBox(QWidget* parent=nullptr);
~JKQTPEnhancedSpinBox(); ~JKQTPEnhancedSpinBox();
signals: Q_SIGNALS:
void editingFinished(int value); void editingFinished(int value);
protected slots: protected Q_SLOTS:
void intEditingFinished(); void intEditingFinished();
}; };

View File

@ -83,10 +83,10 @@ class JKQTPLOTTER_LIB_EXPORT JKQTPEnhancedTableView : public QTableView {
/** \brief return a QAction that prints the table using the methode print() \see print() */ /** \brief return a QAction that prints the table using the methode print() \see print() */
inline QAction* getActionPrint() { return printAction; } inline QAction* getActionPrint() { return printAction; }
#endif #endif
signals: Q_SIGNALS:
/** \brief emitted when a key is pressed in the context of this widget */ /** \brief emitted when a key is pressed in the context of this widget */
void keyPressed(int key, Qt::KeyboardModifiers modifiers, const QString& text); void keyPressed(int key, Qt::KeyboardModifiers modifiers, const QString& text);
public slots: public Q_SLOTS:
/** \brief copy the selected cells' contents to the clipboard, so it can be pasted into Excel */ /** \brief copy the selected cells' contents to the clipboard, so it can be pasted into Excel */
void copySelectionToExcel(int copyrole=Qt::EditRole, bool storeHead=true); void copySelectionToExcel(int copyrole=Qt::EditRole, bool storeHead=true);
/** \brief copy the selected cells' contents to the clipboard, so it can be pasted into Excel, without header */ /** \brief copy the selected cells' contents to the clipboard, so it can be pasted into Excel, without header */

View File

@ -47,7 +47,7 @@ public:
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override; QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override;
bool setData(const QModelIndex & index, const QVariant & value, int role = Qt::EditRole) override; bool setData(const QModelIndex & index, const QVariant & value, int role = Qt::EditRole) override;
Qt::ItemFlags flags(const QModelIndex & index) const override ; Qt::ItemFlags flags(const QModelIndex & index) const override ;
public slots: public Q_SLOTS:
void plotUpdated(); void plotUpdated();
private: private:
JKQTBasePlotter* m_plotter; JKQTBasePlotter* m_plotter;

View File

@ -44,7 +44,7 @@ class JKQTPLOTTER_LIB_EXPORT JKVanishQToolBar: public QToolBar {
JKVanishQToolBar(QWidget* parent=nullptr); JKVanishQToolBar(QWidget* parent=nullptr);
/** \brief is the auto-vanishing feature of this toolbar activated? */ /** \brief is the auto-vanishing feature of this toolbar activated? */
bool doesToolbarVanish() const; bool doesToolbarVanish() const;
public slots: public Q_SLOTS:
/** \brief enable or disable the auto-vanishing feature of this toolbar */ /** \brief enable or disable the auto-vanishing feature of this toolbar */
void setToolbarVanishesEnabled(bool __value); void setToolbarVanishesEnabled(bool __value);
protected: protected:

View File

@ -624,7 +624,7 @@ class JKQTPLOTTER_LIB_EXPORT JKQTBasePlotter: public QObject {
/** \brief sort the graphs, using functor \a compareLess to find whether a first graph shall be before (i.e. less) than a second graph. After completing the operation, the graph is updated */ /** \brief sort the graphs, using functor \a compareLess to find whether a first graph shall be before (i.e. less) than a second graph. After completing the operation, the graph is updated */
void sortGraphs(const std::function<bool(const JKQTPPlotElement* , const JKQTPPlotElement* )>& compareLess); void sortGraphs(const std::function<bool(const JKQTPPlotElement* , const JKQTPPlotElement* )>& compareLess);
public slots: public Q_SLOTS:
/** \brief remove all plots /** \brief remove all plots
* *
* \param deleteGraphs if set \c true (default) the graph objects will also be deleted * \param deleteGraphs if set \c true (default) the graph objects will also be deleted
@ -1471,7 +1471,7 @@ class JKQTPLOTTER_LIB_EXPORT JKQTBasePlotter: public QObject {
signals: Q_SIGNALS:
/** \brief signal: emitted whenever the user selects a new x-y zoom range (by mouse) */ /** \brief signal: emitted whenever the user selects a new x-y zoom range (by mouse) */
void zoomChangedLocally(double newxmin, double newxmax, double newymin, double newymax, JKQTBasePlotter* sender); void zoomChangedLocally(double newxmin, double newxmax, double newymin, double newymax, JKQTBasePlotter* sender);
@ -1517,7 +1517,7 @@ class JKQTPLOTTER_LIB_EXPORT JKQTBasePlotter: public QObject {
void afterPrinting(); void afterPrinting();
public slots: public Q_SLOTS:
/** \brief sets the width of the plot widget /** \brief sets the width of the plot widget
@ -2132,7 +2132,7 @@ class JKQTPLOTTER_LIB_EXPORT JKQTBasePlotter: public QObject {
double getPaintMagnification() const; double getPaintMagnification() const;
protected slots: protected Q_SLOTS:
/** \brief internal function for print/export preview /** \brief internal function for print/export preview
* \internal * \internal
*/ */

View File

@ -468,7 +468,7 @@ class JKQTPLOTTER_LIB_EXPORT JKQTPCoordinateAxis: public QObject {
/** \brief calls x2p() of the other axis (or returns \c NAN if the other axis does not exist */ /** \brief calls x2p() of the other axis (or returns \c NAN if the other axis does not exist */
virtual double parentOtherAxisX2P(double x) const =0; virtual double parentOtherAxisX2P(double x) const =0;
public slots: public Q_SLOTS:
/** \brief set range of plot axis */ /** \brief set range of plot axis */
void setRange(double amin, double amax); void setRange(double amin, double amax);
/** \brief set absolute range of plot axis */ /** \brief set absolute range of plot axis */
@ -1025,7 +1025,7 @@ class JKQTPLOTTER_LIB_EXPORT JKQTPVerticalIndependentAxis: public JKQTPVerticalA
virtual double getParentOtheraxisOffset() const override; virtual double getParentOtheraxisOffset() const override;
/** copydoc JKQTPCoordinateAxis::parentOtherAxisX2P() */ /** copydoc JKQTPCoordinateAxis::parentOtherAxisX2P() */
virtual double parentOtherAxisX2P(double x) const override; virtual double parentOtherAxisX2P(double x) const override;
public slots: public Q_SLOTS:
/** \brief set the axis offset */ /** \brief set the axis offset */
virtual void setAxisOffset(double __value) ; virtual void setAxisOffset(double __value) ;
/** \brief set the axis width */ /** \brief set the axis width */
@ -1206,7 +1206,7 @@ class JKQTPLOTTER_LIB_EXPORT JKQTPHorizontalIndependentAxis: public JKQTPHorizon
virtual double getParentOtheraxisOffset() const override; virtual double getParentOtheraxisOffset() const override;
/** copydoc JKQTPCoordinateAxis::parentOtherAxisX2P() */ /** copydoc JKQTPCoordinateAxis::parentOtherAxisX2P() */
virtual double parentOtherAxisX2P(double x) const override; virtual double parentOtherAxisX2P(double x) const override;
public slots: public Q_SLOTS:
/** \brief set the axis offset */ /** \brief set the axis offset */
virtual void setAxisOffset(double __value); virtual void setAxisOffset(double __value);
/** \brief set the axis width */ /** \brief set the axis width */

View File

@ -2489,7 +2489,7 @@ class JKQTPLOTTER_LIB_EXPORT JKQTPDatastoreModel: public QAbstractTableModel {
virtual int rowCount(const QModelIndex &parent = QModelIndex()) const override; virtual int rowCount(const QModelIndex &parent = QModelIndex()) const override;
virtual int columnCount(const QModelIndex &parent = QModelIndex()) const override; virtual int columnCount(const QModelIndex &parent = QModelIndex()) const override;
public slots: public Q_SLOTS:
void reloadModel(); void reloadModel();
protected: protected:

View File

@ -110,7 +110,7 @@ class JKQTPLOTTER_LIB_EXPORT JKQTPPlotElement: public QObject {
Q_PROPERTY(bool visible READ isVisible WRITE setVisible) Q_PROPERTY(bool visible READ isVisible WRITE setVisible)
Q_PROPERTY(QString title READ getTitle WRITE setTitle) Q_PROPERTY(QString title READ getTitle WRITE setTitle)
Q_PROPERTY(bool highlighted READ isHighlighted WRITE setHighlighted) Q_PROPERTY(bool highlighted READ isHighlighted WRITE setHighlighted)
public slots: public Q_SLOTS:
/** \brief sets whether the graph is visible in the plot */ /** \brief sets whether the graph is visible in the plot */
void setVisible(bool __value); void setVisible(bool __value);
/** \brief sets whether the graph is drawn in a highlighted style in the plot */ /** \brief sets whether the graph is drawn in a highlighted style in the plot */
@ -499,7 +499,7 @@ public:
DrawMode getDrawMode() const; DrawMode getDrawMode() const;
Q_PROPERTY(DrawMode drawMode READ getDrawMode WRITE setDrawMode) Q_PROPERTY(DrawMode drawMode READ getDrawMode WRITE setDrawMode)
public slots: public Q_SLOTS:
/** \copybrief m_drawMode /** \copybrief m_drawMode
* *
* \param mode the DrawMode to use from now on * \param mode the DrawMode to use from now on
@ -544,7 +544,7 @@ public:
/** \brief default wirtual destructor */ /** \brief default wirtual destructor */
virtual ~JKQTPPlotAnnotationElement() ; virtual ~JKQTPPlotAnnotationElement() ;
public slots: public Q_SLOTS:
protected: protected:
@ -630,7 +630,7 @@ public:
* \see See JKQTPPlotElement::hitTest() for details on the function definition! * \see See JKQTPPlotElement::hitTest() for details on the function definition!
*/ */
virtual double hitTest(const QPointF &posSystem, QPointF* closestSpotSystem=nullptr, QString* label=nullptr, HitTestMode mode=HitTestXY) const override; virtual double hitTest(const QPointF &posSystem, QPointF* closestSpotSystem=nullptr, QString* label=nullptr, HitTestMode mode=HitTestXY) const override;
public slots: public Q_SLOTS:
/** \brief sets xColumn and yColumn at the same time */ /** \brief sets xColumn and yColumn at the same time */
void setXYColumns(size_t xCol, size_t yCol); void setXYColumns(size_t xCol, size_t yCol);
/** \brief sets xColumn and yColumn at the same time */ /** \brief sets xColumn and yColumn at the same time */
@ -713,7 +713,7 @@ public:
double getBaseline() const; double getBaseline() const;
Q_PROPERTY(double baseline READ getBaseline WRITE setBaseline) Q_PROPERTY(double baseline READ getBaseline WRITE setBaseline)
public slots: public Q_SLOTS:
/** \copydoc m_baseline */ /** \copydoc m_baseline */
void setBaseline(double __value); void setBaseline(double __value);
@ -770,7 +770,7 @@ public:
virtual double hitTest(const QPointF &posSystem, QPointF* closestSpotSystem=nullptr, QString* label=nullptr, HitTestMode mode=HitTestXY) const override; virtual double hitTest(const QPointF &posSystem, QPointF* closestSpotSystem=nullptr, QString* label=nullptr, HitTestMode mode=HitTestXY) const override;
Q_PROPERTY(int yColumn2 READ getYColumn2 WRITE setYColumn2) Q_PROPERTY(int yColumn2 READ getYColumn2 WRITE setYColumn2)
public slots: public Q_SLOTS:
/** \brief sets xColumn, yColumn and yColumn2 at the same time */ /** \brief sets xColumn, yColumn and yColumn2 at the same time */
void setXYYColumns(size_t xCol, size_t yCol, size_t y2Col); void setXYYColumns(size_t xCol, size_t yCol, size_t y2Col);
/** \brief sets xColumn, yColumn and yColumn2 at the same time */ /** \brief sets xColumn, yColumn and yColumn2 at the same time */
@ -831,7 +831,7 @@ public:
virtual double hitTest(const QPointF &posSystem, QPointF* closestSpotSystem=nullptr, QString* label=nullptr, HitTestMode mode=HitTestXY) const override; virtual double hitTest(const QPointF &posSystem, QPointF* closestSpotSystem=nullptr, QString* label=nullptr, HitTestMode mode=HitTestXY) const override;
Q_PROPERTY(int xColumn2 READ getXColumn2 WRITE setXColumn2) Q_PROPERTY(int xColumn2 READ getXColumn2 WRITE setXColumn2)
public slots: public Q_SLOTS:
/** \brief sets xColumn, yColumn and xColumn2 at the same time */ /** \brief sets xColumn, yColumn and xColumn2 at the same time */
void setXXYColumns(size_t xCol, size_t x2Col, size_t yCol); void setXXYColumns(size_t xCol, size_t x2Col, size_t yCol);
/** \brief sets xColumn, yColumn and xColumn2 at the same time */ /** \brief sets xColumn, yColumn and xColumn2 at the same time */
@ -913,7 +913,7 @@ class JKQTPLOTTER_LIB_EXPORT JKQTPSingleColumnGraph: public JKQTPGraph {
Q_PROPERTY(int dataColumn READ getDataColumn WRITE setDataColumn) Q_PROPERTY(int dataColumn READ getDataColumn WRITE setDataColumn)
Q_PROPERTY(DataDirection dataDirection READ getDataDirection WRITE setDataDirection) Q_PROPERTY(DataDirection dataDirection READ getDataDirection WRITE setDataDirection)
public slots: public Q_SLOTS:
/** \copydoc dataColumn */ /** \copydoc dataColumn */
void setDataColumn(int __value); void setDataColumn(int __value);
/** \copydoc dataColumn */ /** \copydoc dataColumn */

View File

@ -912,7 +912,7 @@ class JKQTPLOTTER_LIB_EXPORT JKQTPlotter: public QWidget {
plotter->copyPixelImage(showPreview); plotter->copyPixelImage(showPreview);
} }
public slots: public Q_SLOTS:
/** \brief set the current plot magnification */ /** \brief set the current plot magnification */
void setMagnification(double m); void setMagnification(double m);
/** \brief sets x/ymin and x/ymax to the supplied values and replots the graph (zoom operation!) */ /** \brief sets x/ymin and x/ymax to the supplied values and replots the graph (zoom operation!) */
@ -1226,7 +1226,7 @@ class JKQTPLOTTER_LIB_EXPORT JKQTPlotter: public QWidget {
* \see setX(), setX(), zoomToFit(), setAbsoluteXY(), JKQTBasePlotter::setXY() * \see setX(), setX(), zoomToFit(), setAbsoluteXY(), JKQTBasePlotter::setXY()
*/ */
inline void setXY(double xminn, double xmaxx, double yminn, double ymaxx, bool affectsSecondaryAxes=false) { plotter->setXY(xminn, xmaxx, yminn, ymaxx, affectsSecondaryAxes); } inline void setXY(double xminn, double xmaxx, double yminn, double ymaxx, bool affectsSecondaryAxes=false) { plotter->setXY(xminn, xmaxx, yminn, ymaxx, affectsSecondaryAxes); }
signals: Q_SIGNALS:
/** \brief emitted whenever the mouse moves /** \brief emitted whenever the mouse moves
* *
* \param x x-position of the mouse (in plot coordinates) * \param x x-position of the mouse (in plot coordinates)
@ -1317,7 +1317,7 @@ class JKQTPLOTTER_LIB_EXPORT JKQTPlotter: public QWidget {
* \param newymax end of the selected x-range (in plot coordinates) * \param newymax end of the selected x-range (in plot coordinates)
* \param sender JKQTPlotter sending this event * \param sender JKQTPlotter sending this event
* *
* This signal is designed to be connected to these slots: synchronizeXAxis(), synchronizeYAxis(), synchronizeXYAxis() * This signal is designed to be connected to these Q_SLOTS: synchronizeXAxis(), synchronizeYAxis(), synchronizeXYAxis()
*/ */
void zoomChangedLocally(double newxmin, double newxmax, double newymin, double newymax, JKQTPlotter* sender); void zoomChangedLocally(double newxmin, double newxmax, double newymin, double newymax, JKQTPlotter* sender);
@ -1327,7 +1327,7 @@ class JKQTPLOTTER_LIB_EXPORT JKQTPlotter: public QWidget {
* \param new_height new height of the widget (in pixels) * \param new_height new height of the widget (in pixels)
* \param sender JKQTPlotter sending this event * \param sender JKQTPlotter sending this event
* *
* This signal is designed to be connected to these slots: synchronizeXAxis(), synchronizeYAxis(), synchronizeXYAxis() * This signal is designed to be connected to these Q_SLOTS: synchronizeXAxis(), synchronizeYAxis(), synchronizeXYAxis()
*/ */
void widgetResized(int new_width, int new_height, JKQTPlotter* sender); void widgetResized(int new_width, int new_height, JKQTPlotter* sender);
@ -1732,7 +1732,7 @@ class JKQTPLOTTER_LIB_EXPORT JKQTPlotter: public QWidget {
QAction* actMouseLeftAsPanView; QAction* actMouseLeftAsPanView;
virtual bool event(QEvent *event) override; virtual bool event(QEvent *event) override;
protected slots: protected Q_SLOTS:
/** \brief while the window is resized, the plot is only redrawn after a restartable delay, implemented by this function and resizeTimer /** \brief while the window is resized, the plot is only redrawn after a restartable delay, implemented by this function and resizeTimer
* \internal * \internal
* \see resizeTimer * \see resizeTimer