kuassel: implement tooltips

This commit is contained in:
Ivailo Monev 2015-01-27 15:46:12 +00:00
parent 253930646a
commit 97d0c733b6
4 changed files with 36 additions and 5 deletions

View file

@ -3,5 +3,6 @@ install(FILES kuassel.notifyrc DESTINATION ${DATA_INSTALL_DIR}/kuassel)
install(FILES kuasirc.protocol kuasircs.protocol kuasirc6.protocol DESTINATION ${SERVICES_INSTALL_DIR})
install(FILES networks.ini DESTINATION ${DATA_INSTALL_DIR}/kuassel)
install(FILES tips DESTINATION ${DATA_INSTALL_DIR}/kuassel )
install(DIRECTORY stylesheets DESTINATION ${DATA_INSTALL_DIR}/kuassel)
install(DIRECTORY scripts DESTINATION ${DATA_INSTALL_DIR}/kuassel USE_SOURCE_PERMISSIONS)

View file

@ -4,6 +4,7 @@
this means that they are an Op, or Operator of the channel.</p>
</html>
</tip>
<tip category="Kuassel|app">
<html>
<p>If you spend anytime on IRC at all, you'll begin to notice letters strung
@ -11,6 +12,7 @@ together and not making any sense. As folks spend more time typing, they find
ways to shortcut certain phrases, or sentences.</p>
</html>
</tip>
<tip category="Kuassel|app">
<html>
<p>There are certain rules of etiquette for chatting on IRC, usually called
@ -22,13 +24,35 @@ you join a channel and find it offensive, simply leave, there are thousands of
others to choose from.</p>
</html>
</tip>
<tip category="Kuassel|app">
<html>
<p>Chatting isn't the only thing we can do while using IRC. Folks can PLAY sounds
that are in their computers already, or can GET sounds from someone else by
<p>Chatting isn't the only thing we can do while using IRC. Folks can play sounds
that are in their computers already, or can get sounds from someone else by
requesting them. To play a sound, the command is <em>/sound wavename.wav</em>. There are
literally thousands of wavs available, which is the term used to describe a
sound file. Not all channels allow wavs to be played, so just hang out, or ask
one of the ops what their policy is on the playing of wavs.</p>
</html>
</tip>
</tip>
<tip category="Kuassel|app">
<html>
<p>Each IRC network can support thousands of users, but each user must have a
unique nickname. If somebody uses your nickname while you aren't connected,
you'll have no way of getting it back until they leave. If your favorite IRC
network runs a NickServ service, you should protect your nickname by
registering it.</p>
</html>
</tip>
<tip category="Kuassel|app">
<html>
<p>
If you have a gripe with somebody on a newsgroup, the sensible thing to do is
to use private messages. This relieves everyone else from your arguing, and
that can only be a good thing. You can send a private message like so:</p>
<p><strong>/msg Dave You can't be serious</strong></p>
</html>
</tip>

View file

@ -36,6 +36,7 @@
#include <KToolBar>
#include <KWindowSystem>
#include <KAboutApplicationDialog>
#include <KTipDialog>
#ifdef Q_WS_X11
# include <QX11Info>
@ -213,6 +214,9 @@ void MainWin::init()
showCoreConnectionDlg();
}
// show the nice tips
KTipDialog::showTip();
if (Quassel::isOptionSet("url")) {
// FIXME: connect to channel upon request from external KDE application
qWarning() << "non-interactive connection not yet implemented:" << Quassel::optionValue("url");
@ -463,6 +467,9 @@ void MainWin::setupMenus()
_helpMenu = menuBar()->addMenu(i18n("&Help"));
_helpMenu->addAction(KStandardAction::whatsThis(_kHelpMenu, SLOT(contextHelpActivated()), this));
_helpMenu->addSeparator();
#warning "implement tips-of-day action from help menu"
// _helpMenu->addAction(KStandardAction::tipOfDay(_kHelpMenu, SLOT(tipOfDay()), this));
// _helpMenu->addSeparator();
_helpMenu->addAction(KStandardAction::reportBug(_kHelpMenu, SLOT(reportBug()), this));
_helpMenu->addSeparator();
_helpMenu->addAction(KStandardAction::switchApplicationLanguage(_kHelpMenu, SLOT(switchApplicationLanguage()), this));

View file

@ -21,7 +21,7 @@
#ifndef MAINWIN_H_
#define MAINWIN_H_
# include <KMainWindow>
#include <KMainWindow>
#include "qtui.h"
#include "titlesetter.h"
@ -47,7 +47,6 @@ class TopicWidget;
class QMenu;
class QLabel;
class QToolBar;
class KHelpMenu;
//!\brief The main window of Quassel's QtUi.