home *** CD-ROM | disk | FTP | other *** search
/ Game Programming in C++ - Start to Finish / GameProgrammingS.iso / developer_install / CEGUISDK-0.4.1-VC6-Native.exe / {app} / Samples / Demo6 / src / Sample_Demo6.h < prev   
Encoding:
C/C++ Source or Header  |  2005-08-21  |  2.2 KB  |  58 lines

  1. /************************************************************************
  2.     filename:   Sample_Demo6.h
  3.     created:    20/8/2005
  4.     author:     Paul D Turner
  5. *************************************************************************/
  6. /*************************************************************************
  7.     Crazy Eddie's GUI System (http://www.cegui.org.uk)
  8.     Copyright (C)2004 - 2005 Paul D Turner (paul@cegui.org.uk)
  9.  
  10.     This library is free software; you can redistribute it and/or
  11.     modify it under the terms of the GNU Lesser General Public
  12.     License as published by the Free Software Foundation; either
  13.     version 2.1 of the License, or (at your option) any later version.
  14.  
  15.     This library is distributed in the hope that it will be useful,
  16.     but WITHOUT ANY WARRANTY; without even the implied warranty of
  17.     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  18.     Lesser General Public License for more details.
  19.  
  20.     You should have received a copy of the GNU Lesser General Public
  21.     License along with this library; if not, write to the Free Software
  22.     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  23. *************************************************************************/
  24. #ifndef _Sample_Demo6_h_
  25. #define _Sample_Demo6_h_
  26.  
  27. #include "CEGuiSample.h"
  28. #include "CEGUI.h"
  29.  
  30. // Sample class
  31. class Demo6Sample : public CEGuiSample
  32. {
  33. public:
  34.     // method to initialse the samples windows and events.
  35.     bool initialiseSample();
  36.  
  37.     // method to perform any required cleanup operations.
  38.     void cleanupSample(void);
  39.  
  40. protected:
  41.     // helper methods
  42.     void createDemoWindows(void);
  43.     void initDemoEventWiring(void);
  44.  
  45.     // event handlers
  46.     bool handleQuit(const CEGUI::EventArgs& e);
  47.     bool handleAddColumn(const CEGUI::EventArgs& e);
  48.     bool handleDeleteColumn(const CEGUI::EventArgs& e);
  49.     bool handleAddRow(const CEGUI::EventArgs& e);
  50.     bool handleDeleteRow(const CEGUI::EventArgs& e);
  51.     bool handleSetItem(const CEGUI::EventArgs& e);
  52.     bool handleSelectChanged(const CEGUI::EventArgs& e);
  53.     bool handleSelectModeChanged(const CEGUI::EventArgs& e);
  54.     bool handleContentsChanged(const CEGUI::EventArgs& e);
  55. };
  56.  
  57. #endif  // end of guard _Sample_Demo6_h_
  58.