File indexing completed on 2024-05-05 12:57:24
0001 /* 0002 * Copyright (C) 2013-2015 by Stephen Allewell 0003 * steve.allewell@gmail.com 0004 * 0005 * This program is free software; you can redistribute it and/or modify 0006 * it under the terms of the GNU General Public License as published by 0007 * the Free Software Foundation; either version 2 of the License, or 0008 * (at your option) any later version. 0009 */ 0010 0011 #ifndef ImageElementDlg_H 0012 #define ImageElementDlg_H 0013 0014 #include <QDialog> 0015 #include <QRect> 0016 0017 #include "ui_ImageElement.h" 0018 0019 class Document; 0020 class ImageElement; 0021 class SelectArea; 0022 class QHideEvent; 0023 class QShowEvent; 0024 0025 class ImageElementDlg : public QDialog 0026 { 0027 Q_OBJECT 0028 0029 public: 0030 ImageElementDlg(QWidget *, ImageElement *, Document *); 0031 virtual ~ImageElementDlg() = default; 0032 0033 protected: 0034 virtual void hideEvent(QHideEvent *) Q_DECL_OVERRIDE; 0035 virtual void showEvent(QShowEvent *) Q_DECL_OVERRIDE; 0036 0037 private slots: 0038 void on_DialogButtonBox_accepted(); 0039 void on_DialogButtonBox_rejected(); 0040 void on_DialogButtonBox_helpRequested(); 0041 0042 private: 0043 SelectArea *m_selectArea; 0044 0045 ImageElement *m_imageElement; 0046 Document *m_document; 0047 0048 QRect m_patternRect; 0049 0050 Ui::ImageElement ui; 0051 }; 0052 0053 #endif // ImageElementDlg_H