示例#1
0
void OpenWindowsPanel::PopulateView()
{
    if(m_toolbar->FindById(wxID_SORT_ASCENDING)->IsChecked()) {
        SortAlphabetically();
    } else {
        SortByEditorOrder();
    }
}
示例#2
0
void OpenWindowsPanel::PopulateView()
{
    if(m_auibar->GetToolToggled(XRCID("TabsSortTool"))) {
        SortAlphabetically();
    } else {
        SortByEditorOrder();
    }
}
示例#3
0
void OpenWindowsPanel::OnSortItems(wxCommandEvent& event)
{
    if(event.IsChecked()) {
        SortAlphabetically();
    } else {
        SortByEditorOrder();
    }

    IEditor* editor = m_mgr->GetActiveEditor();
    DoSelectItem(editor);

    clConfig::Get().Write(kConfigTabsPaneSortAlphabetically, event.IsChecked());
}