-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2cfea9e
commit f1a4ef8
Showing
29 changed files
with
924 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#ifndef PLOTVERTICALAXESMODEL_H | ||
#define PLOTVERTICALAXESMODEL_H | ||
|
||
#include "plotchartwidget.h" | ||
|
||
#include <QAbstractTableModel> | ||
|
||
class PlotChartWidget; | ||
|
||
class PlotVerticalAxesModel : public QAbstractTableModel | ||
{ | ||
public: | ||
|
||
enum Columns { | ||
Col_Name, | ||
Col_Visible, | ||
Col_Invalid | ||
}; | ||
|
||
PlotVerticalAxesModel(PlotChartWidget *widget, QObject *parent = nullptr); | ||
|
||
int rowCount(const QModelIndex &parent) const override; | ||
int columnCount(const QModelIndex &parent) const override; | ||
|
||
QVariant data(const QModelIndex &index, int role) const override; | ||
bool setData(const QModelIndex &index, const QVariant &value, int role) override; | ||
QVariant headerData(int section, Qt::Orientation orientation, int role) const override; | ||
|
||
Qt::ItemFlags flags(const QModelIndex &index) const; | ||
|
||
void refresh(); | ||
PlotVerticalAxis *axis(const QModelIndex & index); | ||
|
||
private: | ||
PlotChartWidget *m_chartWidget; | ||
}; | ||
|
||
#endif // PLOTVERTICALAXESMODEL_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#ifndef RANDOMCOLORGENERATOR_H | ||
#define RANDOMCOLORGENERATOR_H | ||
|
||
#include <QColor> | ||
#include <QVector> | ||
|
||
class RandomColorGenerator | ||
{ | ||
public: | ||
QColor get(); | ||
static RandomColorGenerator *getInstance(); | ||
private: | ||
QVector<QColor> m_colorList; | ||
int m_index = 0; | ||
static RandomColorGenerator* m_instance; | ||
}; | ||
|
||
#endif // RANDOMCOLORGENERATOR_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
<RCC> | ||
<qresource prefix="/icons"> | ||
<file>x-axis_and_y-axis-512.png</file> | ||
<file>list-remove.png</file> | ||
<file>list-add.png</file> | ||
</qresource> | ||
</RCC> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.