1 #ifndef DOUBLECALENDARDIALOG_H
2 #define DOUBLECALENDARDIALOG_H
3 
4 #include "Gui/Utils/Widgets/Dialog.h"
5 #include "Utils/Pimpl.h"
6 
7 class QDate;
8 
9 namespace Gui
10 {
11 	class CalendarWidget;
12 
13 	class DoubleCalendarDialog :
14 		public Gui::Dialog
15 	{
16 		Q_OBJECT
17 		PIMPL(DoubleCalendarDialog)
18 
19 	signals:
20 		void sigAccepted();
21 		void sigRejected();
22 
23 	public:
24 		explicit DoubleCalendarDialog(QWidget* parent=nullptr);
25 		~DoubleCalendarDialog() override;
26 
27 		QDate startDate() const;
28 		QDate endDate() const;
29 
30 	private slots:
31 		void startDateSelected(const QDate& date);
32 		void endDateSelected(const QDate& date);
33 	};
34 }
35 
36 #endif // DOUBLECALENDARDIALOG_H
37