From 57f69839e3bab9ab73f15811374099576216282b Mon Sep 17 00:00:00 2001 From: Arno Date: Thu, 8 Mar 2012 06:05:11 +0100 Subject: First draft of PictureViewer2 Doesn't do much other than showing a default picture, but it behaves like a QDialog and positions itself correctly. It's quite a pain in the ass with a tiling window manager... --- pictureswidget.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'pictureswidget.h') diff --git a/pictureswidget.h b/pictureswidget.h index ece2bfb..1b7fa09 100644 --- a/pictureswidget.h +++ b/pictureswidget.h @@ -13,6 +13,7 @@ #include #include "smtreemodel.h" +#include "pictureviewer2.h" class PictureView; class MappingTreeWidget; @@ -24,6 +25,7 @@ class QSortFilterProxyModel; class QHideEvent; class QEvent; class HoverWindow; +class PictureViewer2; class PicturesWidget : public QWidget { Q_OBJECT @@ -31,6 +33,9 @@ class PicturesWidget : public QWidget { explicit PicturesWidget(QWidget *parent = 0); PictureView *picView() { return mPictureView; } + public slots: + void showPicViewer(bool toggled); + private slots: void setMappingColors(); void editMappings(); @@ -42,6 +47,7 @@ class PicturesWidget : public QWidget { private: MappingTreeWidget *mMappingTree; PictureView *mPictureView; + PictureViewer2 *mPicViewer; MappingEditDialog *mEditDialog; const QString mWindowTitleBase; }; -- cgit v1.2.3-70-g09d2