tools/drawMapTest/mainwindow.h
author Wuzzy <Wuzzy2@mail.ru>
Thu, 03 May 2018 15:18:28 +0200
changeset 13360 e27540ad33bd
parent 4477 63a21fac8bf7
permissions -rw-r--r--
Massive Continental supplies update List of changes: * Invulnerability protects from sabotage damage * Sabotage kills hog instantly when health reaches 0 * Reliably prevent using of Lonely Cries and baseball bat specials when usage not allowed * Don't explode Anno 1302 and Medicine if drowning * Don't play “Missed” and “Laugh” taunt when those don't make sense * Major rewrite of ALL strings for better usability * Add custom weapon tooltips * Major refactoring * Improve audiovisual effects * Show message when hog receives new continent ammo * Sabotaged hedgehogs also emit smoke when it's not their turn * Can switch continent in reverse order with [Precise]+[Switch] * Fix retreat timer not turning red for some weapons
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
4425
2314bb0c433d Small testing app for DrawMap scene
unc0rr
parents:
diff changeset
     1
#ifndef MAINWINDOW_H
2314bb0c433d Small testing app for DrawMap scene
unc0rr
parents:
diff changeset
     2
#define MAINWINDOW_H
2314bb0c433d Small testing app for DrawMap scene
unc0rr
parents:
diff changeset
     3
2314bb0c433d Small testing app for DrawMap scene
unc0rr
parents:
diff changeset
     4
#include <QMainWindow>
2314bb0c433d Small testing app for DrawMap scene
unc0rr
parents:
diff changeset
     5
2314bb0c433d Small testing app for DrawMap scene
unc0rr
parents:
diff changeset
     6
namespace Ui {
2314bb0c433d Small testing app for DrawMap scene
unc0rr
parents:
diff changeset
     7
    class MainWindow;
2314bb0c433d Small testing app for DrawMap scene
unc0rr
parents:
diff changeset
     8
}
2314bb0c433d Small testing app for DrawMap scene
unc0rr
parents:
diff changeset
     9
4427
c5193713055f Basic encoding of drawn map
unc0rr
parents: 4425
diff changeset
    10
class DrawMapScene;
c5193713055f Basic encoding of drawn map
unc0rr
parents: 4425
diff changeset
    11
4425
2314bb0c433d Small testing app for DrawMap scene
unc0rr
parents:
diff changeset
    12
class MainWindow : public QMainWindow {
2314bb0c433d Small testing app for DrawMap scene
unc0rr
parents:
diff changeset
    13
    Q_OBJECT
2314bb0c433d Small testing app for DrawMap scene
unc0rr
parents:
diff changeset
    14
public:
2314bb0c433d Small testing app for DrawMap scene
unc0rr
parents:
diff changeset
    15
    MainWindow(QWidget *parent = 0);
2314bb0c433d Small testing app for DrawMap scene
unc0rr
parents:
diff changeset
    16
    ~MainWindow();
2314bb0c433d Small testing app for DrawMap scene
unc0rr
parents:
diff changeset
    17
2314bb0c433d Small testing app for DrawMap scene
unc0rr
parents:
diff changeset
    18
protected:
2314bb0c433d Small testing app for DrawMap scene
unc0rr
parents:
diff changeset
    19
    void changeEvent(QEvent *e);
2314bb0c433d Small testing app for DrawMap scene
unc0rr
parents:
diff changeset
    20
2314bb0c433d Small testing app for DrawMap scene
unc0rr
parents:
diff changeset
    21
private:
2314bb0c433d Small testing app for DrawMap scene
unc0rr
parents:
diff changeset
    22
    Ui::MainWindow *ui;
4427
c5193713055f Basic encoding of drawn map
unc0rr
parents: 4425
diff changeset
    23
    DrawMapScene * scene;
4425
2314bb0c433d Small testing app for DrawMap scene
unc0rr
parents:
diff changeset
    24
4427
c5193713055f Basic encoding of drawn map
unc0rr
parents: 4425
diff changeset
    25
private slots:
4442
f8424e1bc936 - Implement decode() function.
unc0rr
parents: 4434
diff changeset
    26
    void on_pbLoad_clicked();
f8424e1bc936 - Implement decode() function.
unc0rr
parents: 4434
diff changeset
    27
    void on_pbSave_clicked();
4427
c5193713055f Basic encoding of drawn map
unc0rr
parents: 4425
diff changeset
    28
    void scene_pathChanged();
4425
2314bb0c433d Small testing app for DrawMap scene
unc0rr
parents:
diff changeset
    29
};
2314bb0c433d Small testing app for DrawMap scene
unc0rr
parents:
diff changeset
    30
2314bb0c433d Small testing app for DrawMap scene
unc0rr
parents:
diff changeset
    31
#endif // MAINWINDOW_H