Commit 0ad243c9 authored by Sebastien Jourdain's avatar Sebastien Jourdain

Keep cleaning up Deprecated classes

parent bdc1fd76
......@@ -45,10 +45,6 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include <vtksys/ios/sstream>
#include <vtksys/RegularExpression.hxx>
#ifdef FIXME_COLLABORATION
#include "pqProxyUnRegisterUndoElement.h"
#endif
vtkStandardNewMacro(pqUndoStackBuilder);
//-----------------------------------------------------------------------------
pqUndoStackBuilder::pqUndoStackBuilder()
......
......@@ -387,9 +387,6 @@ ADD_LIBRARY(pqCore
#ADD_LIBRARY(pqCore_old
#
#
# pqProxyUnRegisterUndoElement.cxx
# pqProxyUnRegisterUndoElement.h
## pqScatterPlotRepresentation.cxx
## pqScatterPlotRepresentation.h
## pqScatterPlotView.cxx
......
/*=========================================================================
Program: ParaView
Module: pqProxyUnRegisterUndoElement.cxx
Copyright (c) 2005-2008 Sandia Corporation, Kitware Inc.
All rights reserved.
ParaView is a free software; you can redistribute it and/or modify it
under the terms of the ParaView license version 1.2.
See License_v1.2.txt for the full ParaView license.
A copy of this license can be obtained by contacting
Kitware Inc.
28 Corporate Drive
Clifton Park, NY 12065
USA
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
=========================================================================*/
#include "pqProxyUnRegisterUndoElement.h"
#include "vtkObjectFactory.h"
#include "vtkPVXMLElement.h"
#include "vtkSMProxy.h"
#include "pqApplicationCore.h"
#include "pqProxy.h"
#include "pqServerManagerModel.h"
vtkStandardNewMacro(pqProxyUnRegisterUndoElement);
//-----------------------------------------------------------------------------
pqProxyUnRegisterUndoElement::pqProxyUnRegisterUndoElement()
{
}
//-----------------------------------------------------------------------------
pqProxyUnRegisterUndoElement::~pqProxyUnRegisterUndoElement()
{
}
//-----------------------------------------------------------------------------
bool pqProxyUnRegisterUndoElement::CanLoadState(vtkPVXMLElement* elem)
{
return (elem && elem->GetName() &&
strcmp(elem->GetName(), "PQProxyUnRegister") == 0);
}
//-----------------------------------------------------------------------------
void pqProxyUnRegisterUndoElement::ProxyToUnRegister(
const char* groupname, const char* proxyname, vtkSMProxy* proxy)
{
this->Superclass::ProxyToUnRegister(groupname, proxyname, proxy);
pqApplicationCore* core = pqApplicationCore::instance();
pqServerManagerModel* smmodel = core->getServerManagerModel();
pqProxy* pq_proxy = smmodel->findItem<pqProxy*>(proxy);
if (!pq_proxy || !this->XMLElement)
{
// nothing extra to add.
return;
}
// change the element name so that this object will be created correctly
// when loading.
this->XMLElement->SetName("PQProxyUnRegister");
vtkPVXMLElement* element = vtkPVXMLElement::New();
element->SetName("HelperProxies");
QList<QString> keys = pq_proxy->getHelperKeys();
for (int cc=0; cc < keys.size(); cc++)
{
QString key = keys[cc];
QList<vtkSMProxy*> helpers = pq_proxy->getHelperProxies(key);
foreach (vtkSMProxy* helper, helpers)
{
vtkPVXMLElement* child = vtkPVXMLElement::New();
child->SetName("Item");
child->AddAttribute("id", helper->GetSelfIDAsString());
child->AddAttribute("name", key.toAscii().data());
element->AddNestedElement(child);
child->Delete();
}
}
this->XMLElement->AddNestedElement(element);
element->Delete();
}
//-----------------------------------------------------------------------------
int pqProxyUnRegisterUndoElement::Undo()
{
if (!this->Superclass::Undo())
{
return 0;
}
return 1;
}
//-----------------------------------------------------------------------------
void pqProxyUnRegisterUndoElement::PrintSelf(ostream& os, vtkIndent indent)
{
this->Superclass::PrintSelf(os, indent);
}
/*=========================================================================
Program: ParaView
Module: pqProxyUnRegisterUndoElement.h
Copyright (c) 2005-2008 Sandia Corporation, Kitware Inc.
All rights reserved.
ParaView is a free software; you can redistribute it and/or modify it
under the terms of the ParaView license version 1.2.
See License_v1.2.txt for the full ParaView license.
A copy of this license can be obtained by contacting
Kitware Inc.
28 Corporate Drive
Clifton Park, NY 12065
USA
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
=========================================================================*/
#ifndef __pqProxyUnRegisterUndoElement_
#define __pqProxyUnRegisterUndoElement_
#include "vtkSMProxyUnRegisterUndoElement.h"
#include "pqCoreExport.h"
class PQCORE_EXPORT pqProxyUnRegisterUndoElement : public vtkSMProxyUnRegisterUndoElement
{
public:
static pqProxyUnRegisterUndoElement* New();
vtkTypeMacro(pqProxyUnRegisterUndoElement, vtkSMProxyUnRegisterUndoElement);
void PrintSelf(ostream& os, vtkIndent indent);
// Description:
// Undo the operation encapsulated by this element.
// Overridden to set the helper proxies on undo.
virtual int Undo();
// Description:
// Returns if this element can load the xml state for the given element.
virtual bool CanLoadState(vtkPVXMLElement*);
/// Description:
/// Sets the information about the proxy that is getting unregistered.
virtual void ProxyToUnRegister(const char* groupname, const char* proxyname,
vtkSMProxy* proxy);
protected:
pqProxyUnRegisterUndoElement();
~pqProxyUnRegisterUndoElement();
private:
pqProxyUnRegisterUndoElement(const pqProxyUnRegisterUndoElement&); // Not implemented.
void operator=(const pqProxyUnRegisterUndoElement&); // Not implemented.
};
#endif
......@@ -95,7 +95,6 @@
#include "vtkSMProperty.h"
#include "vtkSMPropertyIterator.h"
#include "vtkSMPropertyLink.h"
#include "vtkSMPropertyModificationUndoElement.h"
#include "vtkSMProxyConfigurationReader.h"
#include "vtkSMProxyConfigurationWriter.h"
#include "vtkSMProxyDefinitionIterator.h"
......@@ -106,12 +105,8 @@
#include "vtkSMProxyListDomain.h"
#include "vtkSMProxyLocator.h"
#include "vtkSMProxyManager.h"
#include "vtkSMProxyManagerReviver.h"
#include "vtkSMProxyProperty.h"
#include "vtkSMProxyRegisterUndoElement.h"
#include "vtkSMProxySelectionModel.h"
#include "vtkSMProxyStateChangedUndoElement.h"
#include "vtkSMProxyUnRegisterUndoElement.h"
#include "vtkSMPSWriterProxy.h"
#include "vtkSMPVRepresentationProxy.h"
#include "vtkSMPWriterProxy.h"
......@@ -124,7 +119,6 @@
#include "vtkSMScalarBarWidgetRepresentationProxy.h"
#include "vtkSMSelectionHelper.h"
#include "vtkSMServerFileListingProxy.h"
#include "vtkSMServerProxyManagerReviver.h"
#include "vtkSMServerSideAnimationPlayer.h"
#include "vtkSMSILDomain.h"
#include "vtkSMSILModel.h"
......@@ -146,14 +140,12 @@
#include "vtkSMUndoStackBuilder.h"
#include "vtkSMUndoStack.h"
#include "vtkSMUnstructuredGridVolumeRepresentationProxy.h"
#include "vtkSMUpdateInformationUndoElement.h"
#include "vtkSMUtilities.h"
#include "vtkSMVectorProperty.h"
#include "vtkSMViewProxy.h"
#include "vtkSMWidgetRepresentationProxy.h"
#include "vtkSMWriterFactory.h"
#include "vtkSMWriterProxy.h"
#include "vtkSMXMLParser.h"
#include "vtkSMXMLPVAnimationWriterProxy.h"
#define PRINT_SELF(classname)\
......@@ -250,11 +242,9 @@ int main(int , char *[])
PRINT_SELF(vtkSMProxyListDomain);
PRINT_SELF(vtkSMProxyLocator);
PRINT_SELF(vtkSMProxyManager);
PRINT_SELF(vtkSMProxyManagerReviver);
PRINT_SELF(vtkSMProxyProperty);
PRINT_SELF(vtkSMProxyRegisterUndoElement);
PRINT_SELF(vtkSMProxySelectionModel);
PRINT_SELF(vtkSMProxyStateChangedUndoElement);
PRINT_SELF(vtkSMProxyUnRegisterUndoElement);
PRINT_SELF(vtkSMPSWriterProxy);
PRINT_SELF(vtkSMPVRepresentationProxy);
......@@ -268,7 +258,6 @@ int main(int , char *[])
PRINT_SELF(vtkSMScalarBarWidgetRepresentationProxy);
PRINT_SELF(vtkSMSelectionHelper);
PRINT_SELF(vtkSMServerFileListingProxy);
PRINT_SELF(vtkSMServerProxyManagerReviver);
PRINT_SELF(vtkSMServerSideAnimationPlayer);
PRINT_SELF(vtkSMSILDomain);
PRINT_SELF(vtkSMSILModel);
......@@ -292,14 +281,12 @@ int main(int , char *[])
PRINT_SELF(vtkSMUndoStackBuilder);
PRINT_SELF(vtkSMUndoStack);
PRINT_SELF(vtkSMUnstructuredGridVolumeRepresentationProxy);
PRINT_SELF(vtkSMUpdateInformationUndoElement);
PRINT_SELF(vtkSMUtilities);
PRINT_SELF(vtkSMVectorProperty);
PRINT_SELF(vtkSMViewProxy);
PRINT_SELF(vtkSMWidgetRepresentationProxy);
PRINT_SELF(vtkSMWriterFactory);
PRINT_SELF(vtkSMWriterProxy);
PRINT_SELF(vtkSMXMLParser);
PRINT_SELF(vtkSMXMLPVAnimationWriterProxy);
return 0;
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment