home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ool.zip / OOL / include / xfiledlg.h < prev    next >
Text File  |  1997-04-02  |  2KB  |  49 lines

  1. #ifndef __XFILEDLG_H__
  2. #define __XFILEDLG_H__
  3.  
  4. /*===========================================================================*/
  5. /* OOL ------------------- the Open Object Library ------------- OS/2 Beta 1 */
  6. /*===========================================================================*/
  7. /*                              class: XFileDialog                           */
  8. /*                       derived from: XSystemDialog                         */
  9. /*                        last update: 12/96                                 */
  10. /*                      programmed by: Stefan von Brauk (sbrauk@gwdg.de)     */
  11. /*===========================================================================*/
  12.  
  13.  
  14.  
  15.  
  16. #include "xsysdlg.h"
  17. #include "xstring.h"
  18.  
  19. #ifdef OOL_FOR_OS2_X86
  20.    #define FD_OPEN            FDS_OPEN_DIALOG
  21.    #define FD_CENTER          FDS_CENTER
  22.    #define FD_SAVEAS          FDS_SAVEAS_DIALOG
  23.    #define FD_MULTIPLESEL     FDS_MULTIPLESEL
  24.    #define FD_HELP            FDS_HELPBUTTON
  25.    #define FD_MODELESS        FDS_MODELESS
  26.    #define FD_APPLYBUTTON     FDS_APPLYBUTTON
  27.    #define FD_EAS             FDS_INCLUDE_EAS
  28.    #define FD_FILTERUNION     FDS_FILTERUNION
  29.     #define FD_HELPBUTTON    FDS_HELPBUTTON
  30. #endif
  31.  
  32. class XWindow;
  33.  
  34.  
  35. class _export_ XFileDialog: public XSystemDialog
  36. {
  37.    private:
  38.       char * fileName;
  39.       PAPSZ pap;
  40.       SHORT numbers;
  41.    public:
  42.       XFileDialog( const XWindow * owner, const char * filename ="*.*", const char * title = NULL, const char * fileType = NULL, const LONG options = FD_OPEN | FD_CENTER);
  43.       virtual ~XFileDialog();
  44.       void GetFileName( XString * st, const SHORT index = 0) { *st = (index == 0 ? fileName : *pap[index]); }
  45.       SHORT GetFileCount( void ) const { return numbers; }
  46. };
  47.  
  48. #endif
  49.