src/RelpipeChartMainWindow.h
author František Kučera <franta-hg@frantovo.cz>
Sun, 30 Sep 2018 01:40:29 +0200
branchv_0
changeset 18 16784291982f
parent 13 c84042d014c9
child 19 ac70c7af6a9b
permissions -rw-r--r--
add QTableWidget with rows and collumns filled with attribute values

#pragma once

#include <QTableWidget>

#include "ui_RelpipeChartMainWindow.h"

#include <relpipe/reader/typedefs.h>
#include <relpipe/reader/TypeId.h>
#include <relpipe/reader/handlers/RelationalReaderStringHandler.h>
#include <relpipe/reader/handlers/AttributeMetadata.h>

using namespace relpipe::reader;
using namespace relpipe::reader::handlers;

class RelpipeChartMainWindow : public QMainWindow, public RelationalReaderStringHadler {
	Q_OBJECT
public:
	RelpipeChartMainWindow();
	virtual ~RelpipeChartMainWindow();
	virtual void startRelation(string_t name, std::vector<AttributeMetadata> attributes) override;
	virtual void attribute(const string_t& value) override;
	virtual void endOfPipe() override;
private:
	Ui::RelpipeChartMainWindow widget;
	QTabWidget* tabs = new QTabWidget(this);
	QTableWidget* currentTable;
	integer_t attributeCounter;
public slots:
	void slot123();
signals:
	void signal123();
};