summaryrefslogtreecommitdiff
path: root/src/previewimage.h
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-10-15 00:21:09 +0200
committerAndrea Diamantini <adjam7@gmail.com>2009-10-15 00:21:09 +0200
commit0fbcfd6a77f41c0248f65537f615b4046433c6a0 (patch)
tree81bf41f48c1d31e613b4cf58104ab2229668d88e /src/previewimage.h
parentMerge commit 'refs/merge-requests/1806' of git://gitorious.org/rekonq/mainline (diff)
parentfavorites management (diff)
downloadrekonq-0fbcfd6a77f41c0248f65537f615b4046433c6a0.tar.xz
Merge commit 'refs/merge-requests/1805' of git://gitorious.org/rekonq/mainline into matgic
Diffstat (limited to 'src/previewimage.h')
-rw-r--r--src/previewimage.h22
1 files changed, 20 insertions, 2 deletions
diff --git a/src/previewimage.h b/src/previewimage.h
index 6ccc5c97..3d2e9411 100644
--- a/src/previewimage.h
+++ b/src/previewimage.h
@@ -30,29 +30,42 @@
// Local Includes
#include "websnap.h"
+// KDE Includes
+#include <KActionMenu>
+
// Qt Includes
#include <QLabel>
#include <QImage>
#include <QUrl>
+#include <QToolButton>
class PreviewImage : public QLabel
{
Q_OBJECT
public:
- PreviewImage(const QUrl &url);
+ PreviewImage(const QUrl &url,
+ const QStringList &argumentNames = QStringList(),
+ const QStringList &argumentValues = QStringList());
~PreviewImage();
QString guessNameFromUrl(QUrl url);
public slots:
- void setSiteImage();
+ void snapFinished();
+ void removeMe();
+ void setUrlFromAction();
protected:
+ void contextMenuEvent(QContextMenuEvent *event);
void mouseDoubleClickEvent(QMouseEvent *event);
void mouseMoveEvent(QMouseEvent *event);
void mousePressEvent(QMouseEvent *event);
void mouseReleaseEvent(QMouseEvent *event);
+
+ void setUrl(const QUrl &url);
+ KActionMenu *historyMenu();
+ void showEmptyPreview();
private:
QPixmap m_pixmap;
@@ -60,6 +73,11 @@ private:
QUrl m_url;
QString m_savePath;
+
+ bool m_isFavorite;
+ int m_index;
+
+ QToolButton *m_button;
};
#endif // PREVIEW_IMAGE_H