-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathalarmwidget.h
44 lines (40 loc) · 1 KB
/
alarmwidget.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
#ifndef ALARMWIDGET_H
#define ALARMWIDGET_H
#include <QWidget>
#include <QPropertyAnimation>
#include <QParallelAnimationGroup>
#include <QGraphicsOpacityEffect>
#include <iostream>
#include <fstream>
#include <QLabel>
#include <QGridLayout>
#include <QFontDatabase>
#include <QPushButton>
#include <QDir>
#include <QLabel>
#include <QListWidget>
#include <boost/algorithm/string.hpp>
#include <QComboBox>
class AlarmWidget : public QWidget
{
Q_OBJECT
public:
explicit AlarmWidget(QWidget *parent = nullptr);
void addButtonClicked();
void removeButtonClicked();
void itemClicked();
void delete_line(char* , int );
std::vector<std::string> getTimes();
signals:
private:
void readTimeSlots(std::string&, QListWidget* alarmList);
bool checkFile (std::string&);
QListWidget* alarmList;
QPushButton* add_alarm;
QPushButton* remove_alarm;
QComboBox* hour_box;
QComboBox* minute_box;
QComboBox* AM_PM_Box;
std::vector<std::string> Times;
};
#endif // ALARMWIDGET_H