mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-20 11:00:44 -06:00
This adds a new dock to the main window that contains all the remote functionality (or is supposed to contain it all in the future). It also adds a directory browsing feature which allows you to browse through the folders and files on the dbhub server. By double clicking a database you can download and open it. The Open Remote menu action isn't needed anymore and has been removed. This also fixes an issue with pushing databases where, after sending the file is completed, the save dialog was opened. Note that this is still WIP and is far from polished.
36 lines
512 B
C++
36 lines
512 B
C++
#ifndef REMOTEDOCK_H
|
|
#define REMOTEDOCK_H
|
|
|
|
#include <QDialog>
|
|
|
|
class RemoteDatabase;
|
|
class RemoteModel;
|
|
class MainWindow;
|
|
|
|
namespace Ui {
|
|
class RemoteDock;
|
|
}
|
|
|
|
class RemoteDock : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit RemoteDock(MainWindow* parent);
|
|
~RemoteDock();
|
|
|
|
void reloadSettings();
|
|
|
|
private slots:
|
|
void setNewIdentity();
|
|
void fetchDatabase(const QModelIndex& idx);
|
|
|
|
private:
|
|
Ui::RemoteDock* ui;
|
|
|
|
RemoteDatabase& remoteDatabase;
|
|
RemoteModel* remoteModel;
|
|
};
|
|
|
|
#endif
|