File indexing completed on 2024-04-28 05:47:44

0001 /*
0002     SPDX-FileCopyrightText: 2016 Ragnar Thomsen <rthomsen6@gmail.com>
0003 
0004     SPDX-License-Identifier: BSD-2-Clause
0005 */
0006 
0007 #ifndef OVERWRITEDIALOG_H
0008 #define OVERWRITEDIALOG_H
0009 
0010 #include "archiveentry.h"
0011 
0012 #include <QDialog>
0013 #include <QDialogButtonBox>
0014 #include <QHBoxLayout>
0015 #include <QLabel>
0016 #include <QListWidget>
0017 #include <QVBoxLayout>
0018 
0019 class OverwriteDialog : public QDialog
0020 {
0021     Q_OBJECT
0022 public:
0023     explicit OverwriteDialog(QWidget *parent, const QList<const Kerfuffle::Archive::Entry *> &entries, bool error = false);
0024     ~OverwriteDialog() override;
0025 
0026 private:
0027     QVBoxLayout m_vBoxLayout;
0028     QHBoxLayout m_messageLayout;
0029     QLabel m_messageIcon;
0030     QLabel m_messageText;
0031     QListWidget m_entriesList;
0032     QDialogButtonBox m_buttonBox;
0033 };
0034 
0035 #endif