Chris@303: /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ Chris@303: Chris@303: /* Chris@303: Sonic Visualiser Chris@303: An audio file viewer and annotation editor. Chris@303: Centre for Digital Music, Queen Mary, University of London. Chris@303: This file copyright 2007 QMUL. Chris@303: Chris@303: This program is free software; you can redistribute it and/or Chris@303: modify it under the terms of the GNU General Public License as Chris@303: published by the Free Software Foundation; either version 2 of the Chris@303: License, or (at your option) any later version. See the file Chris@303: COPYING included with this distribution for more information. Chris@303: */ Chris@303: Chris@303: #ifndef _IMAGE_DIALOG_H_ Chris@303: #define _IMAGE_DIALOG_H_ Chris@303: Chris@303: #include Chris@303: #include Chris@303: Chris@303: class QLineEdit; Chris@303: class QLabel; Chris@303: class QPushButton; Chris@318: class FileSource; Chris@303: Chris@303: class ImageDialog : public QDialog Chris@303: { Chris@303: Q_OBJECT Chris@303: Chris@303: public: Chris@303: ImageDialog(QString title, Chris@303: QString image = "", Chris@303: QString label = "", Chris@303: QWidget *parent = 0); Chris@303: virtual ~ImageDialog(); Chris@303: Chris@303: QString getImage(); Chris@303: QPixmap getPixmap(); Chris@303: QString getLabel(); Chris@303: Chris@303: signals: Chris@303: void imageChanged(QString image); Chris@303: void labelChanged(QString label); Chris@303: Chris@303: public slots: Chris@303: void setImage(QString image); Chris@303: void setLabel(QString label); Chris@303: void updatePreview(); Chris@303: Chris@303: protected slots: Chris@303: void browseClicked(); Chris@304: void imageEditEdited(const QString &); Chris@305: void imageEditEdited(); Chris@303: Chris@303: protected: Chris@303: void resizeEvent(QResizeEvent *); Chris@303: Chris@303: QLineEdit *m_imageEdit; Chris@303: QLineEdit *m_labelEdit; Chris@303: QLabel *m_imagePreview; Chris@303: Chris@303: QString m_loadedImageFile; Chris@303: QPixmap m_loadedImage; Chris@303: Chris@303: QPushButton *m_okButton; Chris@305: Chris@318: FileSource *m_remoteFile; Chris@303: }; Chris@303: Chris@303: #endif