mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-05 04:53:54 -07:00
remote deck loading finished
This commit is contained in:
parent
cf21528a69
commit
4fac0e5b5a
14 changed files with 220 additions and 184 deletions
27
cockatrice/src/remotedecklist_treewidget.h
Normal file
27
cockatrice/src/remotedecklist_treewidget.h
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
#ifndef REMOTEDECKLIST_TREEWIDGET_H
|
||||
#define REMOTEDECKLIST_TREEWIDGET_H
|
||||
|
||||
#include <QTreeWidget>
|
||||
|
||||
class ProtocolResponse;
|
||||
class Client;
|
||||
class DeckList_File;
|
||||
class DeckList_Directory;
|
||||
|
||||
enum { TWIFolderType = QTreeWidgetItem::UserType + 1, TWIDeckType = QTreeWidgetItem::UserType + 2 };
|
||||
|
||||
class RemoteDeckList_TreeWidget : public QTreeWidget {
|
||||
Q_OBJECT
|
||||
private:
|
||||
Client *client;
|
||||
private slots:
|
||||
void deckListFinished(ProtocolResponse *r);
|
||||
public:
|
||||
RemoteDeckList_TreeWidget(Client *_client, QWidget *parent = 0);
|
||||
void retranslateUi();
|
||||
void addFileToTree(DeckList_File *file, QTreeWidgetItem *parent);
|
||||
void addFolderToTree(DeckList_Directory *folder, QTreeWidgetItem *parent);
|
||||
void refreshTree();
|
||||
};
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue