
/***************************************************************************
**
**    $Header:   D:/EPSLDV1/SRC/LOG/SHLEDIT1.H__   1.8   20 Jun 1996 09:29:06   ZJRD  $
**
**    $Log:   D:/EPSLDV1/SRC/LOG/SHLEDIT1.H__  $
** 
**    Rev 1.8   20 Jun 1996 09:29:06   ZJRD
** EasyPack/SLD Version 1.20a
** 
**    Rev 1.6   10 Jun 1996 10:23:44   ZJRD
** EasyPack/SLD Version 1.20
** 
**    Rev 1.4   29 May 1996 09:35:10   ZJRD
** No change.
** 
**    Rev 1.3   16 May 1996 09:08:12   ZJRD
** No change.
** 
**    Rev 1.2   10 May 1996 09:08:44   ZJRD
** No change.
** 
**    Rev 1.1   02 May 1996 10:24:40   ZJRD
** EasyPack/SLD Version 1.92
** 
**    Rev 1.14   18 Apr 1996 13:00:22   Shirley
** No change.
** 
**    Rev 1.13   12 Apr 1996 10:35:40   Shirley
** EasyPack/SLD Version 1.90
** 
**    Rev 1.11   15 Feb 1996 08:49:36   Shirley
** No change.
** 
**    Rev 1.10   12 Feb 1996 14:02:06   Shirley
** No change.
** 
**    Rev 1.9   06 Feb 1996 15:27:20   Shirley
** No change.
** 
**    Rev 1.8   06 Feb 1996 13:42:58   Shirley
** No change.
** 
**    Rev 1.7   01 Feb 1996 10:15:50   Shirley
** No change.
** 
**    Rev 1.6   26 Jan 1996 09:12:42   Shirley
** No change.
** 
**    Rev 1.5   25 Jan 1996 13:13:22   Shirley
** No change.
** 
**    Rev 1.4   24 Jan 1996 10:40:18   Shirley
** No change.
** 
**    Rev 1.3   23 Jan 1996 11:22:20   Shirley
** EasypPack/SLD Version 0.34c
** 
**    Rev 1.2   18 Jan 1996 10:13:14   Shirley
** No change.
** 
**    Rev 1.1   15 Jan 1996 16:14:40   Shirley
** No change.
** 
**    Rev 1.0   04 Jan 1996 11:13:30   Shirley
** Initial revision.
**
****************************************************************************/

/////////////////////////////////////////////////////////////////////////////
//
//  File name:  SHLEDIT1.H
//
//  Description:The header file of the class ShellEditor1
//
//  Author:     Roger Zhang
//
//  Date:       01/10/96
//
//  Modification:
//
//      1. 01/10/96, Initial version 
//
//
//  Copyright (C) 1996 Microtek International. All rights reserved.
//
/////////////////////////////////////////////////////////////////////////////

#ifndef _SHLEDIT1_
#define _SHLEDIT1_

class ShellEditor1 : public ShellEditor
{                
// Construction & Destruction.
public:
    ShellEditor1();
    ~ShellEditor1();

// attributes
private:              
	BOOL m_isIns;

	int m_nCmdID;

	int	m_nLeft; 	//	Token pos
	int	m_nRight;   //
	
	int m_nKeyLen;	// Keyword length	
         
    char* m_pszCommand ;

	char* m_pszEvent; // m_pszEvent = Event 1(2|3)
	             
// implementation             
private:              
	BOOL GetFirstToken(void);
	int GetToken(void);
	//int SearchCommand(void);
	//int SearchArgument(void);    
	
	//BOOL ExpandCommand(int nCmd);
	//BOOL ExpandArgument(int nArg);
	
	BOOL ExpandCommand(void);
	BOOL ExpandArgument(void);
	
	BOOL OnSpace(void);
	int TestEvent(void);
	
// operations	
public:             
	CString GetHints(void);

	BOOL InsChar(char ch);
	BOOL OvrChar(char ch);
	BOOL BackChar();
	BOOL DelChar();
};

#endif
                      
                      