X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcreaDevManagerLib%2FwxCDMProjectActionsPanel.h;h=93850e277860202f560ffab39f7b6a095c701087;hb=72a6140565ccd0905f822c7bf17ea471762a9301;hp=48ce66945d1024b9d1d8c22400f08453c784f562;hpb=b35dc47a0727c7588b68024f73b5dd3c0705ca13;p=crea.git diff --git a/lib/creaDevManagerLib/wxCDMProjectActionsPanel.h b/lib/creaDevManagerLib/wxCDMProjectActionsPanel.h index 48ce669..93850e2 100755 --- a/lib/creaDevManagerLib/wxCDMProjectActionsPanel.h +++ b/lib/creaDevManagerLib/wxCDMProjectActionsPanel.h @@ -39,19 +39,48 @@ #include #include +#include "modelCDMProject.h" + +/** + * Panel with common actions for an open Crea project. + */ class wxCDMProjectActionsPanel : public wxPanel { DECLARE_EVENT_TABLE() public: + /** + * Project actions 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. + */ wxCDMProjectActionsPanel( wxWindow* parent, + modelCDMProject* project, wxWindowID id = -1, const wxString& caption = _("Description Frame"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxDEFAULT_FRAME_STYLE ); + /** + * Destructor. + */ ~wxCDMProjectActionsPanel(); + /** + * Project actions panel constructor. + * @param parent Parent window 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, wxWindowID id = -1, @@ -62,12 +91,33 @@ public: ); protected: + /** + * Creates the Panel controls (buttons) + */ void CreateControls(); - void OnBtnBuildProject(wxCommandEvent& event); + /** + * Handles when the Check Project Structure button is pressed. + */ + void OnBtnCheckProjectStructure(wxCommandEvent& event); + /** + * Handles when the Configure Compilation button is pressed. + */ void OnBtnConfigureBuild(wxCommandEvent& event); - void OnBtnEditCMakeLists(wxCommandEvent& event); + /** + * Handles when the Compile Project button is pressed. + */ + void OnBtnBuildProject(wxCommandEvent& event); + /** + * Handles when the Plug packages button is pressed. + */ void OnBtnConnectProject(wxCommandEvent& event); + +private: + /** + * Project class reference + */ + modelCDMProject* project; }; #endif /* WXCDMPROJECTACTIONSPANEL_H_ */