This repository has been archived by the owner on Apr 9, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
luarccalendar.h
62 lines (52 loc) · 1.51 KB
/
luarccalendar.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
// ***************************************************************************
// * LICENSE : GPLv3 (GNU GENERAL PUBLIC LICENSE Version 3)
// * Copyright (C) 2018 Sven Augustus
// * email: [email protected]
// ***************************************************************************
#ifndef LUARCCALENDAR_H
#define LUARCCALENDAR_H
#include <QWidget>
#include <QDate>
#include <QMap>
#include <QString>
#include <QtGui>
#include <QtWidgets/QTableWidgetItem>
#include "ui_luarccalendar.h"
#include "TCalendar.h"
#include "lunarccdatetime.h"
#include <QSystemTrayIcon>
namespace Ui {
class LuarCCalendar;
}
class LuarCCalendar : public QWidget, private Ui::LuarCCalendar
{
Q_OBJECT
public:
explicit LuarCCalendar(QWidget *parent = 0);
~LuarCCalendar();
private:
//Ui::LuarCCalendar *ui;
int ui_fix_width;
QIcon icon, icon64;
QSystemTrayIcon *trayIcon;
QDate selectedDate;
MyCTCalendar *mycalendar;
int t_yearIndex;
int t_monthIndex;
QMap<QString, LunarCCDateTime> data;
void loadCalendar();
public slots:
void showDayInfo(QTableWidgetItem* item);
void today();
void setTime();
void setYear(int yearIndex);
void setMonth(int monthIndex);
void trayIconCLicked(QSystemTrayIcon::ActivationReason reason);
private slots:
void on_pushButton_preYear_clicked();
void on_pushButton_nextYear_clicked();
void on_pushButton_preMonth_clicked();
void on_pushButton_nextMonth_clicked();
void on_pushButton_today_clicked();
};
#endif // LUARCCALENDAR_H