43 lines
826 B
C++
43 lines
826 B
C++
#ifndef HF_NAPTAR_ADD_DATE_WINDOW_H
|
|
#define HF_NAPTAR_ADD_DATE_WINDOW_H
|
|
#include <gtkmm/dialog.h>
|
|
#include <gtkmm/builder.h>
|
|
#include <gtkmm/button.h>
|
|
#include <gtkmm/box.h>
|
|
#include <gtkmm/calendar.h>
|
|
#include <gtkmm/entry.h>
|
|
#include <gtkmm/label.h>
|
|
|
|
|
|
#include "Naptar.h"
|
|
|
|
class AddDateWindow : public Gtk::Dialog {
|
|
Gtk::Label label;
|
|
Gtk::Button* ok_button;
|
|
Gtk::Button* cancel_button;
|
|
|
|
protected:
|
|
class ErrorWindow;
|
|
ErrorWindow* error_window;
|
|
Gtk::Calendar calendar;
|
|
Gtk::Entry entry;
|
|
Naptar& np;
|
|
void createErrorWindow();
|
|
|
|
virtual void addToCalendar();
|
|
void errorWinClose();
|
|
|
|
class ErrorWindow : public Gtk::Dialog {
|
|
Gtk::Label text;
|
|
Gtk::Button* btn;
|
|
public:
|
|
ErrorWindow();
|
|
~ErrorWindow();
|
|
};
|
|
public:
|
|
AddDateWindow(Naptar& np);
|
|
virtual ~AddDateWindow();
|
|
|
|
};
|
|
|
|
#endif
|