mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-08 17:13:57 -07:00
initial commit of local server code
This commit is contained in:
parent
cbfbc542e7
commit
7921b5f82d
35 changed files with 143 additions and 365 deletions
|
|
@ -6,7 +6,7 @@
|
|||
#include <QTreeView>
|
||||
|
||||
class ProtocolResponse;
|
||||
class Client;
|
||||
class AbstractClient;
|
||||
class QSortFilterProxyModel;
|
||||
class DeckList_File;
|
||||
class DeckList_Directory;
|
||||
|
|
@ -55,7 +55,7 @@ public:
|
|||
return dynamic_cast<T>(static_cast<Node *>(index.internalPointer()));
|
||||
}
|
||||
private:
|
||||
Client *client;
|
||||
AbstractClient *client;
|
||||
DirectoryNode *root;
|
||||
|
||||
QIcon fileIcon, dirIcon;
|
||||
|
|
@ -66,7 +66,7 @@ signals:
|
|||
private slots:
|
||||
void deckListFinished(ProtocolResponse *r);
|
||||
public:
|
||||
RemoteDeckList_TreeModel(Client *_client, QObject *parent = 0);
|
||||
RemoteDeckList_TreeModel(AbstractClient *_client, QObject *parent = 0);
|
||||
~RemoteDeckList_TreeModel();
|
||||
int rowCount(const QModelIndex &parent = QModelIndex()) const;
|
||||
int columnCount(const QModelIndex &/*parent*/ = QModelIndex()) const;
|
||||
|
|
@ -89,7 +89,7 @@ private:
|
|||
RemoteDeckList_TreeModel *treeModel;
|
||||
QSortFilterProxyModel *proxyModel;
|
||||
public:
|
||||
RemoteDeckList_TreeWidget(Client *_client, QWidget *parent = 0);
|
||||
RemoteDeckList_TreeWidget(AbstractClient *_client, QWidget *parent = 0);
|
||||
RemoteDeckList_TreeModel::Node *getNode(const QModelIndex &ind) const;
|
||||
RemoteDeckList_TreeModel::Node *getCurrentItem() const;
|
||||
RemoteDeckList_TreeModel::DirectoryNode *getNodeByPath(const QString &path) const;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue