home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / dlgcpp.zip / dialog.hpp < prev    next >
Text File  |  1995-08-30  |  5KB  |  146 lines

  1. #include <iframe.hpp>
  2. #include <imousevt.hpp>
  3. #include <istring.hpp>
  4.  
  5. class IGraphicPushButton;
  6. class IPushButton;
  7. class ICheckBox;
  8. class I3StateCheckBox;
  9. class IRadioButton;
  10. class IScrollBar;
  11. class IListBox;
  12. class IEntryField;
  13. class IStaticText;
  14. class IGroupBox;
  15. class IIconControl;
  16. class IBitmapControl;
  17. class IComboBox;
  18. class IMultiLineEdit;
  19. class INumericSpinButton;
  20. class ITextSpinButton;
  21. class IContainerControl;
  22. class IProgressIndicator;
  23. class ISlider;
  24. class INotebook;
  25. class ICircularSlider;
  26.  
  27.  
  28. /*******************************************************************************
  29. * Dialog Class                                                                 *
  30. *******************************************************************************/
  31. class Dialog : public IFrameWindow {
  32. typedef IFrameWindow
  33.   Inherited;
  34. public:
  35. /*------------------------------- Constructors -------------------------------*/
  36. virtual
  37.   ~Dialog ( );
  38.  
  39. /*------------------------------- Control Access -----------------------------*/
  40. virtual IGraphicPushButton
  41.  *graphicPushButtonWithId  ( unsigned long identifier );
  42.  
  43. virtual IPushButton
  44.  *pushButtonWithId         ( unsigned long identifier );
  45.  
  46. virtual ICheckBox
  47.  *checkBoxWithId           ( unsigned long identifier );
  48.  
  49. virtual I3StateCheckBox
  50.  *threeStateCheckBoxWithId ( unsigned long identifier );
  51.  
  52. virtual IRadioButton
  53.  *radioButtonWithId        ( unsigned long identifier );
  54.  
  55. virtual IScrollBar
  56.  *scrollBarWithId          ( unsigned long identifier );
  57.  
  58. virtual IListBox
  59.  *listBoxWithId            ( unsigned long identifier );
  60.  
  61. virtual IEntryField
  62.  *entryFieldWithId         ( unsigned long identifier );
  63.  
  64. virtual IStaticText
  65.  *staticTextWithId         ( unsigned long identifier );
  66.  
  67. virtual IGroupBox
  68.  *groupBoxWithId           ( unsigned long identifier );
  69.  
  70. virtual IIconControl
  71.  *iconControlWithId        ( unsigned long identifier );
  72.  
  73. virtual IBitmapControl
  74.  *bitmapControlWithId      ( unsigned long identifier );
  75.  
  76. virtual IComboBox
  77.  *comboBoxWithId           ( unsigned long identifier );
  78.  
  79. virtual IMultiLineEdit
  80.  *mleWithId                ( unsigned long identifier );
  81.  
  82. virtual INumericSpinButton
  83.  *numericSpinButtonWithId  ( unsigned long identifier );
  84.  
  85. virtual ITextSpinButton
  86.  *textSpinButtonWithId     ( unsigned long identifier );
  87.  
  88. virtual IContainerControl
  89.  *containerWithId          ( unsigned long identifier );
  90.  
  91. virtual IProgressIndicator
  92.  *progressIndicatorWithId  ( unsigned long identifier );
  93.  
  94. virtual ISlider
  95.  *sliderWithId             ( unsigned long identifier );
  96.  
  97. virtual INotebook
  98.  *notebookWithId           ( unsigned long identifier );
  99.  
  100. virtual ICircularSlider
  101.  *circularSliderWithId     ( unsigned long identifier );
  102.  
  103. protected:
  104. /*------------------------------- Constructors -------------------------------*/
  105.   Dialog  ( unsigned long id,
  106.             IWindow*      owner );
  107.  
  108. /*------------------------------ Implementation ------------------------------*/
  109. Dialog
  110.  &createControlsFromTemplate ( );
  111.  
  112. /*------------------------------ Control Creation ----------------------------*/
  113. virtual Dialog
  114.  &customControl      ( unsigned long       identifier,
  115.                        const IString&      className ),
  116.  &graphicPushButton  ( IGraphicPushButton* aGraphicPushButton ),
  117.  &pushButton         ( IPushButton*        aPushButton ),
  118.  &checkBox           ( ICheckBox*          aCheckBox ),
  119.  &threeStateCheckBox ( I3StateCheckBox*    a3StateCheckBox ),
  120.  &radioButton        ( IRadioButton*       aRadioButton ),
  121.  &customButton       ( unsigned long       identifier ),
  122.  &scrollBar          ( IScrollBar*         aScrollBar ),
  123.  &listBox            ( IListBox*           aListBox ),
  124.  &entryField         ( IEntryField*        anEntryField ),
  125.  &staticText         ( IStaticText*        aStaticText ),
  126.  &groupBox           ( IGroupBox*          aGroupBox ),
  127.  &iconControl        ( IIconControl*       anIcon ),
  128.  &bitmapControl      ( IBitmapControl*     aBitmap ),
  129.  &comboBox           ( IComboBox*          aComboBox ),
  130.  &mle                ( IMultiLineEdit*     aMLE ),
  131.  &numericSpinButton  ( INumericSpinButton* aNumericSpinButton ),
  132.  &textSpinButton     ( ITextSpinButton*    aTextSpinButton ),
  133.  &container          ( IContainerControl*  aContainer ),
  134.  &progressIndicator  ( IProgressIndicator* aProgressIndicator ),
  135.  &slider             ( ISlider*            aSlider ),
  136.  ¬ebook           ( INotebook*          aNotebook ),
  137.  &circularSlider     ( ICircularSlider*    aCircularSlider );
  138.  
  139. private:
  140. /*--------------------------------- Private ----------------------------------*/
  141. unsigned long
  142.   ulId;
  143.  
  144. }; //Dialog
  145.  
  146.