1 /***************************************************************************
2                           imagemapchoosedialog.h  -  description
3                             -------------------
4     begin                : 06-03-2007
5     copyright            : (C) 2007 by Jan Schäfer
6     email                : j_schaef@informatik.uni-kl.de
7 ***************************************************************************/
8 
9 /***************************************************************************
10 *                                                                         *
11 *   This program is free software; you can redistribute it and/or modify  *
12 *   it under the terms of the GNU General Public License as published by  *
13 *   the Free Software Foundation; either version 2 of the License, or     *
14 *   (at your option) any later version.                                   *
15 *                                                                         *
16 ***************************************************************************/
17 
18 #ifndef KIMAGEMAPCHOOSEDIALOG_H
19 #define KIMAGEMAPCHOOSEDIALOG_H
20 
21 #include <QDialog>
22 #include <QLinkedList>
23 #include <QUrl>
24 
25 #include "kimagemapeditor.h"
26 
27 class QLineEdit;
28 class QListWidget;
29 class QLabel;
30 class QLayout;
31 class QTableWidget;
32 
33 
34 class ImageMapChooseDialog : public QDialog {
35 Q_OBJECT
36   private:
37     QTableWidget *imageListTable;
38     QLabel *imagePreview;
39     QListWidget *mapListBox;
40     QLineEdit *mapNameEdit;
41     QList<MapTag*> maps;
42     QList<ImageTag*> images;
43     QUrl baseUrl;
44     void initImageListTable(QLayout*);
45  public:
46     ImageMapChooseDialog(QWidget* parent,QList<MapTag*> _maps,
47 			 QList<ImageTag*> _images, const QUrl & _baseUrl);
48     ~ImageMapChooseDialog() override;
49     QUrl pixUrl;
50     MapTag* currentMap;
51  protected slots:
52    void slotImageChanged();
53    void slotMapChanged(int i);
54    void selectImageWithUsemap(const QString & usemap);
55 };
56 
57 
58 #endif
59