src/RelpipeChartMainWindow.h
author František Kučera <franta-hg@frantovo.cz>
Wed, 10 Oct 2018 00:01:48 +0200
branchv_0
changeset 26 97847181b724
parent 23 ff4a1c07a481
child 28 04f1ac8a931b
permissions -rw-r--r--
table: integer data type support

#pragma once

#include <QTableWidget>
#include <QLabel>

#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>

#include "RelpipeTableModel.h"

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

class RelpipeChartMainWindow : public QMainWindow {
	Q_OBJECT
public:
	RelpipeChartMainWindow();
	virtual ~RelpipeChartMainWindow();
public slots:
	void startRelation(const string_t name, std::vector<AttributeMetadata> attributes);
	void attribute(const string_t value);
	void endOfPipe();
	void setStatusMessage(string_t message);
private:
	Ui::RelpipeChartMainWindow widget;
	QTabWidget* tabs = new QTabWidget(this);
	RelpipeTableModel* currentModel;
	QLabel* status = new QLabel();
};