Salome HOME
updated copyright message
[modules/gui.git] / src / Plot2d / Plot2d_ViewModel.cxx
old mode 100755 (executable)
new mode 100644 (file)
index d7c4d24..0461fd5
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2014  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2023  CEA/DEN, EDF R&D, OPEN CASCADE
 //
 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
@@ -40,7 +40,8 @@ Plot2d_Viewer::Plot2d_Viewer(bool theAutoDel)
 {
   myPrs = 0;
   myAutoDel = theAutoDel;
-  Plot2d_Object::initColors();
+  Plot2d_Object::setSelectionColor( QColor(80,80,80) );
+  Plot2d_Object::setHighlightedLegendTextColor( QColor(255,255,255) );
 }
 
 /*!
@@ -109,8 +110,8 @@ void Plot2d_Viewer::update()
 {
   SUIT_ViewManager* aMgr = getViewManager();
   QVector<SUIT_ViewWindow*> aViews = aMgr->getViews();
-  unsigned int aSize = aViews.size();
-  for (uint i = 0; i < aSize; i++) {
+  int aSize = aViews.size();
+  for (int i = 0; i < aSize; i++) {
     Plot2d_ViewWindow* aView = (Plot2d_ViewWindow*)aViews[i];
     if (myPrs && aView)
       aView->getViewFrame()->Display(myPrs);
@@ -126,8 +127,8 @@ void Plot2d_Viewer::clearPrs()
   QVector<SUIT_ViewWindow*> aViews;
   if ( aMgr )
     aViews = aMgr->getViews();
-  unsigned int aSize = aViews.size();
-  for (uint i = 0; i < aSize; i++) {
+  int aSize = aViews.size();
+  for (int i = 0; i < aSize; i++) {
     Plot2d_ViewWindow* aView = (Plot2d_ViewWindow*)aViews[i];
     if (myPrs && aView)
       aView->getViewFrame()->Erase(myPrs);
@@ -219,7 +220,7 @@ void Plot2d_Viewer::onCloneView( Plot2d_ViewFrame* clonedVF, Plot2d_ViewFrame* n
 /*
   SLOT: called when clicked item in the legend from Plot2d_ViewManager
  */
-void Plot2d_Viewer::onLegendClicked( QwtPlotItem* plotItem )
+void Plot2d_Viewer::onClicked(const QVariant& /*itemInfo*/, int /*index*/)
 {
 }