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

#include <card_info_frame_widget.h>

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

Public Types

enum  ViewMode { ImageOnlyView , TextOnlyView , ImageAndTextView }

Public Slots

void setCard (const ExactCard &card)
void setCard (const QString &cardName)
void setCard (const CardRef &cardRef)
void setCard (AbstractCardItem *card)
void viewTransformation ()
void clearCard ()
void setViewMode (int mode)

Public Member Functions

 CardInfoFrameWidget (QWidget *parent=nullptr)
ExactCard getCard ()
void retranslateUi ()

Private Member Functions

void setViewTransformationButtonVisibility (bool visible)
void refreshLayout ()

Private Attributes

ExactCard exactCard
CardInfoPictureWidgetpic
CardInfoTextWidgettext
QPushButton * viewTransformationButton
bool cardTextOnly
QWidget * tab1
QWidget * tab2
QWidget * tab3
QVBoxLayout * tab1Layout
QVBoxLayout * tab2Layout
QVBoxLayout * tab3Layout
QSplitter * splitter

Member Enumeration Documentation

◆ ViewMode

Enumerator
ImageOnlyView 
TextOnlyView 
ImageAndTextView 

Constructor & Destructor Documentation

◆ CardInfoFrameWidget()

CardInfoFrameWidget::CardInfoFrameWidget ( QWidget * parent = nullptr)
explicit
Here is the call graph for this function:

Member Function Documentation

◆ clearCard

void CardInfoFrameWidget::clearCard ( )
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getCard()

ExactCard CardInfoFrameWidget::getCard ( )
inline
Here is the caller graph for this function:

◆ refreshLayout()

void CardInfoFrameWidget::refreshLayout ( )
private

Adds the widgets to the layouts that are relevant to the currently active tab.

QWidgets can only have one parent, so we need to re-parent the shared widgets whenever we switch tabs.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ retranslateUi()

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

◆ setCard [1/4]

void CardInfoFrameWidget::setCard ( AbstractCardItem * card)
slot
Here is the call graph for this function:

◆ setCard [2/4]

void CardInfoFrameWidget::setCard ( const CardRef & cardRef)
slot
Here is the call graph for this function:

◆ setCard [3/4]

void CardInfoFrameWidget::setCard ( const ExactCard & card)
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setCard [4/4]

void CardInfoFrameWidget::setCard ( const QString & cardName)
slot
Here is the call graph for this function:

◆ setViewMode

void CardInfoFrameWidget::setViewMode ( int mode)
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setViewTransformationButtonVisibility()

void CardInfoFrameWidget::setViewTransformationButtonVisibility ( bool visible)
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ viewTransformation

void CardInfoFrameWidget::viewTransformation ( )
slot
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ cardTextOnly

bool CardInfoFrameWidget::cardTextOnly
private

◆ exactCard

ExactCard CardInfoFrameWidget::exactCard
private

◆ pic

CardInfoPictureWidget* CardInfoFrameWidget::pic
private

◆ splitter

QSplitter* CardInfoFrameWidget::splitter
private

◆ tab1

QWidget* CardInfoFrameWidget::tab1
private

◆ tab1Layout

QVBoxLayout* CardInfoFrameWidget::tab1Layout
private

◆ tab2

QWidget * CardInfoFrameWidget::tab2
private

◆ tab2Layout

QVBoxLayout * CardInfoFrameWidget::tab2Layout
private

◆ tab3

QWidget * CardInfoFrameWidget::tab3
private

◆ tab3Layout

QVBoxLayout * CardInfoFrameWidget::tab3Layout
private

◆ text

CardInfoTextWidget* CardInfoFrameWidget::text
private

◆ viewTransformationButton

QPushButton* CardInfoFrameWidget::viewTransformationButton
private

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