X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=lib%2FcreaDevManagerLib%2FwxCDMCMakeListsDescriptionPanel.h;h=e2ca8426dbd19de847ca558c0febc34542bc348a;hb=f5cd0d2ab363ef8d6fd89d547ace70ca31d2bf3e;hp=a48874c5f389bc1400a1ba354266d68d72987c76;hpb=73787c5a26e6b218b9e6c716dafc7d16330441e7;p=crea.git diff --git a/lib/creaDevManagerLib/wxCDMCMakeListsDescriptionPanel.h b/lib/creaDevManagerLib/wxCDMCMakeListsDescriptionPanel.h index a48874c..e2ca842 100644 --- a/lib/creaDevManagerLib/wxCDMCMakeListsDescriptionPanel.h +++ b/lib/creaDevManagerLib/wxCDMCMakeListsDescriptionPanel.h @@ -36,14 +36,27 @@ #define WXCDMCMAKELISTSDESCRIPTIONPANEL_H_ #include -#include +#include #include "modelCDMCMakeListsFile.h" -class wxCDMCMakeListsDescriptionPanel : public wxPanel +/** + * CMakeLists File description panel. Shows the file properties and the available actions for it. + */ +class wxCDMCMakeListsDescriptionPanel : public wxScrolledWindow { DECLARE_EVENT_TABLE() public: + /** + * CMakeLists File description panel Constructor. + * @param parent Parent window reference. + * @param makefile CMakeLists 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. + */ wxCDMCMakeListsDescriptionPanel( wxWindow* parent, modelCDMCMakeListsFile* makefile, @@ -54,11 +67,25 @@ public: long style = wxDEFAULT_FRAME_STYLE ); + /** + * Destructor. + */ ~wxCDMCMakeListsDescriptionPanel(); + /** + * CMakeLists File description panel Constructor. + * @param parent Parent window reference. + * @param makefile CMakeLists 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 the creation was successful. + */ bool Create( wxWindow* parent, - modelCDMCMakeListsFile* blackBox, + modelCDMCMakeListsFile* makefile, wxWindowID id = -1, const wxString& caption = _("Description Frame"), const wxPoint& pos = wxDefaultPosition, @@ -66,14 +93,32 @@ public: long style = wxDEFAULT_FRAME_STYLE ); + /** + * Creates all the controls in the panel (property and action controls). + */ void CreateControls(); private: + /** + * CMakeLists file described. + */ modelCDMCMakeListsFile* cMakeLists; //handlers protected: + /** + * 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 file in text editor button is pressed. + */ void OnBtnOpenInEditor(wxCommandEvent& event); + /** + * Handles when the open containing folder button is pressed. + */ + void OnBtnOpenFolder(wxCommandEvent& event); }; #endif /* WXCDMCMAKELISTSDESCRIPTIONPANEL_H_ */