Exemplo n.º 1
0
void InfoDialog::CreateControls()
{    
////@begin InfoDialog content construction
    // Generated by DialogBlocks, 02/10/2007 16:48:06 (unregistered)

    InfoDialog* itemDialog1 = this;

    wxBoxSizer* itemBoxSizer2 = new wxBoxSizer(wxHORIZONTAL);
    itemDialog1->SetSizer(itemBoxSizer2);

    m_left_panel = new wxPanel( itemDialog1, ID_PANEL2, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
    m_left_panel->SetBackgroundColour(wxColour(255, 255, 255));
    itemBoxSizer2->Add(m_left_panel, 1, wxGROW|wxALL, 5);

    wxBoxSizer* itemBoxSizer4 = new wxBoxSizer(wxHORIZONTAL);
    m_left_panel->SetSizer(itemBoxSizer4);

    m_left_sizer = new wxBoxSizer(wxVERTICAL);
    itemBoxSizer4->Add(m_left_sizer, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

    wxBitmap itemStaticBitmap6Bitmap(itemDialog1->GetBitmapResource(AppSettings::get_default_img_path()+wxT("caen.png")));
    wxStaticBitmap* itemStaticBitmap6 = new wxStaticBitmap( m_left_panel, wxID_STATIC, itemStaticBitmap6Bitmap, wxDefaultPosition, wxSize(195, 62), 0 );
    m_left_sizer->Add(itemStaticBitmap6, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);

    wxBoxSizer* itemBoxSizer7 = new wxBoxSizer(wxVERTICAL);
    itemBoxSizer4->Add(itemBoxSizer7, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

    wxStaticText* itemStaticText8 = new wxStaticText( m_left_panel, wxID_STATIC, _("CAENPLLConfig"), wxDefaultPosition, wxSize(150, -1), 0 );
    itemStaticText8->SetForegroundColour(wxColour(0, 0, 160));
    itemStaticText8->SetFont(wxFont(12, wxSWISS, wxITALIC, wxBOLD, false, _T("Tahoma")));
    itemBoxSizer7->Add(itemStaticText8, 1, wxALIGN_LEFT|wxALL|wxADJUST_MINSIZE, 5);

    wxStaticText* itemStaticText9 = new wxStaticText( m_left_panel, wxID_STATIC, _("CAEN ADC PLL configuration tool"), wxDefaultPosition, wxDefaultSize, 0 );
    itemStaticText9->SetForegroundColour(wxColour(0, 0, 160));
    itemStaticText9->SetFont(wxFont(8, wxSWISS, wxNORMAL, wxBOLD, false, _T("Tahoma")));
    itemBoxSizer7->Add(itemStaticText9, 0, wxALIGN_LEFT|wxLEFT|wxRIGHT|wxBOTTOM|wxADJUST_MINSIZE, 5);

    wxStaticText* itemStaticText10 = new wxStaticText( m_left_panel, wxID_STATIC, _("CAENPLLConfig Rev. 2.0.0"), wxDefaultPosition, wxDefaultSize, 0 );
    itemBoxSizer7->Add(itemStaticText10, 0, wxALIGN_LEFT|wxALL|wxADJUST_MINSIZE, 2);

    wxPanel* itemPanel11 = new wxPanel( itemDialog1, ID_PANEL1, wxDefaultPosition, wxDefaultSize, wxSIMPLE_BORDER|wxTAB_TRAVERSAL );
    itemPanel11->SetBackgroundColour(wxColour(192, 192, 192));
    itemBoxSizer2->Add(itemPanel11, 0, wxGROW|wxALL, 5);

    wxBoxSizer* itemBoxSizer12 = new wxBoxSizer(wxVERTICAL);
    itemPanel11->SetSizer(itemBoxSizer12);

    wxButton* itemButton13 = new wxButton( itemPanel11, ID_OK_BUTTON, _("Ok"), wxDefaultPosition, wxDefaultSize, 0 );
    itemButton13->SetDefault();
    itemButton13->SetHelpText(_("Close this windows"));
    if (ShowToolTips())
        itemButton13->SetToolTip(_("Close this windows"));
    itemButton13->SetFont(wxFont(8, wxSWISS, wxNORMAL, wxBOLD, false, _T("Tahoma")));
    itemBoxSizer12->Add(itemButton13, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);

////@end InfoDialog content construction
    wxHyperlinkCtrl *hyper_link= new wxHyperlinkCtrl( m_left_panel, ID_HYPERLINK, _("www.caen.it"));
    hyper_link->SetBackgroundColour(wxColour(255, 255, 255));
    hyper_link->SetLinkCursor();
    hyper_link->SetURL( _("http://www.caen.it"));
    hyper_link->SetToolTip( wxT("Goto caen web site") );
    hyper_link->AutoBrowse( true);
    hyper_link->UpdateLink();
    this->m_left_sizer->Add( hyper_link, 1, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);

}
Exemplo n.º 2
0
void InfoDialog::CreateControls()
{    
////@begin InfoDialog content construction
    // Generated by DialogBlocks, 10/01/2007 12:39:28 (unregistered)

    InfoDialog* itemDialog1 = this;

    wxBoxSizer* itemBoxSizer2 = new wxBoxSizer(wxHORIZONTAL);
    itemDialog1->SetSizer(itemBoxSizer2);

    m_left_panel = new wxPanel( itemDialog1, ID_PANEL2, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
    m_left_panel->SetBackgroundColour(wxColour(255, 255, 255));
    itemBoxSizer2->Add(m_left_panel, 1, wxGROW|wxALL, 5);

    wxBoxSizer* itemBoxSizer4 = new wxBoxSizer(wxHORIZONTAL);
    m_left_panel->SetSizer(itemBoxSizer4);

    m_left_sizer = new wxBoxSizer(wxVERTICAL);
    itemBoxSizer4->Add(m_left_sizer, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

    wxBitmap itemStaticBitmap6Bitmap(itemDialog1->GetBitmapResource(wxT("caen.png")));
    wxStaticBitmap* itemStaticBitmap6 = new wxStaticBitmap( m_left_panel, wxID_STATIC, itemStaticBitmap6Bitmap, wxDefaultPosition, wxSize(195, 62), 0 );
    m_left_sizer->Add(itemStaticBitmap6, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);

    wxBoxSizer* itemBoxSizer7 = new wxBoxSizer(wxVERTICAL);
    itemBoxSizer4->Add(itemBoxSizer7, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

    wxStaticText* itemStaticText8 = new wxStaticText( m_left_panel, wxID_STATIC, _("CAEN Scope"), wxDefaultPosition, wxSize(150, -1), 0 );
    itemStaticText8->SetForegroundColour(wxColour(0, 0, 160));
    itemStaticText8->SetFont(wxFont(12, wxSWISS, wxITALIC, wxBOLD, false, _T("Tahoma")));
    itemBoxSizer7->Add(itemStaticText8, 1, wxALIGN_LEFT|wxALL|wxADJUST_MINSIZE, 5);

    wxStaticText* itemStaticText9 = new wxStaticText( m_left_panel, wxID_STATIC, _("CAENdigitizerSDK usage demo software"), wxDefaultPosition, wxDefaultSize, 0 );
    itemStaticText9->SetForegroundColour(wxColour(0, 0, 160));
    itemStaticText9->SetFont(wxFont(8, wxSWISS, wxNORMAL, wxBOLD, false, _T("Tahoma")));
    itemBoxSizer7->Add(itemStaticText9, 0, wxALIGN_LEFT|wxLEFT|wxRIGHT|wxBOTTOM|wxADJUST_MINSIZE, 5);

    wxStaticText* itemStaticText10 = new wxStaticText( m_left_panel, wxID_STATIC, _("CAENSCOPE Rev. 1.5.1"), wxDefaultPosition, wxDefaultSize, 0 );
    itemBoxSizer7->Add(itemStaticText10, 0, wxALIGN_LEFT|wxALL|wxADJUST_MINSIZE, 2);

    m_caenvmetool_rev = new wxStaticText( m_left_panel, wxID_STATIC, _("CAENdigitizerSDK Rev ????"), wxDefaultPosition, wxDefaultSize, 0 );
    itemBoxSizer7->Add(m_caenvmetool_rev, 0, wxALIGN_LEFT|wxALL|wxADJUST_MINSIZE, 2);

    wxPanel* itemPanel12 = new wxPanel( itemDialog1, ID_PANEL1, wxDefaultPosition, wxDefaultSize, wxSIMPLE_BORDER|wxTAB_TRAVERSAL );
    itemPanel12->SetBackgroundColour(wxColour(192, 192, 192));
    itemBoxSizer2->Add(itemPanel12, 0, wxGROW|wxALL, 5);

    wxBoxSizer* itemBoxSizer13 = new wxBoxSizer(wxVERTICAL);
    itemPanel12->SetSizer(itemBoxSizer13);

    wxButton* itemButton14 = new wxButton( itemPanel12, ID_OK_BUTTON, _("Ok"), wxDefaultPosition, wxDefaultSize, 0 );
    itemButton14->SetDefault();
    itemButton14->SetHelpText(_("Close this windows"));
    if (ShowToolTips())
        itemButton14->SetToolTip(_("Close this windows"));
    itemButton14->SetFont(wxFont(8, wxSWISS, wxNORMAL, wxBOLD, false, _T("Tahoma")));
    itemBoxSizer13->Add(itemButton14, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);

////@end InfoDialog content construction
	wxHyperlinkCtrl *hyper_link= new wxHyperlinkCtrl( m_left_panel, ID_HYPERLINK, _("www.caen.it"));
	hyper_link->SetBackgroundColour(wxColour(255, 255, 255));
	hyper_link->SetLinkCursor();
	hyper_link->SetURL( _("http://www.caen.it"));
	hyper_link->SetToolTip( wxT("Goto caen web site") );
	hyper_link->AutoBrowse( true);
	hyper_link->UpdateLink();
	this->m_left_sizer->Add( hyper_link, 1, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);

	// CAENVMETool revision
	this->m_caenvmetool_rev->SetLabel( wxString::FromAscii(cvt_V1724_SW_rev()) );

}