QTfrontend/ui/mouseoverfilter.h
author Xeli
Thu, 09 Feb 2012 14:12:50 +0100
changeset 6654 120e95c10532
parent 6616 f77bb02b669f
child 10248 7b9b44a051f8
permissions -rw-r--r--
use the way actions are initiated the same way as koda implemented with PascalExports, using boolean values such as upKey and enterKey, this prevents the user from being able to control the AI
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
6477
ad5741c252b9 GCI task: describez
Oranger
parents:
diff changeset
     1
#ifndef MOUSEOVERFILTER_H
ad5741c252b9 GCI task: describez
Oranger
parents:
diff changeset
     2
#define MOUSEOVERFILTER_H
ad5741c252b9 GCI task: describez
Oranger
parents:
diff changeset
     3
ad5741c252b9 GCI task: describez
Oranger
parents:
diff changeset
     4
#include <QObject>
ad5741c252b9 GCI task: describez
Oranger
parents:
diff changeset
     5
ad5741c252b9 GCI task: describez
Oranger
parents:
diff changeset
     6
#include "ui_hwform.h"
ad5741c252b9 GCI task: describez
Oranger
parents:
diff changeset
     7
#include "ui/page/AbstractPage.h"
ad5741c252b9 GCI task: describez
Oranger
parents:
diff changeset
     8
ad5741c252b9 GCI task: describez
Oranger
parents:
diff changeset
     9
class MouseOverFilter : public QObject
ad5741c252b9 GCI task: describez
Oranger
parents:
diff changeset
    10
{
6616
f77bb02b669f astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents: 6477
diff changeset
    11
        Q_OBJECT
f77bb02b669f astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents: 6477
diff changeset
    12
    public:
f77bb02b669f astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents: 6477
diff changeset
    13
        explicit MouseOverFilter(QObject *parent = 0);
f77bb02b669f astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents: 6477
diff changeset
    14
        void setUi(Ui_HWForm *uiForm);
f77bb02b669f astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents: 6477
diff changeset
    15
    protected:
f77bb02b669f astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents: 6477
diff changeset
    16
        bool eventFilter( QObject *dist, QEvent *event );
f77bb02b669f astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents: 6477
diff changeset
    17
    signals:
6477
ad5741c252b9 GCI task: describez
Oranger
parents:
diff changeset
    18
6616
f77bb02b669f astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents: 6477
diff changeset
    19
    public slots:
6477
ad5741c252b9 GCI task: describez
Oranger
parents:
diff changeset
    20
6616
f77bb02b669f astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents: 6477
diff changeset
    21
    private:
f77bb02b669f astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents: 6477
diff changeset
    22
        Ui_HWForm *ui;
f77bb02b669f astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents: 6477
diff changeset
    23
        AbstractPage* abstractpage;
6477
ad5741c252b9 GCI task: describez
Oranger
parents:
diff changeset
    24
ad5741c252b9 GCI task: describez
Oranger
parents:
diff changeset
    25
};
ad5741c252b9 GCI task: describez
Oranger
parents:
diff changeset
    26
ad5741c252b9 GCI task: describez
Oranger
parents:
diff changeset
    27
#endif // MOUSEOVERFILTER_H