home *** CD-ROM | disk | FTP | other *** search
/ MacHack 2000 / MacHack 2000.toast / pc / The Hacks / Genie / Projects / Pedestal / Source / Sources / Tasks / PedAgentAboutBox.cc < prev    next >
Encoding:
C/C++ Source or Header  |  2000-06-24  |  658 b   |  33 lines

  1. /* PedAgentAboutBox.cc */
  2.  
  3. #include "PedestalDebugging.h"
  4.  
  5. #include "PedAgentAboutBox.hh"
  6. #include "PedWindow.hh"
  7. #include "PedPaneIcon.hh"
  8.  
  9. PedAgentAboutBox::PedAgentAboutBox()
  10. : PedAgent(NULL)
  11. {
  12.     mPersistent = true;
  13. }
  14.  
  15. PedAgentAboutBox::~PedAgentAboutBox()
  16. {
  17. }
  18.  
  19. void
  20. PedAgentAboutBox::InitWindow()
  21. {
  22.     if (!mWindow) {
  23.         // Note that at the moment, PedWindow() calls SetWindow(),
  24.         // which sets mWindow, so this is redundant (but harmless).
  25.         mWindow = new PedWindow(this);
  26.         mWindow->SetTitle("\pPedestal");
  27.         Rect bounds = {200, 300, 279, 379};
  28.         mWindow->SetBounds(bounds);
  29.         PedPaneIcon *pane = new PedPaneIcon(*mWindow);
  30.         mWindow->SetPane(pane);
  31.     }
  32. }
  33.