Cockatrice 2025-11-30-Development-2.11.0-beta.38
A cross-platform virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
card_picture_loader_status_bar.h
Go to the documentation of this file.
1#ifndef PICTURE_LOADER_STATUS_BAR_H
2#define PICTURE_LOADER_STATUS_BAR_H
3
6
7#include <QHBoxLayout>
8#include <QProgressBar>
9#include <QWidget>
10
21class CardPictureLoaderStatusBar : public QWidget
22{
23 Q_OBJECT
24public:
29 explicit CardPictureLoaderStatusBar(QWidget *parent);
30
31public slots:
38 void addQueuedImageLoad(const QUrl &url, const ExactCard &card, const QString &setName);
39
45 void addSuccessfulImageLoad(const QUrl &url);
46
51 void cleanOldEntries();
52
53private:
54 QHBoxLayout *layout;
55 QProgressBar *progressBar;
57 QTimer *cleaner;
58};
59
60#endif // PICTURE_LOADER_STATUS_BAR_H
void addSuccessfulImageLoad(const QUrl &url)
Marks an image as successfully loaded. Updates the progress bar and marks the corresponding log entry...
Definition card_picture_loader_status_bar.cpp:47
QTimer * cleaner
Timer for periodically cleaning old log entries.
Definition card_picture_loader_status_bar.h:57
void cleanOldEntries()
Cleans up old entries from the log that have finished more than 10 seconds ago. Adjusts the progress ...
Definition card_picture_loader_status_bar.cpp:24
void addQueuedImageLoad(const QUrl &url, const ExactCard &card, const QString &setName)
Adds a queued image download to the log and increments the progress bar maximum.
Definition card_picture_loader_status_bar.cpp:41
QHBoxLayout * layout
Horizontal layout containing progress bar and log button.
Definition card_picture_loader_status_bar.h:54
SettingsButtonWidget * loadLog
Popup log showing individual request statuses.
Definition card_picture_loader_status_bar.h:56
QProgressBar * progressBar
Progress bar showing overall download progress.
Definition card_picture_loader_status_bar.h:55
CardPictureLoaderStatusBar(QWidget *parent)
Constructs a status bar with progress bar and log button.
Definition card_picture_loader_status_bar.cpp:5
Represents a specific card instance, defined by its CardInfo and a particular printing.
Definition exact_card.h:19
Definition settings_button_widget.h:17
TODO: Document this.