Cockatrice 2025-11-30-Development-2.11.0-beta.38
A cross-platform virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
RemoteDeckList_TreeWidget Class Reference

#include <remote_decklist_tree_widget.h>

Inheritance diagram for RemoteDeckList_TreeWidget:
[legend]
Collaboration diagram for RemoteDeckList_TreeWidget:
[legend]

Public Member Functions

 RemoteDeckList_TreeWidget (AbstractClient *_client, QWidget *parent=nullptr)
RemoteDeckList_TreeModel::NodegetNode (const QModelIndex &ind) const
RemoteDeckList_TreeModel::NodegetCurrentItem () const
QList< RemoteDeckList_TreeModel::Node * > getCurrentSelection () const
RemoteDeckList_TreeModel::DirectoryNodegetNodeByPath (const QString &path) const
RemoteDeckList_TreeModel::FileNodegetNodeById (int id) const
void addFileToTree (const ServerInfo_DeckStorage_TreeItem &file, RemoteDeckList_TreeModel::DirectoryNode *parent)
void addFolderToTree (const ServerInfo_DeckStorage_TreeItem &folder, RemoteDeckList_TreeModel::DirectoryNode *parent)
void addFolderToTree (const QString &name, RemoteDeckList_TreeModel::DirectoryNode *parent)
void removeNode (RemoteDeckList_TreeModel::Node *node)
void refreshTree ()
void clearTree ()

Private Attributes

RemoteDeckList_TreeModeltreeModel
QSortFilterProxyModel * proxyModel

Constructor & Destructor Documentation

◆ RemoteDeckList_TreeWidget()

RemoteDeckList_TreeWidget::RemoteDeckList_TreeWidget ( AbstractClient * _client,
QWidget * parent = nullptr )
explicit
Here is the call graph for this function:

Member Function Documentation

◆ addFileToTree()

void RemoteDeckList_TreeWidget::addFileToTree ( const ServerInfo_DeckStorage_TreeItem & file,
RemoteDeckList_TreeModel::DirectoryNode * parent )

◆ addFolderToTree() [1/2]

void RemoteDeckList_TreeWidget::addFolderToTree ( const QString & name,
RemoteDeckList_TreeModel::DirectoryNode * parent )

◆ addFolderToTree() [2/2]

void RemoteDeckList_TreeWidget::addFolderToTree ( const ServerInfo_DeckStorage_TreeItem & folder,
RemoteDeckList_TreeModel::DirectoryNode * parent )

◆ clearTree()

void RemoteDeckList_TreeWidget::clearTree ( )

◆ getCurrentItem()

RemoteDeckList_TreeModel::Node * RemoteDeckList_TreeWidget::getCurrentItem ( ) const
nodiscard
Here is the call graph for this function:

◆ getCurrentSelection()

QList< RemoteDeckList_TreeModel::Node * > RemoteDeckList_TreeWidget::getCurrentSelection ( ) const
nodiscard
Here is the call graph for this function:

◆ getNode()

RemoteDeckList_TreeModel::Node * RemoteDeckList_TreeWidget::getNode ( const QModelIndex & ind) const
nodiscard
Here is the caller graph for this function:

◆ getNodeById()

RemoteDeckList_TreeModel::FileNode * RemoteDeckList_TreeWidget::getNodeById ( int id) const
nodiscard

◆ getNodeByPath()

RemoteDeckList_TreeModel::DirectoryNode * RemoteDeckList_TreeWidget::getNodeByPath ( const QString & path) const
nodiscard

◆ refreshTree()

void RemoteDeckList_TreeWidget::refreshTree ( )

◆ removeNode()

void RemoteDeckList_TreeWidget::removeNode ( RemoteDeckList_TreeModel::Node * node)

Member Data Documentation

◆ proxyModel

QSortFilterProxyModel* RemoteDeckList_TreeWidget::proxyModel
private

◆ treeModel

RemoteDeckList_TreeModel* RemoteDeckList_TreeWidget::treeModel
private

The documentation for this class was generated from the following files: