Salome HOME
SIMAN removal
[modules/gui.git] / src / PVViewer / PVViewer_LogWindowAdapter.cxx
index 736b77b687053c44ad156948ff33f6070fc20996..ac4fa9c4a2276d191546018ad13c2c7c3ea0dfd8 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2010-2014  CEA/DEN, EDF R&D
+// Copyright (C) 2010-2015  CEA/DEN, EDF R&D
 //
 // 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. 
  */
@@ -57,7 +55,8 @@ PVViewer_LogWindowAdapter::PVViewer_LogWindowAdapter() :
   TextCount(0),
   ErrorCount(0),
   WarningCount(0),
-  GenericWarningCount(0)
+  GenericWarningCount(0),
+  logWindow(0)
 {
 }
 
@@ -85,15 +84,6 @@ const unsigned int PVViewer_LogWindowAdapter::getGenericWarningCount()
   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;