//Puts images
std::vector<vtkImageData*> images;
- w.GetSelectedImages(images,output_dim);
-
- crea::VtkBasicSlicer(images.front());
+ w.GetSelectedImages(images,output_dim);
+
+ crea::VtkBasicSlicer(images.front());
images.front()->Delete();
w.OnExit();
//================================================================
//
- const int icon_number = 8;
+ const int icon_number = 9;
// Icon ids
typedef enum
{
+ Icon_create_database,
Icon_accept,
Icon_add,
Icon_folder_down,
Icon_page_down,
+ Icon_database_add,
Icon_remove,
- Icon_database_add,
- Icon_help,
Icon_synchronize,
- Icon_create_database
+ Icon_help
}
icon_id;
//================================================================
//=================================================
BEGIN_EVENT_TABLE(WxGimmickView, wxPanel)
EVT_TOOL(TOOL_CREATEDB_ID, WxGimmickView::OnCreateDB)
- EVT_TOOL(TOOL_ADDFILES_ID, WxGimmickView::OnCreateDB)
EVT_TOOL(TOOL_ADDFILES_ID, WxGimmickView::OnAddFiles)
EVT_TOOL(TOOL_ADDDIR_ID, WxGimmickView::OnAddDir)
EVT_TOOL(TOOL_ADDDATABASE_ID, WxGimmickView::OnAddDB)
// Validate selected images if the selection is at image level
if (level==(mLevelList.size()-1)) //&&mProcess)
{
- if(event.GetEventType()==10145)
+ if(event.GetEventType()==wxEVT_COMMAND_LIST_ITEM_SELECTED)
{
ValidateSelectedImages (true);
}