Salome HOME
projects
/
modules
/
gui.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
SIMAN removal
[modules/gui.git]
/
src
/
PVViewer
/
PVViewer_LogWindowAdapter.cxx
diff --git
a/src/PVViewer/PVViewer_LogWindowAdapter.cxx
b/src/PVViewer/PVViewer_LogWindowAdapter.cxx
index 736b77b687053c44ad156948ff33f6070fc20996..ac4fa9c4a2276d191546018ad13c2c7c3ea0dfd8 100644
(file)
--- a/
src/PVViewer/PVViewer_LogWindowAdapter.cxx
+++ b/
src/PVViewer/PVViewer_LogWindowAdapter.cxx
@@
-1,4
+1,4
@@
-// Copyright (C) 2010-201
4
CEA/DEN, EDF R&D
+// Copyright (C) 2010-201
5
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
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
@@
-21,15
+21,13
@@
#include <vtkObjectFactory.h>
#include <vtkObjectFactory.h>
-#include <L
ightApp_Application
.h>
+#include <L
ogWindow
.h>
#include <LogWindow.h>
#include <SUIT_Session.h>
#include <SALOME_Event.h>
vtkStandardNewMacro(PVViewer_LogWindowAdapter);
#include <LogWindow.h>
#include <SUIT_Session.h>
#include <SALOME_Event.h>
vtkStandardNewMacro(PVViewer_LogWindowAdapter);
-
-
/*!
* Put the message in the log window.
*/
/*!
* Put the message in the log window.
*/
@@
-57,7
+55,8
@@
PVViewer_LogWindowAdapter::PVViewer_LogWindowAdapter() :
TextCount(0),
ErrorCount(0),
WarningCount(0),
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;
}
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;
void PVViewer_LogWindowAdapter::DisplayText(const char* text)
{
++this->TextCount;