コード例 #1
0
void ConnectWizard::VwXinit()
{
 SetTitle(wxT("Multicrew Connection Wizard"));
 startPage=new wxWizardPageSimple(this);
   startPage->SetSize(139,12,318,250);
   FitToPage(startPage);
 hostPage=new wxWizardPageSimple(this);
   hostPage->SetSize(134,12,328,250);
   FitToPage(hostPage);
 st33=new wxStaticText(startPage,-1,wxT(""),wxPoint(0,0),wxSize(320,255),wxST_NO_AUTORESIZE);
   st33->SetLabel(wxT("You are going to connect to a Multicrew session. The remote computer must host a session with exactly the same aircraft. \r\n\r\nIf you use a network router or a firewall software you have to forward or open the used UDP port. Otherwise the data of the host can not reach your Multicrew aircraft. The same is true for the remote computer and your data packets. If the owner of the remote computer doesn't open and/or forward the used UDP port your packets cannot reach his Multicrew session."));
 st34=new wxStaticText(hostPage,-1,wxT(""),wxPoint(5,0),wxSize(325,68),wxST_NO_AUTORESIZE);
   st34->SetLabel(wxT("Search for games in the local network or enter a specific address. This can be a raw IP address (e.g. 192.168.0.7) or a fully qualified hostname with domain (e.g. multicrew.homeip.net). The port number normally does not to be changed. It must match though with the port that the host uses."));
 hostName=new wxTextCtrl(hostPage,-1,wxT(""),wxPoint(150,136),wxSize(160,21));
   hostName->Enable(false);
   hostName->SetLabel(wxT("Text"));
 port=new wxTextCtrl(hostPage,-1,wxT(""),wxPoint(150,160),wxSize(45,21));
   port->Enable(false);
   port->SetLabel(wxT("Text"));
 hostNameStatic=new wxStaticText(hostPage,-1,wxT(""),wxPoint(10,140),wxSize(135,13),wxST_NO_AUTORESIZE);
   hostNameStatic->Enable(false);
   hostNameStatic->SetLabel(wxT("Hostname or IP address:"));
 st38=new wxStaticText(hostPage,-1,wxT(""),wxPoint(10,164),wxSize(45,13),wxST_NO_AUTORESIZE);
   st38->Enable(false);
   st38->SetLabel(wxT("Port:"));
 sessionlistPage=new wxWizardPageSimple(this);
   sessionlistPage->SetSize(129,12,328,250);
   FitToPage(sessionlistPage);
 sessions=new wxListBox(sessionlistPage,-1,wxPoint(0,15),wxSize(320,93),0,NULL);
 st41=new wxStaticText(sessionlistPage,-1,wxT(""),wxPoint(0,0),wxSize(115,13),wxST_NO_AUTORESIZE);
   st41->SetLabel(wxT("Found sessions:"));
 lno46=new wxStaticLine(sessionlistPage,-1,wxPoint(0,120),wxSize(315,2));
 broadcastRadio=new wxRadioButton(hostPage,-1,wxT(""),wxPoint(10,100),wxSize(298,13));
   broadcastRadio->SetValue(true);
   broadcastRadio->SetTitle(wxT("Search for games in the local network"));
 directRadio=new wxRadioButton(hostPage,-1,wxT(""),wxPoint(10,120),wxSize(298,13));
   directRadio->SetTitle(wxT("Connect with specific host"));

 startPage->SetPrev(NULL);startPage->SetNext(hostPage);
 hostPage->SetPrev(startPage);hostPage->SetNext(sessionlistPage);
 sessionlistPage->SetPrev(hostPage);sessionlistPage->SetNext(NULL);
 Refresh();
}
コード例 #2
0
ファイル: lenmus_midi_wizard.cpp プロジェクト: gouchi/lenmus
//---------------------------------------------------------------------------------------
void MidiWizard::CreateControls()
{
    WizardDevicesPage* itemWizardPageSimple2 = LENMUS_NEW WizardDevicesPage(m_appScope, this);

    FitToPage(itemWizardPageSimple2);
    WizardInstrumentsPage* itemWizardPageSimple16 = LENMUS_NEW WizardInstrumentsPage(m_appScope, this);

    FitToPage(itemWizardPageSimple16);
    m_pMtrChannelCombo = LENMUS_NEW WizardMetronomePage(m_appScope, this);

    FitToPage(m_pMtrChannelCombo);
    wxWizardPageSimple* lastPage = NULL;
    if (lastPage)
        wxWizardPageSimple::Chain(lastPage, itemWizardPageSimple2);
    lastPage = itemWizardPageSimple2;
    if (lastPage)
        wxWizardPageSimple::Chain(lastPage, itemWizardPageSimple16);
    lastPage = itemWizardPageSimple16;
    if (lastPage)
        wxWizardPageSimple::Chain(lastPage, m_pMtrChannelCombo);
    lastPage = m_pMtrChannelCombo;
}
コード例 #3
0
void HostWizard::VwXinit() {
    SetTitle(wxT("Multicrew Session Wizard"));
    startPage=new wxWizardPageSimple(this);
    startPage->SetSize(0,0,20,20);
    FitToPage(startPage);
    st4=new wxStaticText(startPage,-1,wxT(""),wxPoint(0,0),wxSize(315,260),wxST_NO_AUTORESIZE);
    st4->SetLabel(wxT("You are going to host a Multicrew session. Remote computers will be able to join your Multicrew game if they own exactly the same aircraft. Make sure to use a password if you don't want that unknown people connect to your session.\r\n\r\nIf you use a network router or a firewall software you have to forward or open the used UDP port. Otherwise the data of the remote computers can not reach your Multicrew aircraft. The same is true for the remote computers and your data packets. If the owner of the remote computers don't open and/or forward the used UDP port your packets cannot reach their Multicrew aircrafts."));
    sessionPage=new wxWizardPageSimple(this);
    sessionPage->SetSize(139,12,318,260);
    FitToPage(sessionPage);
    st6=new wxStaticText(sessionPage,-1,wxT(""),wxPoint(0,0),wxSize(315,63),wxST_NO_AUTORESIZE);
    st6->SetLabel(wxT("Enter the data of your Multicrew session. Without a password every user who owns exactly the same aircraft can connect to your session. Remote users will see the session name to identify your aircraft."));
    portEdit=new wxTextCtrl(sessionPage,-1,wxT(""),wxPoint(100,166),wxSize(55,21));
    portEdit->SetLabel(wxT("1234"));
    st8=new wxStaticText(sessionPage,-1,wxT(""),wxPoint(0,170),wxSize(45,13),wxST_NO_AUTORESIZE);
    st8->SetLabel(wxT("Port:"));
    providersCombo=new wxComboBox(sessionPage,-1,wxT(""),wxPoint(100,135),wxSize(215,21),0,NULL);
    providersCombo->Enable(false);
    st10=new wxStaticText(sessionPage,-1,wxT(""),wxPoint(0,136),wxSize(90,18),wxST_NO_AUTORESIZE);
    st10->Enable(false);
    st10->SetLabel(wxT("Service provider:"));
    st11=new wxStaticText(sessionPage,-1,wxT(""),wxPoint(0,110),wxSize(85,13),wxST_NO_AUTORESIZE);
    st11->SetLabel(wxT("Session name:"));
    sessionNameEdit=new wxTextCtrl(sessionPage,-1,wxT(""),wxPoint(100,105),wxSize(215,21));
    sessionNameEdit->SetLabel(wxT("Multicrew Session"));
    st13=new wxStaticText(sessionPage,-1,wxT(""),wxPoint(0,230),wxSize(85,13),wxST_NO_AUTORESIZE);
    st13->SetLabel(wxT("Password:"******""),wxPoint(125,225),wxSize(190,21));
    passwordEdit->Enable(false);
    passwordEnabledCheck=new wxCheckBox(sessionPage,-1,wxT(""),wxPoint(105,230),wxSize(18,13));

    startPage->SetPrev(NULL);
    startPage->SetNext(sessionPage);
    sessionPage->SetPrev(startPage);
    sessionPage->SetNext(NULL);
//Refresh();
}
コード例 #4
0
    void Setup()
    {
        m_paths = new wxEditableListBox(
                XRCCTRL(*this, "tm_update_1", wxWizardPage),
                -1, _("Search Paths"));
        wxXmlResource::Get()->AttachUnknownControl(_T("search_paths"), m_paths);
        m_files = new wxEditableListBox(
                XRCCTRL(*this, "tm_update_2", wxWizardPage),
                -1, _("Files List"));
        wxXmlResource::Get()->AttachUnknownControl(_T("files_list"), m_files);

        FitToPage(XRCCTRL(*this, "tm_update_2", wxWizardPage));
    
        // Setup search paths:
        wxString dirsStr = 
            wxConfig::Get()->Read(_T("TM/search_paths"), wxEmptyString);
        wxArrayString dirsArray;
        wxStringTokenizer tkn(dirsStr, wxPATH_SEP);

        while (tkn.HasMoreTokens()) dirsArray.Add(tkn.GetNextToken());
        m_paths->SetStrings(dirsArray);
    }
コード例 #5
0
void ExtensionsWizard::run()
{
	wxSizer *sizer = GetSizer();
	if(sizer != nullptr)
	{
		// Il bordo della colonna principale nel wizard viene settato a 5px e, non essendo al momento
		// regolabile, viene qui modificato in questo modo...

		wxSizerItemList &sizerItems = sizer->GetChildren();
		if(sizerItems.empty() == false)
		{
			sizerItems[0]->SetBorder(0);
		}
	}

	// Scorre tutte le pagine a partire da quella di welcome e adatta il wizard alla dimensione migliore
	FitToPage(m_pageGeneral);

	Layout();

	// Avvia il wizard mostrando la pagina di welcome
	RunWizard(m_pageGeneral);
}