home *** CD-ROM | disk | FTP | other *** search
/ Media Share 13 / mediashare_13.zip / mediashare_13 / ZIPPED / PROGRAM / WTJ9403.ZIP / WILDASS / SOURCE / APP.H < prev    next >
C/C++ Source or Header  |  1993-08-14  |  2KB  |  87 lines

  1. // app.h
  2. //
  3. // minimum application class interface
  4. //
  5. // update: 1.00 28-Jul-93 tw
  6.  
  7. #ifndef _INC_APP_H
  8. #define _INC_APP_H
  9.              
  10. #define new DEBUG_NEW
  11.  
  12. #include "appinfo.h"
  13.  
  14. const UINT nIconButtons=8;             // # of icon buttons                                
  15. const UINT nBeginIdIconButtons = 200;  // 1st id
  16. const UINT nBeginIdEditButtons = 300;
  17.  
  18. class CMyApp : public CWinApp
  19. {  
  20. private:         
  21.    CStringList m_lstWSP1;
  22.  
  23.    UINT  m_cPixelFrame;
  24.    BOOL  m_fComeUpAllways;
  25.    BOOL  m_fStayVisible;
  26.    
  27.    // application lists
  28.    int  m_nCurrentAppList;
  29.    CApplicationList m_AppList[nIconButtons];
  30.    
  31. public:    
  32.    CMyApp( const char * pszAppName );
  33.    virtual BOOL InitInstance();
  34.    virtual int ExitInstance();
  35.    
  36. private:
  37.    // command-handlers 
  38.    // for snall buttons
  39.    void OnTile1();
  40.    void OnTile2();
  41.    void OnTile3();
  42.    void OnTile4();
  43.    void OnWsp1();   
  44.    void OnWsp2();   
  45.    void OnWsp3();   
  46.    void OnWsp4();   
  47.    void OnOpts1();   
  48.    void OnOpts2();   
  49.    void OnOpts3();   
  50.    void OnOpts4();   
  51.    
  52.    // help fxns
  53.    void TileHorizontal( int cyIconSpace );
  54.    void TileVertical( int cyIcon );                  
  55.    
  56.    // take care of desktop business
  57.    void ManageDesktop( const char * pszDesktopName );
  58. public:
  59.    // interface to data members: Options settiungs
  60.    UINT Settings_PixelFrame() const;   
  61.    BOOL Settings_ComeUpAllways() const;
  62.    BOOL Settings_StayVisible() const;
  63.             
  64.    // get a ptr to the current application list
  65.    const CApplicationList * CurrentApplicationList() const;            
  66.    
  67.    // launch or edit application groups
  68.    void OnLaunchGroup( int nGrp );
  69.    void OnEditGroup( int nGrp );
  70.    
  71.    // add via drag n drop
  72.    void AddToGroup( int nGrp, const char * pszPath );
  73.                                              
  74.    // return icon to use for this group                                             
  75.    HICON Icon( int nApplicationGroup ) const;
  76.              
  77.    void ReadApplicationInfo();
  78.    void WriteApplicationInfo();
  79.              
  80.    DECLARE_MESSAGE_MAP()   
  81. };
  82.  
  83. #endif  // _INC_APP_H
  84.  
  85.  
  86.  
  87.