diff --git a/relational_gui/guihandler.py b/relational_gui/guihandler.py
index ed235d3..e66148a 100644
--- a/relational_gui/guihandler.py
+++ b/relational_gui/guihandler.py
@@ -87,9 +87,11 @@ class relForm(QtWidgets.QMainWindow):
def setMultiline(self, multiline):
self.multiline = multiline
self.settings.setValue('multiline', multiline)
- self.ui.lineExpressionFrame.setVisible(not multiline)
- self.ui.frmOptimizations.setVisible(not multiline)
- self.ui.frmMultiLine.setVisible(multiline)
+ if multiline:
+ index = 0
+ else:
+ index = 1
+ self.ui.stackedWidget.setCurrentIndex(index)
self.ui.actionMulti_line_mode.setChecked(multiline)
def load_query(self, *index):
diff --git a/relational_gui/maingui.ui b/relational_gui/maingui.ui
index f9f05ef..1c4e684 100644
--- a/relational_gui/maingui.ui
+++ b/relational_gui/maingui.ui
@@ -80,292 +80,255 @@
-
-
-
- QLayout::SetMinimumSize
-
- -
-
-
- QFrame::NoFrame
-
-
- QFrame::Plain
-
-
- 0
-
+
+
+ 0
+
+
+ 0
+
+
+
+
+ 0
+
+
+ 0
+
+
+ 0
+
+
+ 0
+
+
+ 0
+
+
-
+
+
+
+ 0
+ 0
+
+
+
+
+ 120
+ 60
+
+
+
+
+ DejaVu Sans
+ 11
+ 50
+ false
+ false
+ false
+ false
+ true
+
+
+
+
+
+
+ false
+
+
+ result=query
+
+
+
+ -
3
-
- QLayout::SetMinimumSize
-
-
- 0
-
-
- 0
-
-
- 0
-
-
- 0
-
-
-
-
-
- 0
- 0
-
-
-
-
- 120
- 60
-
-
-
-
- 16777215
- 16777215
-
-
-
-
- 0
- 0
-
+
+
+ ⌫
-
-
-
-
-
-
- Optimize
-
-
-
- -
-
-
- Undo optimize
-
-
-
- -
-
-
- Clear history
-
-
-
-
+
+
+ Execute
+
+
+ false
+
+
+ true
+
+
+
+ -
+
+
+ Qt::Vertical
+
+
+
+ 20
+ 40
+
+
+
-
-
- -
-
-
-
- 0
- 0
-
-
-
- QFrame::NoFrame
-
-
- QFrame::Plain
-
-
- 0
-
-
+
+
+
+
+
+
+ 2
+
+
+ 0
+
+
+ 0
+
+
+ 0
+
+
+ 0
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+
+ 120
+ 60
+
+
+
+
+ 16777215
+ 16777215
+
+
+
+
+ 0
+ 0
+
+
+
+
+ -
+
+
+ 1
+
+
-
+
+
+ Optimize
+
+
+
+ -
+
+
+ Undo optimize
+
+
+
+ -
+
+
+ Clear history
+
+
+
+
+
+ -
+
0
-
- 0
-
-
- 0
-
-
- 0
-
-
- 0
-
-
-
+
-
+
0
0
-
-
- 120
- 60
-
-
-
-
- DejaVu Sans
- 11
- 50
- false
- false
- false
- false
- true
-
-
-
-
-
-
- false
-
-
- result=query
+
+ _last1
-
-
-
- 3
+
+
+ =
-
-
-
-
- ⌫
-
-
-
- -
-
-
- Execute
-
-
- false
-
-
- false
-
-
-
-
+
+ txtQuery
+
+
+
+ -
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+
+ 50
+ 16777215
+
+
+
+ ⌫
+
+
+ true
+
+
+
+ -
+
+
+ Execute
+
+
+ true
+
+
+ true
+
+
-
-
-
+
+
+
- -
-
-
- QFrame::NoFrame
-
-
- QFrame::Plain
-
-
- 0
-
-
-
- 3
-
-
- 0
-
-
- 5
-
-
- 0
-
-
- 5
-
-
-
-
-
-
- 0
- 0
-
-
-
- _last1
-
-
-
- -
-
-
- =
-
-
- txtQuery
-
-
-
- -
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 50
- 16777215
-
-
-
- ⌫
-
-
- true
-
-
-
- -
-
-
- Execute
-
-
- true
-
-
- true
-
-
-
-
-
-
table
- lstHistory
- cmdOptimize
- cmdUndoOptimize
- cmdClearHistory
- txtMultiQuery
- cmdClearMultilineQuery
- cmdExecuteMultiline
- txtResult
- txtQuery
- cmdClearQuery
- cmdExecute
cmdProduct
cmdDifference
cmdUnion