-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathmainwindow.h
86 lines (77 loc) · 2.15 KB
/
mainwindow.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QSystemTrayIcon>
#include <QMainWindow>
#include <QDialogButtonBox>
#include <QListWidgetItem>
#include "timer.h"
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
private:
Ui::MainWindow *ui;
QSystemTrayIcon *trayIcon;
QMenu *trayIconMenu;
Timer *TimeKeeper;
Alarm *CurAlarm;
Schedules *_Schedules;
int _lastDeletedIndex=-1;
bool _isMilTime;
bool _prevTimeWasMil;
bool _supportsTray;
bool _WarnOnPm;
bool testrun=false;
void displayTimeMode();
void LoadOptions();
void closeEvent(QCloseEvent*);
void SetupClock();
void UpdateClock();
void PMWarning();
void PopulateListWidget();
void DisablePanelIfNoSelection();
void UpdateListWidget();
void ChangeIconToDefault();
void SetupSlots(QAction *,QAction *);
void SetupTrayIcon(QAction *,QAction*);
void SetupVolume();
void ConfigureButtons();
void TerminateIfRunning();
void DisableGUIIfOneshot(bool);
const QString solveNotificationTitle = "Solve To Silence";
const QString solveNotification = "Solve to Silence is a new feature that prevents the user from dismissing snooze until they solve a math problem";
bool toggleOnDuplicateProcess;
private slots:
void ToggleWindow();
void ShowActiveAlarm(int index);
void ToggleWindow(QSystemTrayIcon::ActivationReason);
void AddRemoveAlarm(QAbstractButton*);
void SetTime();
void SetCustomDate();
void ToggleMon(bool);
void ToggleTue(bool);
void ToggleWed(bool);
void ToggleThur(bool);
void ToggleFri(bool);
void ToggleSat(bool);
void ToggleSun(bool);
void ToggleCust(bool);
void ToggleBastard(bool);
void ToggleOneshot(bool);
void Quit();
void OpenDiaglog(bool);
void TestAlarm();
void ShowAbout();
void SnoozeMenuCheck();
void BastardMenuCheck();
void timeCheck();
void ShowSettings();
void SendTrayMessage(QString title, QString message);
void handleLocalConnection();
};
#endif // MAINWINDOW_H