]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
Compilation on Linux.
authorouv <ouv@opencascade.com>
Mon, 26 Aug 2013 10:39:27 +0000 (10:39 +0000)
committerouv <ouv@opencascade.com>
Mon, 26 Aug 2013 10:39:27 +0000 (10:39 +0000)
src/HYDROGUI/HYDROGUI_Displayer.cxx
src/HYDROGUI/HYDROGUI_Module.cxx
src/HYDROGUI/HYDROGUI_ShowHideOp.cxx
src/HYDROGUI/HYDROGUI_Tool.cxx
src/HYDROGUI/HYDROGUI_Tool.h
src/HYDROGUI/HYDROGUI_TwoImagesOp.cxx
src/HYDROGUI/HYDROGUI_VisualStateOp.cxx

index bb22802118e0abbfb2d39b6e963a3b9fb5cca4bf..e53d6bc7a3cc6f1275c9311b41b4389ce4232c40 100644 (file)
@@ -189,7 +189,7 @@ void HYDROGUI_Displayer::Display( const HYDROData_SequenceOfObjects& theObjs,
 
     if( aPrs )
     {
-      bool anIsVisible = anObj->IsVisible( (int)aViewer );
+      bool anIsVisible = anObj->IsVisible( (size_t)aViewer );
       aPrs->setVisible( anIsVisible );
     }
   }
index 4dd19fe07a0b966ee57c0da1f70d8b4c73f3c29d..7d2197a1c64f54c60400a1b7255a0a459dc6f4c1 100644 (file)
@@ -139,7 +139,7 @@ void HYDROGUI_Module::contextMenuPopup( const QString& theClient,
 {
   HYDROGUI_DataModel* aModel = getDataModel();
 
-  int aViewId = HYDROGUI_Tool::GetActiveGraphicsViewId( this );
+  size_t aViewId = HYDROGUI_Tool::GetActiveGraphicsViewId( this );
 
   bool anIsSelection = false;
   bool anIsVisibleInSelection = false;
index 4fa7c8a30ac2f6cfd99d8ec5a0a6f75c6bff7b1d..04e60c725934c3498cf59a180cacaa814a965034 100644 (file)
@@ -55,7 +55,7 @@ void HYDROGUI_ShowHideOp::startOperation()
 {
   HYDROGUI_Operation::startOperation();
 
-  int aViewId = HYDROGUI_Tool::GetActiveGraphicsViewId( module() );
+  size_t aViewId = HYDROGUI_Tool::GetActiveGraphicsViewId( module() );
 
   // for all objects
   if( myId == ShowOnlyId || myId == ShowAllId || myId == HideAllId )
index 39b6bb97dcbed1f0dbe1a38023ca1a3238b99643..d98db72a4eaea477352a23a6442de3d30d7930f8 100644 (file)
@@ -288,21 +288,21 @@ QString HYDROGUI_Tool::GenerateObjectName( HYDROGUI_Module* theModule,
   return aName;
 }
 
-int HYDROGUI_Tool::GetActiveGraphicsViewId( HYDROGUI_Module* theModule )
+size_t HYDROGUI_Tool::GetActiveGraphicsViewId( HYDROGUI_Module* theModule )
 {
-  int aViewId = 0;
+  size_t aViewId = 0;
   SUIT_ViewManager* aViewMgr = theModule->getApp()->activeViewManager();
   if( !aViewMgr || aViewMgr->getType() != GraphicsView_Viewer::Type() )
     return aViewId;
 
   if( SUIT_ViewModel* aViewer = aViewMgr->getViewModel() )
-    aViewId = (int)aViewer;
+    aViewId = (size_t)aViewer;
   return aViewId;
 }
 
-QList<int> HYDROGUI_Tool::GetGraphicsViewIdList( HYDROGUI_Module* theModule )
+QList<size_t> HYDROGUI_Tool::GetGraphicsViewIdList( HYDROGUI_Module* theModule )
 {
-  QList<int> aList;
+  QList<size_t> aList;
   ViewManagerList aViewMgrs;
   theModule->getApp()->viewManagers( GraphicsView_Viewer::Type(), aViewMgrs );
   QListIterator<SUIT_ViewManager*> anIter( aViewMgrs );
@@ -311,7 +311,7 @@ QList<int> HYDROGUI_Tool::GetGraphicsViewIdList( HYDROGUI_Module* theModule )
     if( SUIT_ViewManager* aViewMgr = anIter.next() )
     {
       if( SUIT_ViewModel* aViewer = aViewMgr->getViewModel() )
-        aList.append( (int)aViewer );
+        aList.append( (size_t)aViewer );
     }
   }
   return aList;
index e67274fc5dc09200352e7b807aeef3160590381f..e713e7d64e397db524b04d9af271f7f1481124f6 100644 (file)
@@ -173,14 +173,14 @@ public:
    * \param theModule module
    * \return view id
    */
-  static int                      GetActiveGraphicsViewId( HYDROGUI_Module* theModule );
+  static size_t                   GetActiveGraphicsViewId( HYDROGUI_Module* theModule );
 
   /**
    * \brief Get list of ids of existing GraphicsView views.
    * \param theModule module
    * \return list of view ids
    */
-  static QList<int>               GetGraphicsViewIdList( HYDROGUI_Module* theModule );
+  static QList<size_t>            GetGraphicsViewIdList( HYDROGUI_Module* theModule );
 };
 
 #endif
index 6a4268c6119f0c7e1c1c1a798978b2ab23c11262..704372635e11196ce05fdaafce27ec6401f21023 100644 (file)
@@ -118,7 +118,7 @@ bool HYDROGUI_TwoImagesOp::processApply( int& theUpdateFlags,
   aResult->AppendReference( anImage2 );
   aFactory->UpdateImage( doc(), aResult );
 
-  int aViewId = HYDROGUI_Tool::GetActiveGraphicsViewId( module() );
+  size_t aViewId = HYDROGUI_Tool::GetActiveGraphicsViewId( module() );
   anImage1->SetVisible( aViewId, false );
   anImage2->SetVisible( aViewId, false );
   aResult->SetVisible( aViewId, true );
index 326b5ab8fe7dfa64148906ebabec7f2cb432dc00..dd0523aaaee3baed98c9a5aaf64b85901aa02f36 100644 (file)
@@ -41,7 +41,7 @@
 #include <SUIT_ViewManager.h>
 #include <SUIT_ViewWindow.h>
 
-#include <QApplication.h>
+#include <QApplication>
 
 HYDROGUI_VisualStateOp::HYDROGUI_VisualStateOp( HYDROGUI_Module* theModule,
                                                 const bool theIsLoad )
@@ -109,7 +109,7 @@ bool HYDROGUI_VisualStateOp::saveVisualState()
   {
     if( SUIT_ViewManager* aViewManager = anIter.next() )
     {
-      int aViewId = (int)aViewManager->getViewModel();
+      size_t aViewId = (size_t)aViewManager->getViewModel();
       if( SUIT_ViewWindow* aViewWindow = aViewManager->getActiveView() )
       {
         QString aType = aViewManager->getType();
@@ -198,7 +198,7 @@ bool HYDROGUI_VisualStateOp::loadVisualState()
     QString aViewerId = aViewerEntry.section( '_', -1 ); // unused
     if( SUIT_ViewManager* aViewManager = anApp->createViewManager( aType ) )
     {
-      int aViewId = (int)aViewManager->getViewModel();
+      size_t aViewId = (size_t)aViewManager->getViewModel();
       if( SUIT_ViewWindow* aViewWindow = aViewManager->getActiveView() )
       {
         // Wait until the window is really shown. This step fixes MANY bugs.