home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / wpsgpf.zip / SIM.CSC < prev    next >
Text File  |  1995-01-26  |  5KB  |  143 lines

  1. #/*****************************************************************************
  2. #/
  3. #/ TITLE:          Simple WPS Class
  4. #/
  5. #/ FILE:           sim.csc
  6. #/
  7. #/ CLASS:          WPSimple
  8. #/
  9. #/ MAJOR CHANGES:  00.00
  10. #/
  11. #/ DESCRIPTION:    see sim.c
  12. #/
  13. #/ (C) Copyright SES GmbH Berlin 1994.        All rights reserved.
  14. #/
  15. #/*****************************************************************************
  16.  
  17. #******************************************************************************
  18. # Include     Section
  19. #******************************************************************************
  20. include <wpabs.sc>
  21.  
  22. #******************************************************************************
  23. # Class       Section
  24. #******************************************************************************
  25. class:
  26.    WPSimple,
  27.    local,
  28.    major version = 1,
  29.    minor version = 1,
  30.    classprefix   = wpcls;
  31.  
  32. #******************************************************************************
  33. # Meta/Parent Section
  34. #******************************************************************************
  35. parent:
  36.    WPAbstract;
  37.  
  38. #******************************************************************************
  39. # Release     Section
  40. #******************************************************************************
  41. release order: RefreshViews, hmod, AddIconFilePage, SetIcon ;
  42.  
  43. #******************************************************************************
  44. # Passthru    Section
  45. #******************************************************************************
  46.  
  47. #------------------------------------------------------------------------------
  48. # passthru: C.c;
  49. #------------------------------------------------------------------------------
  50. passthru: C.c;
  51. //-----------------------------------------------------------------------------
  52. // This text goes here!
  53. //-----------------------------------------------------------------------------
  54. endpassthru;
  55.  
  56. #******************************************************************************
  57. # Data        Section
  58. #******************************************************************************
  59. data:
  60.  
  61.    //-Simple-------------------------------------------------------------------
  62.    INT      iDummy;
  63.  
  64.    //-Init & Setup, Save & Restore---------------------------------------------
  65.    HPOINTER hptrDefault1;
  66.    HPOINTER hptrDefault2;
  67.    HPOINTER hptrDefault3;
  68.    LONG     lIconState;
  69.  
  70.    //-Settings Pages-----------------------------------------------------------
  71.    HWND     hwndIconFileView;
  72.    HPOINTER hptrIconFile;
  73.    CHAR     szIconFile        [256];
  74.    CHAR     szIconFileForUndo [256];
  75.    LONG     lIconStateForUndo;
  76.    BOOL     fFirstNotification;
  77.  
  78.    //-Pop-Up-------------------------------------------------------------------
  79.    LONG     lPlayState;
  80.    LONG     lPictureToDisplay;
  81.    HWND     hwndTimer;
  82.    BOOL     fTimerStarted;
  83.  
  84.    //-Views--------------------------------------------------------------------
  85.    HWND     hwndInfoView;
  86.    HWND     hwndListbox;
  87.  
  88.    //-Drag & Drop--------------------------------------------------------------
  89.  
  90.    //-Class Variables (belongs to the metaclass)-------------------------------
  91.    HMODULE  hmod, public, class;
  92.  
  93. #******************************************************************************
  94. # Methods     Section
  95. #******************************************************************************
  96. methods:
  97.  
  98. #==============================================================================
  99. # Group: Init & Setup
  100. #==============================================================================
  101. override wpInitData;
  102. override wpUnInitData;
  103. override wpSetup;
  104. VOID     RefreshViews ();
  105.  
  106. #==============================================================================
  107. # Group: Save & Restore
  108. #==============================================================================
  109. override wpSaveState;
  110. override wpRestoreState;
  111.  
  112. #==============================================================================
  113. # Group: Setting Pages
  114. #==============================================================================
  115. override wpAddSettingsPages;
  116. override wpAddObjectGeneralPage;
  117. BOOL     AddIconFilePage (HWND hwndNotebook);
  118. BOOL     SetIcon (PSZ pszIconFile);
  119.  
  120. #==============================================================================
  121. # Group: Pop-Up
  122. #==============================================================================
  123. override wpFilterPopupMenu;
  124. override wpModifyPopupMenu;
  125. override wpMenuItemSelected;
  126.  
  127. #==============================================================================
  128. # Group: Views
  129. #==============================================================================
  130. override wpOpen;
  131.  
  132. #==============================================================================
  133. # Group: Drag & Drop
  134. #==============================================================================
  135. override wpDragOver;
  136. override wpDrop;
  137.  
  138. #==============================================================================
  139. # Group: Class Methods (belong to the metaclass)
  140. #==============================================================================
  141. override wpclsQueryStyle, class;
  142. override wpclsInitData, class;
  143.