X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src2%2FcreaImageIOWxTreeView.h;h=001bf26214a53c261fc6b442bfdaac288c9ce9e5;hb=00dbbc177a9b5db334393734151e820a65f65efc;hp=126c9410a6aabe86abfa02274f783ad9c7609874;hpb=e13ea6551e8721b11998dc33ddccf3f89458f173;p=creaImageIO.git diff --git a/src2/creaImageIOWxTreeView.h b/src2/creaImageIOWxTreeView.h index 126c941..001bf26 100644 --- a/src2/creaImageIOWxTreeView.h +++ b/src2/creaImageIOWxTreeView.h @@ -9,10 +9,25 @@ #include #include //#include - +const std::string empty_string(""); namespace creaImageIO { + //===================================================================== + /// Data stored by the list items + struct ItemData + { + ItemData() : node(0), id(-1), attr(&empty_string) {} + // The corresponding Node + tree::Node* node; + // The id ? + int id; + // The pointer on the current attribute string to sort on + const std::string* attr; + // Was the item previously selected ? + // Useful for reselecting the item after sort + bool selected; + }; /** * \ingroup View */ @@ -34,7 +49,7 @@ namespace creaImageIO virtual void UpdateLevel( int ); ///Removes selected nodes on given level - virtual void RemoveSelected(); + virtual void RemoveSelected(std::string &i_save); ///Returns the last selected level virtual unsigned int GetLastSelectedLevel(){return mLastLevel;} @@ -174,12 +189,27 @@ namespace creaImageIO // or sorting bool mIgnoreSelectedChanged; - DECLARE_EVENT_TABLE() }; // EO class WxTreeView //===================================================================== + class RemoveAlertDlg : public wxDialog + { + public: + RemoveAlertDlg(wxWindow *parent, + wxString title, + const wxSize& size); + ~RemoveAlertDlg(); + + bool isChecked(); + + private : + void onCheck(wxCommandEvent &Event); + bool mSave; + wxCheckBox *mcheck; + + }; } // EO namespace creaImageIO