OrientedPlane::~OrientedPlane()
{
- if (myViewWindow)
+ if ( !myViewWindow.isNull() )
myViewWindow->RemoveActor(myActor);
myActor->Delete();
if (app)
app->onHelpContextModule(myVisuGUI ? app->moduleName(myVisuGUI->moduleName()) : QString(""), aHelpFileName);
else {
+ QString platform;
+#ifdef WIN32
+ platform = "winapplication";
+#else
+ platform = "application";
+#endif
SUIT_MessageBox::warn1(0, QObject::tr("WRN_WARNING"),
QObject::tr("EXTERNAL_BROWSER_CANNOT_SHOW_PAGE").
- arg(app->resourceMgr()->stringValue("ExternalBrowser", "application")).arg(aHelpFileName),
+ arg(app->resourceMgr()->stringValue("ExternalBrowser", platform)).arg(aHelpFileName),
QObject::tr("BUT_OK"));
}
}
VISU::RenderViewWindow(vw);
}
+
//=================================================================================
// function : keyPressEvent()
// purpose :
e->accept();
ClickOnHelp();
}
-}
+}
\ No newline at end of file
// QT Includes
#include <qdialog.h>
+#include <qguardedptr.h>
#include <qtable.h>
// VTK Includes
//=================================================================================
class OrientedPlane: public vtkPlane
{
- SVTK_ViewWindow* myViewWindow;
+ QGuardedPtr<SVTK_ViewWindow> myViewWindow;
vtkDataSetMapper* myMapper;
public: