Cockatrice
2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
Toggle main menu visibility
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
15
class
AbstractClient
;
16
class
QLineEdit;
17
class
TabSupervisor
;
18
class
UserListManager
;
19
24
class
UserListPanelWidget
:
public
QWidget
25
{
26
Q_OBJECT
27
28
public
:
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
35
signals:
36
void
openMessageDialog
(
const
QString &userName,
bool
focus);
37
38
private
:
39
void
persistExpandedSections
(
UserListWidget::Section
section,
bool
expanded);
40
41
QLineEdit *
searchBar
=
nullptr
;
42
UserListWidget
*
userList
=
nullptr
;
43
};
44
45
#endif
// COCKATRICE_USER_LIST_PANEL_WIDGET_H
AbstractClient
Definition
abstract_client.h:73
TabSupervisor
Definition
tab_supervisor.h:92
UserListManager
Definition
user_list_manager.h:31
UserListPanelWidget::searchBar
QLineEdit * searchBar
Definition
user_list_panel_widget.h:41
UserListPanelWidget::userList
UserListWidget * userList
Definition
user_list_panel_widget.h:42
UserListPanelWidget::retranslateUi
void retranslateUi()
Definition
user_list_panel_widget.cpp:80
UserListPanelWidget::persistExpandedSections
void persistExpandedSections(UserListWidget::Section section, bool expanded)
Definition
user_list_panel_widget.cpp:66
UserListPanelWidget::UserListPanelWidget
UserListPanelWidget(TabSupervisor *tabSupervisor, AbstractClient *client, QWidget *parent=nullptr)
Definition
user_list_panel_widget.cpp:31
UserListPanelWidget::bind
void bind(UserListManager *manager)
Definition
user_list_panel_widget.cpp:61
UserListPanelWidget::openMessageDialog
void openMessageDialog(const QString &userName, bool focus)
UserListPanelWidget::getUserList
UserListWidget * getUserList() const
Definition
user_list_panel_widget.cpp:86
UserListWidget
Definition
user_list_widget.h:78
UserListWidget::Section
Section
Definition
user_list_widget.h:89
user_list_widget.h
cockatrice
src
interface
widgets
server
user
user_list_panel_widget.h
Generated by
1.18.0