22 #ifndef BAGEL_BOFLIB_GUI_DIALOG_H 23 #define BAGEL_BOFLIB_GUI_DIALOG_H 25 #include "bagel/spacebar/boflib/gui/window.h" 26 #include "bagel/spacebar/boflib/gfx/bitmap.h" 34 #define BOFDLG_TRANSPARENT 0x00000001 35 #define BOFDLG_SAVEBACKGND 0x00000002 37 #define BOFDLG_DEFAULT (BOFDLG_TRANSPARENT ) 43 int _nReturnValue = 0;
45 bool _bFirstTime =
false;
46 bool _bTempBitmap =
false;
47 bool _bEndDialog =
false;
48 bool _bHavePainted =
false;
51 virtual ErrorCode paint(
CBofRect *pRect);
52 virtual ErrorCode paintBackground();
53 virtual ErrorCode saveBackground();
54 virtual ErrorCode killBackground();
56 void onPaint(
CBofRect *pRect)
override;
57 void onClose()
override;
58 virtual void onInitDialog();
69 CBofDialog(
const char *pszFileName,
CBofWindow *pParent, uint32 nID = 0, uint32 lFlags = BOFDLG_DEFAULT);
87 ErrorCode
create(
const char *pszName,
int x,
int y,
int nWidth,
int nHeight,
CBofWindow *pParent, uint32 nControlID = 0)
override;
129 _nReturnValue = nValue;
137 return _nReturnValue;
ErrorCode create(const char *pszName, int x, int y, int nWidth, int nHeight, CBofWindow *pParent, uint32 nControlID=0) override
void endModal()
Definition: dialog.h:121
void setReturnValue(int nValue)
Definition: dialog.h:128
void setFlags(uint32 lFlags)
Definition: dialog.h:102
uint32 getFlags() const
Definition: dialog.h:109
int getReturnValue() const
Definition: dialog.h:136