/*************************************************************************\
* "$RCSfile: CDlgApp2.hpp,v $"                                            *
***************************************************************************
* Information by CVS or VSS:                                              *
*     Last check in on: $Date: 2009-04-23 12:34:49 $                      *
*     by                $Author: schluckebier $
*     Revision        : $Revision: 1.3 $                                  *
\*************************************************************************/
/*! \file CDlgApp.hpp
*	\brief Header CDlgApp Class (Example 2)
*	\author (c) 2007 - 2013 IMAGO Technologies GmbH
*
*	$Revision: 1.3 $
*	$Date: 2009-04-23 12:34:49 $
**************************************************************************/

/*************************************************************************/
/*! @brief Class for implementing an Imaging Application

	Provides the user interface and a container for a SDK user application.
	@image html CDlgApp.png
	The Dialog of CDlgApp is non modal. The constructor of CDlgApp is
	called by the application framework as well as all other functions to
	display and handle it. All user interface related functions run
	as a part of the task task_main. Only the function CDlgApp::OnUserIO()
	is called by the task Task_PSGrab(). 
**************************************************************************/
class CDlgApp: public CDlg
{
public:
	CDlgApp(int x, int y, int Width, int Height);
	~CDlgApp();
	int OnUserIO(int nKey);
	int OnImage(YIMAGE *pSrc, CIMAGE *pDst);

protected:
	int m_Thresh;	//!< Threshold value
};

extern CDlgApp *pDlgApp;
/*************************************************************************/
