2 # ---------------------------------------------------------------------
4 # Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image
6 # Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
7 # Previous Authors : Laurent Guigues, Jean-Pierre Roux
8 # CreaTools website : www.creatis.insa-lyon.fr/site/fr/creatools_accueil
10 # This software is governed by the CeCILL-B license under French law and
11 # abiding by the rules of distribution of free software. You can use,
12 # modify and/ or redistribute the software under the terms of the CeCILL-B
13 # license as circulated by CEA, CNRS and INRIA at the following URL
14 # http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
15 # or in the file LICENSE.txt.
17 # As a counterpart to the access to the source code and rights to copy,
18 # modify and redistribute granted by the license, users are provided only
19 # with a limited warranty and the software's author, the holder of the
20 # economic rights, and the successive licensors have only limited
23 # The fact that you are presently reading this means that you have had
24 # knowledge of the CeCILL-B license and that you accept its terms.
25 # ------------------------------------------------------------------------
30 * wxCDMProjectStructureReportDialog.h
32 * Created on: 3/1/2013
33 * Author: Daniel Felipe Gonzalez Obando
36 #ifndef WXCDMPROJECTSTRUCTUREREPORTDIALOG_H_
37 #define WXCDMPROJECTSTRUCTUREREPORTDIALOG_H_
40 #include <wx/dialog.h>
45 * Project Structure Report Dialog. Allows the user to inspect what is compiling and what's not.
47 class wxCDMProjectStructureReportDialog : public wxDialog
52 * Project Structure Report Dialog Constructor.
53 * @param parent Parent window.
54 * @param properties Project precompilation check map.
55 * @param id Window ID. By default wxID_ANY.
56 * @param caption Window label. By default "Project Structure Report".
57 * @param position Dialog position. By default wxDefaultPosition.
58 * @param size Dialog size. By default 700, 500.
59 * @param style Dialog style. By default wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER.
61 wxCDMProjectStructureReportDialog(
63 const std::map<std::string, bool>& properties,
64 wxWindowID id = wxID_ANY,
65 const wxString& caption = wxT("Project Structure Report"),
66 const wxPoint& position = wxDefaultPosition,
67 const wxSize& size = wxSize(700,500),
68 long style = wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER
73 ~wxCDMProjectStructureReportDialog();
75 * Project Structure Report Dialog Creator.
76 * @param parent Parent window.
77 * @param id Window ID. By default wxID_ANY.
78 * @param caption Window label. By default "Project Structure Report".
79 * @param position Dialog position. By default wxDefaultPosition.
80 * @param size Dialog size. By default 700, 500.
81 * @param style Dialog style. By default wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER.
82 * @return if the creation was successful.
86 wxWindowID id = wxID_ANY,
87 const wxString& caption = wxT("Project Structure Report"),
88 const wxPoint& position = wxDefaultPosition,
89 const wxSize& size = wxSize(700,500),
90 long style = wxDEFAULT_DIALOG_STYLE
95 * Creates the Dialog controls (text and button).
97 void CreateControls();
102 * Project check results.
104 std::map<std::string, bool> properties;
109 * Handles when the close button is pressed.
110 * @param event Unused.
112 void OnFinish(wxCommandEvent& event);
114 * Creates the project structure check results processed for showing them. In HTML
115 * @return Report in HTML format.
117 wxString GetContent();
120 #endif /* WXCDMPROJECTSTRUCTUREREPORTDIALOG_H_ */