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

#include <user_info_box.h>

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

Public Slots

void updateInfo (const ServerInfo_User &user)
void updateInfo (const QString &userName)

Public Member Functions

 UserInfoBox (AbstractClient *_client, bool editable, QWidget *parent=nullptr, Qt::WindowFlags flags={})
void retranslateUi ()

Static Public Member Functions

static QPair< int, int > getDaysAndYearsBetween (const QDate &then, const QDate &now)

Private Slots

void processResponse (const Response &r)
void processEditResponse (const Response &r)
void processPasswordResponse (const Response &r)
void processAvatarResponse (const Response &r)
void actEdit ()
void actEditInternal (const Response &r)
void actPassword ()
void actAvatar ()

Private Member Functions

void resizeEvent (QResizeEvent *event) override
void changePassword (const QString &oldPassword, const QString &newPassword)

Static Private Member Functions

static QString getAgeString (int ageSeconds)

Private Attributes

AbstractClientclient
bool editable
QLabel avatarPic
QLabel userLevelIcon
QLabel nameLabel
QLabel realNameLabel1
QLabel realNameLabel2
QLabel countryLabel1
QLabel countryLabel2
QLabel countryLabel3
QLabel userLevelLabel1
QLabel userLevelLabel2
QLabel accountAgeLabel1
QLabel accountAgeLabel2
QPushButton editButton
QPushButton passwordButton
QPushButton avatarButton
QPixmap avatarPixmap
bool hasAvatar
const ServerInfo_User * currentUserInfo

Constructor & Destructor Documentation

◆ UserInfoBox()

UserInfoBox::UserInfoBox ( AbstractClient * _client,
bool editable,
QWidget * parent = nullptr,
Qt::WindowFlags flags = {} )
Here is the call graph for this function:

Member Function Documentation

◆ actAvatar

void UserInfoBox::actAvatar ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ actEdit

void UserInfoBox::actEdit ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ actEditInternal

void UserInfoBox::actEditInternal ( const Response & r)
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ actPassword

void UserInfoBox::actPassword ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ changePassword()

void UserInfoBox::changePassword ( const QString & oldPassword,
const QString & newPassword )
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getAgeString()

QString UserInfoBox::getAgeString ( int ageSeconds)
staticprivate
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getDaysAndYearsBetween()

QPair< int, int > UserInfoBox::getDaysAndYearsBetween ( const QDate & then,
const QDate & now )
inlinestatic
Here is the caller graph for this function:

◆ processAvatarResponse

void UserInfoBox::processAvatarResponse ( const Response & r)
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ processEditResponse

void UserInfoBox::processEditResponse ( const Response & r)
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ processPasswordResponse

void UserInfoBox::processPasswordResponse ( const Response & r)
privateslot
Here is the caller graph for this function:

◆ processResponse

void UserInfoBox::processResponse ( const Response & r)
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ resizeEvent()

void UserInfoBox::resizeEvent ( QResizeEvent * event)
overrideprivate
Here is the call graph for this function:

◆ retranslateUi()

void UserInfoBox::retranslateUi ( )
Here is the caller graph for this function:

◆ updateInfo [1/2]

void UserInfoBox::updateInfo ( const QString & userName)
slot
Here is the call graph for this function:

◆ updateInfo [2/2]

void UserInfoBox::updateInfo ( const ServerInfo_User & user)
slot
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ accountAgeLabel1

QLabel UserInfoBox::accountAgeLabel1
private

◆ accountAgeLabel2

QLabel UserInfoBox::accountAgeLabel2
private

◆ avatarButton

QPushButton UserInfoBox::avatarButton
private

◆ avatarPic

QLabel UserInfoBox::avatarPic
private

◆ avatarPixmap

QPixmap UserInfoBox::avatarPixmap
private

◆ client

AbstractClient* UserInfoBox::client
private

◆ countryLabel1

QLabel UserInfoBox::countryLabel1
private

◆ countryLabel2

QLabel UserInfoBox::countryLabel2
private

◆ countryLabel3

QLabel UserInfoBox::countryLabel3
private

◆ currentUserInfo

const ServerInfo_User* UserInfoBox::currentUserInfo
private

◆ editable

bool UserInfoBox::editable
private

◆ editButton

QPushButton UserInfoBox::editButton
private

◆ hasAvatar

bool UserInfoBox::hasAvatar
private

◆ nameLabel

QLabel UserInfoBox::nameLabel
private

◆ passwordButton

QPushButton UserInfoBox::passwordButton
private

◆ realNameLabel1

QLabel UserInfoBox::realNameLabel1
private

◆ realNameLabel2

QLabel UserInfoBox::realNameLabel2
private

◆ userLevelIcon

QLabel UserInfoBox::userLevelIcon
private

◆ userLevelLabel1

QLabel UserInfoBox::userLevelLabel1
private

◆ userLevelLabel2

QLabel UserInfoBox::userLevelLabel2
private

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