void PropertiesPalette_Group::handleShapeEditEnded() { disconnect(m_ScMW->nodePalette, SIGNAL(paletteClosed()), this, SLOT(handleShapeEditEnded())); if ((m_haveDoc) && (m_haveItem)) { if (m_tmpSelection->count() > 0) { m_doc->m_Selection->copy(*m_tmpSelection, false); m_doc->m_Selection->connectItemToGUI(); } m_tmpSelection->clear(); } }
void PropertiesPalette_Group::handleShapeEditEnded() { disconnect(m_ScMW->nodePalette, SIGNAL(paletteClosed()), this, SLOT(handleShapeEditEnded())); if ((m_haveDoc) && (m_haveItem)) { if (m_tmpSelection->count() > 0) { m_doc->m_Selection->copy(*m_tmpSelection, false); m_doc->m_Selection->connectItemToGUI(); } m_tmpSelection->clear(); // m_ScMW->propertiesPalette->setCurrentItem(m_doc->m_Selection->itemAt(0)); // m_ScMW->scrActions["itemGroup"]->setEnabled(true); // m_ScMW->propertiesPalette->xyzPal->doUnGroup->setEnabled(true); } }
void PropertiesPalette_Group::handleShapeEdit() { if (!m_ScMW || m_ScMW->scriptIsRunning()) return; if ((m_haveDoc) && (m_haveItem)) { m_tmpSelection->clear(); m_tmpSelection->copy(*m_doc->m_Selection, true); m_doc->m_Selection->clear(); m_doc->m_Selection->addItem(m_item); m_item->isSingleSel = true; m_item->update(); m_ScMW->view->requestMode(modeEditClip); connect(m_ScMW->nodePalette, SIGNAL(paletteClosed()), this, SLOT(handleShapeEditEnded())); emit shapeEditStarted(); } }