forked from qt-creator/qt-creator
fakevim: work on new settings dialog
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user