![]() |
Cockatrice 2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
|
#include <card_info_frame_widget.h>
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 |
| CardInfoPictureWidget * | pic |
| CardInfoTextWidget * | text |
| QPushButton * | viewTransformationButton |
| bool | cardTextOnly |
| QWidget * | tab1 |
| QWidget * | tab2 |
| QWidget * | tab3 |
| QVBoxLayout * | tab1Layout |
| QVBoxLayout * | tab2Layout |
| QVBoxLayout * | tab3Layout |
| QSplitter * | splitter |
|
explicit |
|
slot |
|
inline |
|
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.
| void CardInfoFrameWidget::retranslateUi | ( | ) |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
private |
|
slot |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |