mirror of
https://github.com/jkriege2/JKQtPlotter.git
synced 2024-11-16 10:35:49 +08:00
d35aa31584
started to add example for user-interactions in JKQTPlotter
40 lines
925 B
C++
40 lines
925 B
C++
#ifndef TEST_USER_INTERACTION_H
|
|
#define TEST_USER_INTERACTION_H
|
|
|
|
#include <QWidget>
|
|
#include "jkqtplotter/jkqtplotter.h"
|
|
#include "jkqtplotter/jkqtpgraphs.h"
|
|
#include <QFormLayout>
|
|
#include <QCheckBox>
|
|
#include <QComboBox>
|
|
#include <cmath>
|
|
#include <QToolBar>
|
|
#include <QMainWindow>
|
|
#include <QHBoxLayout>
|
|
|
|
class TestUserInteraction : public QMainWindow
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit TestUserInteraction(QWidget *parent = nullptr);
|
|
|
|
signals:
|
|
|
|
public slots:
|
|
|
|
protected:
|
|
void initPlot();
|
|
JKQTPlotter* plot;
|
|
QGridLayout* layout;
|
|
QHBoxLayout* layChk;
|
|
QFormLayout* layForm;
|
|
QCheckBox* chkPositionDisplay;
|
|
QCheckBox* chkShowToolbar;
|
|
QCheckBox* chkToolbarAlwaysOn;
|
|
QCheckBox* chkGrid;
|
|
JKQTPXYLineGraph* graph1;
|
|
JKQTPXYLineGraph* graph2;
|
|
};
|
|
|
|
#endif // TEST_USER_INTERACTION_H
|