|
a/src/qtgui/rclm_wins.cpp |
|
b/src/qtgui/rclm_wins.cpp |
|
... |
|
... |
449 |
dialog.exec();
|
449 |
dialog.exec();
|
450 |
}
|
450 |
}
|
451 |
|
451 |
|
452 |
void RclMain::showSnippets(Rcl::Doc doc)
|
452 |
void RclMain::showSnippets(Rcl::Doc doc)
|
453 |
{
|
453 |
{
|
|
|
454 |
if (m_snippets) {
|
|
|
455 |
deleteZ(m_snippets);
|
|
|
456 |
}
|
454 |
SnippetsW *sp = new SnippetsW(doc, m_source);
|
457 |
m_snippets = new SnippetsW(doc, m_source);
|
455 |
connect(sp, SIGNAL(startNativeViewer(Rcl::Doc, int, QString)),
|
458 |
connect(m_snippets, SIGNAL(startNativeViewer(Rcl::Doc, int, QString)),
|
456 |
this, SLOT(startNativeViewer(Rcl::Doc, int, QString)));
|
459 |
this, SLOT(startNativeViewer(Rcl::Doc, int, QString)));
|
457 |
connect(new QShortcut(quitKeySeq, sp), SIGNAL (activated()),
|
460 |
connect(new QShortcut(quitKeySeq, m_snippets), SIGNAL (activated()),
|
458 |
this, SLOT (fileExit()));
|
461 |
this, SLOT (fileExit()));
|
459 |
connect(new QShortcut(closeKeySeq, sp), SIGNAL (activated()),
|
462 |
connect(new QShortcut(closeKeySeq, m_snippets), SIGNAL (activated()),
|
460 |
sp, SLOT (close()));
|
463 |
m_snippets, SLOT (close()));
|
461 |
sp->show();
|
464 |
m_snippets->show();
|
462 |
}
|
465 |
}
|
463 |
|
466 |
|