X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=src2%2FcreaImageIOWxTreeView.h;h=465d704bb3fe42aaa2189eecd50f5cb089fb448a;hb=e88bcb692a9d4bcc2ce1618a27d4fcb275a32a70;hp=c8697b6a70ec9c12cfcd419f544ca996133d6f93;hpb=7ae1412df3d682f639683e751f46a3f07be16d0b;p=creaImageIO.git diff --git a/src2/creaImageIOWxTreeView.h b/src2/creaImageIOWxTreeView.h index c8697b6..465d704 100644 --- a/src2/creaImageIOWxTreeView.h +++ b/src2/creaImageIOWxTreeView.h @@ -53,9 +53,18 @@ namespace creaImageIO ///Callback when the user need the items filtered void OnPopupFilter(wxCommandEvent& event); + + ///Callback when the user needs the item copied to the local disk + void OnLocalCopy(wxCommandEvent& event); + + ///Callback when the user needs to edit a field + void OnEditField(wxCommandEvent& event); ///Callback on mouse click void OnMouseClick(wxMouseEvent& event); + + // Display a menu for items + void OnItemMenu(wxListEvent &event); /// Actual processing of item selection/deselection /// Called by OnItemSelected and OnItemDeSelected @@ -101,7 +110,9 @@ namespace creaImageIO void ValidateSelectedImages(bool isSelection); ///Gets selected filenames void GetSelectedAsString(std::vector&s); - /// Gets the next nodes on the list, be it up(true) or down(false). + ///Gets the filenames of the given nodes and returns them on the given vector. Is recursive. + void GetFilenamesAsString(const std::vector& nodes, std::vector&s); + /// Gets the next nodes on the list, be it up(true) or down(false). void GetNodes(std::vector& nodes, bool direction); /// Updates the view of a level given the selected items of upper level /// Recursive method @@ -131,12 +142,17 @@ namespace creaImageIO std::vector mColorPalette; wxMenu* menu; + wxObject* senderCtrl; int mAscendingID; int mDescendingID; int mFilterID; unsigned int mLastLevel; + wxMenu* menuItem; + int mAnonymizingID; + int mLocalCopyID; + int mEditFieldID; // If set to true then OnSelectedChanged returns immediately. // Used to do avoid useless process during multiple selections // or sorting