home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / sompar.zip / LISTBOX.HPP < prev    next >
C/C++ Source or Header  |  1994-01-06  |  2KB  |  93 lines

  1. //
  2. // Project: Digitalk Parts like Toolbar and SOMObjects Demo
  3. // File:    Listbox.hpp
  4. // Author:  Stewart Hyde
  5. // Created: Dec   18, 1993
  6. // Updated: Jan    6, 1993
  7. //
  8. // Description:
  9. //
  10.  
  11. #ifndef _LISTBOX_HPP_
  12.   #define _LISTBOX_HPP_
  13.  
  14. #ifndef _ICANVAS_
  15.   #include <icanvas.hpp>
  16. #endif
  17.  
  18. #ifndef _IFONT_
  19.   #include <ifont.hpp>
  20. #endif
  21.  
  22. #ifndef _ICTLEVT_
  23.   #include <ictlevt.hpp>
  24. #endif
  25.  
  26. #ifndef _ISELHDR__
  27.   #include <iselhdr.hpp>
  28. #endif
  29.     
  30. #ifndef _ILISTBOX_
  31.   #include <ilistbox.hpp>
  32. #endif
  33.    
  34. #ifndef _IENTRYFD_
  35.   #include <ientryfd.hpp>
  36. #endif
  37.    
  38. #ifndef _IGROUPBX_
  39.   #include <igroupbx.hpp>
  40. #endif
  41.  
  42. #ifndef _SOMACT_HPP_
  43.     #include "somact.hpp"
  44. #endif
  45.  
  46. #include "atimehdr.hpp"
  47.    
  48. class IFrameWindow;
  49.  
  50. // ------------------------------------------------------------------------
  51. //  Class:            PartsListBox
  52. //  Derived:        ICanvas
  53. //                
  54. //  Description:    This class describes the Parts Listbox dialog which
  55. //                        displays status of actions done in Parts Note Tool
  56. //
  57. // ------------------------------------------------------------------------
  58.  
  59.  
  60. class PartsListbox : public ICanvas,
  61.                             public ATimeHandler
  62. {
  63.     typedef ICanvas Inherited;
  64.       public:
  65.         PartsListbox(IWindow *parentWin, IWindow *ownerWin, SomAction *somAction);
  66.         ~PartsListbox();
  67.         virtual IRectangle mapDialogRect(const IRectangle &rect);
  68.   
  69.       protected:
  70.         virtual Boolean tick(IEvent& evt);  //Send Tick for every WM_TIMER       
  71.       private:
  72.         void setupControls();
  73.         long                LastStatus;
  74.         long                ActionCount;
  75.         SomAction        *somAct;
  76.         IListBox       lst101;
  77.         IEntryField    edt102;
  78.         IGroupBox      grp103;
  79.         IEntryField    edt104;
  80.         IGroupBox      grp105;
  81. };
  82.   
  83. //
  84. // Inline functions
  85. //
  86.  
  87. inline PartsListbox::~PartsListbox()
  88. {
  89.       ATimeHandler::stopHandlingEventsFor(this);//Stop Timer                       .
  90. }
  91.  
  92. #endif // _LISTBOX_HPP_
  93.