⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sectiondlg.cpp

📁 ecos实时嵌入式操作系统
💻 CPP
📖 第 1 页 / 共 2 页
字号:
/* General page */IMPLEMENT_CLASS(ecSectionGeneralDialog, wxPanel)ecSectionGeneralDialog::ecSectionGeneralDialog(wxWindow* parent):    wxPanel(parent, ecID_SECTION_GENERAL){    CreateControls(this);        SetHelpText(_("TODO"));}void ecSectionGeneralDialog::CreateControls( wxPanel *parent){    wxSizer *item0 = new wxBoxSizer( wxVERTICAL );    wxStaticBox *item2 = new wxStaticBox( parent, -1, "Name" );    wxSizer *item1 = new wxStaticBoxSizer( item2, wxHORIZONTAL );    wxSizer *item3 = new wxBoxSizer( wxVERTICAL );    wxRadioButton *item4 = new wxRadioButton( parent, ecID_SECTION_GENERAL_LINKER, "&Linker-defined:", wxDefaultPosition, wxDefaultSize, wxRB_GROUP );    item3->Add( item4, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );    wxRadioButton *item5 = new wxRadioButton( parent, ecID_SECTION_GENERAL_USER, "&User-defined:", wxDefaultPosition, wxDefaultSize, 0 );    item3->Add( item5, 0, wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT|wxBOTTOM, 5 );    item1->Add( item3, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5 );    item1->Add( 5, 5, 1, wxALIGN_CENTRE|wxALL, 5 );    wxSizer *item6 = new wxBoxSizer( wxVERTICAL );    wxTextCtrl *item7 = new wxTextCtrl( parent, ecID_SECTION_GENERAL_LINKER_TEXT, "", wxDefaultPosition, wxSize(200,-1), 0 );    item6->Add( item7, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );    wxString strs8[] =     {        "ChoiceItem"    };    wxChoice *item8 = new wxChoice( parent, ecID_SECTION_GENERAL_USER_TEXT, wxDefaultPosition, wxSize(100,-1), 1, strs8, 0 );    item6->Add( item8, 0, wxGROW|wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT|wxBOTTOM, 5 );    wxSizer *item9 = new wxBoxSizer( wxHORIZONTAL );    wxCheckBox *item10 = new wxCheckBox( parent, ecID_SECTION_GENERAL_KNOWN_SIZE, "&Known size:", wxDefaultPosition, wxDefaultSize, 0 );    item9->Add( item10, 0, wxALIGN_CENTRE|wxALL, 5 );    wxString strs11[] =     {        "ChoiceItem"    };    wxChoice *item11 = new wxChoice( parent, ecID_SECTION_GENERAL_KNOWN_SIZE_CHOICE, wxDefaultPosition, wxSize(100,-1), 1, strs11, 0 );    item9->Add( item11, 0, wxALIGN_CENTRE|wxALL, 5 );    item6->Add( item9, 0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxALL, 0 );    item1->Add( item6, 0, wxALIGN_CENTRE|wxALL, 5 );    item0->Add( item1, 0, wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 5 );    //item0->Add( 20, 20, 0, wxALIGN_CENTRE|wxALL, 5 );    item0->Add( 1, 1, 20, wxALIGN_CENTRE|wxALL, 0 );    wxStaticBox *item13 = new wxStaticBox( parent, -1, "Find Location (VMA)" );    wxSizer *item12 = new wxStaticBoxSizer( item13, wxHORIZONTAL );    wxSizer *item14 = new wxBoxSizer( wxVERTICAL );    wxRadioButton *item15 = new wxRadioButton( parent, ecID_SECTION_GENERAL_ABSOLUTE, "A&bsolute:", wxDefaultPosition, wxDefaultSize, 0 );    item14->Add( item15, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );    wxRadioButton *item16 = new wxRadioButton( parent, ecID_SECTION_GENERAL_FOLLOWING, "&Following:", wxDefaultPosition, wxDefaultSize, 0 );    item14->Add( item16, 0, wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT|wxBOTTOM, 5 );    item12->Add( item14, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5 );    item12->Add( 20, 20, 1, wxALIGN_CENTRE|wxALL, 5 );    wxSizer *item17 = new wxBoxSizer( wxVERTICAL );    wxTextCtrl *item18 = new wxTextCtrl( parent, ecID_SECTION_GENERAL_ABSOLUTE_TEXT, "", wxDefaultPosition, wxSize(200,-1), 0 );    item17->Add( item18, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );    wxString strs19[] =     {        "ChoiceItem"    };    wxChoice *item19 = new wxChoice( parent, ecID_SECTION_GENERAL_FOLLOWING_TEXT, wxDefaultPosition, wxSize(100,-1), 1, strs19, 0 );    item17->Add( item19, 0, wxGROW|wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT|wxBOTTOM, 5 );    wxSizer *item20 = new wxBoxSizer( wxHORIZONTAL );    wxStaticText *item21 = new wxStaticText( parent, wxID_STATIC, "&Alignment:", wxDefaultPosition, wxDefaultSize, 0 );    item20->Add( item21, 0, wxALIGN_CENTRE|wxALL, 5 );    wxString strs22[] =     {        "ChoiceItem"    };    wxChoice *item22 = new wxChoice( parent, ecID_SECTION_GENERAL_ALIGNMENT, wxDefaultPosition, wxSize(100,-1), 1, strs22, 0 );    item20->Add( item22, 0, wxALIGN_CENTRE|wxALL, 5 );    item17->Add( item20, 0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxALL, 0 );    item12->Add( item17, 0, wxGROW|wxALIGN_CENTER_HORIZONTAL|wxALL, 5 );    item0->Add( item12, 0, wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 5 );    // Add context-sensitive help    //item2->SetHelpText(_(""));    parent->SetAutoLayout( TRUE );    parent->SetSizer( item0 );}bool ecSectionGeneralDialog::TransferDataToWindow(){    wxPanel::TransferDataToWindow();    return TRUE;}bool ecSectionGeneralDialog::TransferDataFromWindow(){    wxPanel::TransferDataFromWindow();    return TRUE;}/* Relocation page */IMPLEMENT_CLASS(ecSectionRelocationDialog, wxPanel)ecSectionRelocationDialog::ecSectionRelocationDialog(wxWindow* parent):    wxPanel(parent, ecID_SECTION_RELOCATION){    CreateControls(this);        SetHelpText(_("TODO"));}void ecSectionRelocationDialog::CreateControls( wxPanel *parent){    wxSizer *item0 = new wxBoxSizer( wxVERTICAL );    item0->Add( 20, 20, 5, wxALIGN_CENTRE|wxALL, 5 );    wxCheckBox *item1 = new wxCheckBox( parent, ecID_SECTION_RELOCATION_RELOCATE, "&Relocate section", wxDefaultPosition, wxDefaultSize, 0 );    item0->Add( item1, 0, wxALIGN_CENTER_VERTICAL|wxALL, 10 );    item0->Add( 20, 20, 20, wxALIGN_CENTRE|wxALL, 0 );    wxStaticBox *item3 = new wxStaticBox( parent, -1, "Initial Location (LMA)" );    wxSizer *item2 = new wxStaticBoxSizer( item3, wxVERTICAL );    wxSizer *item4 = new wxBoxSizer( wxHORIZONTAL );    wxRadioButton *item5 = new wxRadioButton( parent, ecID_SECTION_RELOCATION_ABSOLUTE, "A&bsolute:", wxDefaultPosition, wxDefaultSize, 0 );    item4->Add( item5, 0, wxALIGN_CENTRE|wxALL, 5 );    item4->Add( 20, 20, 1, wxALIGN_CENTRE|wxALL, 5 );    wxTextCtrl *item6 = new wxTextCtrl( parent, ecID_SECTION_RELOCATION_ABSOLUTE_TEXT, "", wxDefaultPosition, wxSize(80,-1), 0 );    item4->Add( item6, 20, wxGROW|wxALIGN_CENTER_HORIZONTAL|wxALL, 5 );    item2->Add( item4, 0, wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 5 );    wxSizer *item7 = new wxBoxSizer( wxHORIZONTAL );    wxRadioButton *item8 = new wxRadioButton( parent, ecID_SECTION_RELOCATION_FOLLOWING, "&Following:", wxDefaultPosition, wxDefaultSize, 0 );    item7->Add( item8, 0, wxALIGN_CENTRE|wxALL, 5 );    item7->Add( 20, 20, 1, wxALIGN_CENTRE|wxALL, 5 );    wxString strs9[] =     {        "ChoiceItem"    };    wxChoice *item9 = new wxChoice( parent, ecID_SECTION_RELOCATION_FOLLOWING_CHOICE, wxDefaultPosition, wxSize(100,-1), 1, strs9, 0 );    item7->Add( item9, 20, wxGROW|wxALIGN_CENTER_HORIZONTAL|wxALL, 5 );    item2->Add( item7, 0, wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 5 );    item0->Add( item2, 0, wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 5 );    item0->Add( 20, 20, 20, wxALIGN_CENTRE|wxALL, 5 );    // Add context-sensitive help    //item2->SetHelpText(_(""));    parent->SetAutoLayout( TRUE );    parent->SetSizer( item0 );}bool ecSectionRelocationDialog::TransferDataToWindow(){    wxPanel::TransferDataToWindow();    return TRUE;}bool ecSectionRelocationDialog::TransferDataFromWindow(){    wxPanel::TransferDataFromWindow();    return TRUE;}/* Note page */IMPLEMENT_CLASS(ecSectionNoteDialog, wxPanel)ecSectionNoteDialog::ecSectionNoteDialog(wxWindow* parent):    wxPanel(parent, ecID_SECTION_NOTE){    CreateControls(this);        SetHelpText(_("TODO"));}void ecSectionNoteDialog::CreateControls( wxPanel *parent){    wxSizer *item0 = new wxBoxSizer( wxVERTICAL );    wxTextCtrl *item1 = new wxTextCtrl( parent, ecID_SECTION_NOTE_TEXT, "", wxDefaultPosition, wxSize(80,40), wxTE_MULTILINE );    item0->Add( item1, 20, wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 5 );    // Add context-sensitive help    //item2->SetHelpText(_(""));    parent->SetAutoLayout( TRUE );    parent->SetSizer( item0 );}bool ecSectionNoteDialog::TransferDataToWindow(){    wxPanel::TransferDataToWindow();    return TRUE;}bool ecSectionNoteDialog::TransferDataFromWindow(){    wxPanel::TransferDataFromWindow();    return TRUE;}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -