/*=========================================================================

  Module:    $RCSfile: vtkKWWidgetSetSubclass.cxx.in,v $

  Copyright (c) Kitware, Inc.
  All rights reserved.
  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.

     This software is distributed WITHOUT ANY WARRANTY; without even
     the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
     PURPOSE.  See the above copyright notice for more information.

=========================================================================*/

#include "@WidgetType@Set.h"

#include "@WidgetType@.h"
#include "vtkObjectFactory.h"

//----------------------------------------------------------------------------

vtkStandardNewMacro(@WidgetType@Set);
vtkCxxRevisionMacro(@WidgetType@Set, "$Revision: 1.7 $");

//----------------------------------------------------------------------------
@WidgetType@* @WidgetType@Set::GetWidget(int id)
{
  return static_cast<@WidgetType@*>(this->GetWidgetInternal(id));
}

//----------------------------------------------------------------------------
@WidgetType@* @WidgetType@Set::AddWidget(int id)
{
  return static_cast<@WidgetType@*>(this->InsertWidgetInternal(
                                      id, this->GetNumberOfWidgets()));
}

//----------------------------------------------------------------------------
@WidgetType@* @WidgetType@Set::InsertWidget(int id, int pos)
{
  return static_cast<@WidgetType@*>(this->InsertWidgetInternal(
                                      id, pos));
}

//----------------------------------------------------------------------------
vtkKWWidget* @WidgetType@Set::AllocateAndCreateWidget()
{
  @WidgetType@ *widget = @WidgetType@::New();
  widget->SetParent(this);
  widget->Create();
  return static_cast<vtkKWWidget*>(widget);
}

//----------------------------------------------------------------------------
void @WidgetType@Set::PrintSelf(ostream& os, vtkIndent indent)
{
  this->Superclass::PrintSelf(os,indent);
}
