Cockatrice 2026-09-01-Development-3.1.0-beta.10
A virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
TabReport Class Reference

#include <tab_report.h>

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

Signals

void openReplay (GameReplay *replay)
void requestJoinGame (int gameId, int roomId)
Signals inherited from Tab
void userEvent (bool globalEvent=true)
void tabTextChanged (Tab *tab, const QString &newTabText)
void cockatriceLinkActivated (const QString &url)

Public Member Functions

 TabReport (TabSupervisor *_tabSupervisor, AbstractClient *_client)
void retranslateUi () override
QString getTabText () const override
Public Member Functions inherited from Tab
 Tab (TabSupervisor *_tabSupervisor)
const QList< QMenu * > & getTabMenus () const
TabSupervisorgetTabSupervisor () const
bool getContentsChanged () const
void setContentsChanged (bool _contentsChanged)
virtual bool closeRequest ()
virtual void tabActivated ()

Private Slots

void refreshList ()
void reportListResponse (const Response &response)
void assignReport ()
void assignResponse (const Response &response)
void resolveReport (bool dismissed, bool promptNote)
void resolveResponse (const Response &response)
void onSelectionChanged ()
void viewReplay ()
void viewReplayResponse (const Response &response)
void joinGame ()
void addComment ()
void addCommentResponse (const Response &response)
void requestUserInfo (const QString &userName)
void userInfoResponse (const Response &response)
void reportDetailsResponse (const Response &response)
void requestStats ()
void statsResponse (const Response &response)

Private Member Functions

int selectedReportId () const
bool selectedReportInfo (ServerInfo_Report &info) const
void setActionsEnabled (bool enabled)
void updateActionStates ()
void applyFilters ()
void updateStats ()
void loadReportDetails (int reportId)

Private Attributes

AbstractClientclient
QLineEdit * searchEdit
QComboBox * statusFilter
QCheckBox * unresolvedOnlyBox
QPushButton * refreshButton
QLabel * statsLabel
QTableWidget * table
QSplitter * detailSplitter
QGroupBox * descGroup
QGroupBox * chatGroup
QGroupBox * commentsGroup
QTextEdit * descriptionEdit
QTextEdit * chatLogEdit
QTextEdit * commentsEdit
QLineEdit * commentInput
QPushButton * commentButton
QPushButton * assignButton
QPushButton * resolveButton
QPushButton * resolveWithNoteButton
QPushButton * dismissButton
QPushButton * viewReplayButton
QPushButton * joinGameButton
QLabel * statusLabel
QTimer * refreshTimer
QGroupBox * userContextGroup
QLabel * userContextName
QLabel * userContextAccountAge
QLabel * userContextReports
QLabel * userContextBans
QLabel * userContextWarns
QTextEdit * userContextNotes
QTextEdit * userContextRecentReports
QLabel * userContextUserLabel
QLabel * userContextAgeLabel
QLabel * userContextReportsLabel
QLabel * userContextBansLabel
QLabel * userContextWarnsLabel
QLabel * userContextNotesLabel
QLabel * userContextRecentReportsLabel
QString lastRequestedUser
QGroupBox * statsGroup
QLabel * statsTotalLabel
QLabel * statsTrendLabel
QLabel * statsCategoriesLabel
QTextEdit * statsDetailText
QList< ServerInfo_ReportallReports
QList< ServerInfo_ReportfilteredReports
int detailsRequestedReportId = -1
int detailsRequestSeq = 0
int selectedReportIdBeforeRefresh = -1
QString commentDraftBeforeRefresh
ServerInfo_Report previousSelectedReport
bool previousSelectedReportValid = false

Additional Inherited Members

Protected Slots inherited from Tab
void showCardInfoPopup (const QPoint &pos, const CardRef &cardRef)
void deleteCardInfoPopup (const QString &cardName)
Protected Member Functions inherited from Tab
void addTabMenu (QMenu *menu)
Protected Attributes inherited from Tab
TabSupervisortabSupervisor

Constructor & Destructor Documentation

◆ TabReport()

TabReport::TabReport ( TabSupervisor * _tabSupervisor,
AbstractClient * _client )
Here is the call graph for this function:

Member Function Documentation

◆ addComment

void TabReport::addComment ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ addCommentResponse

void TabReport::addCommentResponse ( const Response & response)
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ applyFilters()

void TabReport::applyFilters ( )
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ assignReport

void TabReport::assignReport ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ assignResponse

void TabReport::assignResponse ( const Response & response)
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getTabText()

QString TabReport::getTabText ( ) const
inlinenodiscardoverridevirtual

Implements Tab.

◆ joinGame

void TabReport::joinGame ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ loadReportDetails()

void TabReport::loadReportDetails ( int reportId)
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ onSelectionChanged

void TabReport::onSelectionChanged ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ openReplay

void TabReport::openReplay ( GameReplay * replay)
signal
Here is the caller graph for this function:

◆ refreshList

void TabReport::refreshList ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ reportDetailsResponse

void TabReport::reportDetailsResponse ( const Response & response)
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ reportListResponse

void TabReport::reportListResponse ( const Response & response)
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ requestJoinGame

void TabReport::requestJoinGame ( int gameId,
int roomId )
signal
Here is the caller graph for this function:

◆ requestStats

void TabReport::requestStats ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ requestUserInfo

void TabReport::requestUserInfo ( const QString & userName)
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ resolveReport

