void PropertyWindow::changeSelection()
{
    _sceneTree->blockSignals(true);
    _sceneTree->clearSelection();
    for (const Primitive *p : _selection) {
        auto iter = _primToItem.find(p);
        if (iter != _primToItem.end())
            iter->second->setSelected(true);
    }
    _sceneTree->blockSignals(false);

    rebuildTabs();
}
void PropertyWindow::treeSelectionChanged()
{
    if (!_scene)
        return;

    _selection.clear();
    for (QTreeWidgetItem *i : _sceneTree->selectedItems()) {
        auto iter = _itemToPrim.find(i);
        if (iter != _itemToPrim.end())
            _selection.insert(iter->second);
    }

    rebuildTabs();

    emit selectionChanged();
}
Exemple #3
0
void UIHexEditor::setProc( UIDebugCPU::PROCTYPE proc )
{
    this->proc = proc;
    rebuildTabs();
}
Exemple #4
0
UIHexEditor::UIHexEditor( QWidget* p )
{
    proc = UIDebugCPU::PROC_MSH2;
    rebuildTabs();
}