X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcreaDevManagerLib%2FwxCDMProjectStructureReportDialog.h;h=72fb814f8157a9227d7a988734c31723984be46f;hb=78a3d08edf8e9b8b11ba87c5a6a4f9211ae107d3;hp=1536e09bb7e2a62d62f4354cdf810ca6f5bd67d1;hpb=2fb5dd9262993efaf56bfc731f4297fdb96bf63e;p=crea.git diff --git a/lib/creaDevManagerLib/wxCDMProjectStructureReportDialog.h b/lib/creaDevManagerLib/wxCDMProjectStructureReportDialog.h index 1536e09..72fb814 100644 --- a/lib/creaDevManagerLib/wxCDMProjectStructureReportDialog.h +++ b/lib/creaDevManagerLib/wxCDMProjectStructureReportDialog.h @@ -41,10 +41,23 @@ #include +/** + * Project Structure Report Dialog. Allows the user to inspect what is compiling and what's not. + */ class wxCDMProjectStructureReportDialog : public wxDialog { DECLARE_EVENT_TABLE() public: + /** + * Project Structure Report Dialog Constructor. + * @param parent Parent window. + * @param properties Project precompilation check map. + * @param id Window ID. By default wxID_ANY. + * @param caption Window label. By default "Project Structure Report". + * @param position Dialog position. By default wxDefaultPosition. + * @param size Dialog size. By default 700, 500. + * @param style Dialog style. By default wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER. + */ wxCDMProjectStructureReportDialog( wxWindow* parent, const std::map& properties, @@ -54,7 +67,20 @@ public: const wxSize& size = wxSize(700,500), long style = wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER ); + /** + * Destructor. + */ ~wxCDMProjectStructureReportDialog(); + /** + * Project Structure Report Dialog Creator. + * @param parent Parent window. + * @param id Window ID. By default wxID_ANY. + * @param caption Window label. By default "Project Structure Report". + * @param position Dialog position. By default wxDefaultPosition. + * @param size Dialog size. By default 700, 500. + * @param style Dialog style. By default wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER. + * @return if the creation was successful. + */ bool Create( wxWindow* parent, wxWindowID id = wxID_ANY, @@ -65,15 +91,29 @@ public: ); protected: + /** + * Creates the Dialog controls (text and button). + */ void CreateControls(); //attributes private: + /** + * Project check results. + */ std::map properties; //handlers protected: + /** + * Handles when the close button is pressed. + * @param event Unused. + */ void OnFinish(wxCommandEvent& event); + /** + * Creates the project structure check results processed for showing them. In HTML + * @return Report in HTML format. + */ wxString GetContent(); };