poc Add support for reloading the catalog
Reload works and the column page reacts correctly. Others to be checked and fixed.
This commit is contained in:
parent
83122e89df
commit
60d8f36328
8 changed files with 89 additions and 40 deletions
|
|
@ -3,6 +3,7 @@
|
|||
#include "CrudTab.h"
|
||||
#include "widgets/CatalogTablesPage.h"
|
||||
#include "OpenDatabase.h"
|
||||
#include "catalog/PgDatabaseCatalog.h"
|
||||
#include "ConnectionController.h"
|
||||
#include "MasterController.h"
|
||||
#include "TaskExecutor.h"
|
||||
|
|
@ -221,6 +222,11 @@ void DatabaseWindow::createActions()
|
|||
action->setObjectName("actionPasteLangString");
|
||||
action->setShortcut(QKeySequence(Qt::CTRL + Qt::SHIFT + Qt::Key_V));
|
||||
}
|
||||
{
|
||||
QIcon icon;
|
||||
auto action = actionRefreshCatalog = new QAction(icon, tr("Refresh"), this);
|
||||
action->setObjectName("actionRefreshCatalog");
|
||||
}
|
||||
{
|
||||
QIcon icon;
|
||||
icon.addFile(QString::fromUtf8(":/icons/script_save.png"), QSize(), QIcon::Normal, QIcon::On);
|
||||
|
|
@ -278,6 +284,11 @@ void DatabaseWindow::initMenus()
|
|||
actionCancelQuery
|
||||
});
|
||||
|
||||
menuCatalog = mb->addMenu(tr("Catalog"));
|
||||
menuCatalog->addActions({
|
||||
actionRefreshCatalog
|
||||
});
|
||||
|
||||
menuWindow = mb->addMenu(tr("Window"));
|
||||
menuWindow->addActions({
|
||||
actionInspectUserSchemas,
|
||||
|
|
@ -500,6 +511,11 @@ void DatabaseWindow::on_actionPasteLangString_triggered()
|
|||
}
|
||||
}
|
||||
|
||||
void DatabaseWindow::on_actionRefreshCatalog_triggered()
|
||||
{
|
||||
m_database->refresh();
|
||||
}
|
||||
|
||||
void DatabaseWindow::on_actionSaveSql_triggered()
|
||||
{
|
||||
auto query_tool = GetActiveQueryTool();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue