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