wxMaracasHelpDialog.cxx

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   wxMaracas
00004   Module:    $RCSfile: wxMaracasHelpDialog.cxx,v $
00005   Language:  C++
00006   Date:      $Date: 2009/05/14 13:54:54 $
00007   Version:   $Revision: 1.1 $
00008 
00009   Copyright: (c) 2002, 2003
00010   License:
00011 
00012      This software is distributed WITHOUT ANY WARRANTY; without even
00013      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00014      PURPOSE.  See the above copyright notice for more information.
00015 
00016 =========================================================================*/
00017 
00018 #include "wxMaracasHelpDialog.h"
00019 
00020 #if defined(__WXGTK__) || defined(__WXX11__) || defined(__WXMOTIF__) || defined(__WXMAC__)
00021 #include "res/bitmaps/authors.xpm"
00022 #endif
00023 
00024 
00025 
00026 wxMaracasHelpDialog::wxMaracasHelpDialog(wxWindow* parent, int id, const char* title, const wxPoint& pos, const wxSize& size, long style):
00027     wxDialog(parent, id, wxString(title, wxConvUTF8), pos, size, style)
00028 {
00029 
00030 
00031         wxPanel                 *logoPanel      = new wxPanel(this,-1);
00032         logoPanel->SetBackgroundColour(wxColour(0,0,153));
00033     wxStaticBitmap      *logo           = new wxStaticBitmap(logoPanel, -1, wxBITMAP( authors ),wxPoint(0,0));
00034         wxBoxSizer              *logoSizer      = new wxBoxSizer(wxVERTICAL );
00035         int wx=logo->GetBitmap().GetWidth();
00036         int wy=logo->GetBitmap().GetHeight();
00037         logoPanel->SetSize(wx,wy);
00038         logoSizer->Add(logo);
00039         logoPanel->SetSizer(logoSizer);
00040         logoPanel->SetAutoLayout(true);
00041 
00042         wxBoxSizer              *sizer          = new wxBoxSizer(wxVERTICAL );
00043         sizer->Add(logoPanel,   0, wxALIGN_CENTRE_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 0);
00044 
00045         this->SetSizer(sizer);
00046         this->SetAutoLayout(true);
00047         SetSize(wx,wy+20);
00048         
00049 
00050 }
00051 
00052 /*
00053 
00054 wxMaracasHelpDialog::wxMaracasHelpDialog(wxWindow* parent, int id, const char* title, const wxPoint& pos, const wxSize& size, long style):
00055     wxDialog(parent, id, title, pos, size, style)
00056 {
00057 
00058         SetSize(350,350);
00059         SetBackgroundColour(wxColour(0,0,153));
00060 
00061   
00062         wxStaticText    *text0          = new wxStaticText(this, -1,"");
00063         wxStaticText    *text1          = new wxStaticText(this, -1,"System created by");
00064         wxStaticText    *text2          = new wxStaticText(this, -1,"Research and Applications Center \n for Image and Signal Processing");
00065         wxStaticText    *text3          = new wxStaticText(this, -1,"www.creatis.insa-lyon.fr");
00066 
00067         wxPanel                 *logoPanel      = new wxPanel(this,-1);
00068         logoPanel->SetBackgroundColour(wxColour(0,0,153));
00069     wxStaticBitmap      *logo           = new wxStaticBitmap(logoPanel, -1, wxBITMAP( creatis_logo2 ),wxPoint(0,0));
00070         wxBoxSizer              *logoSizer              = new wxBoxSizer(wxVERTICAL );
00071         logoPanel->SetSize(logo->GetBitmap().GetWidth(),logo->GetBitmap().GetHeight());
00072         logoSizer->Add(logo);
00073         logoPanel->SetSizer(logoSizer);
00074         logoPanel->SetAutoLayout(true);
00075 
00076         text0->SetForegroundColour(wxColour(255,255,255));
00077         text1->SetForegroundColour(wxColour(255,255,255));
00078         text2->SetForegroundColour(wxColour(255,255,255));
00079         text3->SetForegroundColour(wxColour(255,255,255));
00080 
00081 
00082 
00083         wxFont font1(12, wxDEFAULT    , wxNORMAL, wxBOLD);
00084         wxFont font2(11, wxDEFAULT    , wxNORMAL, wxBOLD);
00085         text0->SetFont( font1 );
00086         text1->SetFont( font1 );
00087         text2->SetFont( font1 );
00088         text3->SetFont( font2 );
00089 
00090 
00091         wxBoxSizer              *sizer          = new wxBoxSizer(wxVERTICAL );
00092         sizer->Add(text0        ,       0, wxALIGN_CENTRE_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 0);
00093         sizer->Add(text0        ,       0, wxALIGN_CENTRE_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 0);
00094         sizer->Add(text0        ,       0, wxALIGN_CENTRE_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 0);
00095         sizer->Add(text1        ,       0, wxALIGN_CENTRE_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 0);
00096         sizer->Add(text0        ,       0, wxALIGN_CENTRE_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 0);
00097         sizer->Add(logoPanel,   0, wxALIGN_CENTRE_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 0);
00098         sizer->Add(text0        ,       0, wxALIGN_CENTRE_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 0);
00099         sizer->Add(text0        ,       0, wxALIGN_CENTRE_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 0);
00100         sizer->Add(text2        ,       0, wxALIGN_CENTRE_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 0);
00101         sizer->Add(text0        ,       0, wxALIGN_CENTRE_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 0);
00102         sizer->Add(text0        ,       0, wxALIGN_CENTRE_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 0);
00103         sizer->Add(text0        ,       0, wxALIGN_CENTRE_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 0);
00104         sizer->Add(text3        ,       0, wxALIGN_CENTRE_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 0);
00105         sizer->Add(text0        ,       0, wxALIGN_CENTRE_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 0);
00106         sizer->Add(text0        ,       0, wxALIGN_CENTRE_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 0);
00107 
00108         this->SetSizer(sizer);
00109         this->SetAutoLayout(true);
00110 
00111 
00112 
00113 
00114 //        staticBitmap1->SetFont(wxFont(12, wxSWISS, wxNORMAL, wxNORMAL, false, ""));
00115 }
00116 
00117 
00118 
00119 
00120 
00121 
00122 wxMaracasHelpDialog2::wxMaracasHelpDialog2(wxWindow* parent, int id, const char* title, const wxPoint& pos, const wxSize& size, long style):
00123     wxDialog(parent, id, title, pos, size, style)
00124 {
00125 
00126         SetSize(550,460);
00127         SetBackgroundColour(wxColour(0,0,153));
00128 
00129   
00130         wxStaticText    *text0          = new wxStaticText(this, -1,"");
00131         wxStaticText    *text1          = new wxStaticText(this, -1,"System created by");
00132         wxStaticText    *text2          = new wxStaticText(this, -1,"Research and Applications Center \n for Image and Signal Processing");
00133         wxStaticText    *text3          = new wxStaticText(this, -1,"CREATIS, UMR CNRS 5515, INSA 502, 69621 Villurbanne cedex, France");
00134         wxStaticText    *text4  = new wxStaticText(this, -1,"www.creatis.insa-lyon.fr");
00135         wxString authors;
00136         authors="AUTHORS : Marcela Hernandez-Hoyos, Maciej Orkisz, Catherine Mansard,\n";
00137         authors=authors+ "                   Alfred AnwanderBruno Neyran, Jean-Pierre Roux,Eric Boix,  \n";
00138         authors=authors+ "                   Isabelle E. Magnin, Phillippe Douek \n";
00139         wxStaticText    *text5          = new wxStaticText(this, -1,authors);
00140 
00141         wxPanel                 *logoPanel      = new wxPanel(this,-1);
00142         logoPanel->SetBackgroundColour(wxColour(0,0,153));
00143     wxStaticBitmap      *logo           = new wxStaticBitmap(logoPanel, -1, wxBITMAP( creatis_logo2 ),wxPoint(0,0));
00144         wxBoxSizer              *logoSizer              = new wxBoxSizer(wxVERTICAL );
00145         logoPanel->SetSize(logo->GetBitmap().GetWidth(),logo->GetBitmap().GetHeight());
00146         logoSizer->Add(logo);
00147         logoPanel->SetSizer(logoSizer);
00148         logoPanel->SetAutoLayout(true);
00149 
00150         text0->SetForegroundColour(wxColour(255,255,255));
00151         text1->SetForegroundColour(wxColour(255,255,255));
00152         text2->SetForegroundColour(wxColour(255,255,255));
00153         text3->SetForegroundColour(wxColour(255,255,255));
00154         text4->SetForegroundColour(wxColour(255,255,255));
00155         text5->SetForegroundColour(wxColour(255,255,255));
00156 
00157 
00158 
00159         wxFont font1(12, wxDEFAULT    , wxNORMAL, wxBOLD);
00160         wxFont font2(10, wxDEFAULT    , wxNORMAL, wxBOLD);
00161         wxFont font3(8, wxDEFAULT    , wxNORMAL, wxBOLD);
00162         text0->SetFont( font1 );
00163         text1->SetFont( font1 );
00164         text2->SetFont( font1 );
00165         text3->SetFont( font2 );
00166         text4->SetFont( font2 );
00167         text5->SetFont( font3 );
00168 
00169         wxBoxSizer              *sizer          = new wxBoxSizer(wxVERTICAL );
00170         sizer->Add(text0        ,       0, wxALIGN_CENTRE_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 0);
00171         sizer->Add(text0        ,       0, wxALIGN_CENTRE_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 0);
00172         sizer->Add(text1        ,       0, wxALIGN_CENTRE_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 0);
00173         sizer->Add(text0        ,       0, wxALIGN_CENTRE_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 0);
00174         sizer->Add(logoPanel,   0, wxALIGN_CENTRE_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 0);
00175         sizer->Add(text0        ,       0, wxALIGN_CENTRE_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 0);
00176         sizer->Add(text0        ,       0, wxALIGN_CENTRE_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 0);
00177         sizer->Add(text2        ,       0, wxALIGN_CENTRE_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 0);
00178         sizer->Add(text0        ,       0, wxALIGN_CENTRE_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 0);
00179         sizer->Add(text0        ,       0, wxALIGN_CENTRE_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 0);
00180         sizer->Add(text3        ,       0, wxALIGN_CENTRE_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 0);
00181         sizer->Add(text0        ,       0, wxALIGN_CENTRE_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 0);
00182         sizer->Add(text4        ,       0, wxALIGN_CENTRE_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 0);
00183         sizer->Add(text0        ,       0, wxALIGN_CENTRE_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 0);
00184         sizer->Add(text0        ,       0, wxALIGN_CENTRE_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 0);
00185         sizer->Add(text0        ,       0, wxALIGN_CENTRE_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 0);
00186         sizer->Add(text5        ,       0, wxALIGN_CENTRE_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 0);
00187         sizer->Add(text0        ,       0, wxALIGN_CENTRE_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 0);
00188         sizer->Add(text0        ,       0, wxALIGN_CENTRE_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 0);
00189 
00190         this->SetSizer(sizer);
00191         this->SetAutoLayout(true);
00192 
00193 }
00194 
00195 
00196 */
00197 

Generated on 18 Mar 2010 for creaMaracasVisu_lib by  doxygen 1.6.1