
/***************************************************************************
**
**    $Header:   D:/ECB2S/SRC/LOG/BTNBAR.H__   1.2.1.5   17 Apr 1997 15:42:20   ZJRD  $
**
**    $Log:   D:/ECB2S/SRC/LOG/BTNBAR.H__  $
** 
**    Rev 1.2.1.5   17 Apr 1997 15:42:20   ZJRD
** No change.
** 
**    Rev 1.2.1.4   16 Apr 1997 10:16:42   ZJRD
** No change.
** 
**    Rev 1.2.1.3   10 Apr 1997 15:28:20   ZJRD
** 2.09F
** 
**    Rev 1.2.1.1   03 Apr 1997 15:09:54   ZJRD
** No change.
** 
**    Rev 1.2.1.0   28 Mar 1997 10:14:54   ZJRD
** easy pack sld 2.09d
** 
**    Rev 1.1   19 Mar 1997 11:26:10   ZJRD
** No change.
** 
**    Rev 1.0   12 Mar 1997 14:44:48   ZJRD
** Initial revision.
** 
**    Rev 1.7.1.0.1.2   09 Dec 1996 10:13:54   ZJRD
** EasyPack/SLD Version 2.0P
** 
**    Rev 1.7.1.0.1.0   11 Nov 1996 12:57:10   ZJRD
** EasyPack/SLD Version 2.01
** 
**    Rev 1.7.1.4   09 Sep 1996 13:12:14   ZJRD
** No change.
** 
**    Rev 1.7.1.3   05 Sep 1996 11:24:02   ZJRD
** No change.
** 
**    Rev 1.7.1.2   02 Sep 1996 09:51:20   ZJRD
** EasyPack/SLD Version 1.9d
** 
**    Rev 1.7.1.1   28 Aug 1996 15:43:04   ZJRD
** No change.
** 
**    Rev 1.7.1.0   12 Aug 1996 10:48:36   ZJRD
** EasyPack/SLD Version 1.98
** 
**    Rev 1.7   11 Jun 1996 10:23:12   ZJRD
** EasyPack/SLD Version 1.97
** 
**    Rev 1.5   05 Jun 1996 14:50:54   ZJRD
** EasyPack/SLD Version 1.96
** 
**    Rev 1.4   29 May 1996 09:27:30   ZJRD
** EasyPack/SLD Version 1.95
** 
**    Rev 1.3   16 May 1996 08:59:10   ZJRD
** No change.
** 
**    Rev 1.2   10 May 1996 09:07:42   ZJRD
** No change.
** 
**    Rev 1.1   02 May 1996 10:22:12   ZJRD
** EasyPack/SLD Version 1.92
** 
**    Rev 1.31   18 Apr 1996 12:52:32   Shirley
** EasyPack/SLD Version 1.91
** 
**    Rev 1.30   12 Apr 1996 10:33:22   Shirley
** EasyPack/SLD Version 1.90
** 
**    Rev 1.28   15 Feb 1996 08:46:22   Shirley
** No change.
** 
**    Rev 1.27   12 Feb 1996 14:01:24   Shirley
** No change.
** 
**    Rev 1.26   06 Feb 1996 15:26:50   Shirley
** No change.
** 
**    Rev 1.25   06 Feb 1996 13:42:14   Shirley
** No change.
** 
**    Rev 1.24   01 Feb 1996 10:11:10   Shirley
** EasyPack/SLD Version 0.35b
** 
**    Rev 1.23   26 Jan 1996 09:11:38   Shirley
** No change.
** 
**    Rev 1.22   25 Jan 1996 13:11:58   Shirley
** No change.
** 
**    Rev 1.21   24 Jan 1996 10:31:52   Shirley
** No change.
** 
**    Rev 1.20   23 Jan 1996 11:21:44   Shirley
** No change.
** 
**    Rev 1.19   18 Jan 1996 10:07:08   Shirley
** No change.
** 
**    Rev 1.18   15 Jan 1996 16:09:54   Shirley
** No change.
** 
**    Rev 1.17   04 Jan 1996 11:07:22   Shirley
** No change.
** 
**    Rev 1.16   30 Nov 1995 09:07:44   Shirley
** No change.
** 
**    Rev 1.15   28 Nov 1995 15:28:46   Shirley
** No change.
** 
**    Rev 1.14   21 Nov 1995 11:17:42   Shirley
** EasyPack/SLD Version 0.31
** 
**    Rev 1.13   13 Nov 1995 09:21:18   Shirley
** No change.
** 
**    Rev 1.12   12 Nov 1995 11:27:54   Shirley
** No change.
** 
**    Rev 1.11   08 Nov 1995 16:27:26   Shirley
** No change.
** 
**    Rev 1.10   08 Nov 1995 12:39:22   Shirley
** No change.
** 
**    Rev 1.9   02 Nov 1995 10:02:06   Shirley
** No change.
** 
**    Rev 1.8   27 Oct 1995 16:44:46   Shirley
** No change.
** 
**    Rev 1.7   27 Oct 1995 13:43:04   Shirley
** No change.
** 
**    Rev 1.6   25 Oct 1995 14:25:34   Shirley
** No change.
** 
**    Rev 1.5   18 Oct 1995 14:46:36   Shirley
** EasyPack/SLD Version 0.1e
** 
**    Rev 1.4   13 Oct 1995 13:18:28   Shirley
** No change.
** 
**    Rev 1.3   29 Sep 1995 09:47:52   Shirley
** No change.
** 
**    Rev 1.2   20 Sep 1995 10:56:20   Shirley
** EasyPack/SLD Version 0.1b
** 
**    Rev 1.1   15 Sep 1995 09:47:26   Shirley
** No change.
** 
**    Rev 1.0   07 Sep 1995 09:54:54   Shirley
** Initial revision.
**
****************************************************************************/

