Commit 6f715b20 authored by Utkarsh Ayachit's avatar Utkarsh Ayachit
Browse files

Remove legacy panels.

`pqProxyPanel` and subclasses are now gone (finally)!
parent e77efd85
Pipeline #43358 passed with stage
#/usr/bin/env python
import QtTesting
import sys
libname = 'libGUIConePanel.so'
if sys.platform == 'win32':
libname = 'GUIConePanel.dll'
if sys.platform == 'darwin':
libname = 'libGUIConePanel.dylib'
object1 = 'pqClientMainWindow/menubar/menuTools'
QtTesting.playCommand(object1, 'activate', 'actionManage_Plugins')
object2 = 'pqClientMainWindow/pqPluginDialog/localGroup/loadLocal'
QtTesting.playCommand(object2, 'activate', '')
object3 = 'pqClientMainWindow/pqPluginDialog/pqFileDialog'
QtTesting.playCommand(object3, 'filesSelected', libname)
object4 = 'pqClientMainWindow/pqPluginDialog/buttonBox/1QPushButton0'
QtTesting.playCommand(object4, 'activate', '')
object5 = 'pqClientMainWindow/menubar/menuSources'
QtTesting.playCommand(object5, 'activate', 'Cone')
object7 = 'pqClientMainWindow/objectInspectorDock/objectInspector/Accept'
QtTesting.playCommand(object7, 'activate', '')
object8 = 'pqClientMainWindow/objectInspectorDock/objectInspector/ScrollArea/qt_scrollarea_viewport/PanelArea/Editor/1QLabel0'
text = QtTesting.getProperty(object8, 'text')
print (text)
......@@ -294,88 +294,22 @@ function(__add_paraview_property_widget outifaces outsrcs)
endif()
endfunction()
# create implementation for a custom object panel interface
# ADD_PARAVIEW_OBJECT_PANEL(
# OUTIFACES
# OUTSRCS
# [CLASS_NAME classname]
# XML_NAME xmlname
# XML_GROUP xmlgroup
# CLASS_NAME: optional name for the class that implements pqObjectPanel
# if none give ${XML_NAME}Panel is assumed (if XML_NAME is a list, then
# the first name in the list is assumed).
# XML_GROUP : the xml group of the source/filter this panel corresponds with
# XML_NAME : the xml name of the source/filter this panel corresponds with.
# XML_NAME can be single name or a list of names.
# OBSOLETE: legacy object panels
MACRO(ADD_PARAVIEW_OBJECT_PANEL OUTIFACES OUTSRCS)
SET(ARG_CLASS_NAME)
PV_PLUGIN_PARSE_ARGUMENTS(ARG "CLASS_NAME;XML_NAME;XML_GROUP" "" ${ARGN} )
IF(ARG_CLASS_NAME)
SET(PANEL_NAME ${ARG_CLASS_NAME})
ELSE()
LIST(GET ${ARG_XML_NAME} 0 first_xml_name)
SET(PANEL_NAME ${first_xml_name}Panel)
ENDIF()
SET(PANEL_XML_NAME ${ARG_XML_NAME})
SET(PANEL_XML_GROUP ${ARG_XML_GROUP})
SET(${OUTIFACES} ${PANEL_NAME})
CONFIGURE_FILE(${ParaView_CMAKE_DIR}/pqObjectPanelImplementation.h.in
${CMAKE_CURRENT_BINARY_DIR}/${PANEL_NAME}Implementation.h @ONLY)
CONFIGURE_FILE(${ParaView_CMAKE_DIR}/pqObjectPanelImplementation.cxx.in
${CMAKE_CURRENT_BINARY_DIR}/${PANEL_NAME}Implementation.cxx @ONLY)
SET(PANEL_MOC_SRCS)
IF (PARAVIEW_QT_VERSION VERSION_GREATER "4")
QT5_WRAP_CPP(PANEL_MOC_SRCS ${CMAKE_CURRENT_BINARY_DIR}/${PANEL_NAME}Implementation.h)
ELSE ()
QT4_WRAP_CPP(PANEL_MOC_SRCS ${CMAKE_CURRENT_BINARY_DIR}/${PANEL_NAME}Implementation.h)
ENDIF ()
SET(${OUTSRCS}
${CMAKE_CURRENT_BINARY_DIR}/${PANEL_NAME}Implementation.cxx
${CMAKE_CURRENT_BINARY_DIR}/${PANEL_NAME}Implementation.h
${PANEL_MOC_SRCS}
)
message(FATAL_ERROR
"ADD_PARAVIEW_OBJECT_PANEL is no longer supported.
ParaView's Properties panel has been refactored in 3.98. Legacy object panel support
was dropped in 5.2. Please refer to 'Major API Changes' in ParaView developer
documentation for details.")
ENDMACRO()
# create implementation for a custom display panel interface
# ADD_PARAVIEW_DISPLAY_PANEL(
# OUTIFACES
# OUTSRCS
# CLASS_NAME classname
# XML_NAME xmlname
# CLASS_NAME: pqDisplayPanel
# XML_NAME : the xml name of the display this panel corresponds with
# OBSOLETE: legacy display panels.
MACRO(ADD_PARAVIEW_DISPLAY_PANEL OUTIFACES OUTSRCS)
PV_PLUGIN_PARSE_ARGUMENTS(ARG "CLASS_NAME;XML_NAME" "" ${ARGN} )
SET(PANEL_NAME ${ARG_CLASS_NAME})
SET(PANEL_XML_NAME ${ARG_XML_NAME})
SET(${OUTIFACES} ${PANEL_NAME})
CONFIGURE_FILE(${ParaView_CMAKE_DIR}/pqDisplayPanelImplementation.h.in
${CMAKE_CURRENT_BINARY_DIR}/${PANEL_NAME}Implementation.h @ONLY)
CONFIGURE_FILE(${ParaView_CMAKE_DIR}/pqDisplayPanelImplementation.cxx.in
${CMAKE_CURRENT_BINARY_DIR}/${PANEL_NAME}Implementation.cxx @ONLY)
SET(DISPLAY_MOC_SRCS)
IF (PARAVIEW_QT_VERSION VERSION_GREATER "4")
QT5_WRAP_CPP(DISPLAY_MOC_SRCS ${CMAKE_CURRENT_BINARY_DIR}/${PANEL_NAME}Implementation.h)
ELSE ()
QT4_WRAP_CPP(DISPLAY_MOC_SRCS ${CMAKE_CURRENT_BINARY_DIR}/${PANEL_NAME}Implementation.h)
ENDIF ()
SET(${OUTSRCS}
${CMAKE_CURRENT_BINARY_DIR}/${PANEL_NAME}Implementation.cxx
${CMAKE_CURRENT_BINARY_DIR}/${PANEL_NAME}Implementation.h
${DISPLAY_MOC_SRCS}
)
message(FATAL_ERROR
"ADD_PARAVIEW_DISPLAY_PANEL is no longer supported.
ParaView's Properties panel has been refactored in 3.98. Legacy display panel support
was dropped in 5.2. Please refer to 'Major API Changes' in ParaView developer
documentation for details.")
ENDMACRO()
#------------------------------------------------------------------------------
......@@ -649,7 +583,7 @@ MACRO(ADD_PARAVIEW_AUTO_START OUTIFACES OUTSRCS)
ENDMACRO()
#--------------------------------------------------------------------------------------
# DEPRECATED: Create implementation for a custom display panel decorator interface.
# OBSOLETE: Create implementation for a custom display panel decorator interface.
# Decorators are used to add additional decorations to display panels.
MACRO(ADD_PARAVIEW_DISPLAY_PANEL_DECORATOR)
message(FATAL_ERROR
......@@ -660,7 +594,7 @@ ENDMACRO()
#--------------------------------------------------------------------------------------
# DEPRECATED: 3DWidgets are simply custom property panels (pqPropertyWidget
# OBSOLETE: 3DWidgets are simply custom property panels (pqPropertyWidget
# subclasses). Thus, use add_paraview_property_group_widget() to resgiter a new
# 3D widget panel after having updated the code accordingly.
# Creates implementation for a pq3DWidgetInterface to add new 3D widgets to ParaView.
......@@ -1067,7 +1001,7 @@ FUNCTION(ADD_PARAVIEW_PLUGIN NAME VERSION)
internal_paraview_install_plugin(${NAME})
IF(ARG_AUTOLOAD)
message(WARNING "AUTOLOAD option is deprecated. Plugins built within"
message(WARNING "AUTOLOAD option is obsolete. Plugins built within"
" ParaView source should use pv_plugin(..) macro with AUTOLOAD argument.")
ENDIF()
ENDIF()
......
// Generated file. Do not edit.
/*=========================================================================
Program: ParaView
Module: pqObjectPanelImplementation.cxx.in
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 "@PANEL_NAME@.h"
#include "@PANEL_NAME@Implementation.h"
#include "pqProxy.h"
#include "vtkSMProxy.h"
@PANEL_NAME@Implementation::@PANEL_NAME@Implementation(QObject* p)
: QObject(p)
{
}
pqObjectPanel* @PANEL_NAME@Implementation::createPanel(pqProxy* object_proxy, QWidget* p)
{
return new @PANEL_NAME@(object_proxy, p);
}
bool @PANEL_NAME@Implementation::canCreatePanel(pqProxy* proxy) const
{
if (QString("@PANEL_XML_GROUP@") != proxy->getProxy()->GetXMLGroup())
{
return false;
}
foreach (QString name, QString("@PANEL_XML_NAME@").split(';',
QString::SkipEmptyParts))
{
if (name == proxy->getProxy()->GetXMLName())
{
return true;
}
}
return false;
}
// Generated file. Do not edit.
/*=========================================================================
Program: ParaView
Module: pqObjectPanelImplementation.h.in
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 _@PANEL_NAME@Implementation_h
#define _@PANEL_NAME@Implementation_h
#include "pqObjectPanelInterface.h"
#include <QObject>
// make this panel available to the object inspector
class @PANEL_NAME@Implementation : public QObject, public pqObjectPanelInterface
{
Q_OBJECT
Q_INTERFACES(pqObjectPanelInterface)
public:
@PANEL_NAME@Implementation(QObject* p);
virtual pqObjectPanel* createPanel(pqProxy* proxy, QWidget* p);
virtual bool canCreatePanel(pqProxy* proxy) const;
};
#endif
......@@ -33,7 +33,6 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "ui_pqLightsEditor.h"
#include "pqApplicationCore.h"
#include "pqNamedWidgets.h"
#include "pqPropertyGroupWidget.h"
#include "pqUndoStack.h"
#include "vtkSMPVRepresentationProxy.h"
......
......@@ -48,8 +48,6 @@ set (Module_SRCS
pqArrayListDomain.h
pqArrayStatusPropertyWidget.cxx
pqArrayStatusPropertyWidget.h
pqAutoGeneratedObjectPanel.cxx
pqAutoGeneratedObjectPanel.h
pqCalculatorWidget.cxx
pqCalculatorWidget.h
pqCameraDialog.cxx
......@@ -120,8 +118,6 @@ set (Module_SRCS
pqFindDataDialog.h
pqFixStateFilenamesDialog.cxx
pqFixStateFilenamesDialog.h
pqGlyphPanel.cxx
pqGlyphPanel.h
pqHighlightItemDelegate.cxx
pqHighlightItemDelegate.h
pqImageTip.cxx
......@@ -162,16 +158,6 @@ set (Module_SRCS
pqMultiBlockInspectorPanel.h
pqMultiViewWidget.cxx
pqMultiViewWidget.h
pqNamedObjectPanel.cxx
pqNamedObjectPanel.h
pqNamedWidgets.cxx
pqNamedWidgets.h
pqObjectPanel.cxx
pqObjectPanel.h
pqObjectPanelInterface.cxx
pqObjectPanelInterface.h
pqObjectPanelPropertyWidget.cxx
pqObjectPanelPropertyWidget.h
pqOrbitCreatorDialog.cxx
pqOrbitCreatorDialog.h
pqOutputPortComboBox.cxx
......@@ -215,8 +201,6 @@ set (Module_SRCS
pqProxyEditorPropertyWidget.h
pqProxyInformationWidget.cxx
pqProxyInformationWidget.h
pqProxyPanel.cxx
pqProxyPanel.h
pqProxyPropertyWidget.cxx
pqProxyPropertyWidget.h
pqProxySelectionWidget.cxx
......@@ -281,8 +265,6 @@ set (Module_SRCS
pqSILWidget.h
pqSMSignalAdaptors.cxx
pqSMSignalAdaptors.h
pqStandardLegacyCustomPanels.cxx
pqStandardLegacyCustomPanels.h
pqStringVectorPropertyWidget.cxx
pqStringVectorPropertyWidget.h
pqTabbedMultiViewWidget.cxx
......@@ -328,7 +310,6 @@ set (Module_MOC_HDRS
pqAnimationViewWidget.h
pqArrayListDomain.h
pqArrayStatusPropertyWidget.h
pqAutoGeneratedObjectPanel.h
pqCalculatorWidget.h
pqCameraDialog.h
pqCameraKeyFrameWidget.h
......@@ -360,7 +341,6 @@ set (Module_MOC_HDRS
pqFindDataDialog.h
pqFindDataSelectionDisplayFrame.h
pqFixStateFilenamesDialog.h
pqGlyphPanel.h
pqHighlightItemDelegate.h
pqImageTip.h
pqIndexSelectionWidget.h
......@@ -381,9 +361,6 @@ set (Module_MOC_HDRS
pqMemoryInspectorPanel.h
pqMultiBlockInspectorPanel.h
pqMultiViewWidget.h
pqNamedObjectPanel.h
pqObjectPanel.h
pqObjectPanelPropertyWidget.h
pqOrbitCreatorDialog.h
pqOutputPortComboBox.h
pqPipelineAnnotationFilterModel.h
......@@ -405,7 +382,6 @@ set (Module_MOC_HDRS
pqProxiesWidget.h
pqProxyEditorPropertyWidget.h
pqProxyInformationWidget.h
pqProxyPanel.h
pqProxyPropertyWidget.h
pqProxySelectionWidget.h
pqProxySILModel.h
......@@ -438,7 +414,6 @@ set (Module_MOC_HDRS
pqSILModel.h
pqSILWidget.h
pqSMSignalAdaptors.h
pqStandardLegacyCustomPanels.h
pqStringVectorPropertyWidget.h
pqTabbedMultiViewWidget.h
pqTextureComboBox.h
......
/*=========================================================================
Program: ParaView
Module: pqAutoGeneratedObjectPanel.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.
=========================================================================*/
// this include
#include "pqAutoGeneratedObjectPanel.h"
// Qt includes
#include <QGridLayout>
#include <QTreeWidget>
// VTK includes
// ParaView Server Manager includes
// ParaView includes
#include "pqNamedWidgets.h"
#include "pqPropertyManager.h"
#include "pqProxy.h"
#include "pqSMAdaptor.h"
#include "pqTreeWidgetItemObject.h"
//-----------------------------------------------------------------------------
/// constructor
pqAutoGeneratedObjectPanel::pqAutoGeneratedObjectPanel(
pqProxy* object_proxy, bool summaryOnly, QWidget* p)
: pqNamedObjectPanel(object_proxy, p)
{
this->PanelLayout = new QGridLayout(this);
pqNamedWidgets::createWidgets(this->PanelLayout, object_proxy->getProxy(), summaryOnly);
this->linkServerManagerProperties();
}
//-----------------------------------------------------------------------------
/// destructor
pqAutoGeneratedObjectPanel::~pqAutoGeneratedObjectPanel()
{
}
//-----------------------------------------------------------------------------
void pqAutoGeneratedObjectPanel::linkServerManagerProperties()
{
pqNamedObjectPanel::linkServerManagerProperties();
// TODO move this code into pqNamedWidgets?
QPixmap cellPixmap(":/pqWidgets/Icons/pqCellData16.png");
QPixmap pointPixmap(":/pqWidgets/Icons/pqPointData16.png");
// link point/cell array status widget
QTreeWidget* treeWidget;
vtkSMProperty* cellArrayStatus;
vtkSMProperty* pointArrayStatus;
treeWidget = this->findChild<QTreeWidget*>("CellAndPointArrayStatus");
cellArrayStatus = this->proxy()->GetProperty("CellArrayStatus");
pointArrayStatus = this->proxy()->GetProperty("PointArrayStatus");
if (treeWidget && cellArrayStatus && pointArrayStatus)
{
QList<QVariant> sel_domain;
sel_domain = pqSMAdaptor::getSelectionPropertyDomain(cellArrayStatus);
for (int j = 0; j < sel_domain.size(); j++)
{
QList<QString> str;
str.append(sel_domain[j].toString());
pqTreeWidgetItemObject* item;
item = new pqTreeWidgetItemObject(treeWidget, str);
item->setData(0, Qt::DecorationRole, cellPixmap);
this->propertyManager()->registerLink(
item, "checked", SIGNAL(checkedStateChanged(bool)), this->proxy(), cellArrayStatus, j);
item->setChecked(item->data(0, Qt::CheckStateRole).toBool());
}
sel_domain = pqSMAdaptor::getSelectionPropertyDomain(pointArrayStatus);
for (int j = 0; j < sel_domain.size(); j++)
{
QList<QString> str;
str.append(sel_domain[j].toString());
pqTreeWidgetItemObject* item;
item = new pqTreeWidgetItemObject(treeWidget, str);
item->setData(0, Qt::DecorationRole, pointPixmap);
this->propertyManager()->registerLink(
item, "checked", SIGNAL(checkedStateChanged(bool)), this->proxy(), pointArrayStatus, j);
item->setChecked(item->data(0, Qt::CheckStateRole).toBool());
}
}
}
/*=========================================================================
Program: ParaView
Module: pqAutoGeneratedObjectPanel.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 _pqAutoGeneratedObjectPanel_h
#define _pqAutoGeneratedObjectPanel_h
#include "pqNamedObjectPanel.h"
#include <QVariant> // needed for QVariant::Type
class QGridLayout;
class QLineEdit;
class vtkSMProxy;
/**
* Auto-generated Widget which provides an editor for editing properties of a proxy
* Widgets are created based on the types of the proxy properties
*/
class PQCOMPONENTS_EXPORT pqAutoGeneratedObjectPanel : public pqNamedObjectPanel
{
Q_OBJECT
public:
/**
* constructor
*/
pqAutoGeneratedObjectPanel(pqProxy* proxy, bool summaryOnly = false, QWidget* p = NULL);
/**
* destructor
*/
~pqAutoGeneratedObjectPanel();
protected:
void linkServerManagerProperties();
/**
* sets up a QValidator for the line edit based on the type.
*/
static void setupValidator(QLineEdit* lineEdit, QVariant::Type propertyType);
static void processHints(QGridLayout* panelLayout, vtkSMProxy* refProxy, vtkSMProxy* pxy,
QStringList& propertiesToHide, QStringList& properiesToShow);
QGridLayout* PanelLayout;
};
#endif
/*=========================================================================
Program: ParaView
Module: pqGlyphPanel.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 "pqGlyphPanel.h"
// Server Manager Includes.
#include "vtkGlyph3D.h"
#include "vtkSMArrayRangeDomain.h"
#include "vtkSMBoundsDomain.h"
#include "vtkSMEnumerationDomain.h"
#include "vtkSMProperty.h"
#include "vtkSMProxy.h"
// Qt Includes.
#include <QCheckBox>
#include <QComboBox>
#include <QGridLayout>
#include <QHBoxLayout>
#include <QtDebug>
// ParaView Includes.
#include "pqPropertyManager.h"
#include "pqProxy.h"
#include "pqSMAdaptor.h"