-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtimerwindow.h
More file actions
40 lines (33 loc) · 879 Bytes
/
timerwindow.h
File metadata and controls
40 lines (33 loc) · 879 Bytes
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
//
// Created by Asus on 10/03/2025.
//
#ifndef TIMER_TIMERWINDOW_H
#define TIMER_TIMERWINDOW_H
#include <QWidget>
#include <QTimer>
#include <QTime>
#include <QListWidget>
#include "timeritem.h"
#include <QMenu>
QT_BEGIN_NAMESPACE
namespace Ui { class TimerWindow; }
QT_END_NAMESPACE
class TimerWindow : public QWidget {
Q_OBJECT
public:
explicit TimerWindow(QWidget *parent = nullptr);
QString getSoundType() const { return soundType; }
void selectSound();
void selectSoundOption(int index);
~TimerWindow() override;
private slots:
void addTimer(); // Aggiunge un nuovo timer
void removeTimer(TimerItem *timer);// Rimuove un timer
void showTitleEditor();
private:
QString genericTitle;
QString soundType;
Ui::TimerWindow *ui;
QList<TimerItem*> activeTimers; // Lista dei timer attivi
};
#endif //TIMER_TIMERWINDOW_H