Cockatrice 2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
dlg_tip_of_the_day.h
Go to the documentation of this file.
1
6
7#ifndef DLG_TIPOFDAY_H
8#define DLG_TIPOFDAY_H
9
10#include <QDialog>
11#include <QLoggingCategory>
12#include <qtmetamacros.h>
13
14class QDialogButtonBox;
15class QHBoxLayout;
16class QPixmap;
17class QVBoxLayout;
18class QWidget;
19
20inline Q_LOGGING_CATEGORY(DlgTipOfTheDayLog, "dlg_tip_of_the_day");
21
22class QLabel;
23class QPushButton;
24class QCheckBox;
25class TipsOfTheDay;
26
27class DlgTipOfTheDay : public QDialog
28{
29 Q_OBJECT
30public:
31 explicit DlgTipOfTheDay(QWidget *parent = nullptr);
32 ~DlgTipOfTheDay() override;
35signals:
36 void newTipRequested(int tipId);
37
38protected:
39 void resizeEvent(QResizeEvent *event) override;
40
41private:
42 unsigned int currentTip;
46 QPixmap *image;
47
48 QVBoxLayout *content, *mainLayout;
49 QDialogButtonBox *buttonBox;
50 QPushButton *nextButton, *previousButton;
51 QHBoxLayout *buttonBar;
52
53private slots:
54 void nextClicked();
55 void previousClicked();
56 void updateTip(int tipId);
57};
58
59#endif
QLabel * tipNumber
Definition dlg_tip_of_the_day.h:44
TipsOfTheDay * tipDatabase
Definition dlg_tip_of_the_day.h:43
QLabel * date
Definition dlg_tip_of_the_day.h:44
void resizeEvent(QResizeEvent *event) override
Definition dlg_tip_of_the_day.cpp:177
DlgTipOfTheDay(QWidget *parent=nullptr)
Definition dlg_tip_of_the_day.cpp:29
QPushButton * previousButton
Definition dlg_tip_of_the_day.h:50
void updateTip(int tipId)
Definition dlg_tip_of_the_day.cpp:133
bool successfulInit
Definition dlg_tip_of_the_day.h:33
QPixmap * image
Definition dlg_tip_of_the_day.h:46
QLabel * imageLabel
Definition dlg_tip_of_the_day.h:44
void previousClicked()
Definition dlg_tip_of_the_day.cpp:128
QVBoxLayout * mainLayout
Definition dlg_tip_of_the_day.h:48
QLabel * tipTextContent
Definition dlg_tip_of_the_day.h:44
bool newTipsAvailable
Definition dlg_tip_of_the_day.h:34
void nextClicked()
Definition dlg_tip_of_the_day.cpp:123
QVBoxLayout * content
Definition dlg_tip_of_the_day.h:48
QDialogButtonBox * buttonBox
Definition dlg_tip_of_the_day.h:49
QHBoxLayout * buttonBar
Definition dlg_tip_of_the_day.h:51
unsigned int currentTip
Definition dlg_tip_of_the_day.h:42
QCheckBox * showTipsOnStartupCheck
Definition dlg_tip_of_the_day.h:45
void newTipRequested(int tipId)
QPushButton * nextButton
Definition dlg_tip_of_the_day.h:50
QLabel * title
Definition dlg_tip_of_the_day.h:44
Definition tip_of_the_day.h:46
Q_LOGGING_CATEGORY(CrashReportLog, "crash_report")