/* This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. */ #ifndef PICTURESWIDGET_H #define PICTURESWIDGET_H #include #include #include "smtreemodel.h" #include "pictureviewer2.h" #include "smtreeview.h" class PictureListView; class MappingTreeWidget; class MappingEditDialog; class PictureViewer2; class QAction; class PicturesWidget : public QWidget { Q_OBJECT public: explicit PicturesWidget(QWidget *parent = nullptr); PictureListView *picView() { return mPictureListView; } PictureViewer2 *picViewer2() { return mPicViewer; } public slots: void showPicViewer(bool toggled); void writeSettings(); void readSettings(); void constructWindowTitle(); private slots: void editMappings(); void showInPicViewer(const QModelIndex &idx); signals: void needWindowTitleChange(QString); void editMappingsDone(); private: void setupWidget(); MappingTreeWidget *mMappingTree; PictureListView *mPictureListView; PictureViewer2 *mPicViewer; MappingEditDialog *mEditDialog; const QString mWindowTitleBase; }; #endif // PICTURESWIDGET_H