SettingDialog.h 692 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #pragma once
  2. #include <QDialog>
  3. #include "ui_SettingDialog.h"
  4. #include <qabstractbutton.h>
  5. /**
  6. * A dialog to change the Setting for the main program.
  7. */
  8. class SettingDialog : public QDialog
  9. {
  10. Q_OBJECT
  11. public:
  12. SettingDialog(QWidget *parent = Q_NULLPTR);
  13. ~SettingDialog();
  14. private:
  15. Ui::SettingDialog ui;
  16. /**
  17. * Apply the settings and close the SettingDialog afterwords.
  18. */
  19. void acceptButtonClicked();
  20. /**
  21. * Save the changes from the dialog to the actual settings.
  22. */
  23. void apply();
  24. public slots:
  25. /**
  26. * Handle the button clicked in the SettingDialog.
  27. * @param button the Button returned from the Signal.
  28. */
  29. void dialogButtonHandler(QAbstractButton* button);
  30. };