Commit 99635528 authored by hjk's avatar hjk
Browse files

fakevim: work on new settings dialog

parent 765489f9
......@@ -121,10 +121,8 @@ void FakeVimSettings::insertItem(int code, SavedAction *item,
void FakeVimSettings::readSettings(QSettings *settings)
{
foreach (SavedAction *item, m_items) {
qDebug() << "ITRM: " << item->toString();
foreach (SavedAction *item, m_items)
item->readSettings(settings);
}
}
void FakeVimSettings::writeSettings(QSettings *settings)
......
......@@ -233,6 +233,7 @@ private slots:
void installHandler(Core::IEditor *editor);
void removeHandler();
void triggerCompletions();
void showSettingsDialog();
void showCommandBuffer(const QString &contents);
void showExtraInformation(const QString &msg);
......@@ -303,9 +304,17 @@ bool FakeVimPluginPrivate::initialize()
connect(editorManager, SIGNAL(editorOpened(Core::IEditor*)),
this, SLOT(editorOpened(Core::IEditor*)));
connect(theFakeVimSetting(SettingsDialog), SIGNAL(triggered()),
this, SLOT(showSettingsDialog()));
return true;
}
void FakeVimPluginPrivate::showSettingsDialog()
{
Core::ICore::instance()->showOptionsDialog("FakeVim", "General");
}
void FakeVimPluginPrivate::installHandler(Core::IEditor *editor)
{
if (!editor)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment