File indexing completed on 2024-05-12 03:49:08

0001 /*
0002     File                 : HistoryDialog.h
0003     Project              : LabPlot
0004     Description          : history dialog
0005     --------------------------------------------------------------------
0006     SPDX-FileCopyrightText: 2012-2016 Alexander Semke <alexander.semke@web.de>
0007 
0008     SPDX-License-Identifier: GPL-2.0-or-later
0009 */
0010 
0011 #ifndef HISTORYDIALOG_H
0012 #define HISTORYDIALOG_H
0013 
0014 #include <QDialog>
0015 
0016 class QUndoStack;
0017 class QPushButton;
0018 
0019 class HistoryDialog : public QDialog {
0020     Q_OBJECT
0021 
0022 public:
0023     HistoryDialog(QWidget*, QUndoStack*, const QString&);
0024     ~HistoryDialog() override;
0025 
0026 private:
0027     QUndoStack* m_undoStack;
0028     QPushButton* m_okButton;
0029     QPushButton* m_clearUndoStackButton{nullptr};
0030 
0031 private Q_SLOTS:
0032     void clearUndoStack();
0033 };
0034 
0035 #endif