fakevim: provide a means to see configuration variables

This commit is contained in:
hjk
2009-01-09 15:36:02 +01:00
parent f3a0d9b4e0
commit 67f31135e5
4 changed files with 19 additions and 0 deletions

View File

@@ -59,6 +59,7 @@
#include <QtCore/QPoint>
#include <QtCore/QSettings>
#include <QtGui/QMessageBox>
#include <QtGui/QPlainTextEdit>
#include <QtGui/QTextBlock>
#include <QtGui/QTextCursor>
@@ -149,6 +150,8 @@ void FakeVimPlugin::installHandler()
if (!textEditor)
return;
connect(m_handler, SIGNAL(extraInformationChanged(QString)),
this, SLOT(showExtraInformation(QString)));
connect(m_handler, SIGNAL(commandBufferChanged(QString)),
this, SLOT(showCommandBuffer(QString)));
connect(m_handler, SIGNAL(quitRequested(QWidget *)),
@@ -171,6 +174,11 @@ void FakeVimPlugin::showCommandBuffer(const QString &contents)
tr("Quit FakeVim"), m_handler, SLOT(quit()));
}
void FakeVimPlugin::showExtraInformation(const QString &text)
{
QMessageBox::information(0, tr("FakeVim Information"), text);
}
//#include "fakevimplugin.moc"