splitter and component placeholders v_0
authorFrantišek Kučera <franta-hg@frantovo.cz>
Fri, 28 Sep 2018 13:23:21 +0200
branchv_0
changeset 12 a45d1cac365e
parent 11 0f42346c8fc7
child 13 c84042d014c9
splitter and component placeholders
nbproject/configurations.xml
src/RelpipeChartMainWindow.cpp
--- a/nbproject/configurations.xml	Fri Sep 28 12:51:55 2018 +0200
+++ b/nbproject/configurations.xml	Fri Sep 28 13:23:21 2018 +0200
@@ -90,6 +90,9 @@
       </toolsSet>
       <flagsDictionary>
         <element flagsID="0" commonFlags="-fsanitize=address -fPIC -std=gnu++11"/>
+        <element flagsID="1"
+                 commonFlags="-mtune=generic -march=x86-64 -std=gnu++11 -fsanitize=address -fPIC -fstack-protector-strong"/>
+        <element flagsID="2" commonFlags="-std=c++14"/>
       </flagsDictionary>
       <codeAssistance>
       </codeAssistance>
@@ -99,27 +102,6 @@
           <buildCommand>${MAKE} -f Makefile</buildCommand>
           <cleanCommand>${MAKE} -f Makefile clean</cleanCommand>
           <executablePath>build/Debug/src/relpipe-out-chart</executablePath>
-          <ccTool>
-            <incDir>
-              <pElem>build/Debug/src</pElem>
-              <pElem>src</pElem>
-              <pElem>build/Debug/src/relpipe-out-chart_autogen/include</pElem>
-              <pElem>../relpipe-lib-reader.cpp/include</pElem>
-              <pElem>../relpipe-lib-cli.cpp/include</pElem>
-              <pElem>/usr/include/x86_64-linux-gnu/qt5</pElem>
-              <pElem>/usr/include/x86_64-linux-gnu/qt5/QtWidgets</pElem>
-              <pElem>/usr/include/x86_64-linux-gnu/qt5/QtGui</pElem>
-              <pElem>/usr/include/x86_64-linux-gnu/qt5/QtCore</pElem>
-              <pElem>/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++</pElem>
-              <pElem>/usr/include/x86_64-linux-gnu/qt5/QtCharts</pElem>
-            </incDir>
-            <preprocessorList>
-              <Elem>QT_CHARTS_LIB</Elem>
-              <Elem>QT_CORE_LIB</Elem>
-              <Elem>QT_GUI_LIB</Elem>
-              <Elem>QT_WIDGETS_LIB</Elem>
-            </preprocessorList>
-          </ccTool>
         </makeTool>
         <preBuild>
           <preBuildCommandWorkingDir>build/Debug</preBuildCommandWorkingDir>
@@ -131,6 +113,8 @@
             ex="false"
             tool="1"
             flavor2="11">
+        <ccTool flags="2">
+        </ccTool>
       </item>
       <item path="build/Debug/src/relpipe-out-chart_autogen/EWIEGA46WW/moc_RelpipeChartMainWindow.cpp"
             ex="true"
@@ -141,22 +125,87 @@
             ex="false"
             tool="1"
             flavor2="8">
-        <ccTool flags="0">
+        <ccTool flags="1">
         </ccTool>
       </item>
       <folder path="Modules">
         <ccTool>
           <incDir>
+            <pElem>build/Debug/src</pElem>
+            <pElem>src</pElem>
+            <pElem>build/Debug/src/relpipe-out-chart_autogen/include</pElem>
+            <pElem>../relpipe-lib-reader.cpp/include</pElem>
+            <pElem>../relpipe-lib-cli.cpp/include</pElem>
+            <pElem>/usr/include/x86_64-linux-gnu/qt5</pElem>
+            <pElem>/usr/include/x86_64-linux-gnu/qt5/QtWidgets</pElem>
+            <pElem>/usr/include/x86_64-linux-gnu/qt5/QtGui</pElem>
+            <pElem>/usr/include/x86_64-linux-gnu/qt5/QtCore</pElem>
+            <pElem>/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++</pElem>
+            <pElem>/usr/include/x86_64-linux-gnu/qt5/QtCharts</pElem>
             <pElem>/usr/include</pElem>
           </incDir>
