00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #ifndef BACKGROUNDDIALOG_HH_
00017 #define BACKGROUNDDIALOG_HH_
00018
00019 #include "paragui.h"
00020 #include "pgwindow.h"
00021 #include "pgbutton.h"
00022 #include "pgmultilineedit.h"
00023
00024 class DECLSPEC BackgroundDialog : public PG_Window
00025 {
00026 public:
00036 BackgroundDialog(PG_Widget* parent,
00037 const PG_Rect& r, const char* windowtitle,
00038 const char* background,
00039 const char* style="MessageBox");
00040
00041 virtual ~BackgroundDialog();
00042
00043 void LoadThemeStyle(const char* widgettype);
00044
00049 inline int WaitForClick() {
00050 return RunModal();
00051 }
00052
00053 const char* getBackground();
00054
00055 private:
00059 bool handleButton(PG_Button* button);
00060
00061 void Init(const char* style);
00062
00063
00064
00065
00066 PG_Widget* parent_;
00067
00068 PG_Button* btnOk_;
00069 PG_Button* btnCancel_;
00070
00071 PG_MultiLineEdit* multiLEdit_;
00072 };
00073
00074 #endif