WarningMessagesDialog.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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 <QDialog>
  6. #include <QWidget>
  7. #include "QCMake.h"
  8. #include "ui_WarningMessagesDialog.h"
  9. /**
  10. * Dialog window for setting the warning message related options.
  11. */
  12. class WarningMessagesDialog : public QDialog, public Ui_MessagesDialog
  13. {
  14. Q_OBJECT
  15. public:
  16. WarningMessagesDialog(QWidget* prnt, QCMake* instance);
  17. private slots:
  18. /**
  19. * Handler for the accept event of the ok/cancel button box.
  20. */
  21. void doAccept();
  22. /**
  23. * Handler for checked state changed event of the suppress developer warnings
  24. * checkbox.
  25. */
  26. void doSuppressDeveloperWarningsChanged(int state);
  27. /**
  28. * Handler for checked state changed event of the suppress deprecated
  29. * warnings checkbox.
  30. */
  31. void doSuppressDeprecatedWarningsChanged(int state);
  32. /**
  33. * Handler for checked state changed event of the developer warnings as
  34. * errors checkbox.
  35. */
  36. void doDeveloperWarningsAsErrorsChanged(int state);
  37. /**
  38. * Handler for checked state changed event of the deprecated warnings as
  39. * errors checkbox.
  40. */
  41. void doDeprecatedWarningsAsErrorsChanged(int state);
  42. private:
  43. QCMake* cmakeInstance;
  44. /**
  45. * Set the initial values of the widgets on this dialog window, using the
  46. * current state of the cache.
  47. */
  48. void setInitialValues();
  49. /**
  50. * Setup the signals for the widgets on this dialog window.
  51. */
  52. void setupSignals();
  53. };
  54. #endif /* MessageDialog_h */