+          <preprocessorList>
+            <Elem>QT_CHARTS_LIB</Elem>
+            <Elem>QT_CORE_LIB</Elem>
+            <Elem>QT_GUI_LIB</Elem>
+            <Elem>QT_WIDGETS_LIB</Elem>
+          </preprocessorList>
+        </ccTool>
+      </folder>
+      <folder path="relpipe-out-chart_autogen">
+        <ccTool>
+          <incDir>
+            <pElem>build/Debug/src/relpipe-out-chart_autogen/EWIEGA46WW</pElem>
+            <pElem>/usr/include/x86_64-linux-gnu/qt5/QtCore</pElem>
+            <pElem>/usr/include/x86_64-linux-gnu/qt5/QtGui</pElem>
+            <pElem>/usr/include/x86_64-linux-gnu/qt5/QtWidgets</pElem>
+            <pElem>build/Debug/src/relpipe-out-chart_autogen/include</pElem>
+            <pElem>src</pElem>
+            <pElem>build/Debug/src/relpipe-out-chart_autogen</pElem>
+            <pElem>/usr/include/x86_64-linux-gnu/qt5</pElem>
+            <pElem>build/Debug/src</pElem>
+          </incDir>
         </ccTool>
       </folder>
       <item path="src/RelpipeChartMainWindow.cpp" ex="false" tool="1" flavor2="8">
         <ccTool flags="0">
+          <incDir>
+            <pElem>build/Debug/src</pElem>
+            <pElem>src</pElem>
+            <pElem>build/Debug/src/relpipe-out-chart_autogen/include</pElem>
+            <pElem>../relpipe-lib-reader.cpp/include</pElem>
+            <pElem>../relpipe-lib-cli.cpp/include</pElem>
+            <pElem>/usr/include/x86_64-linux-gnu/qt5</pElem>
+            <pElem>/usr/include/x86_64-linux-gnu/qt5/QtWidgets</pElem>
+            <pElem>/usr/include/x86_64-linux-gnu/qt5/QtGui</pElem>
+            <pElem>/usr/include/x86_64-linux-gnu/qt5/QtCore</pElem>
+            <pElem>/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++</pElem>
+            <pElem>/usr/include/x86_64-linux-gnu/qt5/QtCharts</pElem>
+          </incDir>
+          <preprocessorList>
+            <Elem>QT_CHARTS_LIB</Elem>
+            <Elem>QT_CORE_LIB</Elem>
+            <Elem>QT_GUI_LIB</Elem>
+            <Elem>QT_WIDGETS_LIB</Elem>
+          </preprocessorList>
         </ccTool>
       </item>
       <item path="src/relpipe-out-chart.cpp" ex="false" tool="1" flavor2="8">
-        <ccTool flags="0">
+        <ccTool flags="1">
+          <incDir>
+            <pElem>../relpipe-lib-cli.cpp/include/relpipe/cli</pElem>
+            <pElem>src</pElem>
+            <pElem>/usr/include/x86_64-linux-gnu/qt5/QtCore</pElem>
+            <pElem>/usr/include/x86_64-linux-gnu/qt5/QtGui</pElem>
+            <pElem>/usr/include/x86_64-linux-gnu/qt5/QtWidgets</pElem>
+            <pElem>../relpipe-lib-reader.cpp/include/relpipe/reader</pElem>
+            <pElem>../relpipe-lib-reader.cpp/include/relpipe/reader/handlers</pElem>
+            <pElem>build/Debug/src/relpipe-out-chart_autogen/include</pElem>
+            <pElem>../relpipe-lib-cli.cpp/include</pElem>
+            <pElem>../relpipe-lib-reader.cpp/include</pElem>
+            <pElem>/usr/include/x86_64-linux-gnu/qt5</pElem>
+            <pElem>build/Debug/src</pElem>
+          </incDir>
         </ccTool>
       </item>
     </conf>
--- a/src/RelpipeChartMainWindow.cpp	Fri Sep 28 12:51:55 2018 +0200
+++ b/src/RelpipeChartMainWindow.cpp	Fri Sep 28 13:23:21 2018 +0200
@@ -1,7 +1,28 @@
+#include <QTabWidget>
+#include <QPushButton>
+#include <QLabel>
+#include <QStatusBar>
+#include <QSplitter>
+
 #include "RelpipeChartMainWindow.h"
 
 RelpipeChartMainWindow::RelpipeChartMainWindow() {
 	widget.setupUi(this);
+
+	QTabWidget* tabs = new QTabWidget(this);
+
+	for (int i = 0; i < 5; i++) {
+		QSplitter* splitter = new QSplitter(Qt::Orientation::Vertical, tabs);
+		splitter->addWidget(new QPushButton("here will be the chart", splitter));
+		splitter->addWidget(new QPushButton("here will be the table", splitter));
+		tabs->addTab(splitter, "relation_name");
+	}
+
+	//statusBar()->addWidget(new QPushButton("xxx", widget.statusbar));
+	statusBar()->addWidget(new QLabel("Loading relations...", widget.statusbar));
+
+	setCentralWidget(tabs);
+
 }
 
 RelpipeChartMainWindow::~RelpipeChartMainWindow() {