summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVlad Voicu <vladv@rosedu.org>2012-03-04 14:30:51 (GMT)
committerKevin Smith <git@kismith.co.uk>2012-03-09 15:04:06 (GMT)
commit424d19ec5f9c7ab6ca28a532540d140a22fafeb9 (patch)
treeb95864555d98c39bf8ee1fcd540bb2eaaccaba2a /Swift/QtUI/QtLoginWindow.cpp
parent1c8cd160b79b6bbcec72042bdb104ba530508a93 (diff)
downloadswift-contrib-424d19ec5f9c7ab6ca28a532540d140a22fafeb9.zip
swift-contrib-424d19ec5f9c7ab6ca28a532540d140a22fafeb9.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 a3b7837..f7fc3a7 100644
--- a/Swift/QtUI/QtLoginWindow.cpp
+++ b/Swift/QtUI/QtLoginWindow.cpp
@@ -193,6 +193,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
@@ -404,6 +409,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::shared_ptr<RequestXMLConsoleUIEvent>(new RequestXMLConsoleUIEvent()));
}