コード例 #1
0
 void SelectionChanged(IWorkbenchPart::Pointer part, ISelection::ConstPointer selection)
 {
   // check, if selection comes from datamanager
   if (part)
   {
     QString partname(part->GetPartName().c_str());
     if(partname.compare("Data Manager")==0)
     {
       // apply selection
       DoSelectionChanged(selection);
     }
   }
 }
コード例 #2
0
 void SelectionChanged(const IWorkbenchPart::Pointer& part, const ISelection::ConstPointer& selection) override
 {
   // check, if selection comes from datamanager
   if (part)
   {
     QString partname = part->GetPartName();
     if(partname.compare("Data Manager")==0)
     {
       // apply selection
       DoSelectionChanged(selection);
     }
   }
 }