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
|
/* Copyright (c) 2020, Dyssol Development Team. All rights reserved. This file is part of Dyssol. See LICENSE file for license information. */
#pragma once
#include "MDMatrix.h"
#include "QtTable.h"
#include <QHBoxLayout>
class CMDMTable : public QWidget
{
Q_OBJECT
private:
CMDMatrix* m_pData;
CQtTable* m_pTable;
bool m_bAvoidSignal;
QHBoxLayout *layout;
public:
CMDMTable(QWidget *parent);
~CMDMTable();
void SetDistribution( CMDMatrix* _pDistribution, const std::vector<std::string>& _sNames );
void SetEditable(bool _bEditable); // Turn on/off edit possibility.
private:
void SetHeaders(const std::vector<std::string>& _sNames);
void CheckNormalization();
signals:
void DataChanged();
public slots:
void UpdateWholeView();
//void setVisible( bool _bVisible );
private slots:
void ItemWasChanged( QTableWidgetItem* _pItem );
void DataPasted();
};
|