File indexing completed on 2024-04-14 03:40:31
0001 /*************************************************************************** 0002 * Copyright (C) 2004 by Albert Astals Cid * 0003 * aacid@kde.org * 0004 * * 0005 * This program is free software; you can redistribute it and/or modify * 0006 * it under the terms of the GNU General Public License as published by * 0007 * the Free Software Foundation; either version 2 of the License, or * 0008 * (at your option) any later version. * 0009 ***************************************************************************/ 0010 0011 #ifndef MAPCHOOSER_H 0012 #define MAPCHOOSER_H 0013 0014 #include <QDialog> 0015 #include <QHash> 0016 0017 #include "map.h" 0018 #include "mapparser.h" 0019 0020 class QListWidget; 0021 class QLabel; 0022 class mapChooser : public QDialog 0023 { 0024 Q_OBJECT 0025 public: 0026 explicit mapChooser(QWidget *parent); 0027 ~mapChooser(); 0028 0029 KGmap *getMap(); 0030 0031 private Q_SLOTS: 0032 void putImage(const QString &mapName); 0033 0034 private: 0035 QListWidget *p_listBox; 0036 QLabel *p_imageContainer; 0037 mapReader p_reader; 0038 QHash<QString, KGmap*> p_maps; 0039 }; 0040 0041 #endif