summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVlad Voicu <vladv@rosedu.org>2012-03-04 14:30:51 (GMT)
committervlad <vlad@tyrion.(none)>2012-10-13 13:55:45 (GMT)
commit49834785cbf3ca1246fef5a7f939d5b182b437eb (patch)
treefe428095fbf0e5a3fec3008e3136935a08e36675 /Swift/QtUI/QtLoginWindow.cpp
parentb21e43357c66df6824536793bf41bbd1cbdf1a72 (diff)
downloadswift-contrib-49834785cbf3ca1246fef5a7f939d5b182b437eb.zip
swift-contrib-49834785cbf3ca1246fef5a7f939d5b182b437eb.tar.bz2
Added minimal SpellChecker Ui Options
Diffstat (limited to 'Swift/QtUI/QtLoginWindow.cpp')
-rw-r--r--Swift/QtUI/QtLoginWindow.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/Swift/QtUI/QtLoginWindow.cpp b/Swift/QtUI/QtLoginWindow.cpp
index c8b40a4..c2854c5 100644
--- a/Swift/QtUI/QtLoginWindow.cpp
+++ b/Swift/QtUI/QtLoginWindow.cpp
@@ -201,6 +201,11 @@ QtLoginWindow::QtLoginWindow(UIEventStream* uiEventStream, SettingsProvider* set
toggleNotificationsAction_->setChecked(settings_->getSetting(SettingConstants::SHOW_NOTIFICATIONS));
connect(toggleNotificationsAction_, SIGNAL(toggled(bool)), SLOT(handleToggleNotifications(bool)));
+ QAction* spellCheckerAction_ = new QAction(tr("Spell &Checker"), this);
+ connect(spellCheckerAction_, SIGNAL(triggered()), SLOT(handleSpellChecker()));
+ generalMenu_->addAction(spellCheckerAction_);
+
+
#ifndef SWIFTEN_PLATFORM_MACOSX
swiftMenu_->addSeparator();
#endif
@@ -432,6 +437,18 @@ void QtLoginWindow::handleAbout() {
}
}
+void QtLoginWindow::handleSpellChecker() {
+ if (!spellCheckerDialog_) {
+ spellCheckerDialog_ = new QtSpellCheckerWindow(settings_);
+ spellCheckerDialog_->show();
+ }
+ else {
+ spellCheckerDialog_->show();
+ spellCheckerDialog_->raise();
+ spellCheckerDialog_->activateWindow();
+ }
+}
+
void QtLoginWindow::handleShowXMLConsole() {
uiEventStream_->send(boost::make_shared<RequestXMLConsoleUIEvent>());
}