QTfrontend/ui/widget/feedbackdialog.h
author nemo
Wed, 05 Dec 2018 09:50:25 -0500
branch0.9.25
changeset 14368 c2a3d15df7d3
parent 11046 47a8c19ecb60
permissions -rw-r--r--
Add log note just in case pas2c does anything odd.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
8385
9e8924ff9813 Convert feedback page to dialog (+some fixes from unC0Rr)
dag10
parents:
diff changeset
     1
/*
9e8924ff9813 Convert feedback page to dialog (+some fixes from unC0Rr)
dag10
parents:
diff changeset
     2
 * Hedgewars, a free turn based strategy game
11046
47a8c19ecb60 more copyright fixes
sheepluva
parents: 10108
diff changeset
     3
 * Copyright (c) 2004-2015 Andrey Korotaev <unC0Rr@gmail.com>
8385
9e8924ff9813 Convert feedback page to dialog (+some fixes from unC0Rr)
dag10
parents:
diff changeset
     4
 *
9e8924ff9813 Convert feedback page to dialog (+some fixes from unC0Rr)
dag10
parents:
diff changeset
     5
 * This program is free software; you can redistribute it and/or modify
9e8924ff9813 Convert feedback page to dialog (+some fixes from unC0Rr)
dag10
parents:
diff changeset
     6
 * it under the terms of the GNU General Public License as published by
9e8924ff9813 Convert feedback page to dialog (+some fixes from unC0Rr)
dag10
parents:
diff changeset
     7
 * the Free Software Foundation; version 2 of the License
9e8924ff9813 Convert feedback page to dialog (+some fixes from unC0Rr)
dag10
parents:
diff changeset
     8
 *
9e8924ff9813 Convert feedback page to dialog (+some fixes from unC0Rr)
dag10
parents:
diff changeset
     9
 * This program is distributed in the hope that it will be useful,
9e8924ff9813 Convert feedback page to dialog (+some fixes from unC0Rr)
dag10
parents:
diff changeset
    10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9e8924ff9813 Convert feedback page to dialog (+some fixes from unC0Rr)
dag10
parents:
diff changeset
    11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
9e8924ff9813 Convert feedback page to dialog (+some fixes from unC0Rr)
dag10
parents:
diff changeset
    12
 * GNU General Public License for more details.
9e8924ff9813 Convert feedback page to dialog (+some fixes from unC0Rr)
dag10
parents:
diff changeset
    13
 *
9e8924ff9813 Convert feedback page to dialog (+some fixes from unC0Rr)
dag10
parents:
diff changeset
    14
 * You should have received a copy of the GNU General Public License
9e8924ff9813 Convert feedback page to dialog (+some fixes from unC0Rr)
dag10
parents:
diff changeset
    15
 * along with this program; if not, write to the Free Software
10108
c68cf030eded update FSF address. note: two sdl include files (by Sam Lantinga) still have the old FSF address in their copyright - but I ain't gonna touch their copyright headers
sheepluva
parents: 9998
diff changeset
    16
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
8385
9e8924ff9813 Convert feedback page to dialog (+some fixes from unC0Rr)
dag10
parents:
diff changeset
    17
 */
9e8924ff9813 Convert feedback page to dialog (+some fixes from unC0Rr)
dag10
parents:
diff changeset
    18
9e8924ff9813 Convert feedback page to dialog (+some fixes from unC0Rr)
dag10
parents:
diff changeset
    19
#ifndef FEEDBACKDIALOG_H
9e8924ff9813 Convert feedback page to dialog (+some fixes from unC0Rr)
dag10
parents:
diff changeset
    20
#define FEEDBACKDIALOG_H
9e8924ff9813 Convert feedback page to dialog (+some fixes from unC0Rr)
dag10
parents:
diff changeset
    21
9e8924ff9813 Convert feedback page to dialog (+some fixes from unC0Rr)
dag10
parents:
diff changeset
    22
#include <QDialog>
9e8924ff9813 Convert feedback page to dialog (+some fixes from unC0Rr)
dag10
parents:
diff changeset
    23
