author | František Kučera <franta-hg@frantovo.cz> |
Sun, 30 Sep 2018 01:40:29 +0200 | |
branch | v_0 |
changeset 18 | 16784291982f |
parent 13 | c84042d014c9 |
child 19 | ac70c7af6a9b |
permissions | -rw-r--r-- |
6
5acb6b487caf
code clean-up, comments
František Kučera <franta-hg@frantovo.cz>
parents:
4
diff
changeset
|
1 |
#pragma once |
4
1622c087f3ea
add main window, compile Qt .ui file
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
2 |
|
18
16784291982f
add QTableWidget with rows and collumns filled with attribute values
František Kučera <franta-hg@frantovo.cz>
parents:
13
diff
changeset
|
3 |
#include <QTableWidget> |
16784291982f
add QTableWidget with rows and collumns filled with attribute values
František Kučera <franta-hg@frantovo.cz>
parents:
13
diff
changeset
|
4 |
|
4
1622c087f3ea
add main window, compile Qt .ui file
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
5 |
#include "ui_RelpipeChartMainWindow.h" |
1622c087f3ea
add main window, compile Qt .ui file
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
6 |
|
13
c84042d014c9
background thread for STDIN reading + proxy with signals/slots for passing data to the GUI thread
František Kučera <franta-hg@frantovo.cz>
parents:
6
diff
changeset
|
7 |
#include <relpipe/reader/typedefs.h> |
c84042d014c9
background thread for STDIN reading + proxy with signals/slots for passing data to the GUI thread
František Kučera <franta-hg@frantovo.cz>
parents:
6
diff
changeset
|
8 |
#include <relpipe/reader/TypeId.h> |
c84042d014c9
background thread for STDIN reading + proxy with signals/slots for passing data to the GUI thread
František Kučera <franta-hg@frantovo.cz>
parents:
6
diff
changeset
|
9 |
#include <relpipe/reader/handlers/RelationalReaderStringHandler.h> |
c84042d014c9
background thread for STDIN reading + proxy with signals/slots for passing data to the GUI thread
František Kučera <franta-hg@frantovo.cz>
parents:
6
diff
changeset
|
10 |
#include <relpipe/reader/handlers/AttributeMetadata.h> |
c84042d014c9
background thread for STDIN reading + proxy with signals/slots for passing data to the GUI thread
František Kučera <franta-hg@frantovo.cz>
parents:
6
diff
changeset
|
11 |
|
c84042d014c9
background thread for STDIN reading + proxy with signals/slots for passing data to the GUI thread
František Kučera <franta-hg@frantovo.cz>
parents:
6
diff
changeset
|
12 |
using namespace relpipe::reader; |
c84042d014c9
background thread for STDIN reading + proxy with signals/slots for passing data to the GUI thread
František Kučera <franta-hg@frantovo.cz>
parents:
6
diff
changeset
|
13 |
using namespace relpipe::reader::handlers; |
c84042d014c9
background thread for STDIN reading + proxy with signals/slots for passing data to the GUI thread
František Kučera <franta-hg@frantovo.cz>
parents:
6
diff
changeset
|
14 |
|
c84042d014c9
background thread for STDIN reading + proxy with signals/slots for passing data to the GUI thread
František Kučera <franta-hg@frantovo.cz>
parents:
6
diff
changeset
|
15 |
class RelpipeChartMainWindow : public QMainWindow, public RelationalReaderStringHadler { |
4
1622c087f3ea
add main window, compile Qt .ui file
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
16 |
Q_OBJECT |
1622c087f3ea
add main window, compile Qt .ui file
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
17 |
public: |
1622c087f3ea
add main window, compile Qt .ui file
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
18 |
RelpipeChartMainWindow(); |
1622c087f3ea
add main window, compile Qt .ui file
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
19 |
virtual ~RelpipeChartMainWindow(); |
13
c84042d014c9
background thread for STDIN reading + proxy with signals/slots for passing data to the GUI thread
František Kučera <franta-hg@frantovo.cz>
parents:
6
diff
changeset
|
20 |
virtual void startRelation(string_t name, std::vector<AttributeMetadata> attributes) override; |
c84042d014c9
background thread for STDIN reading + proxy with signals/slots for passing data to the GUI thread
František Kučera <franta-hg@frantovo.cz>
parents:
6
diff
changeset
|
21 |
virtual void attribute(const string_t& value) override; |
c84042d014c9
background thread for STDIN reading + proxy with signals/slots for passing data to the GUI thread
František Kučera <franta-hg@frantovo.cz>
parents:
6
diff
changeset
|
22 |
virtual void endOfPipe() override; |
4
1622c087f3ea
add main window, compile Qt .ui file
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
23 |
private: |
1622c087f3ea
add main window, compile Qt .ui file
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
24 |
Ui::RelpipeChartMainWindow widget; |
13
c84042d014c9
background thread for STDIN reading + proxy with signals/slots for passing data to the GUI thread
František Kučera <franta-hg@frantovo.cz>
parents:
6
diff
changeset
|
25 |
QTabWidget* tabs = new QTabWidget(this); |
18
16784291982f
add QTableWidget with rows and collumns filled with attribute values
František Kučera <franta-hg@frantovo.cz>
parents:
13
diff
changeset
|
26 |
QTableWidget* currentTable; |
16784291982f
add QTableWidget with rows and collumns filled with attribute values
František Kučera <franta-hg@frantovo.cz>
parents:
13
diff
changeset
|
27 |
integer_t attributeCounter; |
13
c84042d014c9
background thread for STDIN reading + proxy with signals/slots for passing data to the GUI thread
František Kučera <franta-hg@frantovo.cz>
parents:
6
diff
changeset
|
28 |
public slots: |
c84042d014c9
background thread for STDIN reading + proxy with signals/slots for passing data to the GUI thread
František Kučera <franta-hg@frantovo.cz>
parents:
6
diff
changeset
|
29 |
void slot123(); |
c84042d014c9
background thread for STDIN reading + proxy with signals/slots for passing data to the GUI thread
František Kučera <franta-hg@frantovo.cz>
parents:
6
diff
changeset
|
30 |
signals: |
c84042d014c9
background thread for STDIN reading + proxy with signals/slots for passing data to the GUI thread
František Kučera <franta-hg@frantovo.cz>
parents:
6
diff
changeset
|
31 |
void signal123(); |
4
1622c087f3ea
add main window, compile Qt .ui file
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
32 |
}; |