tahoma2d/toonz/sources/toonz/svnpurgedialog.h
Shinya Kitaoka d1f6c4e95b REFACTORING: Add final specifiers (#537)
* add final specifiers

* apply clang-format

* fix for macOS
2016-06-29 15:17:12 +09:00

49 lines
912 B
C++

#pragma once
#ifndef SVN_PURGE_DIALOG_H
#define SVN_PURGE_DIALOG_H
#include "toonzqt/dvdialog.h"
#include "versioncontrol.h"
#include <QList>
class QPushButton;
class QLabel;
//-----------------------------------------------------------------------------
class SVNPurgeDialog final : public DVGui::Dialog {
Q_OBJECT
QString m_workingDir;
QPushButton *m_purgeButton;
QPushButton *m_cancelButton;
QLabel *m_waitingLabel;
QLabel *m_textLabel;
QList<SVNStatus> m_status;
VersionControlThread m_thread;
QStringList m_filesToPurge;
public:
SVNPurgeDialog(QWidget *parent, const QString &workingDir);
private:
void switchToCloseButton();
void checkFiles();
void updateFileBrowser();
protected slots:
void onPurgeClicked();
void onStatusRetrieved(const QString &);
void onError(const QString &);
signals:
void done(const QStringList &);
};
#endif // SVN_PURGE_DIALOG_H