9e8924ff9813 Convert feedback page to dialog (+some fixes from unC0Rr)
dag10
parents:
diff changeset
    24
class QNetworkReply;
9e8924ff9813 Convert feedback page to dialog (+some fixes from unC0Rr)
dag10
parents:
diff changeset
    25
class QNetworkAccessManager;
9e8924ff9813 Convert feedback page to dialog (+some fixes from unC0Rr)
dag10
parents:
diff changeset
    26
class QCheckBox;
9e8924ff9813 Convert feedback page to dialog (+some fixes from unC0Rr)
dag10
parents:
diff changeset
    27
class QLineEdit;
9e8924ff9813 Convert feedback page to dialog (+some fixes from unC0Rr)
dag10
parents:
diff changeset
    28
class QTextBrowser;
9e8924ff9813 Convert feedback page to dialog (+some fixes from unC0Rr)
dag10
parents:
diff changeset
    29
class QLabel;
9e8924ff9813 Convert feedback page to dialog (+some fixes from unC0Rr)
dag10
parents:
diff changeset
    30
9e8924ff9813 Convert feedback page to dialog (+some fixes from unC0Rr)
dag10
parents:
diff changeset
    31
class FeedbackDialog : public QDialog
9e8924ff9813 Convert feedback page to dialog (+some fixes from unC0Rr)
dag10
parents:
diff changeset
    32
{
9e8924ff9813 Convert feedback page to dialog (+some fixes from unC0Rr)
dag10
parents:
diff changeset
    33
        Q_OBJECT
9e8924ff9813 Convert feedback page to dialog (+some fixes from unC0Rr)
dag10
parents:
diff changeset
    34
9e8924ff9813 Convert feedback page to dialog (+some fixes from unC0Rr)
dag10
parents:
diff changeset
    35
    public:
9e8924ff9813 Convert feedback page to dialog (+some fixes from unC0Rr)
dag10
parents:
diff changeset
    36
        FeedbackDialog(QWidget * parent = 0);
9e8924ff9813 Convert feedback page to dialog (+some fixes from unC0Rr)
dag10
parents:
diff changeset
    37
        void EmbedSystemInfo();
9e8924ff9813 Convert feedback page to dialog (+some fixes from unC0Rr)
dag10
parents:
diff changeset
    38
        void LoadCaptchaImage();
9e8924ff9813 Convert feedback page to dialog (+some fixes from unC0Rr)
dag10
parents:
diff changeset
    39
9e8924ff9813 Convert feedback page to dialog (+some fixes from unC0Rr)
dag10
parents:
diff changeset
    40
        QPushButton * BtnSend;
9e8924ff9813 Convert feedback page to dialog (+some fixes from unC0Rr)
dag10
parents:
diff changeset
    41
        QPushButton * BtnViewInfo;
9e8924ff9813 Convert feedback page to dialog (+some fixes from unC0Rr)
dag10
parents:
diff changeset
    42
        QCheckBox * CheckSendSpecs;
9e8924ff9813 Convert feedback page to dialog (+some fixes from unC0Rr)
dag10
parents:
diff changeset
    43
        QLineEdit * summary;
9e8924ff9813 Convert feedback page to dialog (+some fixes from unC0Rr)
dag10
parents:
diff changeset
    44
        QTextBrowser * description;
9e8924ff9813 Convert feedback page to dialog (+some fixes from unC0Rr)
dag10
parents:
diff changeset
    45
        QLabel * info;
9e8924ff9813 Convert feedback page to dialog (+some fixes from unC0Rr)
dag10
parents:
diff changeset
    46
        QLabel * label_summary;
9e8924ff9813 Convert feedback page to dialog (+some fixes from unC0Rr)
dag10
parents:
diff changeset
    47
        QLabel * label_description;
9e8924ff9813 Convert feedback page to dialog (+some fixes from unC0Rr)
dag10
parents:
diff changeset
    48
        QLabel * label_captcha;
9e8924ff9813 Convert feedback page to dialog (+some fixes from unC0Rr)
dag10
parents:
diff changeset
    49
        QLabel * label_email;
9e8924ff9813 Convert feedback page to dialog (+some fixes from unC0Rr)
dag10
parents:
diff changeset
    50
        QLabel * label_captcha_input;
9e8924ff9813 Convert feedback page to dialog (+some fixes from unC0Rr)
dag10
parents:
diff changeset
    51
        QLineEdit * captcha_code;
9e8924ff9813 Convert feedback page to dialog (+some fixes from unC0Rr)
dag10
parents:
diff changeset
    52
        QLineEdit * email;
9e8924ff9813 Convert feedback page to dialog (+some fixes from unC0Rr)
dag10
parents:
diff changeset
    53
        int captchaID;
9e8924ff9813 Convert feedback page to dialog (+some fixes from unC0Rr)
dag10
parents:
diff changeset
    54
        QString specs;
9e8924ff9813 Convert feedback page to dialog (+some fixes from unC0Rr)
dag10
parents:
diff changeset
    55
9e8924ff9813 Convert feedback page to dialog (+some fixes from unC0Rr)
dag10
parents:
diff changeset
    56
    private:
9e8924ff9813 Convert feedback page to dialog (+some fixes from unC0Rr)
dag10
parents:
diff changeset
    57
        void GenerateSpecs();
9e8924ff9813 Convert feedback page to dialog (+some fixes from unC0Rr)
dag10
parents:
diff changeset
    58
        QLayout * bodyLayoutDefinition();
9e8924ff9813 Convert feedback page to dialog (+some fixes from unC0Rr)
dag10
parents:
diff changeset
    59
        QLayout * footerLayoutDefinition();
9e8924ff9813 Convert feedback page to dialog (+some fixes from unC0Rr)
dag10
parents:
diff changeset
    60
        QNetworkAccessManager * GetNetManager();
9e8924ff9813 Convert feedback page to dialog (+some fixes from unC0Rr)
dag10
parents:
diff changeset
    61
        void ShowErrorMessage(const QString & msg);
9e8924ff9813 Convert feedback page to dialog (+some fixes from unC0Rr)
dag10
parents:
diff changeset
    62
9e8924ff9813 Convert feedback page to dialog (+some fixes from unC0Rr)
dag10
parents:
diff changeset
    63
        QNetworkAccessManager * netManager;
9e8924ff9813 Convert feedback page to dialog (+some fixes from unC0Rr)
dag10
parents:
diff changeset
    64
        QNetworkReply * captchaImageRequest;
9e8924ff9813 Convert feedback page to dialog (+some fixes from unC0Rr)
dag10
parents:
diff changeset
    65
        QNetworkReply * genCaptchaRequest;
9e8924ff9813 Convert feedback page to dialog (+some fixes from unC0Rr)
dag10
parents:
diff changeset
    66
        QNetworkAccessManager * nam;
9e8924ff9813 Convert feedback page to dialog (+some fixes from unC0Rr)
dag10
parents:
diff changeset
    67
9e8924ff9813 Convert feedback page to dialog (+some fixes from unC0Rr)
dag10
parents:
diff changeset
    68
    private slots:
9e8924ff9813 Convert feedback page to dialog (+some fixes from unC0Rr)
dag10
parents:
diff changeset
    69
        virtual void NetReply(QNetworkReply*);
9e8924ff9813 Convert feedback page to dialog (+some fixes from unC0Rr)
dag10
parents:
diff changeset
    70
        virtual void ShowSpecs();
9e8924ff9813 Convert feedback page to dialog (+some fixes from unC0Rr)
dag10
parents:
diff changeset
    71
        void SendFeedback();
9e8924ff9813 Convert feedback page to dialog (+some fixes from unC0Rr)
dag10
parents:
diff changeset
    72
        void finishedSlot(QNetworkReply* reply);
9e8924ff9813 Convert feedback page to dialog (+some fixes from unC0Rr)
dag10
parents:
diff changeset
    73
};
9e8924ff9813 Convert feedback page to dialog (+some fixes from unC0Rr)
dag10
parents:
diff changeset
    74
9e8924ff9813 Convert feedback page to dialog (+some fixes from unC0Rr)
dag10
parents:
diff changeset
    75
#endif // FEEDBACKDIALOG_H