Esempio n. 1
0
void MainWindow::OnSearchFormChange() {
    app_->buyout_manager().Save();
    current_search_->Activate(app_->items(), ui->treeView);
    connect(ui->treeView->selectionModel(), SIGNAL(currentChanged(const QModelIndex&, const QModelIndex&)),
            this, SLOT(OnTreeChange(const QModelIndex&, const QModelIndex&)));
    ui->treeView->reset();

    if (current_search_->items().size() <= MAX_EXPANDABLE_ITEMS)
        ExpandCollapse(TreeState::kExpand);
    ResizeTreeColumns();

    tab_bar_->setTabText(tab_bar_->currentIndex(), current_search_->GetCaption());
}
Esempio n. 2
0
void ResourcePanel::ExpandCollapseButtonPressed()
{ ExpandCollapse(!s_expanded_map[m_rescenter_id]); }
Esempio n. 3
0
void BuildingsPanel::ExpandCollapseButtonPressed()
{ ExpandCollapse(!s_expanded_map[m_planet_id]); }
Esempio n. 4
0
void MainWindow::OnCollapseAll() {
    ExpandCollapse(TreeState::kCollapse);
}
Esempio n. 5
0
void MainWindow::OnExpandAll() {
    ExpandCollapse(TreeState::kExpand);
}
Esempio n. 6
0
void PopulationPanel::ExpandCollapseButtonPressed()
{ ExpandCollapse(!s_expanded_map[m_popcenter_id]); }
Esempio n. 7
0
void MilitaryPanel::ExpandCollapseButtonPressed()
{ ExpandCollapse(!s_expanded_map[m_planet_id]); }