| 1 |
#ifndef OKDIALOG_H |
| 2 |
#define OKDIALOG_H |
| 3 |
|
| 4 |
#include "avm_default.h" |
| 5 |
#include <qdialog.h> |
| 6 |
|
| 7 |
class QGridLayout; |
| 8 |
|
| 9 |
|
| 10 |
class AVMEXPORT QavmOkDialog : public QDialog |
| 11 |
{ |
| 12 |
Q_OBJECT; |
| 13 |
bool m_bApplyEnabled; |
| 14 |
public: |
| 15 |
QavmOkDialog( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, Qt::WFlags fl = 0 ); |
| 16 |
QGridLayout* gridLayout() { return m_pGl; } |
| 17 |
void setApplyEnabled(bool enabled) { m_bApplyEnabled = enabled; } |
| 18 |
void setApplyName(const QString& apply) { m_Apply = apply; } |
| 19 |
void setOkDefault(bool enabled) { m_bOkDefault = enabled; } |
| 20 |
virtual int exec(); |
| 21 |
public slots: |
| 22 |
virtual void apply(); |
| 23 |
|
| 24 |
protected: |
| 25 |
QGridLayout* m_pGl; |
| 26 |
QString m_Apply; |
| 27 |
bool m_bOkDefault; |
| 28 |
}; |
| 29 |
|
| 30 |
#endif |