1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
|
/* Copyright (c) 2020, Dyssol Development Team. All rights reserved. This file is part of Dyssol. See LICENSE file for license information. */
#pragma once
#include "QtTable.h"
#include "TimeDependentValue.h"
#include <QHBoxLayout>
class CDDTable : public QWidget
{
Q_OBJECT
private:
std::vector<CTimeDependentValue*> m_pData;
CQtTable* m_pTable;
bool m_bAvoidSignal;
bool m_bNormalize;
QHBoxLayout *layout;
public:
CDDTable( QWidget *parent = 0, Qt::WindowFlags flags = Qt::WindowFlags() );
~CDDTable();
void SetDistribution(const std::vector<CTimeDependentValue*>& _values);
void SetNormalizationCheck( bool _bAnalyse );
void SetEditable(bool _bEditable); // Turn on/off edit possibility.
private:
void SetHeaders();
void CheckNormalization();
void DataPasted();
public slots:
void UpdateWholeView();
//void setVisible( bool _bVisible );
private slots:
void ItemWasChanged( QTableWidgetItem* _pItem );
signals:
void DataChanged();
};
|