std::string ReadVector(int index);
std::string ReadLink();
+#if __cplusplus > 199711L
+ std::shared_ptr<QXmlStreamReader> m_XmlReader;
+ std::shared_ptr<QFile> m_File;
+#else
std::auto_ptr<QXmlStreamReader> m_XmlReader;
std::auto_ptr<QFile> m_File;
+#endif
vvMainWindow* m_Window;
int m_TreeItemCount;
int m_NumImages;
void SaveVector(const QTreeWidgetItem* item);
void SaveLink(const vvSlicerManager* slicerManager);
+#if __cplusplus > 199711L
+ std::shared_ptr<QXmlStreamWriter> m_XmlWriter;
+ std::shared_ptr<QFile> m_File;
+#else
std::auto_ptr<QXmlStreamWriter> m_XmlWriter;
std::auto_ptr<QFile> m_File;
+#endif
vvMainWindow* m_Window;
};
#include "vvToolBaseBase.h"
//------------------------------------------------------------------------------
-void vvToolBaseBase::SaveState(std::auto_ptr<QXmlStreamWriter> & m_XmlWriter)
+#if __cplusplus > 199711L
+void vvToolBaseBase::SaveState(std::shared_ptr<QXmlStreamWriter> & m_XmlWriter)
+#else
+void vvToolBaseBase::SaveState(std::auto_ptr<QXmlStreamWriter> & m_XmlWriter)
+#endif
{
std::cerr << "SaveState not implemented for this tool." << std::endl;
}
std::vector<vvToolBaseBase*> & v = mCreator->GetListOfTool();
v.erase(std::find(v.begin(), v.end(), this));
};
-
+#if __cplusplus > 199711L
+ virtual void SaveState(std::shared_ptr<QXmlStreamWriter> & m_XmlWriter);
+#else
virtual void SaveState(std::auto_ptr<QXmlStreamWriter> & m_XmlWriter);
+#endif
virtual void InitializeNewTool(bool ReadStateFlag);
void SetCreator(vvToolCreatorBase * m) { mCreator = m; }
void SetXmlReader(QXmlStreamReader * r, int index) { m_XmlReader = r; mImageIndex = index;}
public:
vvToolCreatorBase(QString name);
- virtual ~vvToolCreatorBase() {;}
+ virtual ~vvToolCreatorBase() {}
virtual void InsertToolInMenu(vvMainWindowBase * m);
virtual void InsertToolInContextMenu();
template<class ToolType> void CreateTool();
bool mUseContextMenu;
QMenu * mToolMenu;
std::vector<QAction*> mListOfActions;
+#if __cplusplus > 199711L
+ std::shared_ptr<QXmlStreamReader> m_XmlReader;
+#else
std::auto_ptr<QXmlStreamReader> m_XmlReader;
+#endif
bool mReadStateFlag;
int mImageIndex;
//------------------------------------------------------------------------------
+#if __cplusplus > 199711L
+void vvToolROIManager::SaveState(std::shared_ptr<QXmlStreamWriter> & m_XmlWriter)
+#else
void vvToolROIManager::SaveState(std::auto_ptr<QXmlStreamWriter> & m_XmlWriter)
+#endif
{
// Get index of the image
int n = mMainWindow->GetSlicerManagers().size();
void AddImage(vvImage * binaryImage, std::string name, std::string filename, double BG, bool m_modeBG=true);
void UpdateAllContours();
void UpdateAllROIStatus();
+#if __cplusplus > 199711L
+ virtual void SaveState(std::shared_ptr<QXmlStreamWriter> & m_XmlWriter);
+#else
virtual void SaveState(std::auto_ptr<QXmlStreamWriter> & m_XmlWriter);
+#endif
virtual void InitializeNewTool(bool ReadStateFlag);
public slots: