QTfrontend/HWApplication.h
branchwebgl
changeset 8833 c13ebed437cb
parent 8799 44e520374cfc
child 10108 c68cf030eded
equal deleted inserted replaced
8450:404ddce27b23 8833:c13ebed437cb
     1 /*
     1 /*
     2  * Hedgewars, a free turn based strategy game
     2  * Hedgewars, a free turn based strategy game
     3  * Copyright (c) 2004-2012 Andrey Korotaev <unC0Rr@gmail.com>
     3  * Copyright (c) 2012 Vittorio Giovara <vittorio.giovara@gmail.com>
     4  *
     4  *
     5  * This program is free software; you can redistribute it and/or modify
     5  * This program is free software; you can redistribute it and/or modify
     6  * it under the terms of the GNU General Public License as published by
     6  * it under the terms of the GNU General Public License as published by
     7  * the Free Software Foundation; version 2 of the License
     7  * the Free Software Foundation; version 2 of the License
     8  *
     8  *
    18 
    18 
    19 #ifndef HWAPP_H
    19 #ifndef HWAPP_H
    20 #define HWAPP_H
    20 #define HWAPP_H
    21 
    21 
    22 #include <QApplication>
    22 #include <QApplication>
    23 #include <QString>
       
    24 #include <QEvent>
       
    25 
    23 
    26 class HWForm;
    24 class HWForm;
       
    25 class QEvent;
    27 
    26 
    28 /**
    27 /**
    29  * @brief Main class of the Qt application.
    28  * @brief Main class of the Qt application.
    30  *
    29  *
    31  * By default uses :res/css/qt.css as style sheet for the main form.
    30  * By default uses :res/css/qt.css as style sheet for the main form.
    39     public:
    38     public:
    40         HWApplication(int &argc, char **argv);
    39         HWApplication(int &argc, char **argv);
    41         ~HWApplication() {};
    40         ~HWApplication() {};
    42 
    41 
    43         HWForm *form;
    42         HWForm *form;
       
    43         QString *urlString;
       
    44         void fakeEvent();
    44     protected:
    45     protected:
    45         bool event(QEvent *);
    46         bool event(QEvent *);
    46 };
    47 };
    47 
    48 
    48 #endif
    49 #endif