/////////////////////////////////////////////////////////////////////////////
//
//  File name:  BTNBAR.H
//
//  Description:The header file for the class: CSuperToolBar
//
//  Author:     Roger Zhang
//
//  Date:       04/14/95
//
//  Modification:
//
//      1. 04/14/95, Initial version 
//
//
//  Copyright (C) 1995 Microtek International. All rights reserved.
//
/////////////////////////////////////////////////////////////////////////////

#ifndef _BTNBAR_
#define _BTNBAR_

#include "control.h"
#include "status.h"

/////////////////////////////////////////////////////////////////////////////
// CSuperToolBar

class CSuperToolBar : public CCONTROL
{
// Construction
    DECLARE_DYNAMIC(CSuperToolBar)
public:
    CSuperToolBar();
    BOOL CreateBar(CWnd * pOwner);

// Attributes
public:
	enum {
	    BTN_MODULE = 0,
	    BTN_PREV_MODULE,
	    BTN_NEXT_MODULE,
	    BTN_LOAD,
	    BTN_SEARCH,
	    BTN_SRC_MODE,
	    BTN_MIX_MODE,
	    BTN_BUS_MODE,
	    BTN_INS_MODE,
	    BTN_BP,
	  
	    BTN_GO,
	    BTN_HALT,
	    BTN_RESET,
	    BTN_STEPI,
	    BTN_STEPO,
	    BTN_GO_OVER,
//	    BTN_GO_UNTIL,
	    BTN_TRACE_MIXED,
	    BTN_WATCH,
	    BTN_STATEMENT,
	    BTN_INST,
	  
	    BTN_LOCAL_VAR,
	    BTN_FRAME1,
	    BTN_FRAMEn,
	    BTN_FRAME,
	    BTN_ADD_VAR,
	    BTN_DEL_VAR,
	    BTN_HELP,
	    BTN_ABOUT,
	    BTN_DIAGNOSIS,
	    BTN_GORUN,
	  
	    BTN_MAP,
	    BTN_SHELL,
	    BTN_LISTSRC,
	    BTN_TRACE_TOGGLE,
	    BTN_SPA,
	    BTN_RESTART,
	    BTN_TRACECLEAR,
	    BTN_ASSEMBLE_MODE,
	    BTN_SHORTLINE,
	    BTN_SRCHCOM,
	};

// Operations
public:                                      
    BOOL RemoveButton(int item);
    BOOL AddCombo(int item);
    void Del(void);
    BOOL InsertButton(int item,int idleitem,int att);
    BOOL ReplaceButton(int item,int idleitem);
    
    BOOL NewMain(void);
    BOOL NewSource(void);
    BOOL NewBrowse(void);
    BOOL NewCpu(void);
    BOOL NewPeri(void);
    BOOL NewShell(void);
    BOOL NewTrace(void);
    BOOL NewBMem(void);
    BOOL NewVariable(void);
    BOOL NewStack(void);
    BOOL NewMemory(void);
    void AddSrchText(const char * str);
    CString GetSrchText(void);
    CString GetSrchEditText(void);
    BOOL AdjustCombox();
// Implementation
public:                    
    //int nActiveId;
         
    CComboBox m_cmbSrch;
    BOOL    m_isCmbSrch;

	CVBControl*	m_pTip;

    virtual ~CSuperToolBar();

protected:
    // Generated message map functions
    //{{AFX_MSG(CSuperToolBar)
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
	//}}AFX_MSG
    DECLARE_MESSAGE_MAP()
//	afx_msg void OnSetcaptionMhtip1(UINT, int, CWnd*, LPVOID);
};

#endif
/////////////////////////////(EOF)///////////////////////////////////////////
