The catalogue now loads the list of databases en there is a table model that can show this data.

This commit is contained in:
eelke 2017-02-12 14:03:42 +01:00
parent a9430bca1a
commit 20af12535e
22 changed files with 504 additions and 118 deletions

View file

@ -5,7 +5,7 @@
#include "connectionconfig.h"
#include "tsqueue.h"
#include <QLabel>
#include <QMainWindow>
#include "ASyncWindow.h"
#include <QSocketNotifier>
#include <memory>
#include <future>
@ -14,10 +14,6 @@
#include <deque>
#include <mutex>
//class ExplainRoot;
//class QueryResultModel;
//class QueryExplainModel;
namespace Ui {
class MainWindow;
}
@ -31,25 +27,19 @@ class MasterController;
class QCloseEvent;
class OpenDatabase;
class MainWindow : public QMainWindow
{
class MainWindow : public ASyncWindow {
Q_OBJECT
public:
explicit MainWindow(MasterController *master, QWidget *parent);
~MainWindow();
void setConfig(const ConnectionConfig &config);
/* Meant to be called from other threads to pass a code block
* that has to be executed in the context of the thread of the window.
*/
void QueueTask(TSQueue::t_Callable c);
OpenDatabase* getDatabase() { return m_database; }
private:
Ui::MainWindow *ui;
TSQueue m_taskQueue;
ConnectionConfig m_config;
OpenDatabase *m_database;
@ -76,8 +66,6 @@ private:
private slots:
void processCallableQueue();
void on_actionLoad_SQL_triggered();
void on_actionSave_SQL_triggered();
void on_actionExport_data_triggered();