home *** CD-ROM | disk | FTP | other *** search
/ The Pier Shareware 6 / The_Pier_Shareware_Number_6_(The_Pier_Exchange)_(1995).iso / 035 / pmics.zip / wpmics.hh < prev   
Text File  |  1994-12-12  |  3KB  |  82 lines

  1. #ifndef WPMICS_INCLUDED
  2. #define WPMICS_INCLUDED
  3. //**************************************************************************
  4. // Class:   PmicsWindow                                                    *
  5. //                                                                         *
  6. // Purpose: Main window for PMICS, uses canvas to manage subwindows.       *
  7. //                                                                         *
  8. //**************************************************************************
  9.  
  10. #include <iframe.hpp>                   //IFrameWindow Class Header
  11. #include <istattxt.hpp>                 //IStaticText Class Header
  12. #include <imenubar.hpp>
  13. #include <isplitcv.hpp>                 //ISplitCanvas Class Header
  14. #include <isetcv.hpp>
  15. #include <imcelcv.hpp>
  16. #include <ilistbox.hpp>
  17. #include <icmdhdr.hpp>
  18. #include <ipushbut.hpp>
  19.  
  20. class BoardWindow;
  21. class CommWindow;
  22. class PmicsWindow;
  23.  
  24.  
  25. class PmicsMsgHandler : public IHandler
  26. {
  27. public:
  28.   PmicsMsgHandler(PmicsWindow *w) {}
  29. protected:
  30.   virtual Boolean dispatchHandlerEvent(IEvent &evt);
  31. };
  32.  
  33.  
  34. class PmicsWindow : public IFrameWindow, public ICommandHandler
  35. {
  36.   public:                               //Define the public Information
  37.     PmicsWindow(unsigned long windowId);//Constructor for this class
  38.     CommWindow    * commWindow;
  39.     void updateStat(char *p);
  40.     void updateClocks();
  41.     void statWhiteTop();
  42.     void statWhiteBottom();
  43.     void statWhiteOnMove(unsigned int);
  44.     void statBlackOnMove(unsigned int);
  45.  
  46.   protected:
  47.     Boolean command (ICommandEvent& cmdEvent);
  48.  
  49.   private:                              //Define the private Information
  50.     void setupStat(IWindow *parent);
  51.     IString expandButtonAction(IString action);
  52.     IMenuBar      * menuBar;            //Define an Information Area          
  53.                                         //  Control to create an information   .
  54.                                         //  area beneath the client area      
  55.     ISplitCanvas  * horzCanvas;
  56.     ISetCanvas  * vertCanvas;
  57.     IMultiCellCanvas    * statCanvas;
  58.     ISetCanvas    * buttCanvas,
  59.                   * textWName,
  60.                   * textBName;
  61.     BoardWindow   * boardWindow;
  62.     IListBox      * commList;
  63.     IPushButton   * pushButton[NUM_PUSHBUTTONS];
  64.     IListBox      * moveList;
  65.     IStaticText   * textWClock,
  66.                   * textBClock,
  67.                   * textGameName,
  68.                   * textMove;
  69.     PmicsMsgHandler     * msgHandler;
  70.     int           statWClock, 
  71.                   statBClock,
  72.                   *tickClock,
  73.                   gameNum,
  74.                   onMove;
  75. };
  76.  
  77. class HelpCommandHandler : public ICommandHandler {
  78. protected:
  79.   virtual Boolean command (ICommandEvent &evt);
  80. };
  81. #endif
  82.