}
//------------------------------------------------------------------------------
+//------------------------------------------------------------------------------
+QTabWidget * vvMainWindow::GetTab()
+{
+ return tabWidget;
+}
+//------------------------------------------------------------------------------
+
//------------------------------------------------------------------------------
void vvMainWindow::MergeImages()
//------------------------------------------------------------------------------
void vvMainWindow::CurrentImageChanged(std::string id)
{
+ // DD("CurrentImageChanged");
int selected = 0;
for (int i = 0; i < DataTree->topLevelItemCount(); i++) {
if (DataTree->topLevelItem(i)->data(COLUMN_IMAGE_NAME,Qt::UserRole).toString().toStdString() == id) {
}
DataTree->topLevelItem(selected)->setSelected(1);
+ // DD(mSlicerManagers[selected]->GetFileName());
+ emit SelectedImageHasChanged(mSlicerManagers[selected]);
}
//------------------------------------------------------------------------------
void ShowLastImage();
virtual void UpdateCurrentSlicer();
+ virtual QTabWidget * GetTab();
//vvMainWindowToolInfo * GetInfoForTool();
// void AddRunningTool(vvToolCreatorBase * tool);
virtual void AddImage(vvImage::Pointer image,std::string filename) = 0;
virtual void UpdateCurrentSlicer() = 0;
+ virtual QTabWidget * GetTab() = 0;
const std::vector<vvSlicerManager*> & GetSlicerManagers() const { return mSlicerManagers; }
QMenu * GetToolMenu() const { return mMenuTools; }
QMenu * GetContextMenu() const { return mContextMenu; }
signals:
void AnImageIsBeingClosed(vvSlicerManager *);
+ void SelectedImageHasChanged(vvSlicerManager *);
protected:
std::vector<vvSlicerManager*> mSlicerManagers;