mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-07 18:43:26 -08:00
[Client] Alt badges, breadcrumb trail, investigate button
AltTableDelegate paints palette-tinted match badges with paint-through selection, style warning/critical icons on nonzero counts, and font/elision handling. TabAlts gains a clickable breadcrumb trail, an Investigate-this-user button, and bold usernames. Async alts responses are guarded against stale investigations.
This commit is contained in:
parent
4d645e7513
commit
803e1e9ec3
5 changed files with 234 additions and 0 deletions
|
|
@ -10,6 +10,7 @@
|
|||
#include <qtmetamacros.h>
|
||||
|
||||
class AbstractClient;
|
||||
class AltTableDelegate;
|
||||
class QGroupBox;
|
||||
class QLabel;
|
||||
class QLineEdit;
|
||||
|
|
@ -41,6 +42,7 @@ public:
|
|||
private slots:
|
||||
void investigateUser();
|
||||
void goBack();
|
||||
void investigateSelected();
|
||||
void altsResponse(const Response &response);
|
||||
void onFilterChanged();
|
||||
void onAltSelected();
|
||||
|
|
@ -50,6 +52,7 @@ private slots:
|
|||
|
||||
private:
|
||||
void loadUser(const QString &userName);
|
||||
void updateTrail();
|
||||
void requestAlts(const QString &userName, int depth);
|
||||
void requestDetails(const QString &userName);
|
||||
void clearDetails();
|
||||
|
|
@ -67,8 +70,11 @@ private:
|
|||
QSpinBox *depthSpin;
|
||||
QPushButton *investigateButton;
|
||||
QPushButton *backButton;
|
||||
QPushButton *investigateSelectedButton;
|
||||
QLabel *trailLabel;
|
||||
QLabel *statusLabel;
|
||||
QTableWidget *altsTable;
|
||||
AltTableDelegate *altsDelegate;
|
||||
|
||||
QPushButton *emailChip;
|
||||
QPushButton *clientIdChip;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue