summaryrefslogtreecommitdiff
path: root/src/gui/widgets/extendedlistmodel.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-07-27 02:32:32 +0300
committerAndrei Karas <akaras@inbox.ru>2012-07-28 00:47:21 +0300
commitc9bb66d595927bd14871c10b216ed05ffb5e3b12 (patch)
treeaef6dc1911678dd813c64b3397ac13bbad7de622 /src/gui/widgets/extendedlistmodel.h
parent54f3d4ce98b81a744ef6c0068100f4eb36a6528b (diff)
downloadplus-c9bb66d595927bd14871c10b216ed05ffb5e3b12.tar.gz
plus-c9bb66d595927bd14871c10b216ed05ffb5e3b12.tar.bz2
plus-c9bb66d595927bd14871c10b216ed05ffb5e3b12.tar.xz
plus-c9bb66d595927bd14871c10b216ed05ffb5e3b12.zip
Add support for images in npc menu.
Diffstat (limited to 'src/gui/widgets/extendedlistmodel.h')
-rw-r--r--src/gui/widgets/extendedlistmodel.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/gui/widgets/extendedlistmodel.h b/src/gui/widgets/extendedlistmodel.h
new file mode 100644
index 000000000..48b75dc95
--- /dev/null
+++ b/src/gui/widgets/extendedlistmodel.h
@@ -0,0 +1,34 @@
+/*
+ * The ManaPlus Client
+ * Copyright (C) 2012 The ManaPlus Developers
+ *
+ * This file is part of The ManaPlus Client.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef EXTENDEDLISTMODEL_H
+#define EXTENDEDLISTMODEL_H
+
+#include "resources/image.h"
+
+#include <guichan/listmodel.hpp>
+
+class ExtendedListModel : public gcn::ListModel
+{
+ public:
+ virtual const Image *getImageAt(int i) = 0;
+};
+
+#endif