mirror of
https://github.com/mumble-voip/mumble.git
synced 2025-10-26 11:19:16 +00:00
Added Chatbar dock widget to MainWindow
This commit is contained in:
parent
88384734be
commit
75868a323b
@ -96,6 +96,7 @@ void LookConfig::load(const Settings &r) {
|
||||
qleCSS->setText(r.qsSkin);
|
||||
loadComboBox(qcbExpand, r.ceExpand);
|
||||
loadComboBox(qcbChannelDrag, r.ceChannelDrag);
|
||||
loadCheckBox(qcbShowChatbar, r.bShowChatbar);
|
||||
loadCheckBox(qcbPlayersTop, r.bPlayerTop);
|
||||
loadCheckBox(qcbAlwaysOnTop, r.bAlwaysOnTop);
|
||||
loadCheckBox(qcbAskOnQuit, r.bAskOnQuit);
|
||||
@ -120,6 +121,7 @@ void LookConfig::save() const {
|
||||
s.qsSkin = qleCSS->text();
|
||||
s.ceExpand=static_cast<Settings::ChannelExpand>(qcbExpand->currentIndex());
|
||||
s.ceChannelDrag=static_cast<Settings::ChannelDrag>(qcbChannelDrag->currentIndex());
|
||||
s.bShowChatbar = qcbShowChatbar->isChecked();
|
||||
s.bPlayerTop=qcbPlayersTop->isChecked();
|
||||
s.bAlwaysOnTop = qcbAlwaysOnTop->isChecked();
|
||||
s.bAskOnQuit = qcbAskOnQuit->isChecked();
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>311</width>
|
||||
<height>353</height>
|
||||
<height>374</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle" >
|
||||
@ -123,7 +123,7 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="4" column="1" colspan="2" >
|
||||
<item row="5" column="1" colspan="2" >
|
||||
<widget class="QCheckBox" name="qcbPlayersTop" >
|
||||
<property name="toolTip" >
|
||||
<string>List players above subchannels (requires restart).</string>
|
||||
@ -136,7 +136,7 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="5" column="1" colspan="2" >
|
||||
<item row="6" column="1" colspan="2" >
|
||||
<widget class="QCheckBox" name="qcbAskOnQuit" >
|
||||
<property name="toolTip" >
|
||||
<string>Ask whether to close or minimize when quitting Mumble.</string>
|
||||
@ -149,7 +149,7 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="6" column="1" colspan="2" >
|
||||
<item row="7" column="1" colspan="2" >
|
||||
<widget class="QCheckBox" name="qcbHideTray" >
|
||||
<property name="toolTip" >
|
||||
<string>Hide the main Mumble window in the tray when it is minimized.</string>
|
||||
@ -162,7 +162,7 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="7" column="1" colspan="2" >
|
||||
<item row="8" column="1" colspan="2" >
|
||||
<widget class="QCheckBox" name="qcbAlwaysOnTop" >
|
||||
<property name="toolTip" >
|
||||
<string>Make the Mumble window appear on top of other windows.</string>
|
||||
@ -175,7 +175,7 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="8" column="1" colspan="2" >
|
||||
<item row="9" column="1" colspan="2" >
|
||||
<widget class="QCheckBox" name="qcbExpert" >
|
||||
<property name="toolTip" >
|
||||
<string>Show all configuration items</string>
|
||||
@ -188,6 +188,19 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="4" column="1" >
|
||||
<widget class="QCheckBox" name="qcbShowChatbar" >
|
||||
<property name="toolTip" >
|
||||
<string>Check to show chat bar</string>
|
||||
</property>
|
||||
<property name="whatsThis" >
|
||||
<string><b>If checked the chat bar is shown</b><br />Uncheck to hide it</string>
|
||||
</property>
|
||||
<property name="text" >
|
||||
<string>Show chatbar</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
|
||||
@ -56,22 +56,22 @@ MessageBoxEvent::MessageBoxEvent(QString m) : QEvent(static_cast<QEvent::Type>(M
|
||||
msg = m;
|
||||
}
|
||||
|
||||
LogTitleBar::LogTitleBar() {
|
||||
DockTitleBar::DockTitleBar() {
|
||||
qtTick = new QTimer(this);
|
||||
qtTick->setSingleShot(true);
|
||||
connect(qtTick, SIGNAL(timeout()), this, SLOT(tick()));
|
||||
size = newsize = 0;
|
||||
}
|
||||
|
||||
QSize LogTitleBar::sizeHint() const {
|
||||
QSize DockTitleBar::sizeHint() const {
|
||||
return minimumSizeHint();
|
||||
}
|
||||
|
||||
QSize LogTitleBar::minimumSizeHint() const {
|
||||
QSize DockTitleBar::minimumSizeHint() const {
|
||||
return QSize(size,size);
|
||||
}
|
||||
|
||||
bool LogTitleBar::eventFilter(QObject *, QEvent *evt) {
|
||||
bool DockTitleBar::eventFilter(QObject *, QEvent *evt) {
|
||||
QDockWidget *qdw = qobject_cast<QDockWidget*>(parentWidget());
|
||||
|
||||
switch (evt->type()) {
|
||||
@ -97,7 +97,7 @@ bool LogTitleBar::eventFilter(QObject *, QEvent *evt) {
|
||||
return false;
|
||||
}
|
||||
|
||||
void LogTitleBar::tick() {
|
||||
void DockTitleBar::tick() {
|
||||
QDockWidget *qdw = qobject_cast<QDockWidget*>(parentWidget());
|
||||
|
||||
if (newsize == size)
|
||||
@ -270,14 +270,18 @@ void MainWindow::setupGui() {
|
||||
connect(gsUnlink, SIGNAL(down()), qaAudioUnlink, SLOT(trigger()));
|
||||
connect(gsMinimal, SIGNAL(down()), qaConfigMinimal, SLOT(trigger()));
|
||||
|
||||
ltbDockTitle = new LogTitleBar();
|
||||
qdwLog->setTitleBarWidget(ltbDockTitle);
|
||||
dtbLogDockTitle = new DockTitleBar();
|
||||
qdwLog->setTitleBarWidget(dtbLogDockTitle);
|
||||
|
||||
foreach(QWidget *w, qdwLog->findChildren<QWidget *>()) {
|
||||
w->installEventFilter(ltbDockTitle);
|
||||
w->installEventFilter(dtbLogDockTitle);
|
||||
w->setMouseTracking(true);
|
||||
}
|
||||
|
||||
dtbChatDockTitle = new DockTitleBar();
|
||||
qdwChat->setTitleBarWidget(dtbChatDockTitle);
|
||||
qdwChat->installEventFilter(dtbChatDockTitle);
|
||||
|
||||
if (g.s.bMinimalView && ! g.s.qbaMinimalViewGeometry.isNull())
|
||||
restoreGeometry(g.s.qbaMinimalViewGeometry);
|
||||
else if (! g.s.bMinimalView && ! g.s.qbaMainWindowGeometry.isNull())
|
||||
@ -519,6 +523,7 @@ void MainWindow::setupView(bool toggle_minimize) {
|
||||
setWindowFlags(f);
|
||||
|
||||
qdwLog->setVisible(showit);
|
||||
qdwChat->setVisible(showit && g.s.bShowChatbar);
|
||||
qtvPlayers->header()->setVisible(showit);
|
||||
menuBar()->setVisible(showit);
|
||||
|
||||
@ -802,6 +807,33 @@ void MainWindow::on_qaQuit_triggered() {
|
||||
this->close();
|
||||
}
|
||||
|
||||
void MainWindow::on_qleChat_returnPressed() {
|
||||
if (qleChat->text().isEmpty() || !g.sh || !g.sh->isRunning()) return; // Check if text & connection is available
|
||||
|
||||
Player *p = pmModel->getPlayer(qtvPlayers->currentIndex());
|
||||
Channel *c = pmModel->getChannel(qtvPlayers->currentIndex());
|
||||
|
||||
MumbleProto::TextMessage mptm;
|
||||
mptm.set_message(u8(qleChat->text()));
|
||||
|
||||
if (p == NULL || p->uiSession == g.uiSession) {
|
||||
// Channel tree message
|
||||
if (c == NULL) // If no channel selected fallback to current one
|
||||
c = ClientPlayer::get(g.uiSession)->cChannel;
|
||||
|
||||
mptm.add_channel_id(c->iId);
|
||||
g.l->log(Log::TextMessage, tr("To %1: %2").arg(c->qsName).arg(qleChat->text()), tr("Message to %1").arg(c->qsName));
|
||||
}
|
||||
else {
|
||||
// Player message
|
||||
mptm.add_session(p->uiSession);
|
||||
g.l->log(Log::TextMessage, tr("To %1: %2").arg(p->qsName).arg(qleChat->text()), tr("Message to %1").arg(p->qsName));
|
||||
}
|
||||
|
||||
g.sh->sendMessage(mptm);
|
||||
qleChat->setText(QString());
|
||||
}
|
||||
|
||||
void MainWindow::on_qmConfig_aboutToShow() {
|
||||
// Don't remove the config, as that messes up OSX.
|
||||
foreach(QAction *a, qmConfig->actions())
|
||||
@ -1141,7 +1173,7 @@ void MainWindow::on_qaAudioUnlink_triggered() {
|
||||
void MainWindow::on_qaConfigDialog_triggered() {
|
||||
ConfigDialog *dlg= new ConfigDialog(this);
|
||||
if (dlg->exec() == QDialog::Accepted)
|
||||
setOnTop(g.s.bAlwaysOnTop);
|
||||
setupView(false);
|
||||
delete dlg;
|
||||
}
|
||||
|
||||
|
||||
@ -53,16 +53,16 @@ class MessageBoxEvent : public QEvent {
|
||||
MessageBoxEvent(QString msg);
|
||||
};
|
||||
|
||||
class LogTitleBar : public QWidget {
|
||||
class DockTitleBar : public QWidget {
|
||||
private:
|
||||
Q_OBJECT
|
||||
Q_DISABLE_COPY(LogTitleBar)
|
||||
Q_DISABLE_COPY(DockTitleBar)
|
||||
protected:
|
||||
QTimer *qtTick;
|
||||
int size;
|
||||
int newsize;
|
||||
public:
|
||||
LogTitleBar();
|
||||
DockTitleBar();
|
||||
QSize sizeHint() const;
|
||||
QSize minimumSizeHint() const;
|
||||
public slots:
|
||||
@ -85,7 +85,7 @@ class MainWindow : public QMainWindow, public MessageHandler, public Ui::MainWin
|
||||
GlobalShortcut *gsPushTalk, *gsResetAudio, *gsMuteSelf, *gsDeafSelf;
|
||||
GlobalShortcut *gsUnlink, *gsCenterPos, *gsPushMute, *gsMetaChannel, *gsToggleOverlay;
|
||||
GlobalShortcut *gsAltTalk, *gsMinimal, *gsVolumeUp, *gsVolumeDown;
|
||||
LogTitleBar *ltbDockTitle;
|
||||
DockTitleBar *dtbLogDockTitle, *dtbChatDockTitle;
|
||||
|
||||
ACLEditor *aclEdit;
|
||||
BanEditor *banEdit;
|
||||
@ -156,6 +156,7 @@ class MainWindow : public QMainWindow, public MessageHandler, public Ui::MainWin
|
||||
void on_qaHelpAboutQt_triggered();
|
||||
void on_qaHelpVersionCheck_triggered();
|
||||
void on_qaQuit_triggered();
|
||||
void on_qleChat_returnPressed();
|
||||
void on_qteLog_customContextMenuRequested(const QPoint &pos);
|
||||
void on_qteLog_anchorClicked(const QUrl &);
|
||||
void on_qteLog_highlighted(const QUrl & link);
|
||||
|
||||
@ -1,8 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ui version="4.0">
|
||||
<ui version="4.0" >
|
||||
<class>MainWindow</class>
|
||||
<widget class="QMainWindow" name="MainWindow">
|
||||
<property name="geometry">
|
||||
<widget class="QMainWindow" name="MainWindow" >
|
||||
<property name="geometry" >
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
@ -10,555 +9,595 @@
|
||||
<height>435</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<property name="windowTitle" >
|
||||
<string>Mumble</string>
|
||||
</property>
|
||||
<widget class="QTreeView" name="qtvPlayers">
|
||||
<property name="contextMenuPolicy">
|
||||
<property name="dockOptions" >
|
||||
<set>QMainWindow::AllowNestedDocks|QMainWindow::AnimatedDocks</set>
|
||||
</property>
|
||||
<widget class="QTreeView" name="qtvPlayers" >
|
||||
<property name="contextMenuPolicy" >
|
||||
<enum>Qt::CustomContextMenu</enum>
|
||||
</property>
|
||||
<property name="acceptDrops">
|
||||
<property name="acceptDrops" >
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="dragEnabled">
|
||||
<property name="dragEnabled" >
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="indentation">
|
||||
<property name="indentation" >
|
||||
<number>10</number>
|
||||
</property>
|
||||
<property name="rootIsDecorated">
|
||||
<property name="rootIsDecorated" >
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="uniformRowHeights">
|
||||
<property name="uniformRowHeights" >
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QMenuBar" name="menubar">
|
||||
<property name="geometry">
|
||||
<widget class="QMenuBar" name="menubar" >
|
||||
<property name="geometry" >
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>671</width>
|
||||
<height>22</height>
|
||||
<height>19</height>
|
||||
</rect>
|
||||
</property>
|
||||
<widget class="QMenu" name="qmServer">
|
||||
<property name="title">
|
||||
<widget class="QMenu" name="qmServer" >
|
||||
<property name="title" >
|
||||
<string>&Server</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QMenu" name="qmPlayer">
|
||||
<property name="title">
|
||||
<widget class="QMenu" name="qmPlayer" >
|
||||
<property name="title" >
|
||||
<string>&Player</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QMenu" name="qmChannel">
|
||||
<property name="title">
|
||||
<widget class="QMenu" name="qmChannel" >
|
||||
<property name="title" >
|
||||
<string>&Channel</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QMenu" name="qmAudio">
|
||||
<property name="title">
|
||||
<widget class="QMenu" name="qmAudio" >
|
||||
<property name="title" >
|
||||
<string>&Audio</string>
|
||||
</property>
|
||||
<addaction name="qaAudioMute"/>
|
||||
<addaction name="qaAudioDeaf"/>
|
||||
<addaction name="separator"/>
|
||||
<addaction name="qaAudioReset"/>
|
||||
<addaction name="qaAudioUnlink"/>
|
||||
<addaction name="separator"/>
|
||||
<addaction name="qaAudioTTS"/>
|
||||
<addaction name="separator"/>
|
||||
<addaction name="qaAudioStats"/>
|
||||
<addaction name="qaAudioMute" />
|
||||
<addaction name="qaAudioDeaf" />
|
||||
<addaction name="separator" />
|
||||
<addaction name="qaAudioReset" />
|
||||
<addaction name="qaAudioUnlink" />
|
||||
<addaction name="separator" />
|
||||
<addaction name="qaAudioTTS" />
|
||||
<addaction name="separator" />
|
||||
<addaction name="qaAudioStats" />
|
||||
</widget>
|
||||
<widget class="QMenu" name="qmConfig">
|
||||
<property name="title">
|
||||
<widget class="QMenu" name="qmConfig" >
|
||||
<property name="title" >
|
||||
<string>C&onfigure</string>
|
||||
</property>
|
||||
<addaction name="qaConfigDialog"/>
|
||||
<addaction name="qaConfigDialog" />
|
||||
</widget>
|
||||
<widget class="QMenu" name="qmHelp">
|
||||
<property name="title">
|
||||
<widget class="QMenu" name="qmHelp" >
|
||||
<property name="title" >
|
||||
<string>&Help</string>
|
||||
</property>
|
||||
<addaction name="qaHelpWhatsThis"/>
|
||||
<addaction name="separator"/>
|
||||
<addaction name="qaHelpAbout"/>
|
||||
<addaction name="qaHelpAboutSpeex"/>
|
||||
<addaction name="qaHelpAboutQt"/>
|
||||
<addaction name="separator"/>
|
||||
<addaction name="qaHelpVersionCheck"/>
|
||||
<addaction name="qaHelpWhatsThis" />
|
||||
<addaction name="separator" />
|
||||
<addaction name="qaHelpAbout" />
|
||||
<addaction name="qaHelpAboutSpeex" />
|
||||
<addaction name="qaHelpAboutQt" />
|
||||
<addaction name="separator" />
|
||||
<addaction name="qaHelpVersionCheck" />
|
||||
</widget>
|
||||
<addaction name="qmServer"/>
|
||||
<addaction name="qmPlayer"/>
|
||||
<addaction name="qmChannel"/>
|
||||
<addaction name="qmAudio"/>
|
||||
<addaction name="qmConfig"/>
|
||||
<addaction name="qmHelp"/>
|
||||
<addaction name="qmServer" />
|
||||
<addaction name="qmPlayer" />
|
||||
<addaction name="qmChannel" />
|
||||
<addaction name="qmAudio" />
|
||||
<addaction name="qmConfig" />
|
||||
<addaction name="qmHelp" />
|
||||
</widget>
|
||||
<widget class="QDockWidget" name="qdwLog">
|
||||
<property name="features">
|
||||
<widget class="QDockWidget" name="qdwLog" >
|
||||
<property name="features" >
|
||||
<set>QDockWidget::DockWidgetMovable</set>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<property name="windowTitle" >
|
||||
<string>Log</string>
|
||||
</property>
|
||||
<attribute name="dockWidgetArea">
|
||||
<attribute name="dockWidgetArea" >
|
||||
<number>1</number>
|
||||
</attribute>
|
||||
<widget class="QTextBrowser" name="qteLog">
|
||||
<property name="contextMenuPolicy">
|
||||
<widget class="QTextBrowser" name="qteLog" >
|
||||
<property name="contextMenuPolicy" >
|
||||
<enum>Qt::CustomContextMenu</enum>
|
||||
</property>
|
||||
<property name="whatsThis">
|
||||
<string>This shows all recent activity. Connecting to servers, errors and information messages all show up here.<br />To configure exactly which messages show up here, use the <b>Settings</b> command from the menu.</string>
|
||||
<property name="whatsThis" >
|
||||
<string>This shows all recent activity. Connecting to servers, errors and information messages all show up here.<br />To configure exactly which messages show up here, use the <b>Settings</b> command from the menu.</string>
|
||||
</property>
|
||||
<property name="openLinks">
|
||||
<property name="openLinks" >
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</widget>
|
||||
<action name="qaQuit">
|
||||
<property name="text">
|
||||
<widget class="QDockWidget" name="qdwChat" >
|
||||
<property name="sizePolicy" >
|
||||
<sizepolicy vsizetype="Preferred" hsizetype="Preferred" >
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="toolTip" >
|
||||
<string/>
|
||||
</property>
|
||||
<property name="whatsThis" >
|
||||
<string>This is the chatbar<br />If you enter text here and then press enter the text is sent to the player or channel that was selected. If nothing is selected the message is sent to your current channel.</string>
|
||||
</property>
|
||||
<property name="features" >
|
||||
<set>QDockWidget::DockWidgetMovable</set>
|
||||
</property>
|
||||
<property name="windowTitle" >
|
||||
<string>Chatbar</string>
|
||||
</property>
|
||||
<attribute name="dockWidgetArea" >
|
||||
<number>1</number>
|
||||
</attribute>
|
||||
<widget class="QLineEdit" name="qleChat" >
|
||||
<property name="sizePolicy" >
|
||||
<sizepolicy vsizetype="Fixed" hsizetype="Expanding" >
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="maximumSize" >
|
||||
<size>
|
||||
<width>16777215</width>
|
||||
<height>16777215</height>
|
||||
</size>
|
||||
</property>
|
||||
</widget>
|
||||
</widget>
|
||||
<action name="qaQuit" >
|
||||
<property name="text" >
|
||||
<string>&Quit Mumble</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<property name="toolTip" >
|
||||
<string>Closes the program</string>
|
||||
</property>
|
||||
<property name="whatsThis">
|
||||
<property name="whatsThis" >
|
||||
<string>Exits the application.</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<property name="shortcut" >
|
||||
<string>Ctrl+Q</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="qaServerConnect">
|
||||
<property name="text">
|
||||
<action name="qaServerConnect" >
|
||||
<property name="text" >
|
||||
<string>&Connect</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<property name="toolTip" >
|
||||
<string>Open the server connection dialog</string>
|
||||
</property>
|
||||
<property name="whatsThis">
|
||||
<property name="whatsThis" >
|
||||
<string>Shows a dialog of registered servers, and also allows quick connect.</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="qaServerDisconnect">
|
||||
<property name="enabled">
|
||||
<action name="qaServerDisconnect" >
|
||||
<property name="enabled" >
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="text">
|
||||
<property name="text" >
|
||||
<string>&Disconnect</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<property name="toolTip" >
|
||||
<string>Disconnect from server</string>
|
||||
</property>
|
||||
<property name="whatsThis">
|
||||
<property name="whatsThis" >
|
||||
<string>Disconnects you from the server.</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="qaServerBanList">
|
||||
<property name="enabled">
|
||||
<action name="qaServerBanList" >
|
||||
<property name="enabled" >
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="text">
|
||||
<property name="text" >
|
||||
<string>&Ban lists</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<property name="toolTip" >
|
||||
<string>Edit ban lists on server</string>
|
||||
</property>
|
||||
<property name="whatsThis">
|
||||
<property name="whatsThis" >
|
||||
<string>This lets you edit the server-side IP ban lists.</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="qaServerInformation">
|
||||
<property name="enabled">
|
||||
<action name="qaServerInformation" >
|
||||
<property name="enabled" >
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="text">
|
||||
<property name="text" >
|
||||
<string>&Information</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<property name="toolTip" >
|
||||
<string>Show information about the server connection</string>
|
||||
</property>
|
||||
<property name="whatsThis">
|
||||
<property name="whatsThis" >
|
||||
<string>This will show extended information about the connection to the server.</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="qaPlayerKick">
|
||||
<property name="text">
|
||||
<action name="qaPlayerKick" >
|
||||
<property name="text" >
|
||||
<string>&Kick</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<property name="toolTip" >
|
||||
<string>Kick player (with reason)</string>
|
||||
</property>
|
||||
<property name="whatsThis">
|
||||
<property name="whatsThis" >
|
||||
<string>Kick selected player off server. You'll be asked to specify a reason.</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="qaPlayerMute">
|
||||
<property name="checkable">
|
||||
<action name="qaPlayerMute" >
|
||||
<property name="checkable" >
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="text">
|
||||
<property name="text" >
|
||||
<string>&Mute</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<property name="toolTip" >
|
||||
<string>Mute player</string>
|
||||
</property>
|
||||
<property name="whatsThis">
|
||||
<property name="whatsThis" >
|
||||
<string>Mute or unmute player on server. Unmuting a deafened player will also undeafen them.</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="qaPlayerBan">
|
||||
<property name="text">
|
||||
<action name="qaPlayerBan" >
|
||||
<property name="text" >
|
||||
<string>&Ban</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<property name="toolTip" >
|
||||
<string>Kick and ban player (with reason)</string>
|
||||
</property>
|
||||
<property name="whatsThis">
|
||||
<property name="whatsThis" >
|
||||
<string>Kick and ban selected player from server. You'll be asked to specify a reason.</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="qaPlayerDeaf">
|
||||
<property name="checkable">
|
||||
<action name="qaPlayerDeaf" >
|
||||
<property name="checkable" >
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="text">
|
||||
<property name="text" >
|
||||
<string>&Deafen</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<property name="toolTip" >
|
||||
<string>Deafen player</string>
|
||||
</property>
|
||||
<property name="whatsThis">
|
||||
<property name="whatsThis" >
|
||||
<string>Deafen or undeafen player on server. Deafening a player will also mute them.</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="qaPlayerLocalMute">
|
||||
<property name="checkable">
|
||||
<action name="qaPlayerLocalMute" >
|
||||
<property name="checkable" >
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="text">
|
||||
<property name="text" >
|
||||
<string>&Local Mute</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<property name="toolTip" >
|
||||
<string>Mute player locally</string>
|
||||
</property>
|
||||
<property name="whatsThis">
|
||||
<property name="whatsThis" >
|
||||
<string>Mute or unmute player locally. Use this on other players in the same room.</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="qaPlayerTextMessage">
|
||||
<property name="text">
|
||||
<action name="qaPlayerTextMessage" >
|
||||
<property name="text" >
|
||||
<string>Send Messa&ge</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<property name="toolTip" >
|
||||
<string>Send a Text Message</string>
|
||||
</property>
|
||||
<property name="whatsThis">
|
||||
<property name="whatsThis" >
|
||||
<string>Sends a text message to another user.</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="qaChannelAdd">
|
||||
<property name="text">
|
||||
<action name="qaChannelAdd" >
|
||||
<property name="text" >
|
||||
<string>&Add</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<property name="toolTip" >
|
||||
<string>Add new channel</string>
|
||||
</property>
|
||||
<property name="whatsThis">
|
||||
<property name="whatsThis" >
|
||||
<string>This adds a new sub-channel to the currently selected channel.</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="qaChannelRemove">
|
||||
<property name="text">
|
||||
<action name="qaChannelRemove" >
|
||||
<property name="text" >
|
||||
<string>&Remove</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<property name="toolTip" >
|
||||
<string>Remove channel</string>
|
||||
</property>
|
||||
<property name="whatsThis">
|
||||
<property name="whatsThis" >
|
||||
<string>This removes a channel and all sub-channels.</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="qaChannelACL">
|
||||
<property name="text">
|
||||
<action name="qaChannelACL" >
|
||||
<property name="text" >
|
||||
<string>&Edit ACL</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<property name="toolTip" >
|
||||
<string>Edit Groups and ACL for channel</string>
|
||||
</property>
|
||||
<property name="whatsThis">
|
||||
<property name="whatsThis" >
|
||||
<string>This opens the Group and ACL dialog for the channel, to control permissions.</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="qaChannelRename">
|
||||
<property name="text">
|
||||
<action name="qaChannelRename" >
|
||||
<property name="text" >
|
||||
<string>&Rename</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<property name="toolTip" >
|
||||
<string>Renames the channel</string>
|
||||
</property>
|
||||
<property name="whatsThis">
|
||||
<property name="whatsThis" >
|
||||
<string>This renames a channel.</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="qaChannelDescUpdate">
|
||||
<property name="text">
|
||||
<action name="qaChannelDescUpdate" >
|
||||
<property name="text" >
|
||||
<string>&Change Description</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<property name="toolTip" >
|
||||
<string>Changes the channel description</string>
|
||||
</property>
|
||||
<property name="whatsThis">
|
||||
<property name="whatsThis" >
|
||||
<string>This changes the description of a channel.</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="qaChannelLink">
|
||||
<property name="text">
|
||||
<action name="qaChannelLink" >
|
||||
<property name="text" >
|
||||
<string>&Link</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<property name="toolTip" >
|
||||
<string>Link your channel to another channel</string>
|
||||
</property>
|
||||
<property name="whatsThis">
|
||||
<property name="whatsThis" >
|
||||
<string>This links your current channel to the selected channel. If they have permission to speak in the other channel, players can now hear each other. This is a permanent link, and will last until manually unlinked or the server is restarted. Please see the shortcuts for push-to-link.</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="qaChannelUnlink">
|
||||
<property name="text">
|
||||
<string comment="Channel">&Unlink</string>
|
||||
<action name="qaChannelUnlink" >
|
||||
<property name="text" >
|
||||
<string comment="Channel" >&Unlink</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<property name="toolTip" >
|
||||
<string>Unlink your channel from another channel</string>
|
||||
</property>
|
||||
<property name="whatsThis">
|
||||
<property name="whatsThis" >
|
||||
<string>This unlinks your current channel from the selected channel.</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="qaChannelUnlinkAll">
|
||||
<property name="text">
|
||||
<action name="qaChannelUnlinkAll" >
|
||||
<property name="text" >
|
||||
<string>Unlink &All</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<property name="toolTip" >
|
||||
<string>Unlinks your channel from all linked channels.</string>
|
||||
</property>
|
||||
<property name="whatsThis">
|
||||
<property name="whatsThis" >
|
||||
<string>This unlinks your current channel (not the selected one) from all linked channels.</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="qaAudioReset">
|
||||
<property name="text">
|
||||
<action name="qaAudioReset" >
|
||||
<property name="text" >
|
||||
<string>&Reset</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<property name="toolTip" >
|
||||
<string>Reset audio preprocessor</string>
|
||||
</property>
|
||||
<property name="whatsThis">
|
||||
<property name="whatsThis" >
|
||||
<string>This will reset the audio preprocessor, including noise cancellation, automatic gain and voice activity detection. If something suddenly worsens the audio environment (like dropping the microphone) and it was temporary, use this to avoid having to wait for the preprocessor to readjust.</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="qaAudioMute">
|
||||
<property name="checkable">
|
||||
<action name="qaAudioMute" >
|
||||
<property name="checkable" >
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="text">
|
||||
<property name="text" >
|
||||
<string>&Mute Self</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<property name="toolTip" >
|
||||
<string>Mute yourself</string>
|
||||
</property>
|
||||
<property name="whatsThis">
|
||||
<property name="whatsThis" >
|
||||
<string>Mute or unmute yourself. When muted, you will not send any data to the server. Unmuting while deafened will also undeafen.</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="qaAudioDeaf">
|
||||
<property name="checkable">
|
||||
<action name="qaAudioDeaf" >
|
||||
<property name="checkable" >
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="text">
|
||||
<property name="text" >
|
||||
<string>&Deafen Self</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<property name="toolTip" >
|
||||
<string>Deafen yourself</string>
|
||||
</property>
|
||||
<property name="whatsThis">
|
||||
<property name="whatsThis" >
|
||||
<string>Deafen or undeafen yourself. When deafened, you will not hear anything. Deafening yourself will also mute.</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="qaAudioTTS">
|
||||
<property name="checkable">
|
||||
<action name="qaAudioTTS" >
|
||||
<property name="checkable" >
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="text">
|
||||
<property name="text" >
|
||||
<string>&Text-To-Speech</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<property name="toolTip" >
|
||||
<string>Toggle Text-To-Speech</string>
|
||||
</property>
|
||||
<property name="whatsThis">
|
||||
<property name="whatsThis" >
|
||||
<string>Enable or disable the text-to-speech engine. Only messages enabled for TTS in the Configuration dialog will actually be spoken.</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="qaAudioStats">
|
||||
<property name="text">
|
||||
<action name="qaAudioStats" >
|
||||
<property name="text" >
|
||||
<string>S&tatistics</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<property name="toolTip" >
|
||||
<string>Display audio statistics</string>
|
||||
</property>
|
||||
<property name="whatsThis">
|
||||
<property name="whatsThis" >
|
||||
<string>Pops up a small dialog with information about your current audio input.</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="qaAudioUnlink">
|
||||
<property name="text">
|
||||
<string comment="Plugin">&Unlink</string>
|
||||
<action name="qaAudioUnlink" >
|
||||
<property name="text" >
|
||||
<string comment="Plugin" >&Unlink</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<property name="toolTip" >
|
||||
<string>Forcibly unlink plugin</string>
|
||||
</property>
|
||||
<property name="whatsThis">
|
||||
<property name="whatsThis" >
|
||||
<string>This forces the current plugin to unlink, which is handy if it is reading completely wrong data.</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="qaConfigDialog">
|
||||
<property name="text">
|
||||
<action name="qaConfigDialog" >
|
||||
<property name="text" >
|
||||
<string>&Settings</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<property name="toolTip" >
|
||||
<string>Configure Mumble</string>
|
||||
</property>
|
||||
<property name="whatsThis">
|
||||
<property name="whatsThis" >
|
||||
<string>Allows you to change most settings for Mumble.</string>
|
||||
</property>
|
||||
<property name="menuRole">
|
||||
<property name="menuRole" >
|
||||
<enum>QAction::PreferencesRole</enum>
|
||||
</property>
|
||||
</action>
|
||||
<action name="qaAudioWizard">
|
||||
<property name="text">
|
||||
<action name="qaAudioWizard" >
|
||||
<property name="text" >
|
||||
<string>&Audio Wizard</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<property name="toolTip" >
|
||||
<string>Start the audio configuration wizard</string>
|
||||
</property>
|
||||
<property name="whatsThis">
|
||||
<property name="whatsThis" >
|
||||
<string>This will guide you through the process of configuring your audio hardware.</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="qaHelpWhatsThis">
|
||||
<property name="text">
|
||||
<action name="qaHelpWhatsThis" >
|
||||
<property name="text" >
|
||||
<string>&What's This?</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<property name="toolTip" >
|
||||
<string>Enter What's This? mode</string>
|
||||
</property>
|
||||
<property name="whatsThis">
|
||||
<string>Click this to enter "What's This?" mode. Your cursor will turn into a question mark. Click on any button, menu choice or area to show a description of what it is.</string>
|
||||
<property name="whatsThis" >
|
||||
<string>Click this to enter "What's This?" mode. Your cursor will turn into a question mark. Click on any button, menu choice or area to show a description of what it is.</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="qaHelpAbout">
|
||||
<property name="text">
|
||||
<action name="qaHelpAbout" >
|
||||
<property name="text" >
|
||||
<string>&About</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<property name="toolTip" >
|
||||
<string>Information about Mumble</string>
|
||||
</property>
|
||||
<property name="whatsThis">
|
||||
<property name="whatsThis" >
|
||||
<string>Shows a small dialog with information and license for Mumble.</string>
|
||||
</property>
|
||||
<property name="menuRole">
|
||||
<property name="menuRole" >
|
||||
<enum>QAction::AboutRole</enum>
|
||||
</property>
|
||||
</action>
|
||||
<action name="qaHelpAboutSpeex">
|
||||
<property name="text">
|
||||
<action name="qaHelpAboutSpeex" >
|
||||
<property name="text" >
|
||||
<string>About &Speex</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<property name="toolTip" >
|
||||
<string>Information about Speex</string>
|
||||
</property>
|
||||
<property name="whatsThis">
|
||||
<property name="whatsThis" >
|
||||
<string>Shows a small dialog with information about Speex.</string>
|
||||
</property>
|
||||
<property name="menuRole">
|
||||
<property name="menuRole" >
|
||||
<enum>QAction::ApplicationSpecificRole</enum>
|
||||
</property>
|
||||
</action>
|
||||
<action name="qaHelpAboutQt">
|
||||
<property name="text">
|
||||
<action name="qaHelpAboutQt" >
|
||||
<property name="text" >
|
||||
<string>About &Qt</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<property name="toolTip" >
|
||||
<string>Information about Qt</string>
|
||||
</property>
|
||||
<property name="whatsThis">
|
||||
<property name="whatsThis" >
|
||||
<string>Shows a small dialog with information about Qt.</string>
|
||||
</property>
|
||||
<property name="menuRole">
|
||||
<property name="menuRole" >
|
||||
<enum>QAction::AboutQtRole</enum>
|
||||
</property>
|
||||
</action>
|
||||
<action name="qaHelpVersionCheck">
|
||||
<property name="text">
|
||||
<action name="qaHelpVersionCheck" >
|
||||
<property name="text" >
|
||||
<string>Check for &Updates</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<property name="toolTip" >
|
||||
<string>Check for new version of Mumble</string>
|
||||
</property>
|
||||
<property name="whatsThis">
|
||||
<property name="whatsThis" >
|
||||
<string>Connects to the Mumble webpage to check if a new version is available, and notifies you with an appropriate download URL if this is the case.</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="qaChannelSendMessage">
|
||||
<property name="text">
|
||||
<action name="qaChannelSendMessage" >
|
||||
<property name="text" >
|
||||
<string>Send Messa&ge</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<property name="toolTip" >
|
||||
<string>Send a Text Message</string>
|
||||
</property>
|
||||
<property name="whatsThis">
|
||||
<property name="whatsThis" >
|
||||
<string>Sends a text message to all users in a channel.</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="qaChannelSendTreeMessage">
|
||||
<property name="text">
|
||||
<action name="qaChannelSendTreeMessage" >
|
||||
<property name="text" >
|
||||
<string>Send &Tree Message</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<property name="toolTip" >
|
||||
<string>Send message to channel tree.</string>
|
||||
</property>
|
||||
<property name="whatsThis">
|
||||
<property name="whatsThis" >
|
||||
<string>This sends a text message to a channel and it's subchannels.</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="qaConfigMinimal">
|
||||
<property name="checkable">
|
||||
<action name="qaConfigMinimal" >
|
||||
<property name="checkable" >
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="text">
|
||||
<property name="text" >
|
||||
<string>&Minimal View</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<property name="toolTip" >
|
||||
<string>Toggle minimal window modes</string>
|
||||
</property>
|
||||
<property name="whatsThis">
|
||||
<property name="whatsThis" >
|
||||
<string>This will toggle minimal mode, where the log window and menu is hidden.</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="qaConfigHideFrame">
|
||||
<property name="checkable">
|
||||
<action name="qaConfigHideFrame" >
|
||||
<property name="checkable" >
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="text">
|
||||
<property name="text" >
|
||||
<string>Hide Frame</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<property name="toolTip" >
|
||||
<string>Toggle showing frame on minimal window</string>
|
||||
</property>
|
||||
<property name="whatsThis">
|
||||
<property name="whatsThis" >
|
||||
<string>This will toggle whether the minimal window should have a frame for moving and resizing.</string>
|
||||
</property>
|
||||
</action>
|
||||
|
||||
@ -72,6 +72,7 @@ Settings::Settings() {
|
||||
bFirstTime = true;
|
||||
ceExpand = ChannelsWithPlayers;
|
||||
ceChannelDrag = Ask;
|
||||
bShowChatbar = true;
|
||||
bMinimalView = false;
|
||||
bHideFrame = false;
|
||||
bAlwaysOnTop = false;
|
||||
@ -278,6 +279,7 @@ void Settings::load() {
|
||||
LOADENUM(ceChannelDrag, "ui/drag");
|
||||
SAVELOAD(bAlwaysOnTop, "ui/alwaysontop");
|
||||
SAVELOAD(bAskOnQuit, "ui/askonquit");
|
||||
SAVELOAD(bShowChatbar, "ui/shotchatbar");
|
||||
SAVELOAD(bMinimalView, "ui/minimalview");
|
||||
SAVELOAD(bHideFrame, "ui/hideframe");
|
||||
SAVELOAD(bPlayerTop, "ui/playertop");
|
||||
@ -429,6 +431,7 @@ void Settings::save() {
|
||||
SAVELOAD(ceChannelDrag, "ui/drag");
|
||||
SAVELOAD(bAlwaysOnTop, "ui/alwaysontop");
|
||||
SAVELOAD(bAskOnQuit, "ui/askonquit");
|
||||
SAVELOAD(bShowChatbar, "ui/showchatbar");
|
||||
SAVELOAD(bMinimalView, "ui/minimalview");
|
||||
SAVELOAD(bHideFrame, "ui/hideframe");
|
||||
SAVELOAD(bPlayerTop, "ui/playertop");
|
||||
|
||||
@ -126,6 +126,7 @@ struct Settings {
|
||||
QByteArray qbaConfigGeometry;
|
||||
ChannelExpand ceExpand;
|
||||
ChannelDrag ceChannelDrag;
|
||||
bool bShowChatbar;
|
||||
bool bMinimalView;
|
||||
bool bHideFrame;
|
||||
bool bAlwaysOnTop;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user