00001 #ifndef DIALOGBOX_H_
00002 #define DIALOGBOX_H_
00003
00004 #include <qcheckbox.h>
00005
00006 #include "mythdialogs.h"
00007 #include "compat.h"
00008
00009 class QVBoxLayout;
00010 class QButtonGroup;
00011 class QString;
00012
00013 class MPUBLIC DialogBox : public MythDialog
00014 {
00015 Q_OBJECT
00016 public:
00017 DialogBox(MythMainWindow *parent, const QString &text,
00018 const char *checkboxtext = 0, const char *name = 0);
00019
00020 void AddButton(const QString &title);
00021
00022 bool getCheckBoxState(void) { if (checkbox) return checkbox->isChecked();
00023 return false; }
00024
00025 protected slots:
00026 void buttonPressed(int which);
00027
00028 protected:
00029 ~DialogBox() {}
00030
00031 private:
00032 QVBoxLayout *box;
00033 QButtonGroup *buttongroup;
00034
00035 QCheckBox *checkbox;
00036 };
00037
00038 #endif