800
int iId = g_pInputPopup->insertItem(__tr2qs("&Undo") + ACCEL_KEY(Z),this,SLOT(undo()));
801
g_pInputPopup->setItemEnabled(iId,isUndoAvailable());
802
iId = g_pInputPopup->insertItem(__tr2qs("&Redo") + ACCEL_KEY(Y),this,SLOT(redo()));
803
g_pInputPopup->setItemEnabled(iId,isRedoAvailable());
804
iId = g_pInputPopup->insertItem(__tr2qs("Cu&t") + ACCEL_KEY(X),this,SLOT(cut()));
805
g_pInputPopup->setItemEnabled(iId,hasSelection());
806
iId = g_pInputPopup->insertItem(__tr2qs("&Copy") + ACCEL_KEY(C),this,SLOT(copyToClipboard()));
807
g_pInputPopup->setItemEnabled(iId,hasSelection());
808
iId = g_pInputPopup->insertItem(__tr2qs("&Paste") + ACCEL_KEY(V),this,SLOT(pasteClipboardWithConfirmation()));
809
g_pInputPopup->setItemEnabled(iId,!szClip.isEmpty() && !m_bReadOnly);
810
iId = g_pInputPopup->insertItem(__tr2qs("Paste (Slowly)"),this,SLOT(pasteSlow()));
803
QAction * pAction = g_pInputPopup->addAction(__tr2qs("&Undo") + ACCEL_KEY(Z),this,SLOT(undo()));
804
pAction->setEnabled(isUndoAvailable());
805
pAction = g_pInputPopup->addAction(__tr2qs("&Redo") + ACCEL_KEY(Y),this,SLOT(redo()));
806
pAction->setEnabled(isRedoAvailable());
807
pAction = g_pInputPopup->addAction(__tr2qs("Cu&t") + ACCEL_KEY(X),this,SLOT(cut()));
808
pAction->setEnabled(hasSelection());
809
pAction = g_pInputPopup->addAction(__tr2qs("&Copy") + ACCEL_KEY(C),this,SLOT(copyToClipboard()));
810
pAction->setEnabled(hasSelection());
811
pAction = g_pInputPopup->addAction(__tr2qs("&Paste") + ACCEL_KEY(V),this,SLOT(pasteClipboardWithConfirmation()));
812
pAction->setEnabled(!szClip.isEmpty() && !m_bReadOnly);
813
pAction = g_pInputPopup->addAction(__tr2qs("Paste (Slowly)"),this,SLOT(pasteSlow()));
811
814
if ((iType == KviWindow::Channel) || (iType == KviWindow::Query) || (iType == KviWindow::DccChat))
812
g_pInputPopup->setItemEnabled(iId,!szClip.isEmpty() && !m_bReadOnly);
815
pAction->setEnabled(!szClip.isEmpty() && !m_bReadOnly);
814
g_pInputPopup->setItemEnabled(iId,false);
815
iId = g_pInputPopup->insertItem(__tr2qs("Paste &File") + ACCEL_KEY(L),this,SLOT(pasteFile()));
817
pAction->setEnabled(false);
818
pAction = g_pInputPopup->addAction(__tr2qs("Paste &File") + ACCEL_KEY(L),this,SLOT(pasteFile()));
816
819
if ((iType != KviWindow::Channel) && (iType != KviWindow::Query) && (iType != KviWindow::DccChat))
817
g_pInputPopup->setItemEnabled(iId,false);
820
pAction->setEnabled(false);
819
g_pInputPopup->setItemEnabled(iId,!m_bReadOnly);
822
pAction->setEnabled(!m_bReadOnly);
820
823
if(m_bSpSlowFlag)
822
iId = g_pInputPopup->insertItem(__tr2qs("Stop Paste"),this,SLOT(stopPasteSlow())); /*G&N 2005*/
825
pAction = g_pInputPopup->addAction(__tr2qs("Stop Paste"),this,SLOT(stopPasteSlow())); /*G&N 2005*/
824
iId = g_pInputPopup->insertItem(__tr2qs("Clear"),this,SLOT(clear()));
825
g_pInputPopup->setItemEnabled(iId,!m_szTextBuffer.isEmpty() && !m_bReadOnly);
826
g_pInputPopup->insertSeparator();
827
iId = g_pInputPopup->insertItem(__tr2qs("Select All"),this,SLOT(selectAll()));
828
g_pInputPopup->setItemEnabled(iId,(!m_szTextBuffer.isEmpty()));
827
pAction = g_pInputPopup->addAction(__tr2qs("Clear"),this,SLOT(clear()));
828
pAction->setEnabled(!m_szTextBuffer.isEmpty() && !m_bReadOnly);
829
g_pInputPopup->addSeparator();
830
pAction = g_pInputPopup->addAction(__tr2qs("Select All"),this,SLOT(selectAll()));
831
pAction->setEnabled((!m_szTextBuffer.isEmpty()));
830
g_pInputPopup->insertSeparator();
833
g_pInputPopup->addSeparator();
831
834
m_pIconMenu->clear();
833
836
KviPointerHashTable<QString,KviTextIcon> * d = g_pTextIconManager->textIconDict();