Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++
850 B
Raw Blame
/* This file is part of the KDE project
   SPDX-FileCopyrightText: 2012 Boudewijn Rempt <[email protected]>

   SPDX-License-Identifier: LGPL-2.0-or-later
*/
#ifndef KISAUTOSAVERECOVERYDIALOG_H
#define KISAUTOSAVERECOVERYDIALOG_H

#include <KoDialog.h>
#include <QStringList>
#include <QModelIndex>

class QListView;

Q_DECLARE_METATYPE(QModelIndex)

class KisAutoSaveRecoveryDialog : public KoDialog
{
    Q_OBJECT
public:

    explicit KisAutoSaveRecoveryDialog(const QStringList &filenames, QWidget *parent = 0);
    ~KisAutoSaveRecoveryDialog() override;
    QStringList recoverableFiles();
    static QString autoSaveLocation();

public Q_SLOTS:

    void toggleFileItem(bool toggle);
    void slotDeleteAll();

private:

    QListView *m_listView;

    class FileItemModel;
    FileItemModel *m_model;
};


#endif // KISAUTOSAVERECOVERYDIALOG_H