Cockatrice 2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
user_list_panel_widget.h
Go to the documentation of this file.
1
5
6#ifndef COCKATRICE_USER_LIST_PANEL_WIDGET_H
7#define COCKATRICE_USER_LIST_PANEL_WIDGET_H
8
9#include "user_list_widget.h"
10
11#include <QString>
12#include <QWidget>
13#include <qtmetamacros.h>
14
15class AbstractClient;
16class QLineEdit;
17class TabSupervisor;
18class UserListManager;
19
24class UserListPanelWidget : public QWidget
25{
26 Q_OBJECT
27
28public:
29 explicit UserListPanelWidget(TabSupervisor *tabSupervisor, AbstractClient *client, QWidget *parent = nullptr);
30 void bind(UserListManager *manager);
31 void retranslateUi();
32
33 [[nodiscard]] UserListWidget *getUserList() const;
34
35signals:
36 void openMessageDialog(const QString &userName, bool focus);
37
38private:
39 void persistExpandedSections(UserListWidget::Section section, bool expanded);
40
41 QLineEdit *searchBar = nullptr;
43};
44
45#endif // COCKATRICE_USER_LIST_PANEL_WIDGET_H
Definition abstract_client.h:73
Definition tab_supervisor.h:92
Definition user_list_manager.h:31
QLineEdit * searchBar
Definition user_list_panel_widget.h:41
UserListWidget * userList
Definition user_list_panel_widget.h:42
void retranslateUi()
Definition user_list_panel_widget.cpp:80
void persistExpandedSections(UserListWidget::Section section, bool expanded)
Definition user_list_panel_widget.cpp:66
UserListPanelWidget(TabSupervisor *tabSupervisor, AbstractClient *client, QWidget *parent=nullptr)
Definition user_list_panel_widget.cpp:31
void bind(UserListManager *manager)
Definition user_list_panel_widget.cpp:61
void openMessageDialog(const QString &userName, bool focus)
UserListWidget * getUserList() const
Definition user_list_panel_widget.cpp:86
Definition user_list_widget.h:78
Section
Definition user_list_widget.h:89