/***************************************************************************
 *                          Zanoza Modeler v2.x                            *
 *      This is unpublished propietary source code of Zanoza Software.     *
 *      The copyright notice does not evidence any actual or intended      *
 *                    publication of such source code.                     *
 *                                                                         *
 *                Copyright (c) 2002-2008 Zanoza Software.                 *
 *                                                                         *
 *                        All rights reserved.                             *
 ***************************************************************************
 *--------------------------------------------------------------------------
 * @author:   Oleg Melashenko
 *--------------------------------------------------------------------------
 * @purpose:  Declaration of the class IToolSelectEventHandler
 *--------------------------------------------------------------------------
 * @created: Sunday, October 06, 2002 21:10:30
 */

#if !defined(IToolSelectEventHandler_h_included)
#define IToolSelectEventHandler_h_included
//forward declaration of this class might require
namespace core
{ namespace events
  { class IToolSelectEventHandler; class CToolSelectEventHandlerCol; }; };
#include <zmodeler.h>
#include <core/events/eventsTypes.h>
#include <core/events/IEventHandler.h>
#include <core/tools/ITool.h>


namespace core
{
  namespace events
  {
    
    class IToolSelectEventHandler : public core::events::IEventHandler
    {
    public:
      virtual ZRESULT onSelectTool(core::tools::ITool* pTool, long nIndex=-1)=0;
      virtual ZRESULT onUnselectTool(core::tools::ITool* pTool, long nIndex=-1)=0;
    
    };//class IToolSelectEventHandler
    
    //
    // collection template
    //
    class CToolSelectEventHandlerCol : public ZUnknown,
        public ZIntrCollection<IToolSelectEventHandler>
    {
    public:
      INTERFACE_FUNCTIONS_DEFAULT(CToolSelectEventHandlerCol)
    };//class CToolSelectEventHandlerCol
  };//events
};//core

#endif
