-
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
e64c767
commit 14952c2
Showing
52 changed files
with
1,323 additions
and
545 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,3 +46,5 @@ CMakeLists.txt.user* | |
*creator.user* | ||
|
||
.directory | ||
|
||
*.includes |
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,32 @@ | ||
#ifndef DIALOGSERIES_H | ||
#define DIALOGSERIES_H | ||
|
||
#include "dialogplotseriesproperties.h" | ||
#include "serieslistmodel.h" | ||
|
||
#include <QDialog> | ||
|
||
namespace Ui { | ||
class DialogSeries; | ||
} | ||
|
||
class DialogSeries : public QDialog | ||
{ | ||
Q_OBJECT | ||
|
||
public: | ||
explicit DialogSeries(QWidget *parent = 0); | ||
~DialogSeries(); | ||
|
||
private slots: | ||
void on_tableViewSeries_doubleClicked(const QModelIndex &index); | ||
|
||
void on_tableViewSeries_customContextMenuRequested(const QPoint &pos); | ||
|
||
private: | ||
Ui::DialogSeries *ui; | ||
SeriesListModel *m_model; | ||
DialogPlotSeriesProperties *m_seriesPropertiesDialog = nullptr; | ||
}; | ||
|
||
#endif // DIALOGSERIES_H |
This file was deleted.
Oops, something went wrong.
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,35 @@ | ||
#ifndef SERIESLISTMODEL_H | ||
#define SERIESLISTMODEL_H | ||
|
||
#include "plotlineseries.h" | ||
|
||
#include <QAbstractTableModel> | ||
|
||
class SeriesListModel : public QAbstractTableModel | ||
{ | ||
Q_OBJECT | ||
public: | ||
enum Columns { | ||
Col_Name, | ||
Col_Visible, | ||
Col_Invalid | ||
}; | ||
|
||
SeriesListModel(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; | ||
|
||
PlotLineSeries *series(const QModelIndex& index); | ||
|
||
public slots: | ||
void refresh(); | ||
}; | ||
|
||
#endif // SERIESLISTMODEL_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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#ifndef SERIESMANAGER_H | ||
#define SERIESMANAGER_H | ||
|
||
#include "plotlineseries.h" | ||
|
||
#include <QObject> | ||
|
||
class SeriesManager : public QObject | ||
{ | ||
Q_OBJECT | ||
public: | ||
SeriesManager(); | ||
~SeriesManager(); | ||
static SeriesManager *instance(); | ||
|
||
void clear(); | ||
|
||
void addSeries(PlotLineSeries *series); | ||
void removeSeries(PlotLineSeries *series); | ||
|
||
QList<PlotLineSeries *> seriesList() const; | ||
|
||
signals: | ||
void seriesAdded(PlotLineSeries *series); | ||
void seriesRemoved(PlotLineSeries *series); | ||
|
||
private: | ||
static SeriesManager *m_instance; | ||
QList<PlotLineSeries*> m_series; | ||
}; | ||
|
||
#endif // SERIESMANAGER_H |
Oops, something went wrong.