-// Copyright (C) 2010-2014 CEA/DEN, EDF R&D
+// Copyright (C) 2014-2016 CEA/DEN, EDF R&D, OPEN CASCADE
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
#include <vtkObjectFactory.h>
-#include <LightApp_Application.h>
+#include <LogWindow.h>
#include <LogWindow.h>
#include <SUIT_Session.h>
#include <SALOME_Event.h>
vtkStandardNewMacro(PVViewer_LogWindowAdapter);
-
-
/*!
* Put the message in the log window.
*/
TextCount(0),
ErrorCount(0),
WarningCount(0),
- GenericWarningCount(0)
+ GenericWarningCount(0),
+ logWindow(0)
{
}
return this->GenericWarningCount;
}
-static LogWindow* getLogWindow()
-{
- LogWindow* wnd = 0;
- LightApp_Application* anApp = dynamic_cast<LightApp_Application*>( SUIT_Session::session()->activeApplication() );
- if ( anApp )
- wnd = anApp->logWindow();
- return wnd;
-}
-
void PVViewer_LogWindowAdapter::DisplayText(const char* text)
{
++this->TextCount;