Esempio n. 1
0
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();
}
Esempio n. 2
0
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();
}
Esempio n. 3
0
void UIHexEditor::setProc( UIDebugCPU::PROCTYPE proc )
{
    this->proc = proc;
    rebuildTabs();
}
Esempio n. 4
0
UIHexEditor::UIHexEditor( QWidget* p )
{
    proc = UIDebugCPU::PROC_MSH2;
    rebuildTabs();
}