X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=lib%2FcreaDevManagerLib%2FwxCDMFileDescriptionPanel.h;h=8eee2eeeb8419877620a430b6bca8194e69a3cd7;hb=refs%2Fheads%2FchangeWx28to30;hp=635761d911a031a4ffcf66a9a11fe9beaf2a1783;hpb=73787c5a26e6b218b9e6c716dafc7d16330441e7;p=crea.git diff --git a/lib/creaDevManagerLib/wxCDMFileDescriptionPanel.h b/lib/creaDevManagerLib/wxCDMFileDescriptionPanel.h index 635761d..8eee2ee 100644 --- a/lib/creaDevManagerLib/wxCDMFileDescriptionPanel.h +++ b/lib/creaDevManagerLib/wxCDMFileDescriptionPanel.h @@ -36,14 +36,27 @@ #define WXCDMFILEDESCRIPTIONPANEL_H_ #include -#include +#include #include "modelCDMFile.h" -class wxCDMFileDescriptionPanel : public wxPanel +/** + * File description panel. Shows the File properties and the available options for it. + */ +class wxCDMFileDescriptionPanel : public wxScrolledWindow { DECLARE_EVENT_TABLE() public: + /** + * File description panel Constructor. + * @param parent Parent window reference. + * @param file File class reference. + * @param id Panel ID. By default -1. + * @param caption Panel label. By default "Description Frame". + * @param pos Panel position. By default wxDefaultPosition. + * @param size Panel size. By default wxDefaultSize. + * @param style Panel style. By default wxDEFAULT_FRAME_STYLE. + */ wxCDMFileDescriptionPanel( wxWindow* parent, modelCDMFile* file, @@ -54,8 +67,22 @@ public: long style = wxDEFAULT_FRAME_STYLE ); + /** + * Destructor. + */ ~wxCDMFileDescriptionPanel(); + /** + * File description panel Constructor. + * @param parent Parent window reference. + * @param file File class reference. + * @param id Panel ID. By default -1. + * @param caption Panel label. By default "Description Frame". + * @param pos Panel position. By default wxDefaultPosition. + * @param size Panel size. By default wxDefaultSize. + * @param style Panel style. By default wxDEFAULT_FRAME_STYLE. + * @return True if creation was successful. + */ bool Create( wxWindow* parent, modelCDMFile* file, @@ -66,14 +93,32 @@ public: long style = wxDEFAULT_FRAME_STYLE ); + /** + * Creates all the controls in the panel (property and action controls). + */ void CreateControls(); + private: + /** + * File described. + */ modelCDMFile* file; //handlers protected: - void OnBtnOpenContainingFolder(wxCommandEvent& event); + /** + * Handles when a return link is pressed. + * @param event Has the link reference to know where to return + */ + void OnBtnReturn(wxHyperlinkEvent& event); + /** + * Handles when the Open containing folder button is pressed. + */ + void OnBtnOpenFolder(wxCommandEvent& event); + /** + * Handles when the Open with command button is pressed. + */ void OnBtnOpenWithCommand(wxCommandEvent& event); };