switch to the first relation tab v_0
authorFrantišek Kučera <franta-hg@frantovo.cz>
Sat, 29 Sep 2018 12:48:16 +0200
branchv_0
changeset 14 0a6a88e4e48f
parent 13 c84042d014c9
child 15 547a7c5681a5
switch to the first relation tab
nbproject/configurations.xml
src/RelpipeChartMainWindow.cpp
--- a/nbproject/configurations.xml	Sat Sep 29 00:43:16 2018 +0200
+++ b/nbproject/configurations.xml	Sat Sep 29 12:48:16 2018 +0200
@@ -91,6 +91,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>
@@ -100,27 +103,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>
@@ -132,6 +114,8 @@
             ex="false"
             tool="1"
             flavor2="11">
+        <ccTool flags="2">
+        </ccTool>
       </item>
       <item path="build/Debug/src/relpipe-out-chart_autogen/EWIEGA46WW/moc_QtRelationalReaderStringHadler.cpp"
             ex="true"
@@ -147,22 +131,97 @@
             ex="false"
             tool="1"
             flavor2="8">
-        <ccTool flags="0">
+        <ccTool flags="1">
         </ccTool>
       </item>
+      <folder path="0">
+        <ccTool>
+          <incDir>
+            <pElem>/usr/include/x86_64-linux-gnu/qt5/QtCore</pElem>
+          </incDir>
+        </ccTool>
+      </folder>
       <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>/usr/include/x86_64-linux-gnu/qt5/QtCore</pElem>
+            <pElem>../relpipe-lib-reader.cpp/include/relpipe/reader/handlers</pElem>
+            <pElem>src</pElem>
+            <pElem>build/Debug/src/relpipe-out-chart_autogen/EWIEGA46WW</pElem>
+            <pElem>../relpipe-lib-reader.cpp/include/relpipe/reader</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>build/Debug/src/relpipe-out-chart_autogen</pElem>
+            <pElem>/usr/include/x86_64-linux-gnu/qt5</pElem>
+            <pElem>../relpipe-lib-reader.cpp/include</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>/usr/include/x86_64-linux-gnu/qt5/QtCore</pElem>
+            <pElem>../relpipe-lib-cli.cpp/include/relpipe/cli</pElem>
+            <pElem>../relpipe-lib-reader.cpp/include/relpipe/reader/handlers</pElem>
+            <pElem>src</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>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	Sat Sep 29 00:43:16 2018 +0200
+++ b/src/RelpipeChartMainWindow.cpp	Sat Sep 29 12:48:16 2018 +0200
@@ -44,6 +44,7 @@
 	splitter->addWidget(new QPushButton("here will be the chart", splitter));
 	splitter->addWidget(new QPushButton("here will be the table", splitter));
 	tabs->addTab(splitter, QString::fromWCharArray(name.c_str()));
+	if (tabs->count() == 2) tabs->setCurrentIndex(1); // switch to the first relation (first tab is Options tab)
 }
 
 void RelpipeChartMainWindow::attribute(const string_t& value) {