1 /*=========================================================================
4 Module: $RCSfile: wxMaracasHelpDialog.cxx,v $
6 Date: $Date: 2009/05/14 13:54:54 $
7 Version: $Revision: 1.1 $
9 Copyright: (c) 2002, 2003
12 This software is distributed WITHOUT ANY WARRANTY; without even
13 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14 PURPOSE. See the above copyright notice for more information.
16 =========================================================================*/
18 #include "wxMaracasHelpDialog.h"
20 #if defined(__WXGTK__) || defined(__WXX11__) || defined(__WXMOTIF__) || defined(__WXMAC__)
21 #include "res/bitmaps/authors.xpm"
26 wxMaracasHelpDialog::wxMaracasHelpDialog(wxWindow* parent, int id, const char* title, const wxPoint& pos, const wxSize& size, long style):
27 wxDialog(parent, id, wxString(title, wxConvUTF8), pos, size, style)
31 wxPanel *logoPanel = new wxPanel(this,-1);
32 logoPanel->SetBackgroundColour(wxColour(0,0,153));
33 wxStaticBitmap *logo = new wxStaticBitmap(logoPanel, -1, wxBITMAP( authors ),wxPoint(0,0));
34 wxBoxSizer *logoSizer = new wxBoxSizer(wxVERTICAL );
35 int wx=logo->GetBitmap().GetWidth();
36 int wy=logo->GetBitmap().GetHeight();
37 logoPanel->SetSize(wx,wy);
39 logoPanel->SetSizer(logoSizer);
40 logoPanel->SetAutoLayout(true);
42 wxBoxSizer *sizer = new wxBoxSizer(wxVERTICAL );
43 sizer->Add(logoPanel, 0, wxALIGN_CENTRE_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 0);
45 this->SetSizer(sizer);
46 this->SetAutoLayout(true);
54 wxMaracasHelpDialog::wxMaracasHelpDialog(wxWindow* parent, int id, const char* title, const wxPoint& pos, const wxSize& size, long style):
55 wxDialog(parent, id, title, pos, size, style)
59 SetBackgroundColour(wxColour(0,0,153));
62 wxStaticText *text0 = new wxStaticText(this, -1,"");
63 wxStaticText *text1 = new wxStaticText(this, -1,"System created by");
64 wxStaticText *text2 = new wxStaticText(this, -1,"Research and Applications Center \n for Image and Signal Processing");
65 wxStaticText *text3 = new wxStaticText(this, -1,"www.creatis.insa-lyon.fr");
67 wxPanel *logoPanel = new wxPanel(this,-1);
68 logoPanel->SetBackgroundColour(wxColour(0,0,153));
69 wxStaticBitmap *logo = new wxStaticBitmap(logoPanel, -1, wxBITMAP( creatis_logo2 ),wxPoint(0,0));
70 wxBoxSizer *logoSizer = new wxBoxSizer(wxVERTICAL );
71 logoPanel->SetSize(logo->GetBitmap().GetWidth(),logo->GetBitmap().GetHeight());
73 logoPanel->SetSizer(logoSizer);
74 logoPanel->SetAutoLayout(true);
76 text0->SetForegroundColour(wxColour(255,255,255));
77 text1->SetForegroundColour(wxColour(255,255,255));
78 text2->SetForegroundColour(wxColour(255,255,255));
79 text3->SetForegroundColour(wxColour(255,255,255));
83 wxFont font1(12, wxDEFAULT , wxNORMAL, wxBOLD);
84 wxFont font2(11, wxDEFAULT , wxNORMAL, wxBOLD);
85 text0->SetFont( font1 );
86 text1->SetFont( font1 );
87 text2->SetFont( font1 );
88 text3->SetFont( font2 );
91 wxBoxSizer *sizer = new wxBoxSizer(wxVERTICAL );
92 sizer->Add(text0 , 0, wxALIGN_CENTRE_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 0);
93 sizer->Add(text0 , 0, wxALIGN_CENTRE_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 0);
94 sizer->Add(text0 , 0, wxALIGN_CENTRE_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 0);
95 sizer->Add(text1 , 0, wxALIGN_CENTRE_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 0);
96 sizer->Add(text0 , 0, wxALIGN_CENTRE_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 0);
97 sizer->Add(logoPanel, 0, wxALIGN_CENTRE_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 0);
98 sizer->Add(text0 , 0, wxALIGN_CENTRE_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 0);
99 sizer->Add(text0 , 0, wxALIGN_CENTRE_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 0);
100 sizer->Add(text2 , 0, wxALIGN_CENTRE_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 0);
101 sizer->Add(text0 , 0, wxALIGN_CENTRE_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 0);
102 sizer->Add(text0 , 0, wxALIGN_CENTRE_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 0);
103 sizer->Add(text0 , 0, wxALIGN_CENTRE_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 0);
104 sizer->Add(text3 , 0, wxALIGN_CENTRE_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 0);
105 sizer->Add(text0 , 0, wxALIGN_CENTRE_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 0);
106 sizer->Add(text0 , 0, wxALIGN_CENTRE_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 0);
108 this->SetSizer(sizer);
109 this->SetAutoLayout(true);
114 // staticBitmap1->SetFont(wxFont(12, wxSWISS, wxNORMAL, wxNORMAL, false, ""));
122 wxMaracasHelpDialog2::wxMaracasHelpDialog2(wxWindow* parent, int id, const char* title, const wxPoint& pos, const wxSize& size, long style):
123 wxDialog(parent, id, title, pos, size, style)
127 SetBackgroundColour(wxColour(0,0,153));
130 wxStaticText *text0 = new wxStaticText(this, -1,"");
131 wxStaticText *text1 = new wxStaticText(this, -1,"System created by");
132 wxStaticText *text2 = new wxStaticText(this, -1,"Research and Applications Center \n for Image and Signal Processing");
133 wxStaticText *text3 = new wxStaticText(this, -1,"CREATIS, UMR CNRS 5515, INSA 502, 69621 Villurbanne cedex, France");
134 wxStaticText *text4 = new wxStaticText(this, -1,"www.creatis.insa-lyon.fr");
136 authors="AUTHORS : Marcela Hernandez-Hoyos, Maciej Orkisz, Catherine Mansard,\n";
137 authors=authors+ " Alfred AnwanderBruno Neyran, Jean-Pierre Roux,Eric Boix, \n";
138 authors=authors+ " Isabelle E. Magnin, Phillippe Douek \n";
139 wxStaticText *text5 = new wxStaticText(this, -1,authors);
141 wxPanel *logoPanel = new wxPanel(this,-1);
142 logoPanel->SetBackgroundColour(wxColour(0,0,153));
143 wxStaticBitmap *logo = new wxStaticBitmap(logoPanel, -1, wxBITMAP( creatis_logo2 ),wxPoint(0,0));
144 wxBoxSizer *logoSizer = new wxBoxSizer(wxVERTICAL );
145 logoPanel->SetSize(logo->GetBitmap().GetWidth(),logo->GetBitmap().GetHeight());
146 logoSizer->Add(logo);
147 logoPanel->SetSizer(logoSizer);
148 logoPanel->SetAutoLayout(true);
150 text0->SetForegroundColour(wxColour(255,255,255));
151 text1->SetForegroundColour(wxColour(255,255,255));
152 text2->SetForegroundColour(wxColour(255,255,255));
153 text3->SetForegroundColour(wxColour(255,255,255));
154 text4->SetForegroundColour(wxColour(255,255,255));
155 text5->SetForegroundColour(wxColour(255,255,255));
159 wxFont font1(12, wxDEFAULT , wxNORMAL, wxBOLD);
160 wxFont font2(10, wxDEFAULT , wxNORMAL, wxBOLD);
161 wxFont font3(8, wxDEFAULT , wxNORMAL, wxBOLD);
162 text0->SetFont( font1 );
163 text1->SetFont( font1 );
164 text2->SetFont( font1 );
165 text3->SetFont( font2 );
166 text4->SetFont( font2 );
167 text5->SetFont( font3 );
169 wxBoxSizer *sizer = new wxBoxSizer(wxVERTICAL );
170 sizer->Add(text0 , 0, wxALIGN_CENTRE_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 0);
171 sizer->Add(text0 , 0, wxALIGN_CENTRE_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 0);
172 sizer->Add(text1 , 0, wxALIGN_CENTRE_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 0);
173 sizer->Add(text0 , 0, wxALIGN_CENTRE_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 0);
174 sizer->Add(logoPanel, 0, wxALIGN_CENTRE_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 0);
175 sizer->Add(text0 , 0, wxALIGN_CENTRE_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 0);
176 sizer->Add(text0 , 0, wxALIGN_CENTRE_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 0);
177 sizer->Add(text2 , 0, wxALIGN_CENTRE_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 0);
178 sizer->Add(text0 , 0, wxALIGN_CENTRE_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 0);
179 sizer->Add(text0 , 0, wxALIGN_CENTRE_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 0);
180 sizer->Add(text3 , 0, wxALIGN_CENTRE_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 0);
181 sizer->Add(text0 , 0, wxALIGN_CENTRE_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 0);
182 sizer->Add(text4 , 0, wxALIGN_CENTRE_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 0);
183 sizer->Add(text0 , 0, wxALIGN_CENTRE_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 0);
184 sizer->Add(text0 , 0, wxALIGN_CENTRE_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 0);
185 sizer->Add(text0 , 0, wxALIGN_CENTRE_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 0);
186 sizer->Add(text5 , 0, wxALIGN_CENTRE_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 0);
187 sizer->Add(text0 , 0, wxALIGN_CENTRE_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 0);
188 sizer->Add(text0 , 0, wxALIGN_CENTRE_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 0);
190 this->SetSizer(sizer);
191 this->SetAutoLayout(true);