mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-12 17:14:52 -07:00
initial commit for deck repository tab
This commit is contained in:
parent
c0e64f3f42
commit
f31405743e
12 changed files with 1047 additions and 10 deletions
44
cockatrice/src/tab_deck_storage.h
Normal file
44
cockatrice/src/tab_deck_storage.h
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
#ifndef TAB_DECK_STORAGE_H
|
||||
#define TAB_DECK_STORAGE_H
|
||||
|
||||
#include <QWidget>
|
||||
#include "protocol.h"
|
||||
|
||||
class Client;
|
||||
class QTreeView;
|
||||
class QFileSystemModel;
|
||||
class QSortFilterProxyModel;
|
||||
class QToolBar;
|
||||
class QTreeWidget;
|
||||
class QTreeWidgetItem;
|
||||
class QGroupBox;
|
||||
|
||||
class TabDeckStorage : public QWidget {
|
||||
Q_OBJECT
|
||||
private:
|
||||
Client *client;
|
||||
QTreeView *localDirView;
|
||||
QFileSystemModel *localDirModel;
|
||||
QSortFilterProxyModel *sortFilter;
|
||||
QToolBar *toolBar;
|
||||
QTreeWidget *serverDirView;
|
||||
QGroupBox *leftGroupBox, *rightGroupBox;
|
||||
|
||||
QAction *aUpload, *aDownload, *aNewFolder, *aDelete;
|
||||
void populateDeckList(Response_DeckList::Directory *folder, QTreeWidgetItem *parent);
|
||||
void refreshServerList();
|
||||
private slots:
|
||||
void deckListFinished(ProtocolResponse *r);
|
||||
|
||||
void actUpload();
|
||||
void uploadFinished(ProtocolResponse *r);
|
||||
|
||||
void actDownload();
|
||||
void actNewFolder();
|
||||
void actDelete();
|
||||
public:
|
||||
TabDeckStorage(Client *_client);
|
||||
void retranslateUi();
|
||||
};
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue