![]() |
Cockatrice 2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
|
The activated toolbar used to create a temporary deck share. More...
#include <share_bar_widget.h>
Signals | |
| void | createRequested () |
| void | cancelRequested () |
Public Member Functions | |
| ShareBarWidget (QWidget *parent=nullptr) | |
| void | retranslateUi () |
| QString | name () const |
| void | setName (const QString &name) |
| Resets the name field to the given default. | |
| void | setCountText (const QString &text) |
| Sets the selected-count summary label text. | |
| void | setHintText (const QString &text, bool visible) |
Sets the explainer hint text, showing it when visible is true. | |
| void | setCreateEnabled (bool enabled) |
| Enables or disables the create-share-link button (guards double submission). | |
| void | focusName () |
| Moves keyboard focus to the name field. | |
Private Attributes | |
| QLabel * | hintLabel |
| QLineEdit * | nameEdit |
| QLabel * | countLabel |
| QPushButton * | cancelButton |
| QPushButton * | createButton |
The activated toolbar used to create a temporary deck share.
A single reusable component shared by the local visual deck storage and the remote server deck storage tabs, so the share workflow renders identically in both places. It owns its own widgets, strings, and layout; the owning tab only sets the count/hint text and reacts to the create/cancel signals.
|
explicit |
|
signal |
|
signal |
| void ShareBarWidget::focusName | ( | ) |
Moves keyboard focus to the name field.
|
nodiscard |
| void ShareBarWidget::retranslateUi | ( | ) |
| void ShareBarWidget::setCountText | ( | const QString & | text | ) |
Sets the selected-count summary label text.
| void ShareBarWidget::setCreateEnabled | ( | bool | enabled | ) |
Enables or disables the create-share-link button (guards double submission).
| void ShareBarWidget::setHintText | ( | const QString & | text, |
| bool | visible ) |
Sets the explainer hint text, showing it when visible is true.
| void ShareBarWidget::setName | ( | const QString & | name | ) |
Resets the name field to the given default.
|
private |
|
private |
|
private |
|
private |
|
private |