Cockatrice 2026-09-01-Development-3.1.0-beta.10
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 <QWidget>
12
13class AbstractClient;
14class QLineEdit;
15class TabSupervisor;
16class UserListManager;
17
22class UserListPanelWidget : public QWidget
23{
24 Q_OBJECT
25
26public:
27 explicit UserListPanelWidget(TabSupervisor *tabSupervisor, AbstractClient *client, QWidget *parent = nullptr);
28 void bind(UserListManager *manager);
29 void retranslateUi();
30
31 [[nodiscard]] UserListWidget *getUserList() const;
32
33signals:
34 void openMessageDialog(const QString &userName, bool focus);
35
36private:
37 void persistExpandedSections(UserListWidget::Section section, bool expanded);
38
39 QLineEdit *searchBar = nullptr;
41};
42
43#endif // COCKATRICE_USER_LIST_PANEL_WIDGET_H
Definition abstract_client.h:57
Definition tab_supervisor.h:84
Definition user_list_manager.h:27
QLineEdit * searchBar
Definition user_list_panel_widget.h:39
UserListWidget * userList
Definition user_list_panel_widget.h:40
void retranslateUi()
Definition user_list_panel_widget.cpp:79
void persistExpandedSections(UserListWidget::Section section, bool expanded)
Definition user_list_panel_widget.cpp:65
UserListPanelWidget(TabSupervisor *tabSupervisor, AbstractClient *client, QWidget *parent=nullptr)
Definition user_list_panel_widget.cpp:30
void bind(UserListManager *manager)
Definition user_list_panel_widget.cpp:60
void openMessageDialog(const QString &userName, bool focus)
UserListWidget * getUserList() const
Definition user_list_panel_widget.cpp:85
Definition user_list_widget.h:77
Section
Definition user_list_widget.h:88