X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=inline;f=src2%2FcreaImageIOWxGimmickView.h;h=cf3dd3f0a72ffb1091431a68e4fb9666c0873fcb;hb=595926ac27740a8822b6de9579e2e148c59f469c;hp=3f46561bb640d917cfd7287965c733180c05ad38;hpb=7ae1412df3d682f639683e751f46a3f07be16d0b;p=creaImageIO.git diff --git a/src2/creaImageIOWxGimmickView.h b/src2/creaImageIOWxGimmickView.h index 3f46561..cf3dd3f 100644 --- a/src2/creaImageIOWxGimmickView.h +++ b/src2/creaImageIOWxGimmickView.h @@ -5,7 +5,11 @@ #include #include +#include +#include #include +#include "wx/wx.h" +//#include "bruker2dicom.h" #include #include @@ -59,15 +63,35 @@ namespace creaImageIO bool isSelection, int selection, bool mProcess); ///Stops the player void StopPlayer(){mViewer->StopPlayer();} - ///Adds a file to ignore - void AddIgnoreFile(const tree::Node* & toRemove); + ///Adds a file to ignore + void AddIgnoreFile(tree::Node* toRemove); ///Resets the default image void ClearSelection(); + ///Copies selected files + void CopyFiles(const std::vector& filenames); ///Sends a request to read the currently selected node and the ones that surround it. void ReadImageThreaded(const std::vector& sel); - + + ///Saves the settings to the file + void OnSaveSettingsCallback(const std::string& copyPath, + const std::string& dbPath, + const std::string& syncEvent, + const std::string& syncFreq); + + ///Changes listener state + void OnListenerCallback(const std::string& drive, bool addFiles, bool removeFiles); + + ///Acts upon a drive mount + void OnDriveMount(bool mount); + + ///Starts the listening thread on the CD/DVD drive + void StartListeningThread(); + + ///Stops the listening thread on the CD/DVD drive + void StopListeningThread(); + protected: /// Creates the tool bar @@ -91,6 +115,8 @@ namespace creaImageIO wxToolBarToolBase* mToolAddDatabase; wxToolBarToolBase* mToolHelp; wxToolBarToolBase* mToolSynchronize; + wxToolBarToolBase* mToolSettings; + wxToolBarToolBase* mToolTools; wxSplitterWindow* mSplitter; wxPanel* mBottomPanel; @@ -102,14 +128,22 @@ namespace creaImageIO void CreateIconList(); Gimmick * mGimmick; + + Listener* mListener; /// Callback for adding files void OnAddFiles(wxCommandEvent& event); /// Callback for adding dir void OnAddDir(wxCommandEvent& event); /// Callback for removing files void OnRemove(wxCommandEvent& event); - /// Callback for removing files + /// Callback for synchronization void OnSynchronize(wxCommandEvent& event); + /// Callback for settings edition + void OnSettings(wxCommandEvent& event); + /// Callback for settings edition + void OnTools(wxCommandEvent& event); + ///Creates the settings dialog (the pages inside and the information) + void CreateSettingsDialog(wxNotebook* nb, wxDialog* dial); /// Display a message box with the last addition statistics void DisplayAddSummary(); @@ -125,6 +159,9 @@ namespace creaImageIO // callback to add a database void OnAddDB(wxCommandEvent& event); + //Create a DB from an Attributes Descriptor files + void OnCreateDB(wxCommandEvent& event); + /// Progress dialog wxProgressDialog* mProgressDialog; ///The selection's maximum dimension