X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=lib%2FcreaDevManagerLib%2FwxCDMMainDescriptionPanel.h;h=fb0defaa7b1fac0d60af5fc83bfa4187e02a8616;hb=5ff0bb2664c3cd508c1dd438666a71b8a96459c3;hp=e2efa88ee26f6334f6f75ea99c3d26151052fdd0;hpb=e2223b619fa37daaf6103b34b39e789efc1a0b94;p=crea.git diff --git a/lib/creaDevManagerLib/wxCDMMainDescriptionPanel.h b/lib/creaDevManagerLib/wxCDMMainDescriptionPanel.h index e2efa88..fb0defa 100644 --- a/lib/creaDevManagerLib/wxCDMMainDescriptionPanel.h +++ b/lib/creaDevManagerLib/wxCDMMainDescriptionPanel.h @@ -38,10 +38,23 @@ #include #include - +/** + * Main View description panel. Shows the welcome message and allows to open or create Crea projects. + */ class wxCDMMainDescriptionPanel : public wxPanel { + DECLARE_EVENT_TABLE() + public: + /** + * Main description 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. + */ wxCDMMainDescriptionPanel( wxWindow* parent, wxWindowID id = -1, @@ -51,8 +64,20 @@ public: long style = wxDEFAULT_FRAME_STYLE ); + /** + * Destructor. + */ ~wxCDMMainDescriptionPanel(); + /** + * Main description 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. + */ bool Create( wxWindow* parent, wxWindowID id = -1, @@ -62,11 +87,20 @@ public: long style = wxDEFAULT_FRAME_STYLE ); + /** + * Creates all the controls in the panel (property and action controls). + */ void CreateControls(); //handlers protected: + /** + * Handles when the create new project button is pressed. + */ void OnBtnNewProject(wxCommandEvent& event); + /** + * Handles when the open project button is pressed. + */ void OnBtnOpenProject(wxCommandEvent& event); };