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 * wxCDMNewPackageDialog.h
32 * Created on: 05/12/2012
33 * Author: Daniel Felipe Gonzalez Obando
36 #ifndef WXCDMNEWPACKAGEDIALOG_H_
37 #define WXCDMNEWPACKAGEDIALOG_H_
40 #include <wx/dialog.h>
43 * Dialog to create a new Package in a Crea Project.
45 class wxCDMNewPackageDialog : public wxDialog
50 * New Package Dialog Constructor.
51 * @param parent Parent window reference.
52 * @param id Dialog ID. By default wxID_ANY.
53 * @param caption Dialog label. By default "New Package".
54 * @param position Dialog position. By default wxDefaultPosition.
55 * @param size Dialog size. By default 500, 400.
56 * @param style Dialog style. By default wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER.
58 wxCDMNewPackageDialog(
60 wxWindowID id = wxID_ANY,
61 const wxString& caption = wxT("New Package"),
62 const wxPoint& position = wxDefaultPosition,
63 const wxSize& size = wxSize(500,400),
64 long style = wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER
69 ~wxCDMNewPackageDialog();
71 * New Package Dialog Creator.
72 * @param parent Parent window reference.
73 * @param id Dialog ID. By default wxID_ANY.
74 * @param caption Dialog label. By default "New Package".
75 * @param position Dialog position. By default wxDefaultPosition.
76 * @param size Dialog size. By default 500, 400.
77 * @param style Dialog style. By default wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER.
81 wxWindowID id = wxID_ANY,
82 const wxString& caption = wxT("New Package"),
83 const wxPoint& position = wxDefaultPosition,
84 const wxSize& size = wxSize(500,400),
85 long style = wxDEFAULT_DIALOG_STYLE
89 * Returns the package name chosen by the user.
90 * @return Package name.
92 const wxString GetPackageName();
94 * Returns the package author name chosen by the user.
95 * @return Package author name.
97 const wxString GetPackageAuthor();
99 * Returns the package author's email chosen by the user.
100 * @return Package author's email.
102 const wxString GetPackageAuthorEmail();
104 * Returns the package description chosen by the user.
105 * @return Package description.
107 const wxString GetPackageDescription();
111 * Creates the visual controls of the Dialog.
113 void CreateControls();
119 wxTextCtrl* packageName;
121 * Package author name.
123 wxTextCtrl* packageAuthor;
125 * Package author's email.
127 wxTextCtrl* packageAuthorEmail;
129 * Package description.
131 wxTextCtrl* packageDescription;
136 * Handles when the create package button is pressed.
137 * @param event Unused event.
139 void OnCreatePackage(wxCommandEvent& event);
141 * Handles when the cancel button is pressed.
142 * @param event Unused event.
144 void OnCancel(wxCommandEvent& event);
147 #endif /* WXCDMNEWPACKAGEDIALOG_H_ */