/***************************************************************************
 *                          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 IPropertiesService
 *   Service for displaying properties page for current selection.
 *--------------------------------------------------------------------------
 * @created: Wednesday, October 29, 2003 12:17:22
 */

#if !defined(IPropertiesService_h_included)
#define IPropertiesService_h_included
//forward declaration of this class might require
namespace services
{ class IPropertiesService; };
#include <zmodeler.h>
#include <core/coreTypes.h>
#include <services/zmServices.h>
#include <services/IService.h>
#include <core/IProcParams.h>
#include <services/IPropertiesSource.h>
#include <core/layout/IChildDialog.h>
#include <scene/INode.h>


namespace services
{
  
  class IPropertiesService : public services::IService
  {
  public:
    /* Displays properties dialog box. Uses supplied procParams data member. */
    virtual ZRESULT display(core::IProcParams* pParams, scene::tNodeSeq& seqNodes)=0;
    virtual ZRESULT addPropertiesSource(services::IPropertiesSource* pSource)=0;
    virtual ZRESULT removePropertiesSource(services::IPropertiesSource* pSource)=0;
    virtual ZRESULT isPropertyChanged(ZStringSeq& seqBranch, ZString strLabel)=0;
    virtual ZRESULT addDialogProperty(ZStringSeq& seqBranch, ZString strLabel, core::layout::IChildDialog* pDlg, bool bEditable=true, CImageList* pList=NULL, long nImage=0)=0;
    virtual ZRESULT addColorProperty(ZStringSeq& seqBranch, ZString strLabel, ZColor* pColor, bool bEditable=true, CImageList* pList=NULL, long nImage=0)=0;
    virtual ZRESULT addFolderProperty(ZStringSeq& seqBranch, ZString strLabel, ZString* pstrFolder, bool bInit=true, bool bEditable=true, CImageList* pList=NULL, long nImage=0)=0;
    virtual ZRESULT addFileProperty(ZStringSeq& seqBranch, ZString strLabel, ZString* pstrPathName, LPCTSTR pszFilter, bool bInit=true, bool bEditable=true, CImageList* pList=NULL, long nImage=0)=0;
    virtual ZRESULT addGenericString(ZStringSeq& seqBranch, LPCTSTR strLabel, LPCTSTR pszValue, CImageList* pList=NULL, long nImage=0)=0;
    virtual ZRESULT addStringProperty(ZStringSeq& seqBranch, ZString strLabel, ZString* pstrValue, bool bInit=true, bool bEditable=true, CImageList* pList=NULL, long nImage=0)=0;
    virtual ZRESULT addLongProperty(ZStringSeq& seqBranch, ZString strLabel, long* pValue, bool bInit=true, bool bEditable=true, CImageList* pList=NULL, long nImage=0)=0;
    virtual ZRESULT addLongRangeProperty(ZStringSeq& seqBranch, ZString strLabel, long* pValue, long nMin, long nMax, bool bInit=true, bool bEditable=true, CImageList* pList=NULL, long nImage=0)=0;
    virtual ZRESULT addFloatProperty(ZStringSeq& seqBranch, ZString strLabel, float* pValue, bool bInit=true, bool bEditable=true, CImageList* pList=NULL, long nImage=0)=0;
    virtual ZRESULT addFloatRangeProperty(ZStringSeq& seqBranch, ZString strLabel, float* pValue, float fMin, float fMax, long nPrecision=2, bool bInit=true, bool bEditable=true, CImageList* pList=NULL, long nImage=0)=0;
    virtual ZRESULT addVariationsProperty(ZStringSeq& seqBranch, ZString strLabel, ZStringSeq& seqVariants, long* pChoice, bool bInit=true, bool bEditable=true, CImageList* pList=NULL, long nImage=0)=0;
    virtual ZRESULT addBoolProperty(ZStringSeq& seqBranch, ZString strLabel, bool* pValue, bool bInit=true, bool bEditable=true, CImageList* pList=NULL, long nImage=0)=0;
  
  };//class IPropertiesService
};//services

#endif
