home *** CD-ROM | disk | FTP | other *** search
/ Chip 2001 February / Chip_2001-02_cd1.bin / sharewar / vecad / source / ExtApp.h < prev    next >
C/C++ Source or Header  |  2000-06-23  |  1KB  |  51 lines

  1. /********************************************************************
  2. * Project: VeCAD ver.5.1
  3. * Copyright (C) 1999-2000 by Oleg Kolbaskin.
  4. * All rights reserved.
  5. *
  6. * External Applications
  7. ********************************************************************/
  8. #ifndef EXTAPP_H
  9. #define EXTAPP_H
  10.  
  11. #ifndef _WINDOWS_
  12.   #include <windows.h>
  13. #endif
  14. #ifndef CONFIG_H
  15.   #include "config.h"
  16. #endif
  17.  
  18.  
  19. #define SZ_EXTAPPTITLE  256
  20. #define MAX_EXTAPP      10
  21.  
  22. //-------------------------------------
  23. class CExtApp {
  24.   TCHAR  szTitle[SZ_EXTAPPTITLE];  // title for menu
  25.   TCHAR  szFileName[256];         // exe file name
  26. public:
  27.     CExtApp();
  28.  
  29.   void    SetTitle    (LPCTSTR szTitle);
  30.   LPCTSTR GetTitle    () const {return szTitle;}
  31.   void    SetFileName (LPCTSTR szFileName);
  32.   LPCTSTR GetFileName () const {return szFileName;}
  33. };
  34.  
  35.  
  36. //-------------------------------------
  37. class CAppList {
  38.   CExtApp App[MAX_EXTAPP];
  39.   int     n_app;       // number of app in the list
  40. public:
  41.     CAppList ();
  42.  
  43.   bool    Load        (CConfig& Cfg);
  44.   LPCTSTR GetFileName (int Index);
  45. private:
  46.   bool UpdateMenu ();
  47. };
  48.  
  49. #endif  // EXTAPP_H
  50.  
  51.