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()); }
void ResourcePanel::ExpandCollapseButtonPressed() { ExpandCollapse(!s_expanded_map[m_rescenter_id]); }
void BuildingsPanel::ExpandCollapseButtonPressed() { ExpandCollapse(!s_expanded_map[m_planet_id]); }
void MainWindow::OnCollapseAll() { ExpandCollapse(TreeState::kCollapse); }
void MainWindow::OnExpandAll() { ExpandCollapse(TreeState::kExpand); }
void PopulationPanel::ExpandCollapseButtonPressed() { ExpandCollapse(!s_expanded_map[m_popcenter_id]); }
void MilitaryPanel::ExpandCollapseButtonPressed() { ExpandCollapse(!s_expanded_map[m_planet_id]); }