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 <QLinkedList> |
22 | |
23 | #include <kdialog.h> |
24 | #include <kurl.h> |
25 | |
26 | #include "kimagemapeditor.h" |
27 | |
28 | class QLineEdit; |
29 | class QListWidget; |
30 | class QLabel; |
31 | class QTableWidget; |
32 | |
33 | |
34 | class ImageMapChooseDialog : public KDialog { |
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 | KUrl baseUrl; |
44 | void initImageListTable(QWidget*); |
45 | public: |
46 | ImageMapChooseDialog(QWidget* parent,QList<MapTag*> _maps, |
47 | QList<ImageTag*> _images, const KUrl & _baseUrl); |
48 | ~ImageMapChooseDialog(); |
49 | KUrl 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 |