mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 22:39:18 +02:00
show link to IRC in place of Qxmpp removal
This commit is contained in:
parent
03de43d451
commit
a961cd8ff3
3 changed files with 22 additions and 2 deletions
|
@ -161,6 +161,9 @@ Menu::Menu() {
|
||||||
SLOT(setEnabled(bool)));
|
SLOT(setEnabled(bool)));
|
||||||
connect(speechRecognizer.data(), SIGNAL(enabledUpdated(bool)), speechRecognizerAction, SLOT(setChecked(bool)));
|
connect(speechRecognizer.data(), SIGNAL(enabledUpdated(bool)), speechRecognizerAction, SLOT(setChecked(bool)));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
addActionToQMenuAndActionHash(toolsMenu, MenuOption::Chat, Qt::Key_Backslash,
|
||||||
|
dialogsManager.data(), SLOT(showIRCLink()));
|
||||||
|
|
||||||
addActionToQMenuAndActionHash(toolsMenu,
|
addActionToQMenuAndActionHash(toolsMenu,
|
||||||
MenuOption::ToolWindow,
|
MenuOption::ToolWindow,
|
||||||
|
|
|
@ -9,6 +9,8 @@
|
||||||
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
||||||
//
|
//
|
||||||
|
|
||||||
|
#include <QMessageBox>
|
||||||
|
|
||||||
#include <AccountManager.h>
|
#include <AccountManager.h>
|
||||||
#include <MainWindow.h>
|
#include <MainWindow.h>
|
||||||
#include <PathUtils.h>
|
#include <PathUtils.h>
|
||||||
|
@ -160,3 +162,17 @@ void DialogsManager::showScriptEditor() {
|
||||||
maybeCreateDialog(_scriptEditor);
|
maybeCreateDialog(_scriptEditor);
|
||||||
_scriptEditor->raise();
|
_scriptEditor->raise();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void DialogsManager::showIRCLink() {
|
||||||
|
if (!_ircInfoBox) {
|
||||||
|
_ircInfoBox = new QMessageBox(QMessageBox::NoIcon,
|
||||||
|
"High Fidelity IRC",
|
||||||
|
"High Fidelity has an IRC channel on irc.freenode.net at #highfidelity.<br/><br/>Web chat is available at <a href='http://webchat.freenode.net/?channels=highfidelity&uio=d4'>http://webchat.freenode.net/?channels=highfidelity&uio=d4</a>",
|
||||||
|
QMessageBox::Ok);
|
||||||
|
_ircInfoBox->setTextFormat(Qt::RichText);
|
||||||
|
_ircInfoBox->setAttribute(Qt::WA_DeleteOnClose);
|
||||||
|
_ircInfoBox->show();
|
||||||
|
}
|
||||||
|
|
||||||
|
_ircInfoBox->raise();
|
||||||
|
}
|
||||||
|
|
|
@ -25,7 +25,6 @@ class AddressBarDialog;
|
||||||
class AnimationsDialog;
|
class AnimationsDialog;
|
||||||
class AttachmentsDialog;
|
class AttachmentsDialog;
|
||||||
class CachesSizeDialog;
|
class CachesSizeDialog;
|
||||||
class ChatWindow;
|
|
||||||
class BandwidthDialog;
|
class BandwidthDialog;
|
||||||
class LodToolsDialog;
|
class LodToolsDialog;
|
||||||
class LoginDialog;
|
class LoginDialog;
|
||||||
|
@ -34,6 +33,7 @@ class MetavoxelNetworkSimulator;
|
||||||
class OctreeStatsDialog;
|
class OctreeStatsDialog;
|
||||||
class PreferencesDialog;
|
class PreferencesDialog;
|
||||||
class ScriptEditorWindow;
|
class ScriptEditorWindow;
|
||||||
|
class QMessageBox;
|
||||||
|
|
||||||
class DialogsManager : public QObject, public Dependency {
|
class DialogsManager : public QObject, public Dependency {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
@ -60,6 +60,7 @@ public slots:
|
||||||
void showMetavoxelEditor();
|
void showMetavoxelEditor();
|
||||||
void showMetavoxelNetworkSimulator();
|
void showMetavoxelNetworkSimulator();
|
||||||
void showScriptEditor();
|
void showScriptEditor();
|
||||||
|
void showIRCLink();
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
void toggleToolWindow();
|
void toggleToolWindow();
|
||||||
|
@ -87,7 +88,7 @@ private:
|
||||||
QPointer<AttachmentsDialog> _attachmentsDialog;
|
QPointer<AttachmentsDialog> _attachmentsDialog;
|
||||||
QPointer<BandwidthDialog> _bandwidthDialog;
|
QPointer<BandwidthDialog> _bandwidthDialog;
|
||||||
QPointer<CachesSizeDialog> _cachesSizeDialog;
|
QPointer<CachesSizeDialog> _cachesSizeDialog;
|
||||||
QPointer<ChatWindow> _chatWindow;
|
QPointer<QMessageBox> _ircInfoBox;
|
||||||
QPointer<HMDToolsDialog> _hmdToolsDialog;
|
QPointer<HMDToolsDialog> _hmdToolsDialog;
|
||||||
QPointer<LodToolsDialog> _lodToolsDialog;
|
QPointer<LodToolsDialog> _lodToolsDialog;
|
||||||
QPointer<LoginDialog> _loginDialog;
|
QPointer<LoginDialog> _loginDialog;
|
||||||
|
|
Loading…
Reference in a new issue