DialogExample.h 832 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. // This may look like C code, but it's really -*- C++ -*-
  2. /*
  3. * Copyright (C) 2008 Emweb bvba, Kessel-Lo, Belgium.
  4. *
  5. * See the LICENSE file for terms of use.
  6. */
  7. #ifndef DIALOG_EXAMPLE_H_
  8. #define DIALOG_EXAMPLE_H_
  9. #include <Wt/WApplication>
  10. #include <Wt/WMessageBox>
  11. using namespace Wt;
  12. /**
  13. * \defgroup dialog Dialog example
  14. */
  15. /*@{*/
  16. /*! \brief An example illustrating usage of Dialogs
  17. */
  18. class DialogExample : public WApplication
  19. {
  20. public:
  21. /*! \brief Create the example application.
  22. */
  23. DialogExample(const WEnvironment& env);
  24. private:
  25. void messageBox1();
  26. void messageBox2();
  27. void messageBox3();
  28. void messageBox4();
  29. void custom();
  30. void messageBoxDone(StandardButton result);
  31. void setStatus(const WString& text);
  32. WMessageBox *messageBox_;
  33. WText *status_;
  34. };
  35. /*@}*/
  36. #endif // DIALOGEXAMPLE_H_