#define _TRIGWDLG_

#define IDM_TRIGFEXIT         100
//#define IDM_UNIT_H_0          101
//#define IDM_UNIT_M_0          102
#define IDM_COUNTER_DEC       101
#define IDM_COUNTER_HEX       102
#define IDM_UNIT_S_0          103
#define IDM_UNIT_MM_0         104
#define IDM_UNIT_UM_0         105

#define IDM_TRIGEEVENTS       110
//#define IDM_UNIT_H_1          111
//#define IDM_UNIT_M_1          112
#define IDM_UNIT_S_1          113
#define IDM_UNIT_MM_1         114
#define IDM_UNIT_UM_1         115

#define IDM_TRIGOCONTROL      120
#define IDM_TRIGOQUALIFY      121
#define IDM_TRIGOTM0EP        122
#define IDM_TRIGOTM0TM        123
#define IDM_TRIGOTM1EP        124
#define IDM_TRIGOTM1TM        125
#define IDM_TRIGOEXLOW        126
#define IDM_TRIGOEXHIGH       127
#define IDM_TRIGOEXHIGHZ      128
#define IDM_TRIGOINLOW        136
#define IDM_TRIGOINHIGH       137

#define IDM_TRIGL0            130
#define IDM_TRIGL1            131
#define IDM_TRIGL2            132
#define IDM_TRIGL3            133

#define IDM_EVTWBKPT          152
#define IDM_EVTWCPU           140
#define IDM_EVTWEVENT         141
#define IDM_EVTWMEMORY        142
#define IDM_EVTWPERIPHERAL    143
#define IDM_EVTWSHELL         144
#define IDM_EVTWSOURCE        145
#define IDM_EVTWSTACK         146
#define IDM_EVTWSTATUS        147
#define IDM_EVTWTOOLBAR       148
#define IDM_EVTWTRACE         149
#define IDM_EVTWTRIGGER       150
#define IDM_EVTWVARIABLE      151
#define IDM_EVTWSPA           153

#define IDM_TRIGHINDEX        160
#define IDM_TRIGHHELP         161
#define IDM_TRIGHEVENT        162

#define IDM_TRIGACCEPT        163

#define IDB_TMCOUNTER_0       170
#define IDB_TMCOUNTER_1       171



// ID 200-500 has used in controller of presentation window

#define HE_TRIGGER           2045
//define SelSeq button ID
#define IDD_LEVEL0            530
#define IDD_LEVEL1            531
#define IDD_LEVEL2            532
#define IDD_LEVEL3            533
#define IDD_LEVELNO           534
#define IDD_OKAY_SEQ          535
#define IDD_CANCEL_SEQ        536

//define SelExtOut button ID
#define IDD_HIGH              540
#define IDD_LOW               541
#define IDD_HIGH_Z            542
#define IDD_OKAY_EXTOUT       543
#define IDD_CANCEL_EXTOUT     544

#define IDT_PRE          600
#define IDT_CENTER       601
#define IDT_POST         602
#define IDT_TRCBRK       603
#define IDT_TRCOFF       604
#define IDT_OK           605
#define IDT_CANCEL       606
#define IDT_HELP         607

#define MAXLENGTH 15
#define nUmGroup  20
#define nUmBsEachGroup 3
#define nMaxLen   80

#define MENU_OFFSET        0x3F00
#define SOURCE_WINDOW      0
#define STACK_WINDOW       1
#define VARIABLE_WINDOW    2
#define STATUS_WINDOW      3
#define CPU_WINDOW         4
#define MEMORY_WINDOW      5
#define TRACE_WINDOW       6
#define TRIGGER_WINDOW     7
#define SHELL_WINDOW       8
#define BREAKPOINT_WINDOW  9
#define TOOLBAR_WINDOW     10
#define PERIPHERAL_WINDOW  11
#define SPA_WINDOW         12

#ifdef __cplusplus
extern "C" {
#endif
/*
unsigned long FAR PASCAL TrigOpenWindow(HWND parent,int left,int top,int width,
     int height,DWORD dwStyle,DWORD dwExStyle,HWND *evtWindow);
unsigned long FAR PASCAL TrigCloseWindow();
unsigned long FAR PASCAL TrigExistsWindow(HWND *EvtHandle);
*/
RETCODE EXPORT FAR PASCAL TrigOpenWindow(HWND parent,int left,int top,int width,
     int height,DWORD dwStyle,DWORD dwExStyle,HWND *evtWindow);
RETCODE EXPORT FAR PASCAL TrigCloseWindow();
RETCODE EXPORT FAR PASCAL TrigExistsWindow(HWND *EvtHandle);
RETCODE EXPORT EvtOpenWindow(HWND parent,int left,int top,int width,
     int height,DWORD dwStyle,DWORD dwExStyle,HWND *evtWindow);
RETCODE EXPORT FAR PASCAL TrigClearTrigNameEnableAction(VOID);
RETCODE EXPORT EvtCloseWindow();
RETCODE EXPORT EvtExistsWindow(HWND *EvtHandle);
RETCODE EXPORT TrcDlgQTrace(HWND);
RETCODE EXPORT TrigExtSettingDlg(HWND);
#ifdef __cplusplus
}
#endif

