File indexing completed on 2024-04-21 04:32:07
0001 /* 0002 * Copyright (C) 2010-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 ExtendPatternDlg_H 0012 #define ExtendPatternDlg_H 0013 0014 #include "ui_ExtendPattern.h" 0015 0016 #include <QDialog> 0017 0018 class QHideEvent; 0019 class QShowEvent; 0020 0021 class ExtendPatternDlg : public QDialog 0022 { 0023 Q_OBJECT 0024 0025 public: 0026 explicit ExtendPatternDlg(QWidget *); 0027 virtual ~ExtendPatternDlg() = default; 0028 0029 int top() const; 0030 int left() const; 0031 int right() const; 0032 int bottom() const; 0033 0034 protected: 0035 virtual void hideEvent(QHideEvent *) Q_DECL_OVERRIDE; 0036 virtual void showEvent(QShowEvent *) Q_DECL_OVERRIDE; 0037 0038 private slots: 0039 void on_DialogButtonBox_accepted(); 0040 void on_DialogButtonBox_rejected(); 0041 void on_DialogButtonBox_helpRequested(); 0042 0043 private: 0044 Ui::ExtendPattern ui; 0045 }; 0046 0047 #endif // ExtendPatternDlg_H