Update of /cvsroot/gcblue/gcb_wx/include/common
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3774/include/common
Modified Files:
tcOptionsView.h
Log Message:
Index: tcOptionsView.h
===================================================================
RCS file: /cvsroot/gcblue/gcb_wx/include/common/tcOptionsView.h,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** tcOptionsView.h 9 Apr 2004 13:58:44 -0000 1.7
--- tcOptionsView.h 14 Jun 2004 22:37:11 -0000 1.8
***************
*** 1,4 ****
/*
! ** Copyright (C) 2003 Dewitt "Cole" Colclough (de...@tw...)
** All rights reserved.
--- 1,4 ----
/*
! ** Copyright (C) 2003-2004 Dewitt Colclough (de...@tw...)
** All rights reserved.
***************
*** 31,74 ****
#endif
#include "tcOptions.h"
! #include "tcWindow.h"
#include "tcSound.h"
// View and GUI for user options data
! class tcOptionsView : public tcWindow
{
! // placement info for GUI buttons, text, etc.
! struct tsButtonInfo
! {
! int mnButtonX;
! int mnButtonY;
! int mnTextX;
! int mnTextY;
! };
public:
! void AttachOptions(tcOptions *apOptions) {mpOptions=apOptions;}
! bool Init(void);
! int Draw(void);
! void DrawButton(Gdiplus::Graphics *apGraphics, int x, int y, int abOn);
! void OnLButtonDown(wxMouseEvent& event);
! bool ButtonContainingPoint(wxPoint point, int& rnOption, int& rnValue);
! tcOptionsView(wxWindow *parent,
! const wxPoint& pos, const wxSize& size,
! const wxString& name = "OptionsView",
! tcWindow *sharedSurface = NULL);
virtual ~tcOptionsView();
private:
! tcOptions *mpOptions;
! Gdiplus::Image *mpiBackground;
! Gdiplus::Image *mpiButtonOn;
! Gdiplus::Image *mpiButtonOff;
! Gdiplus::SolidBrush *mpBrush;
! Gdiplus::Font *mpFont;
! Gdiplus::Pen *mpPen;
! int mnBackgroundWidth,mnBackgroundHeight;
! int mnButtonWidth,mnButtonHeight;
! tsButtonInfo maButtonPosition[N_OPTIONS][N_OPTION_VALUES];
! int mnXStart,mnYStart;
};
--- 31,74 ----
#endif
#include "tcOptions.h"
! #include "tcStandardWindow.h"
#include "tcSound.h"
// View and GUI for user options data
! class tcOptionsView : public tcStandardWindow
{
! // placement info for GUI buttons, text, etc.
! struct tsButtonInfo
! {
! int mnButtonX;
! int mnButtonY;
! int mnTextX;
! int mnTextY;
! };
public:
! void AttachOptions(tcOptions *apOptions) {mpOptions=apOptions;}
! bool Init(void);
! int Draw(void);
! void DrawButton(Gdiplus::Graphics *apGraphics, int x, int y, int abOn);
! void OnLButtonDown(wxMouseEvent& event);
! bool ButtonContainingPoint(wxPoint point, int& rnOption, int& rnValue);
!
! tcOptionsView(wxWindow *parent, tcWindow *surfaceHost,
! const wxPoint& pos, const wxSize& size,
! const wxString& name = "OptionsView");
virtual ~tcOptionsView();
private:
! tcOptions *mpOptions;
! Gdiplus::Image *mpiBackground;
! Gdiplus::Image *mpiButtonOn;
! Gdiplus::Image *mpiButtonOff;
! Gdiplus::SolidBrush *mpBrush;
! Gdiplus::Font *mpFont;
! Gdiplus::Pen *mpPen;
! int mnBackgroundWidth,mnBackgroundHeight;
! int mnButtonWidth,mnButtonHeight;
! tsButtonInfo maButtonPosition[N_OPTIONS][N_OPTION_VALUES];
! int mnXStart,mnYStart;
};
|