]> Creatis software - creaMaracasVisu.git/blob - lib/maracasVisuLib/src/interface/wxWindows/wxMaracasHelpDialog.cxx
3b5951b83825825cafb35456cea4fd79eef4856c
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / wxMaracasHelpDialog.cxx
1 /*=========================================================================
2
3   Program:   wxMaracas
4   Module:    $RCSfile: wxMaracasHelpDialog.cxx,v $
5   Language:  C++
6   Date:      $Date: 2008/10/31 16:32:10 $
7   Version:   $Revision: 1.1 $
8
9   Copyright: (c) 2002, 2003
10   License:
11
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.
15
16 =========================================================================*/
17
18 #include "wxMaracasHelpDialog.h"
19
20 #if defined(__WXGTK__) || defined(__WXX11__) || defined(__WXMOTIF__) || defined(__WXMAC__)
21 #include "res/bitmaps/authors.xpm"
22 #endif
23
24
25
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)
28 {
29
30
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);
38         logoSizer->Add(logo);
39         logoPanel->SetSizer(logoSizer);
40         logoPanel->SetAutoLayout(true);
41
42         wxBoxSizer              *sizer          = new wxBoxSizer(wxVERTICAL );
43         sizer->Add(logoPanel,   0, wxALIGN_CENTRE_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 0);
44
45         this->SetSizer(sizer);
46         this->SetAutoLayout(true);
47         SetSize(wx,wy+20);
48         
49
50 }
51
52 /*
53
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)
56 {
57
58         SetSize(350,350);
59         SetBackgroundColour(wxColour(0,0,153));
60
61   
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");
66
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());
72         logoSizer->Add(logo);
73         logoPanel->SetSizer(logoSizer);
74         logoPanel->SetAutoLayout(true);
75
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));
80
81
82
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 );
89
90
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);
107
108         this->SetSizer(sizer);
109         this->SetAutoLayout(true);
110
111
112
113
114 //        staticBitmap1->SetFont(wxFont(12, wxSWISS, wxNORMAL, wxNORMAL, false, ""));
115 }
116
117
118
119
120
121
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)
124 {
125
126         SetSize(550,460);
127         SetBackgroundColour(wxColour(0,0,153));
128
129   
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");
135         wxString authors;
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);
140
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);
149
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));
156
157
158
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 );
168
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);
189
190         this->SetSizer(sizer);
191         this->SetAutoLayout(true);
192
193 }
194
195
196 */
197