X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcreaDevManagerLib%2FwxCDMProjectActionsPanel.h;h=cd60d7572395c466c02d32cb826de959a06b5fa8;hb=ef630179c0efdb37f43994958b727f585cf2c3ec;hp=d01e9e5c0c0f1dd18452f3fae97a1f94c6d273b4;hpb=cd4ae62285af30451b264ceb3202e1e912740fc7;p=crea.git diff --git a/lib/creaDevManagerLib/wxCDMProjectActionsPanel.h b/lib/creaDevManagerLib/wxCDMProjectActionsPanel.h index d01e9e5..cd60d75 100755 --- a/lib/creaDevManagerLib/wxCDMProjectActionsPanel.h +++ b/lib/creaDevManagerLib/wxCDMProjectActionsPanel.h @@ -37,14 +37,26 @@ #define WXCDMPROJECTACTIONSPANEL_H_ #include -#include #include "modelCDMProject.h" -class wxCDMProjectActionsPanel : public wxPanel +/** + * Panel with common actions for an open Crea project. + */ +class wxCDMProjectActionsPanel : public wxScrolledWindow { 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, @@ -54,7 +66,20 @@ public: 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, @@ -65,13 +90,32 @@ public: ); protected: + /** + * Creates the Panel controls (buttons) + */ void CreateControls(); + /** + * 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); + /** + * 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; };