WarningMessagesDialog.h 1.5 KB

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