Engauge Digitizer 2
Loading...
Searching...
No Matches
DlgErrorReport.h
1/******************************************************************************************************
2 * (C) 2014 markummitchell@github.com. This file is part of Engauge Digitizer, which is released *
3 * under GNU General Public License version 2 (GPLv2) or (at your option) any later version. See file *
4 * LICENSE or go to gnu.org/licenses for details. Distribution requires prior written permission. *
5 ******************************************************************************************************/
6
7#ifndef DLG_ERROR_REPORT_H
8#define DLG_ERROR_REPORT_H
9
10#include <QDialog>
11
12class QCheckBox;
13class QPushButton;
14
17class DlgErrorReport : public QDialog
18{
19 Q_OBJECT;
20
21 public:
23 DlgErrorReport (const QString &xmlWithImage,
24 QWidget *parent = 0);
25
27
29 QString xmlToUpload() const;
30
31 private slots:
32 void slotDocumentCheckboxChanged(int);
33 void slotSend();
34
35 private:
37
38 QString errorFile () const;
39 void removeFile () const;
40 void saveFile (const QString &xml) const;
41 void updateFile();
42
43 QCheckBox *m_chkOriginal;
44 QPushButton *m_btnSend;
45 QPushButton *m_btnCancel;
46 QString m_xmlOriginal;
47 QString m_xmlAnonymized;
48 QString m_xmlToUpload; // Either m_xmlWithoutDocument or m_xmlWithDocument
49};
50
51#endif // DLG_ERROR_REPORT_H
Dialog for sending error report.
QString xmlToUpload() const
Xml to be uploaded. Includes document if user has approved.