X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=lib%2FcreaDevManagerLib%2FwxCDMPackageManagerPanel.h;h=66a1d1c54228d390ed5420b5ec2a9fec1fd4f8fd;hb=741b9c1d03c7984f7ac4a39188e2bb114471f579;hp=a8634cbbf4e45b156faa8aedee503a593008c5c6;hpb=5413640f931dc9bc9b3c24a27f42c3cf40c35072;p=crea.git diff --git a/lib/creaDevManagerLib/wxCDMPackageManagerPanel.h b/lib/creaDevManagerLib/wxCDMPackageManagerPanel.h index a8634cb..66a1d1c 100644 --- a/lib/creaDevManagerLib/wxCDMPackageManagerPanel.h +++ b/lib/creaDevManagerLib/wxCDMPackageManagerPanel.h @@ -38,14 +38,28 @@ #include #include #include +#include #include "modelCDMProject.h" +/** + * Package manager description panel. Shows the available packages in the project and the actions corresponding to package management. + */ class wxCDMPackageManagerPanel : public wxPanel { DECLARE_EVENT_TABLE() public: + /** + * Package manager description panel Constructor. + * @param parent Parent window reference. + * @param project Project 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. + */ wxCDMPackageManagerPanel( wxWindow* parent, modelCDMProject* project, @@ -56,8 +70,21 @@ public: long style = wxDEFAULT_FRAME_STYLE ); + /** + * Destructor. + */ ~wxCDMPackageManagerPanel(); + /** + * Package manager description panel Creator. + * @param parent Parent window reference. + * @param project Project 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. + */ bool Create( wxWindow* parent, modelCDMProject* project, @@ -68,19 +95,62 @@ public: long style = wxDEFAULT_FRAME_STYLE ); + /** + * Creates all the controls in the panel (property and action controls). + */ void CreateControls(); + /** + * Retrieves the described project class reference. + * @return Project reference. + */ + modelCDMProject* GetProject() const; + private: + /** + * Project described. + */ modelCDMProject* project; //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 a packages link is pressed. + * @param event Has the link reference to know which package was selected. + */ + void OnLnkPackageSelect(wxHyperlinkEvent& event); + /** + * Handles when the create package button is pressed. + */ void OnBtnCreatePackage(wxCommandEvent& event); + /** + * Handles when the open package cmakelists file button is pressed. + */ void OnBtnEditCMakeLists(wxCommandEvent& event); - void OnLnkPackageSelect(wxHyperlinkEvent& event); - - void OnBtnReturn(wxCommandEvent& event); + /** + * Handles when a package link is hovered. + * @param event Has the link reference to know which package was selected. + */ + void OnMouseEnter(wxMouseEvent& event); + /** + * Handles when a package link button finishes hover. + * @param event Has the link reference to know which package was selected. + */ + void OnMouseExit(wxMouseEvent& event); + /** + * Handles when the open cmakelists file button is hovered. + */ + void OnCMakeMouseEnter(wxMouseEvent& event); + /** + * Handles when the open cmakelists file button finishes hover. + */ + void OnCMakeMouseExit(wxMouseEvent& event); }; #endif /* WXCDMPACKAGEMANAGERPANEL_H_ */