File indexing completed on 2024-04-21 04:20:14

0001 /***************************************************************************
0002                           imagemapchoosedialog.h  -  description
0003                             -------------------
0004     begin                : 06-03-2007
0005     copyright            : (C) 2007 by Jan Schäfer
0006     email                : j_schaef@informatik.uni-kl.de
0007 ***************************************************************************/
0008 
0009 /***************************************************************************
0010 *                                                                         *
0011 *   This program is free software; you can redistribute it and/or modify  *
0012 *   it under the terms of the GNU General Public License as published by  *
0013 *   the Free Software Foundation; either version 2 of the License, or     *
0014 *   (at your option) any later version.                                   *
0015 *                                                                         *
0016 ***************************************************************************/
0017 
0018 #ifndef KIMAGEMAPCHOOSEDIALOG_H
0019 #define KIMAGEMAPCHOOSEDIALOG_H
0020 
0021 #include <QDialog>
0022 #include <QUrl>
0023 
0024 #include "kimagemapeditor.h"
0025 
0026 class QLineEdit;
0027 class QListWidget;
0028 class QLabel;
0029 class QLayout;
0030 class QTableWidget;
0031 
0032 
0033 class ImageMapChooseDialog : public QDialog {
0034 Q_OBJECT
0035   private:
0036     QTableWidget *imageListTable;
0037     QLabel *imagePreview;       
0038     QListWidget *mapListBox;    
0039     QLineEdit *mapNameEdit;
0040     QList<MapTag*> maps;
0041     QList<ImageTag*> images;
0042     QUrl baseUrl;
0043     void initImageListTable(QLayout*);
0044  public:
0045     ImageMapChooseDialog(QWidget* parent,QList<MapTag*> _maps,
0046              QList<ImageTag*> _images, const QUrl & _baseUrl);
0047     ~ImageMapChooseDialog() override;
0048     QUrl pixUrl;
0049     MapTag* currentMap;
0050  protected slots:
0051    void slotImageChanged();
0052    void slotMapChanged(int i);
0053    void selectImageWithUsemap(const QString & usemap);
0054 };
0055 
0056 
0057 #endif