mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
statistics: add sort mode on mobile UI
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
1e5191e33e
commit
db0f8ba045
3 changed files with 43 additions and 6 deletions
|
|
@ -17,11 +17,13 @@ public:
|
|||
Q_PROPERTY(QStringList var2List MEMBER var2List NOTIFY var2ListChanged)
|
||||
Q_PROPERTY(QStringList binner2List MEMBER binner2List NOTIFY binner2ListChanged)
|
||||
Q_PROPERTY(QStringList operation2List MEMBER operation2List NOTIFY operation2ListChanged)
|
||||
Q_PROPERTY(QStringList sortMode1List MEMBER sortMode1List NOTIFY sortMode1ListChanged)
|
||||
Q_PROPERTY(int var1Index MEMBER var1Index NOTIFY var1IndexChanged)
|
||||
Q_PROPERTY(int binner1Index MEMBER binner1Index NOTIFY binner1IndexChanged)
|
||||
Q_PROPERTY(int var2Index MEMBER var2Index NOTIFY var2IndexChanged)
|
||||
Q_PROPERTY(int binner2Index MEMBER binner2Index NOTIFY binner2IndexChanged)
|
||||
Q_PROPERTY(int operation2Index MEMBER operation2Index NOTIFY operation2IndexChanged)
|
||||
Q_PROPERTY(int sortMode1Index MEMBER sortMode1Index NOTIFY sortMode1IndexChanged)
|
||||
|
||||
StatsManager();
|
||||
~StatsManager();
|
||||
|
|
@ -32,6 +34,7 @@ public:
|
|||
Q_INVOKABLE void var2Changed(int idx);
|
||||
Q_INVOKABLE void var2BinnerChanged(int idx);
|
||||
Q_INVOKABLE void var2OperationChanged(int idx);
|
||||
Q_INVOKABLE void sortMode1Changed(int idx);
|
||||
Q_INVOKABLE void setChart(int idx);
|
||||
signals:
|
||||
void var1ListChanged();
|
||||
|
|
@ -39,11 +42,13 @@ signals:
|
|||
void var2ListChanged();
|
||||
void binner2ListChanged();
|
||||
void operation2ListChanged();
|
||||
void sortMode1ListChanged();
|
||||
void var1IndexChanged();
|
||||
void binner1IndexChanged();
|
||||
void var2IndexChanged();
|
||||
void binner2IndexChanged();
|
||||
void operation2IndexChanged();
|
||||
void sortMode1IndexChanged();
|
||||
private:
|
||||
StatsView *view;
|
||||
ChartListModel *charts;
|
||||
|
|
@ -53,11 +58,13 @@ private:
|
|||
QStringList var2List;
|
||||
QStringList binner2List;
|
||||
QStringList operation2List;
|
||||
QStringList sortMode1List;
|
||||
int var1Index;
|
||||
int binner1Index;
|
||||
int var2Index;
|
||||
int binner2Index;
|
||||
int operation2Index;
|
||||
int sortMode1Index;
|
||||
StatsState::UIState uiState; // Remember UI state so that we can interpret indexes
|
||||
void updateUi();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue