blob: b14fe875197af5894c1b1a7d17c9f8c428571fd5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
/** \file fileErrorDialog.h
\brief Define the dialog error on the file
\author alpha_one_x86
\version 0.3
\date 2010 */
#include <QDialog>
#include <QWidget>
#include <QString>
#include <QDateTime>
#include <QFileInfo>
#include "Environment.h"
#ifndef FILEERRORDIALOG_H
#define FILEERRORDIALOG_H
namespace Ui {
class fileErrorDialog;
}
/// \brief to show error dialog, and ask what do
class fileErrorDialog : public QDialog
{
Q_OBJECT
public:
/// \brief create the object and pass all the informations to it
explicit fileErrorDialog(QWidget *parent,QFileInfo fileInfo,QString errorString,bool havePutAtTheEndButton=true);
~fileErrorDialog();
/// \brief return the the always checkbox is checked
bool getAlways();
/// \brief return the action clicked
FileErrorAction getAction();
protected:
void changeEvent(QEvent *e);
private slots:
void on_PutToBottom_clicked();
void on_Retry_clicked();
void on_Skip_clicked();
void on_Cancel_clicked();
private:
Ui::fileErrorDialog *ui;
FileErrorAction action;
};
#endif // FILEERRORDIALOG_H
|