File indexing completed on 2024-04-21 04:32:11
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 PagePropertiesDlg_H 0012 #define PagePropertiesDlg_H 0013 0014 #include <QDialog> 0015 0016 #include "ui_PageProperties.h" 0017 0018 class PagePreviewListWidgetItem; 0019 class QHideEvent; 0020 class QShowEvent; 0021 0022 class PagePropertiesDlg : public QDialog 0023 { 0024 Q_OBJECT 0025 0026 public: 0027 PagePropertiesDlg(QWidget *, const QMargins &, bool, int); 0028 virtual ~PagePropertiesDlg() = default; 0029 0030 QMargins margins() const; 0031 bool showGrid() const; 0032 int gridSize() 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::PageProperties ui; 0045 }; 0046 0047 #endif // PagePropertiesDlg_H