home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD1.mdf / magazine / pctchnqs / 1992 / number1 / fileview.chg < prev    next >
Text File  |  1992-01-05  |  922b  |  39 lines

  1. ...
  2. // PRFILE CHANGE: removed #include "tvcmds.h".
  3.  
  4. #include "fileview.h"
  5.  
  6. // PRFILE CHANGE: added #include "prfile.h".
  7. #include "prfile.h"
  8.  
  9. const char * const TFileViewer::name = "TFileViewer";
  10.  
  11. TFileViewer::TFileViewer( const TRect& bounds,
  12.               TScrollBar *aHScrollBar,
  13.               TScrollBar *aVScrollBar,
  14.               const char *aFileName) :
  15.     TScroller( bounds, aHScrollBar, aVScrollBar )
  16. {
  17. ...
  18.     // PRFILE CHANGE: added enable of cmPrintFile.
  19.     if (!filesOpen++)
  20.       enableCommand(cmPrintFile);
  21. }
  22.  
  23. TFileViewer::~TFileViewer()
  24. {
  25.     // PRFILE CHANGE: added disable of cmPrintFile.
  26.     if (!--filesOpen)
  27.       disableCommand(cmPrintFile);
  28. ...
  29. }
  30. ...
  31. TFileWindow::TFileWindow( const char *fileName ) :
  32.     // PRFILE CHANGE: changed winNumber++ to ++winNumber (bug).
  33.     TWindow( TProgram::deskTop->getExtent(), fileName, ++winNumber),
  34.     TWindowInit( &TFileWindow::initFrame )
  35. {
  36. ...
  37. }
  38.  
  39.