/***************************************************************************
 *                          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 Zanoza Software.                   *
 *                                                                         *
 *                        All rights reserved.                             *
 ***************************************************************************
 *--------------------------------------------------------------------------
 * @author:   Oleg M.
 *--------------------------------------------------------------------------
 * @purpose:  ZModeler 2.x progress bar shared class
 *--------------------------------------------------------------------------
 * @histroy: 28.07.2005. Created
 */
#ifndef progressbarshared_h_included
#define progressbarshared_h_included
#include <helpers/services.h>
#include <core/ui/controls/IProgressBar.h>
#include <core/ui/IStatusBar.h>

namespace core
{
  namespace ui
  {
    //-------------------
    // helper
    class DLL_LINKAGE CProgressBarWrapper
    {
    public:
      CProgressBarWrapper(LPCTSTR pszText = NULL);
      ~CProgressBarWrapper();
    public:
      void step(long n=0);
      void pos(long n);
      void setLen(long n);
      void setText(LPCTSTR pszText, bool bPercentage = true);
    private:
      ZPtr<controls::IProgressBar>  m_pProgress;
      ZPtr<IStatusBar>              m_pStatusBar;
    };

  };//ui
};//core

#endif //progressbarshared_h_included

