File indexing completed on 2024-04-28 04:32:04
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 NewFlossDlg_H 0012 #define NewFlossDlg_H 0013 0014 #include <QDialog> 0015 0016 #include "ui_NewFloss.h" 0017 0018 class QHideEvent; 0019 class QShowEvent; 0020 class QString; 0021 class QWidget; 0022 0023 class Floss; 0024 class FlossScheme; 0025 0026 class NewFlossDlg : public QDialog 0027 { 0028 Q_OBJECT 0029 0030 public: 0031 NewFlossDlg(QWidget *, FlossScheme *flossScheme); 0032 virtual ~NewFlossDlg() = default; 0033 0034 Floss *floss(); 0035 0036 protected: 0037 virtual void hideEvent(QHideEvent *) Q_DECL_OVERRIDE; 0038 virtual void showEvent(QShowEvent *) Q_DECL_OVERRIDE; 0039 0040 private slots: 0041 void on_FlossName_textEdited(const QString &); 0042 void on_FlossDescription_textEdited(const QString &); 0043 void on_DialogButtonBox_accepted(); 0044 void on_DialogButtonBox_rejected(); 0045 void on_DialogButtonBox_helpRequested(); 0046 0047 private: 0048 Ui::NewFloss ui; 0049 0050 FlossScheme *m_flossScheme; 0051 Floss *m_floss; 0052 }; 0053 0054 #endif // NewFlossDlg_H