/***************************************************************************
 *                          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 IColorButton
 *   Color button interface. Buttin implements standard CButton and
 *   sends ON_COMMAND to the parent once user clicks it.
 *--------------------------------------------------------------------------
 * @created: Tuesday, July 01, 2003 13:37:12
 */

#if !defined(IColorButton_h_included)
#define IColorButton_h_included
//forward declaration of this class might require
namespace core
{ namespace ui
  { namespace controls
    { class IColorButton; }; }; };
#include <zmodeler.h>
#include <core/ui/controls/uiControls.h>
#include <core/ui/controls/IUIControl.h>


namespace core
{
  namespace ui
  {
    namespace controls
    {
      
      class IColorButton : public core::ui::controls::IUIControl
      {
      public:
        virtual ZRESULT setColor(ZColor color)=0;
        virtual ZRESULT getColor(ZColor& color)=0;
        /* Displays a CColorDialog to allow user select a color. ZRESULT_FALSE is
         * returned if Cancel button is pressed. */
        virtual ZRESULT selectColor(ZColor& color)=0;
      
      };//class IColorButton
    };//controls
  };//ui
};//core

#endif
