From c5f3e206bbcfddaa2ecd939824ab6cfa7f5db5ac Mon Sep 17 00:00:00 2001 From: andy Date: Mon, 13 Jan 2014 16:31:10 +0000 Subject: [PATCH 1/2] ENH: ParaView - use vtkPolyhedron by default --- .../PV4Readers/PV4FoamReader/PV4FoamReader/PV4FoamReader_SM.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/applications/utilities/postProcessing/graphics/PV4Readers/PV4FoamReader/PV4FoamReader/PV4FoamReader_SM.xml b/applications/utilities/postProcessing/graphics/PV4Readers/PV4FoamReader/PV4FoamReader/PV4FoamReader_SM.xml index d2856ad46d..f030db9eb2 100644 --- a/applications/utilities/postProcessing/graphics/PV4Readers/PV4FoamReader/PV4FoamReader/PV4FoamReader_SM.xml +++ b/applications/utilities/postProcessing/graphics/PV4Readers/PV4FoamReader/PV4FoamReader/PV4FoamReader_SM.xml @@ -102,7 +102,7 @@ name="UseVTKPolyhedron" command="SetUseVTKPolyhedron" number_of_elements="1" - default_values="0" + default_values="1" animateable="0"> From f29b56d9b13c8a60f177b623d5c6eaceaf912b78 Mon Sep 17 00:00:00 2001 From: andy Date: Mon, 13 Jan 2014 16:49:49 +0000 Subject: [PATCH 2/2] ENH: PV4 reader - use button for update gui --- .../PV4FoamReader/PV4FoamReader_SM.xml | 1 + .../PV4FoamReader/pqPV4FoamReaderPanel.cxx | 21 +++++++++++++++++-- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/applications/utilities/postProcessing/graphics/PV4Readers/PV4FoamReader/PV4FoamReader/PV4FoamReader_SM.xml b/applications/utilities/postProcessing/graphics/PV4Readers/PV4FoamReader/PV4FoamReader/PV4FoamReader_SM.xml index 7fa63a116f..b78a545cee 100644 --- a/applications/utilities/postProcessing/graphics/PV4Readers/PV4FoamReader/PV4FoamReader/PV4FoamReader_SM.xml +++ b/applications/utilities/postProcessing/graphics/PV4Readers/PV4FoamReader/PV4FoamReader/PV4FoamReader_SM.xml @@ -172,6 +172,7 @@ name="UpdateGUI" command="SetUpdateGUI" number_of_elements="1" + is_internal="1" default_values="0" animateable="0"> diff --git a/applications/utilities/postProcessing/graphics/PV4Readers/PV4FoamReader/PV4FoamReader/pqPV4FoamReaderPanel.cxx b/applications/utilities/postProcessing/graphics/PV4Readers/PV4FoamReader/PV4FoamReader/pqPV4FoamReaderPanel.cxx index e911bb088e..775ed90c38 100644 --- a/applications/utilities/postProcessing/graphics/PV4Readers/PV4FoamReader/PV4FoamReader/pqPV4FoamReaderPanel.cxx +++ b/applications/utilities/postProcessing/graphics/PV4Readers/PV4FoamReader/PV4FoamReader/pqPV4FoamReaderPanel.cxx @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -71,7 +71,7 @@ pqPV4FoamReaderPanel::pqPV4FoamReaderPanel if ((prop = this->proxy()->GetProperty("UiRefresh")) != 0) { prop->SetImmediateUpdate(1); - QPushButton *refresh = new QPushButton("Refresh Times"); + QPushButton* refresh = new QPushButton("Refresh Times"); refresh->setToolTip("Rescan for updated times/fields."); form->addWidget(refresh, 0, 0, Qt::AlignLeft); @@ -334,6 +334,23 @@ pqPV4FoamReaderPanel::pqPV4FoamReaderPanel QFrame* hline3 = new QFrame(this); hline3->setFrameStyle(QFrame::HLine | QFrame::Sunken); form->addWidget(hline3, 7, 0, 1, 3); + + // update GUI button + if ((prop = this->proxy()->GetProperty("UpdateGUI")) != 0) + { + prop->SetImmediateUpdate(1); + QPushButton* updateGUI = new QPushButton("Update GUI"); + updateGUI->setToolTip("Update GUI"); + + form->addWidget(updateGUI, 8, 0, Qt::AlignLeft); + QObject::connect + ( + updateGUI, + SIGNAL(clicked()), + this, + SLOT(setModified()) + ); + } }