void TabReport::resolveReport ( bool dismissed,
bool promptNote )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ resolveResponse

void TabReport::resolveResponse ( const Response & response)
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ retranslateUi()

void TabReport::retranslateUi ( )
overridevirtual

Implements Tab.

Here is the caller graph for this function:

◆ selectedReportId()

int TabReport::selectedReportId ( ) const
private
Here is the caller graph for this function:

◆ selectedReportInfo()

bool TabReport::selectedReportInfo ( ServerInfo_Report & info) const
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setActionsEnabled()

void TabReport::setActionsEnabled ( bool enabled)
private
Here is the caller graph for this function:

◆ statsResponse

void TabReport::statsResponse ( const Response & response)
privateslot
Here is the caller graph for this function:

◆ updateActionStates()

void TabReport::updateActionStates ( )
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ updateStats()

void TabReport::updateStats ( )
private
Here is the caller graph for this function:

◆ userInfoResponse

void TabReport::userInfoResponse ( const Response & response)
privateslot
Here is the caller graph for this function:

◆ viewReplay

void TabReport::viewReplay ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ viewReplayResponse

void TabReport::viewReplayResponse ( const Response & response)
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ allReports

QList<ServerInfo_Report> TabReport::allReports
private

◆ assignButton

QPushButton* TabReport::assignButton
private

◆ chatGroup

QGroupBox* TabReport::chatGroup
private

◆ chatLogEdit

QTextEdit* TabReport::chatLogEdit
private

◆ client

AbstractClient* TabReport::client
private

◆ commentButton

QPushButton* TabReport::commentButton
private

◆ commentDraftBeforeRefresh

QString TabReport::commentDraftBeforeRefresh
private

◆ commentInput

QLineEdit* TabReport::commentInput
private

◆ commentsEdit

QTextEdit* TabReport::commentsEdit
private

◆ commentsGroup

QGroupBox* TabReport::commentsGroup
private

◆ descGroup

QGroupBox* TabReport::descGroup
private

◆ descriptionEdit

QTextEdit* TabReport::descriptionEdit
private

◆ detailSplitter

QSplitter* TabReport::detailSplitter
private

◆ detailsRequestedReportId

int TabReport::detailsRequestedReportId = -1
private

◆ detailsRequestSeq

int TabReport::detailsRequestSeq = 0
private

◆ dismissButton

QPushButton* TabReport::dismissButton
private

◆ filteredReports

QList<ServerInfo_Report> TabReport::filteredReports
private

◆ joinGameButton

QPushButton* TabReport::joinGameButton
private

◆ lastRequestedUser

QString TabReport::lastRequestedUser
private

◆ previousSelectedReport

ServerInfo_Report TabReport::previousSelectedReport
private

◆ previousSelectedReportValid

bool TabReport::previousSelectedReportValid = false
private

◆ refreshButton

QPushButton* TabReport::refreshButton
private

◆ refreshTimer

QTimer* TabReport::refreshTimer
private

◆ resolveButton

QPushButton* TabReport::resolveButton
private

◆ resolveWithNoteButton

QPushButton* TabReport::resolveWithNoteButton
private

◆ searchEdit

QLineEdit* TabReport::searchEdit
private

◆ selectedReportIdBeforeRefresh

int TabReport::selectedReportIdBeforeRefresh = -1
private

◆ statsCategoriesLabel

QLabel* TabReport::statsCategoriesLabel
private

◆ statsDetailText

QTextEdit* TabReport::statsDetailText
private

◆ statsGroup

QGroupBox* TabReport::statsGroup
private

◆ statsLabel

QLabel* TabReport::statsLabel
private

◆ statsTotalLabel

QLabel* TabReport::statsTotalLabel
private

◆ statsTrendLabel

QLabel* TabReport::statsTrendLabel
private

◆ statusFilter

QComboBox* TabReport::statusFilter
private

◆ statusLabel

QLabel* TabReport::statusLabel
private

◆ table

QTableWidget* TabReport::table
private

◆ unresolvedOnlyBox

QCheckBox* TabReport::unresolvedOnlyBox
private

◆ userContextAccountAge

QLabel* TabReport::userContextAccountAge
private

◆ userContextAgeLabel

QLabel* TabReport::userContextAgeLabel
private

◆ userContextBans

QLabel* TabReport::userContextBans
private

◆ userContextBansLabel

QLabel* TabReport::userContextBansLabel
private

◆ userContextGroup

QGroupBox* TabReport::userContextGroup
private

◆ userContextName

QLabel* TabReport::userContextName
private

◆ userContextNotes

QTextEdit* TabReport::userContextNotes
private

◆ userContextNotesLabel

QLabel* TabReport::userContextNotesLabel
private

◆ userContextRecentReports

QTextEdit* TabReport::userContextRecentReports
private

◆ userContextRecentReportsLabel

QLabel* TabReport::userContextRecentReportsLabel
private

◆ userContextReports

QLabel* TabReport::userContextReports
private

◆ userContextReportsLabel

QLabel* TabReport::userContextReportsLabel
private

◆ userContextUserLabel

QLabel* TabReport::userContextUserLabel
private

◆ userContextWarns

QLabel* TabReport::userContextWarns
private

◆ userContextWarnsLabel

QLabel* TabReport::userContextWarnsLabel
private

◆ viewReplayButton

QPushButton* TabReport::viewReplayButton
private

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