File indexing completed on 2024-04-28 04:32:01
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 KeyElementDlg_H 0012 #define KeyElementDlg_H 0013 0014 #include <QDialog> 0015 0016 #include "ui_KeyElement.h" 0017 0018 class KeyElement; 0019 class QHideEvent; 0020 class QShowEvent; 0021 0022 class KeyElementDlg : public QDialog 0023 { 0024 Q_OBJECT 0025 0026 public: 0027 KeyElementDlg(QWidget *, KeyElement *); 0028 virtual ~KeyElementDlg() = default; 0029 0030 protected: 0031 virtual void hideEvent(QHideEvent *) Q_DECL_OVERRIDE; 0032 virtual void showEvent(QShowEvent *) Q_DECL_OVERRIDE; 0033 0034 private slots: 0035 void on_DialogButtonBox_accepted(); 0036 void on_DialogButtonBox_rejected(); 0037 void on_DialogButtonBox_helpRequested(); 0038 0039 private: 0040 KeyElement *m_keyElement; 0041 0042 Ui::KeyElement ui; 0043 }; 0044 0045 #endif // KeyElementDlg_H