Program: vv
Module: $RCSfile: vvMainWindow.cxx,v $
Language: C++
- Date: $Date: 2010/03/24 10:48:18 $
- Version: $Revision: 1.17 $
+ Date: $Date: 2010/03/24 13:37:34 $
+ Version: $Revision: 1.18 $
Author : Pierre Seroul (pierre.seroul@gmail.com)
Copyright (C) 200COLUMN_IMAGE_NAME
mInputPathName = "";
mMenuTools = menuTools;
+ mMenuExperimentalTools = menuExperimental;
mMainWidget = this;
//Init the contextMenu
virtual void AddImage(vvImage::Pointer image,std::string filename) = 0;
virtual void UpdateCurrentSlicer() = 0;
const std::vector<vvSlicerManager*> & GetSlicerManagers() const { return mSlicerManagers; }
- QMenu * GetMenu() const { return mMenuTools; }
+ QMenu * GetToolMenu() const { return mMenuTools; }
+ QMenu * GetExperimentalToolMenu() const { return mMenuExperimentalTools; }
int GetSlicerManagerCurrentIndex() const { return mSlicerManagerCurrentIndex; }
QWidget * GetMainWidget() { return mMainWidget; }
protected:
std::vector<vvSlicerManager*> mSlicerManagers;
QMenu * mMenuTools;
+ QMenu * mMenuExperimentalTools;
int mSlicerManagerCurrentIndex;
QWidget* mMainWidget;
};
Program: vv
Module: $RCSfile: vvToolBase.h,v $
Language: C++
- Date: $Date: 2010/03/01 07:37:25 $
- Version: $Revision: 1.4 $
+ Date: $Date: 2010/03/24 13:37:34 $
+ Version: $Revision: 1.5 $
Author : David Sarrut (david.sarrut@creatis.insa-lyon.fr)
Copyright (C) 2008
static void SetToolMenuName(QString n) { vvToolCreator<ToolType>::mSingleton->mToolMenuName = n; }
static void SetToolIconFilename(QString n) { vvToolCreator<ToolType>::mSingleton->mToolIconFilename = n; }
static void SetToolTip(QString n) { vvToolCreator<ToolType>::mSingleton->mToolTip = n; }
+ static void SetToolExperimental(bool exp) { vvToolCreator<ToolType>::mSingleton->mExperimental = exp; }
void AddImage(vvImage::Pointer image,std::string filename) {
CREATOR(ToolType)->GetMainWindow()->AddImage(image,filename);
Program: vv
Module: $RCSfile: vvToolCreatorBase.cxx,v $
Language: C++
- Date: $Date: 2010/02/24 11:42:42 $
- Version: $Revision: 1.2 $
+ Date: $Date: 2010/03/24 13:37:34 $
+ Version: $Revision: 1.3 $
Author : David Sarrut (david.sarrut@creatis.insa-lyon.fr)
Copyright (C) 2008
#include <QMenu>
//------------------------------------------------------------------------------
-vvToolCreatorBase::vvToolCreatorBase(QString name) {
+vvToolCreatorBase::vvToolCreatorBase(QString name): mExperimental(false) {
mToolName = name;
vvToolManager::GetInstance()->AddTool(this);
}
mAction->setStatusTip(mToolTip);
// Connect the action
connect(mAction, SIGNAL(triggered()), this, SLOT(MenuToolSlot()));
- mMainWindow->GetMenu()->addAction(mAction);
+ if (mExperimental)
+ mMainWindow->GetExperimentalToolMenu()->addAction(mAction);
+ else
+ mMainWindow->GetToolMenu()->addAction(mAction);
}
//------------------------------------------------------------------------------
Program: vv
Module: $RCSfile: vvToolCreatorBase.h,v $
Language: C++
- Date: $Date: 2010/02/24 11:42:42 $
- Version: $Revision: 1.2 $
+ Date: $Date: 2010/03/24 13:37:34 $
+ Version: $Revision: 1.3 $
Author : David Sarrut (david.sarrut@creatis.insa-lyon.fr)
Copyright (C) 2008
QString mToolIconFilename;
QString mToolTip;
QAction * mAction;
+ bool mExperimental;
public slots:
virtual void MenuToolSlot() { MenuSpecificToolSlot(); }
Program: vv
Module: $RCSfile: vvToolImageArithm.cxx,v $
Language: C++
- Date: $Date: 2010/03/24 13:02:59 $
- Version: $Revision: 1.1 $
+ Date: $Date: 2010/03/24 13:37:34 $
+ Version: $Revision: 1.2 $
Author : David Sarrut (david.sarrut@creatis.insa-lyon.fr)
Copyright (C) 2010
SetToolMenuName("ImageArithm");
SetToolIconFilename(":/new/prefix1/icons/cross.png");
SetToolTip("Perform simple arithmetic operations on one or two images.");
+ SetToolExperimental(true);
}
//------------------------------------------------------------------------------