Cockatrice
2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
Toggle main menu visibility
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
14
class
QDialogButtonBox;
15
class
QHBoxLayout;
16
class
QPixmap;
17
class
QVBoxLayout;
18
class
QWidget;
19
20
inline
Q_LOGGING_CATEGORY
(DlgTipOfTheDayLog,
"dlg_tip_of_the_day"
);
21
22
class
QLabel;
23
class
QPushButton;
24
class
QCheckBox;
25
class
TipsOfTheDay
;
26
27
class
DlgTipOfTheDay
:
public
QDialog
28
{
29
Q_OBJECT
30
public
:
31
explicit
DlgTipOfTheDay
(QWidget *parent =
nullptr
);
32
~DlgTipOfTheDay
()
override
;
33
bool
successfulInit
;
34
bool
newTipsAvailable
;
35
signals:
36
void
newTipRequested
(
int
tipId);
37
38
protected
:
39
void
resizeEvent
(QResizeEvent *event)
override
;
40
41
private
:
42
unsigned
int
currentTip
;
43
TipsOfTheDay
*
tipDatabase
;
44
QLabel *
title
, *
tipTextContent
, *
imageLabel
, *
tipNumber
, *
date
;
45
QCheckBox *
showTipsOnStartupCheck
;
46
QPixmap *
image
;
47
48
QVBoxLayout *
content
, *
mainLayout
;
49
QDialogButtonBox *
buttonBox
;
50
QPushButton *
nextButton
, *
previousButton
;
51
QHBoxLayout *
buttonBar
;
52
53
private
slots:
54
void
nextClicked
();
55
void
previousClicked
();
56
void
updateTip
(
int
tipId);
57
};
58
59
#endif
DlgTipOfTheDay::tipNumber
QLabel * tipNumber
Definition
dlg_tip_of_the_day.h:44
DlgTipOfTheDay::tipDatabase
TipsOfTheDay * tipDatabase
Definition
dlg_tip_of_the_day.h:43
DlgTipOfTheDay::date
QLabel * date
Definition
dlg_tip_of_the_day.h:44
DlgTipOfTheDay::resizeEvent
void resizeEvent(QResizeEvent *event) override
Definition
dlg_tip_of_the_day.cpp:177
DlgTipOfTheDay::DlgTipOfTheDay
DlgTipOfTheDay(QWidget *parent=nullptr)
Definition
dlg_tip_of_the_day.cpp:29
DlgTipOfTheDay::previousButton
QPushButton * previousButton
Definition
dlg_tip_of_the_day.h:50
DlgTipOfTheDay::updateTip
void updateTip(int tipId)
Definition
dlg_tip_of_the_day.cpp:133
DlgTipOfTheDay::successfulInit
bool successfulInit
Definition
dlg_tip_of_the_day.h:33
DlgTipOfTheDay::image
QPixmap * image
Definition
dlg_tip_of_the_day.h:46
DlgTipOfTheDay::imageLabel
QLabel * imageLabel
Definition
dlg_tip_of_the_day.h:44
DlgTipOfTheDay::previousClicked
void previousClicked()
Definition
dlg_tip_of_the_day.cpp:128
DlgTipOfTheDay::mainLayout
QVBoxLayout * mainLayout
Definition
dlg_tip_of_the_day.h:48
DlgTipOfTheDay::tipTextContent
QLabel * tipTextContent
Definition
dlg_tip_of_the_day.h:44
DlgTipOfTheDay::newTipsAvailable
bool newTipsAvailable
Definition
dlg_tip_of_the_day.h:34
DlgTipOfTheDay::nextClicked
void nextClicked()
Definition
dlg_tip_of_the_day.cpp:123
DlgTipOfTheDay::content
QVBoxLayout * content
Definition
dlg_tip_of_the_day.h:48
DlgTipOfTheDay::buttonBox
QDialogButtonBox * buttonBox
Definition
dlg_tip_of_the_day.h:49
DlgTipOfTheDay::buttonBar
QHBoxLayout * buttonBar
Definition
dlg_tip_of_the_day.h:51
DlgTipOfTheDay::currentTip
unsigned int currentTip
Definition
dlg_tip_of_the_day.h:42
DlgTipOfTheDay::showTipsOnStartupCheck
QCheckBox * showTipsOnStartupCheck
Definition
dlg_tip_of_the_day.h:45
DlgTipOfTheDay::newTipRequested
void newTipRequested(int tipId)
DlgTipOfTheDay::nextButton
QPushButton * nextButton
Definition
dlg_tip_of_the_day.h:50
DlgTipOfTheDay::title
QLabel * title
Definition
dlg_tip_of_the_day.h:44
TipsOfTheDay
Definition
tip_of_the_day.h:46
Q_LOGGING_CATEGORY
Q_LOGGING_CATEGORY(CrashReportLog, "crash_report")
cockatrice
src
interface
widgets
dialogs
dlg_tip_of_the_day.h
Generated by
1.18.0