1 /*# ---------------------------------------------------------------------
3 # Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image
5 # Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
6 # Previous Authors : Laurent Guigues, Jean-Pierre Roux
7 # CreaTools website : www.creatis.insa-lyon.fr/site/fr/creatools_accueil
9 # This software is governed by the CeCILL-B license under French law and
10 # abiding by the rules of distribution of free software. You can use,
11 # modify and/ or redistribute the software under the terms of the CeCILL-B
12 # license as circulated by CEA, CNRS and INRIA at the following URL
13 # http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
14 # or in the file LICENSE.txt.
16 # As a counterpart to the access to the source code and rights to copy,
17 # modify and redistribute granted by the license, users are provided only
18 # with a limited warranty and the software's author, the holder of the
19 # economic rights, and the successive licensors have only limited
22 # The fact that you are presently reading this means that you have had
23 # knowledge of the CeCILL-B license and that you accept its terms.
24 # ------------------------------------------------------------------------ */
26 /*=========================================================================
29 Module: $RCSfile: wxMaracasHelpDialog.cxx,v $
31 Date: $Date: 2012/11/15 14:14:56 $
32 Version: $Revision: 1.2 $
34 Copyright: (c) 2002, 2003
37 This software is distributed WITHOUT ANY WARRANTY; without even
38 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
39 PURPOSE. See the above copyright notice for more information.
41 =========================================================================*/
43 #include "wxMaracasHelpDialog.h"
45 #if defined(__WXGTK__) || defined(__WXX11__) || defined(__WXMOTIF__) || defined(__WXMAC__)
46 #include "res/bitmaps/authors.xpm"
51 wxMaracasHelpDialog::wxMaracasHelpDialog(wxWindow* parent, int id, const char* title, const wxPoint& pos, const wxSize& size, long style):
52 wxDialog(parent, id, wxString(title, wxConvUTF8), pos, size, style)
56 wxPanel *logoPanel = new wxPanel(this,-1);
57 logoPanel->SetBackgroundColour(wxColour(0,0,153));
58 wxStaticBitmap *logo = new wxStaticBitmap(logoPanel, -1, wxBITMAP( authors ),wxPoint(0,0));
59 wxBoxSizer *logoSizer = new wxBoxSizer(wxVERTICAL );
60 int wx=logo->GetBitmap().GetWidth();
61 int wy=logo->GetBitmap().GetHeight();
62 logoPanel->SetSize(wx,wy);
64 logoPanel->SetSizer(logoSizer);
65 logoPanel->SetAutoLayout(true);
67 wxBoxSizer *sizer = new wxBoxSizer(wxVERTICAL );
68 sizer->Add(logoPanel, 0, wxALIGN_CENTRE_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 0);
70 this->SetSizer(sizer);
71 this->SetAutoLayout(true);
79 wxMaracasHelpDialog::wxMaracasHelpDialog(wxWindow* parent, int id, const char* title, const wxPoint& pos, const wxSize& size, long style):
80 wxDialog(parent, id, title, pos, size, style)
84 SetBackgroundColour(wxColour(0,0,153));
87 wxStaticText *text0 = new wxStaticText(this, -1,"");
88 wxStaticText *text1 = new wxStaticText(this, -1,"System created by");
89 wxStaticText *text2 = new wxStaticText(this, -1,"Research and Applications Center \n for Image and Signal Processing");
90 wxStaticText *text3 = new wxStaticText(this, -1,"www.creatis.insa-lyon.fr");
92 wxPanel *logoPanel = new wxPanel(this,-1);
93 logoPanel->SetBackgroundColour(wxColour(0,0,153));
94 wxStaticBitmap *logo = new wxStaticBitmap(logoPanel, -1, wxBITMAP( creatis_logo2 ),wxPoint(0,0));
95 wxBoxSizer *logoSizer = new wxBoxSizer(wxVERTICAL );
96 logoPanel->SetSize(logo->GetBitmap().GetWidth(),logo->GetBitmap().GetHeight());
98 logoPanel->SetSizer(logoSizer);
99 logoPanel->SetAutoLayout(true);
101 text0->SetForegroundColour(wxColour(255,255,255));
102 text1->SetForegroundColour(wxColour(255,255,255));
103 text2->SetForegroundColour(wxColour(255,255,255));
104 text3->SetForegroundColour(wxColour(255,255,255));
108 wxFont font1(12, wxDEFAULT , wxNORMAL, wxBOLD);
109 wxFont font2(11, wxDEFAULT , wxNORMAL, wxBOLD);
110 text0->SetFont( font1 );
111 text1->SetFont( font1 );
112 text2->SetFont( font1 );
113 text3->SetFont( font2 );
116 wxBoxSizer *sizer = new wxBoxSizer(wxVERTICAL );
117 sizer->Add(text0 , 0, wxALIGN_CENTRE_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 0);
118 sizer->Add(text0 , 0, wxALIGN_CENTRE_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 0);
119 sizer->Add(text0 , 0, wxALIGN_CENTRE_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 0);
120 sizer->Add(text1 , 0, wxALIGN_CENTRE_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 0);
121 sizer->Add(text0 , 0, wxALIGN_CENTRE_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 0);
122 sizer->Add(logoPanel, 0, wxALIGN_CENTRE_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 0);
123 sizer->Add(text0 , 0, wxALIGN_CENTRE_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 0);
124 sizer->Add(text0 , 0, wxALIGN_CENTRE_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 0);
125 sizer->Add(text2 , 0, wxALIGN_CENTRE_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 0);
126 sizer->Add(text0 , 0, wxALIGN_CENTRE_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 0);
127 sizer->Add(text0 , 0, wxALIGN_CENTRE_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 0);
128 sizer->Add(text0 , 0, wxALIGN_CENTRE_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 0);
129 sizer->Add(text3 , 0, wxALIGN_CENTRE_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 0);
130 sizer->Add(text0 , 0, wxALIGN_CENTRE_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 0);
131 sizer->Add(text0 , 0, wxALIGN_CENTRE_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 0);
133 this->SetSizer(sizer);
134 this->SetAutoLayout(true);
139 // staticBitmap1->SetFont(wxFont(12, wxSWISS, wxNORMAL, wxNORMAL, false, ""));
147 wxMaracasHelpDialog2::wxMaracasHelpDialog2(wxWindow* parent, int id, const char* title, const wxPoint& pos, const wxSize& size, long style):
148 wxDialog(parent, id, title, pos, size, style)
152 SetBackgroundColour(wxColour(0,0,153));
155 wxStaticText *text0 = new wxStaticText(this, -1,"");
156 wxStaticText *text1 = new wxStaticText(this, -1,"System created by");
157 wxStaticText *text2 = new wxStaticText(this, -1,"Research and Applications Center \n for Image and Signal Processing");
158 wxStaticText *text3 = new wxStaticText(this, -1,"CREATIS, UMR CNRS 5515, INSA 502, 69621 Villurbanne cedex, France");
159 wxStaticText *text4 = new wxStaticText(this, -1,"www.creatis.insa-lyon.fr");
161 authors="AUTHORS : Marcela Hernandez-Hoyos, Maciej Orkisz, Catherine Mansard,\n";
162 authors=authors+ " Alfred AnwanderBruno Neyran, Jean-Pierre Roux,Eric Boix, \n";
163 authors=authors+ " Isabelle E. Magnin, Phillippe Douek \n";
164 wxStaticText *text5 = new wxStaticText(this, -1,authors);
166 wxPanel *logoPanel = new wxPanel(this,-1);
167 logoPanel->SetBackgroundColour(wxColour(0,0,153));
168 wxStaticBitmap *logo = new wxStaticBitmap(logoPanel, -1, wxBITMAP( creatis_logo2 ),wxPoint(0,0));
169 wxBoxSizer *logoSizer = new wxBoxSizer(wxVERTICAL );
170 logoPanel->SetSize(logo->GetBitmap().GetWidth(),logo->GetBitmap().GetHeight());
171 logoSizer->Add(logo);
172 logoPanel->SetSizer(logoSizer);
173 logoPanel->SetAutoLayout(true);
175 text0->SetForegroundColour(wxColour(255,255,255));
176 text1->SetForegroundColour(wxColour(255,255,255));
177 text2->SetForegroundColour(wxColour(255,255,255));
178 text3->SetForegroundColour(wxColour(255,255,255));
179 text4->SetForegroundColour(wxColour(255,255,255));
180 text5->SetForegroundColour(wxColour(255,255,255));
184 wxFont font1(12, wxDEFAULT , wxNORMAL, wxBOLD);
185 wxFont font2(10, wxDEFAULT , wxNORMAL, wxBOLD);
186 wxFont font3(8, wxDEFAULT , wxNORMAL, wxBOLD);
187 text0->SetFont( font1 );
188 text1->SetFont( font1 );
189 text2->SetFont( font1 );
190 text3->SetFont( font2 );
191 text4->SetFont( font2 );
192 text5->SetFont( font3 );
194 wxBoxSizer *sizer = new wxBoxSizer(wxVERTICAL );
195 sizer->Add(text0 , 0, wxALIGN_CENTRE_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 0);
196 sizer->Add(text0 , 0, wxALIGN_CENTRE_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 0);
197 sizer->Add(text1 , 0, wxALIGN_CENTRE_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 0);
198 sizer->Add(text0 , 0, wxALIGN_CENTRE_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 0);
199 sizer->Add(logoPanel, 0, wxALIGN_CENTRE_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 0);
200 sizer->Add(text0 , 0, wxALIGN_CENTRE_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 0);
201 sizer->Add(text0 , 0, wxALIGN_CENTRE_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 0);
202 sizer->Add(text2 , 0, wxALIGN_CENTRE_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 0);
203 sizer->Add(text0 , 0, wxALIGN_CENTRE_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 0);
204 sizer->Add(text0 , 0, wxALIGN_CENTRE_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 0);
205 sizer->Add(text3 , 0, wxALIGN_CENTRE_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 0);
206 sizer->Add(text0 , 0, wxALIGN_CENTRE_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 0);
207 sizer->Add(text4 , 0, wxALIGN_CENTRE_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 0);
208 sizer->Add(text0 , 0, wxALIGN_CENTRE_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 0);
209 sizer->Add(text0 , 0, wxALIGN_CENTRE_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 0);
210 sizer->Add(text0 , 0, wxALIGN_CENTRE_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 0);
211 sizer->Add(text5 , 0, wxALIGN_CENTRE_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 0);
212 sizer->Add(text0 , 0, wxALIGN_CENTRE_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 0);
213 sizer->Add(text0 , 0, wxALIGN_CENTRE_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 0);
215 this->SetSizer(sizer);
216 this->SetAutoLayout(true);