WarningMessagesDialog.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
  2. file Copyright.txt or https://cmake.org/licensing for details. */
  3. #ifndef WarningMessagesDialog_h
  4. #define WarningMessagesDialog_h
  5. #include "QCMake.h"
  6. #include <QDialog>
  7. #include <QWidget>
  8. #include "ui_WarningMessagesDialog.h"
  9. /**
  10. * Dialog window for setting the warning message related options.
  11. */
  12. class WarningMessagesDialog
  13. : public QDialog
  14. , public Ui_MessagesDialog
  15. {
  16. Q_OBJECT
  17. public:
  18. WarningMessagesDialog(QWidget* prnt, QCMake* instance);
  19. private slots:
  20. /**
  21. * Handler for the accept event of the ok/cancel button box.
  22. */
  23. void doAccept();
  24. /**
  25. * Handler for checked state changed event of the suppress developer warnings
  26. * checkbox.
  27. */
  28. void doSuppressDeveloperWarningsChanged(int state);
  29. /**
  30. * Handler for checked state changed event of the suppress deprecated
  31. * warnings checkbox.
  32. */
  33. void doSuppressDeprecatedWarningsChanged(int state);
  34. /**
  35. * Handler for checked state changed event of the developer warnings as
  36. * errors checkbox.
  37. */
  38. void doDeveloperWarningsAsErrorsChanged(int state);
  39. /**
  40. * Handler for checked state changed event of the deprecated warnings as
  41. * errors checkbox.
  42. */
  43. void doDeprecatedWarningsAsErrorsChanged(int state);
  44. private:
  45. QCMake* cmakeInstance;
  46. /**
  47. * Set the initial values of the widgets on this dialog window, using the
  48. * current state of the cache.
  49. */
  50. void setInitialValues();
  51. /**
  52. * Setup the signals for the widgets on this dialog window.
  53. */
  54. void setupSignals();
  55. };
  56. #endif /* MessageDialog_h */