EntryDialog.h 767 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*
  2. * Copyright (C) 2010 Emweb bvba, Kessel-Lo, Belgium.
  3. *
  4. * See the LICENSE file for terms of use.
  5. */
  6. #ifndef ENTRY_DIALOG_H_
  7. #define ENTRY_DIALOG_H_
  8. #include <Wt/WDialog>
  9. #include <Wt/WDate>
  10. #include <Wt/WDateTime>
  11. #include <Wt/WLineEdit>
  12. #include <Wt/WTextArea>
  13. #include "CalendarCell.h"
  14. class EntryDialog : public Wt::WDialog {
  15. public:
  16. EntryDialog(const Wt::WString& title, CalendarCell* cell);
  17. private:
  18. Wt::WDateTime timeStamp(const Wt::WString& time, const Wt::WDate& day);
  19. Wt::WString description();
  20. void ok();
  21. void cancel();
  22. public:
  23. static Wt::WString timeFormat;
  24. private:
  25. CalendarCell* cell_;
  26. Wt::WLineEdit* summary_;
  27. Wt::WLineEdit* start_;
  28. Wt::WLineEdit* stop_;
  29. Wt::WTextArea* description_;
  30. };
  31. #endif //ENTRY_DIALOG_H_