/***************************************************************************
 *                          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 IRecentCombo
 *   Combo with recent items. INamed is transparently inherited, so, setName must be set
 *   for proper storing items in profile. The control creates standard CComboBox, so
 *   parent window can use standard technique for handling messages from combobox
 *--------------------------------------------------------------------------
 * @created: Friday, April 16, 2004 13:38:03
 */

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


namespace core
{
  namespace ui
  {
    namespace controls
    {
      
      class IRecentCombo : public core::ui::controls::IUIControl
      {
      public:
        virtual ZRESULT setItemsLimit(long nLimit)=0;
        virtual ZRESULT addString(LPCTSTR pszString)=0;
        virtual ZRESULT getCurrentString(ZString& str)=0;
        virtual ZRESULT getRecentStrings(ZStringSeq& seq)=0;
      
      };//class IRecentCombo
    };//controls
  };//ui
};//core

#endif
