From 9618f0ebbf4b88045247c01ce8c8f58203508ebf Mon Sep 17 00:00:00 2001 From: Unit 193 Date: Tue, 12 May 2015 16:19:40 -0400 Subject: Imported Upstream version 3.0.6 --- .../guiSQLiteStudio/windows/collationseditor.ui | 57 +++++++++------ .../guiSQLiteStudio/windows/editorwindow.cpp | 8 +++ .../guiSQLiteStudio/windows/editorwindow.ui | 3 + .../guiSQLiteStudio/windows/functionseditor.ui | 82 +++++++++++++--------- .../guiSQLiteStudio/windows/tablewindow.cpp | 15 +++- .../guiSQLiteStudio/windows/tablewindow.ui | 10 ++- .../guiSQLiteStudio/windows/viewwindow.cpp | 8 +++ .../guiSQLiteStudio/windows/viewwindow.ui | 4 +- 8 files changed, 125 insertions(+), 62 deletions(-) (limited to 'SQLiteStudio3/guiSQLiteStudio/windows') diff --git a/SQLiteStudio3/guiSQLiteStudio/windows/collationseditor.ui b/SQLiteStudio3/guiSQLiteStudio/windows/collationseditor.ui index 98e7ddb..97c4e0a 100644 --- a/SQLiteStudio3/guiSQLiteStudio/windows/collationseditor.ui +++ b/SQLiteStudio3/guiSQLiteStudio/windows/collationseditor.ui @@ -101,27 +101,7 @@ 0 - - - - - - - Collation name: - - - - - - - - - - Implementation language: - - - - + @@ -196,6 +176,41 @@ + + + + + 0 + + + 0 + + + 0 + + + + + Collation name: + + + + + + + + + + Implementation language: + + + + + + + + + diff --git a/SQLiteStudio3/guiSQLiteStudio/windows/editorwindow.cpp b/SQLiteStudio3/guiSQLiteStudio/windows/editorwindow.cpp index c494702..30fe07b 100644 --- a/SQLiteStudio3/guiSQLiteStudio/windows/editorwindow.cpp +++ b/SQLiteStudio3/guiSQLiteStudio/windows/editorwindow.cpp @@ -24,6 +24,7 @@ #include #include #include +#include CFG_KEYS_DEFINE(EditorWindow) EditorWindow::ResultsDisplayMode EditorWindow::resultsDisplayMode; @@ -87,6 +88,12 @@ void EditorWindow::init() setFocusProxy(ui->sqlEdit); updateResultsDisplayMode(); + THEME_TUNER->manageCompactLayout({ + ui->query, + ui->results, + ui->history + }); + resultsModel = new SqlQueryModel(this); ui->dataView->init(resultsModel); @@ -365,6 +372,7 @@ void EditorWindow::createActions() createAction(CREATE_VIEW_FROM_QUERY, ICONS.VIEW_ADD, tr("Create view from query", "sql editor"), this, SLOT(createViewFromQuery()), ui->toolBar); ui->toolBar->addSeparator(); ui->toolBar->addAction(ui->sqlEdit->getAction(SqlEditor::SAVE_SQL_FILE)); + attachActionInMenu(ui->sqlEdit->getAction(SqlEditor::SAVE_SQL_FILE), ui->sqlEdit->getAction(SqlEditor::SAVE_AS_SQL_FILE), ui->toolBar); ui->toolBar->addAction(ui->sqlEdit->getAction(SqlEditor::OPEN_SQL_FILE)); ui->toolBar->addSeparator(); actionMap[CURRENT_DB] = ui->toolBar->addWidget(dbCombo); diff --git a/SQLiteStudio3/guiSQLiteStudio/windows/editorwindow.ui b/SQLiteStudio3/guiSQLiteStudio/windows/editorwindow.ui index 51d5503..924f895 100644 --- a/SQLiteStudio3/guiSQLiteStudio/windows/editorwindow.ui +++ b/SQLiteStudio3/guiSQLiteStudio/windows/editorwindow.ui @@ -14,6 +14,9 @@ SQL editor + + 0 + 0 diff --git a/SQLiteStudio3/guiSQLiteStudio/windows/functionseditor.ui b/SQLiteStudio3/guiSQLiteStudio/windows/functionseditor.ui index 45d291d..b99efe1 100644 --- a/SQLiteStudio3/guiSQLiteStudio/windows/functionseditor.ui +++ b/SQLiteStudio3/guiSQLiteStudio/windows/functionseditor.ui @@ -145,37 +145,7 @@ 0 - - - - Function name: - - - - - - - - - - Implementation language: - - - - - - - - - - Type: - - - - - - - + @@ -223,7 +193,7 @@ - + @@ -265,6 +235,51 @@ + + + + + 0 + + + 0 + + + 0 + + + + + Type: + + + + + + + Function name: + + + + + + + + + + + + + Implementation language: + + + + + + + + + @@ -329,9 +344,6 @@ functionFilterEdit list - nameEdit - typeCombo - langCombo undefArgsCheck argsList allDatabasesRadio diff --git a/SQLiteStudio3/guiSQLiteStudio/windows/tablewindow.cpp b/SQLiteStudio3/guiSQLiteStudio/windows/tablewindow.cpp index 3a315db..02a1052 100644 --- a/SQLiteStudio3/guiSQLiteStudio/windows/tablewindow.cpp +++ b/SQLiteStudio3/guiSQLiteStudio/windows/tablewindow.cpp @@ -33,6 +33,9 @@ #include "services/importmanager.h" #include "dbobjectdialogs.h" #include "dialogs/exportdialog.h" +#include "themetuner.h" +#include "dialogs/importdialog.h" +#include "dialogs/populatedialog.h" #include #include #include @@ -43,8 +46,6 @@ #include #include #include -#include -#include // TODO extend QTableView for columns and constraints, so they show full-row-width drop indicator, // instead of single column drop indicator. @@ -171,6 +172,16 @@ void TableWindow::init() connect(structureExecutor, SIGNAL(success()), this, SLOT(changesSuccessfullyCommited())); connect(structureExecutor, SIGNAL(failure(int,QString)), this, SLOT(changesFailedToCommit(int,QString))); + THEME_TUNER->manageCompactLayout({ + ui->structureTab, + ui->constraintsWidget, + ui->dataTab, + ui->constraintsTab, + ui->indexesTab, + ui->triggersTab, + ui->ddlTab + }); + setupCoverWidget(); updateAfterInit(); } diff --git a/SQLiteStudio3/guiSQLiteStudio/windows/tablewindow.ui b/SQLiteStudio3/guiSQLiteStudio/windows/tablewindow.ui index f1fe409..0dd7fe6 100644 --- a/SQLiteStudio3/guiSQLiteStudio/windows/tablewindow.ui +++ b/SQLiteStudio3/guiSQLiteStudio/windows/tablewindow.ui @@ -43,7 +43,7 @@ - 0 + 4 0 @@ -52,7 +52,7 @@ 0 - 0 + 2 @@ -99,6 +99,9 @@ Qt::Vertical + + 2 + false @@ -130,6 +133,9 @@ + + 0 + 0 diff --git a/SQLiteStudio3/guiSQLiteStudio/windows/viewwindow.cpp b/SQLiteStudio3/guiSQLiteStudio/windows/viewwindow.cpp index 9a30e1c..cb3a11e 100644 --- a/SQLiteStudio3/guiSQLiteStudio/windows/viewwindow.cpp +++ b/SQLiteStudio3/guiSQLiteStudio/windows/viewwindow.cpp @@ -20,6 +20,7 @@ #include "uiconfig.h" #include "services/config.h" #include "services/codeformatter.h" +#include "themetuner.h" #include #include #include @@ -204,6 +205,13 @@ void ViewWindow::init() { ui->setupUi(this); + THEME_TUNER->manageCompactLayout({ + ui->queryTab, + ui->dataTab, + ui->triggersTab, + ui->ddl + }); + dataModel = new SqlQueryModel(this); ui->dataView->init(dataModel); diff --git a/SQLiteStudio3/guiSQLiteStudio/windows/viewwindow.ui b/SQLiteStudio3/guiSQLiteStudio/windows/viewwindow.ui index 94f5ea7..0fdccc3 100644 --- a/SQLiteStudio3/guiSQLiteStudio/windows/viewwindow.ui +++ b/SQLiteStudio3/guiSQLiteStudio/windows/viewwindow.ui @@ -43,7 +43,7 @@ - 0 + 4 0 @@ -52,7 +52,7 @@ 0 - 0 + 2 -- cgit v1.2.3