1
// openhomm - open source clone of Heroes of Might and Magic III
2
// Copyright (C) 2009-2010 openhomm developers team (see AUTHORS)
4
// This program is free software: you can redistribute it and/or modify
5
// it under the terms of the GNU General Public License as published by
6
// the Free Software Foundation, either version 3 of the License, or
7
// (at your option) any later version.
9
// This program is distributed in the hope that it will be useful,
10
// but WITHOUT ANY WARRANTY; without even the implied warranty of
11
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
// GNU General Public License for more details.
14
// You should have received a copy of the GNU General Public License
15
// along with this program. If not, see <http://www.gnu.org/licenses/>.
19
#include "hrGraphicsItem.hpp"
21
class hrWidget : public QObject
25
hrWidget(QObject * parent = 0);
27
Q_PROPERTY(int x READ getX WRITE setX)
31
Q_PROPERTY(int y READ getY WRITE setY)
35
Q_PROPERTY(bool topLeft READ isTopLeft WRITE setTopLeft)
36
void setTopLeft(bool flag = false);
37
bool isTopLeft() const;
39
Q_PROPERTY(bool topRight READ isTopRight WRITE setTopRight)
40
void setTopRight(bool flag = false);
41
bool isTopRight() const;
43
Q_PROPERTY(bool bottomLeft READ isBottomLeft WRITE setBottomLeft)
44
void setBottomLeft(bool flag = false);
45
bool isBottomLeft() const;
47
Q_PROPERTY(bool bottomRight READ isBottomRight WRITE setBottomRight)
48
void setBottomRight(bool flag = false);
49
bool isBottomRight() const;
52
void setSize(QSize s);
53
QVectorIterator<hrGraphicsItem> getItems() const;
54
void addItem(hrGraphicsItem item);
55
hrGraphicsItem& modifyItem(int num);
70
QVector<hrGraphicsItem> items;