author | wazlaf <wazlaf> | 2002-10-16 21:04:15 (UTC) |
---|---|---|
committer | wazlaf <wazlaf> | 2002-10-16 21:04:15 (UTC) |
commit | 6ce0b792c67bf14db705c459a2690390aae70846 (patch) (unidiff) | |
tree | 3244d85cd7e57638bd11452ec7ed7bf51e633b89 | |
parent | 8834d3ee866fe9f0c093bf50fa78b4e0f5d2018c (diff) | |
download | opie-6ce0b792c67bf14db705c459a2690390aae70846.zip opie-6ce0b792c67bf14db705c459a2690390aae70846.tar.gz opie-6ce0b792c67bf14db705c459a2690390aae70846.tar.bz2 |
qwhatsthis are now complete
-rw-r--r-- | noncore/net/opieirc/ircchanneltab.cpp | 4 | ||||
-rw-r--r-- | noncore/net/opieirc/ircquerytab.cpp | 3 | ||||
-rw-r--r-- | noncore/net/opieirc/ircservertab.cpp | 3 | ||||
-rw-r--r-- | noncore/net/opieirc/irctab.cpp | 3 | ||||
-rw-r--r-- | noncore/net/opieirc/opie-irc.control | 2 |
5 files changed, 13 insertions, 2 deletions
diff --git a/noncore/net/opieirc/ircchanneltab.cpp b/noncore/net/opieirc/ircchanneltab.cpp index f19e019..c1964c8 100644 --- a/noncore/net/opieirc/ircchanneltab.cpp +++ b/noncore/net/opieirc/ircchanneltab.cpp | |||
@@ -1,12 +1,12 @@ | |||
1 | #include <qpe/qpeapplication.h> | 1 | #include <qpe/qpeapplication.h> |
2 | #include <qpe/resource.h> | 2 | #include <qpe/resource.h> |
3 | #include <qcursor.h> | 3 | #include <qcursor.h> |
4 | #include <stdio.h> | 4 | #include <qwhatsthis.h> |
5 | #include <qhbox.h> | 5 | #include <qhbox.h> |
6 | #include "ircchanneltab.h" | 6 | #include "ircchanneltab.h" |
7 | #include "ircservertab.h" | 7 | #include "ircservertab.h" |
8 | 8 | ||
9 | IRCChannelTab::IRCChannelTab(IRCChannel *channel, IRCServerTab *parentTab, MainWindow *mainWindow, QWidget *parent, const char *name, WFlags f) : IRCTab(parent, name, f) { | 9 | IRCChannelTab::IRCChannelTab(IRCChannel *channel, IRCServerTab *parentTab, MainWindow *mainWindow, QWidget *parent, const char *name, WFlags f) : IRCTab(parent, name, f) { |
10 | m_mainWindow = mainWindow; | 10 | m_mainWindow = mainWindow; |
11 | m_parentTab = parentTab; | 11 | m_parentTab = parentTab; |
12 | m_channel = channel; | 12 | m_channel = channel; |
@@ -14,21 +14,23 @@ IRCChannelTab::IRCChannelTab(IRCChannel *channel, IRCServerTab *parentTab, MainW | |||
14 | QHBox *hbox = new QHBox(this); | 14 | QHBox *hbox = new QHBox(this); |
15 | m_textview = new QTextView(hbox); | 15 | m_textview = new QTextView(hbox); |
16 | m_textview->setHScrollBarMode(QScrollView::AlwaysOff); | 16 | m_textview->setHScrollBarMode(QScrollView::AlwaysOff); |
17 | m_textview->setVScrollBarMode(QScrollView::AlwaysOn); | 17 | m_textview->setVScrollBarMode(QScrollView::AlwaysOn); |
18 | m_listVisible = TRUE; | 18 | m_listVisible = TRUE; |
19 | m_listButton = new QPushButton(">", m_textview); | 19 | m_listButton = new QPushButton(">", m_textview); |
20 | m_textview->setCornerWidget(m_listButton); | 20 | m_textview->setCornerWidget(m_listButton); |
21 | m_textview->setTextFormat(RichText); | 21 | m_textview->setTextFormat(RichText); |
22 | QWhatsThis::add(m_textview, tr("Channel discussion")); | ||
22 | connect(m_listButton, SIGNAL(clicked()), this, SLOT(toggleList())); | 23 | connect(m_listButton, SIGNAL(clicked()), this, SLOT(toggleList())); |
23 | m_list = new IRCChannelList(m_channel, hbox); | 24 | m_list = new IRCChannelList(m_channel, hbox); |
24 | m_list->update(); | 25 | m_list->update(); |
25 | m_list->setMaximumWidth(LISTWIDTH); | 26 | m_list->setMaximumWidth(LISTWIDTH); |
26 | m_field = new IRCHistoryLineEdit(this); | 27 | m_field = new IRCHistoryLineEdit(this); |
28 | QWhatsThis::add(m_field, tr("Type your message here to participate in the channel discussion")); | ||
27 | m_popup = new QPopupMenu(m_list); | 29 | m_popup = new QPopupMenu(m_list); |
28 | m_lines = 0; | 30 | m_lines = 0; |
29 | /* Required so that embedded-style "right" clicks work */ | 31 | /* Required so that embedded-style "right" clicks work */ |
30 | QPEApplication::setStylusOperation(m_list->viewport(), QPEApplication::RightOnHold); | 32 | QPEApplication::setStylusOperation(m_list->viewport(), QPEApplication::RightOnHold); |
31 | connect(m_list, SIGNAL(mouseButtonPressed(int, QListBoxItem *, const QPoint&)), this, SLOT(mouseButtonPressed(int, QListBoxItem *, const QPoint &))); | 33 | connect(m_list, SIGNAL(mouseButtonPressed(int, QListBoxItem *, const QPoint&)), this, SLOT(mouseButtonPressed(int, QListBoxItem *, const QPoint &))); |
32 | 34 | ||
33 | /* Construct the popup menu */ | 35 | /* Construct the popup menu */ |
34 | QPopupMenu *ctcpMenu = new QPopupMenu(m_list); | 36 | QPopupMenu *ctcpMenu = new QPopupMenu(m_list); |
diff --git a/noncore/net/opieirc/ircquerytab.cpp b/noncore/net/opieirc/ircquerytab.cpp index 869e4f7..21a53dc 100644 --- a/noncore/net/opieirc/ircquerytab.cpp +++ b/noncore/net/opieirc/ircquerytab.cpp | |||
@@ -1,24 +1,27 @@ | |||
1 | #include <qhbox.h> | 1 | #include <qhbox.h> |
2 | #include <qwhatsthis.h> | ||
2 | #include "ircquerytab.h" | 3 | #include "ircquerytab.h" |
3 | #include "ircservertab.h" | 4 | #include "ircservertab.h" |
4 | 5 | ||
5 | IRCQueryTab::IRCQueryTab(IRCPerson *person, IRCServerTab *parentTab, MainWindow *mainWindow, QWidget *parent, const char *name, WFlags f) : IRCTab(parent, name, f) { | 6 | IRCQueryTab::IRCQueryTab(IRCPerson *person, IRCServerTab *parentTab, MainWindow *mainWindow, QWidget *parent, const char *name, WFlags f) : IRCTab(parent, name, f) { |
6 | m_mainWindow = mainWindow; | 7 | m_mainWindow = mainWindow; |
7 | m_parentTab = parentTab; | 8 | m_parentTab = parentTab; |
8 | m_lines = 0; | 9 | m_lines = 0; |
9 | m_person = new IRCPerson(*person); /* We need this (the person might sign off and the original IRCPerson gets deleted) */ | 10 | m_person = new IRCPerson(*person); /* We need this (the person might sign off and the original IRCPerson gets deleted) */ |
10 | m_description->setText(tr("Talking to ") + " <b>" + person->nick() + "</b>"); | 11 | m_description->setText(tr("Talking to ") + " <b>" + person->nick() + "</b>"); |
11 | QHBox *hbox = new QHBox(this); | 12 | QHBox *hbox = new QHBox(this); |
12 | m_textview = new QTextView(hbox); | 13 | m_textview = new QTextView(hbox); |
13 | m_textview->setHScrollBarMode(QScrollView::AlwaysOff); | 14 | m_textview->setHScrollBarMode(QScrollView::AlwaysOff); |
14 | m_textview->setVScrollBarMode(QScrollView::AlwaysOn); | 15 | m_textview->setVScrollBarMode(QScrollView::AlwaysOn); |
15 | m_textview->setTextFormat(RichText); | 16 | m_textview->setTextFormat(RichText); |
17 | QWhatsThis::add(m_textview, tr("Private discussion")); | ||
16 | m_field = new IRCHistoryLineEdit(this); | 18 | m_field = new IRCHistoryLineEdit(this); |
19 | QWhatsThis::add(m_field, tr("Type your text here in order to send a message to the other person")); | ||
17 | m_layout->add(hbox); | 20 | m_layout->add(hbox); |
18 | hbox->show(); | 21 | hbox->show(); |
19 | m_layout->add(m_field); | 22 | m_layout->add(m_field); |
20 | m_field->setFocus(); | 23 | m_field->setFocus(); |
21 | connect(m_field, SIGNAL(returnPressed()), this, SLOT(processCommand())); | 24 | connect(m_field, SIGNAL(returnPressed()), this, SLOT(processCommand())); |
22 | settingsChanged(); | 25 | settingsChanged(); |
23 | } | 26 | } |
24 | 27 | ||
diff --git a/noncore/net/opieirc/ircservertab.cpp b/noncore/net/opieirc/ircservertab.cpp index 5d1e290..a46f105 100644 --- a/noncore/net/opieirc/ircservertab.cpp +++ b/noncore/net/opieirc/ircservertab.cpp | |||
@@ -1,25 +1,28 @@ | |||
1 | #include <qpe/config.h> | 1 | #include <qpe/config.h> |
2 | #include <qtextstream.h> | 2 | #include <qtextstream.h> |
3 | #include <qwhatsthis.h> | ||
3 | #include "ircservertab.h" | 4 | #include "ircservertab.h" |
4 | 5 | ||
5 | IRCServerTab::IRCServerTab(IRCServer server, MainWindow *mainWindow, QWidget *parent, const char *name, WFlags f) : IRCTab(parent, name, f) { | 6 | IRCServerTab::IRCServerTab(IRCServer server, MainWindow *mainWindow, QWidget *parent, const char *name, WFlags f) : IRCTab(parent, name, f) { |
6 | m_server = server; | 7 | m_server = server; |
7 | m_session = new IRCSession(&m_server); | 8 | m_session = new IRCSession(&m_server); |
8 | m_mainWindow = mainWindow; | 9 | m_mainWindow = mainWindow; |
9 | m_close = FALSE; | 10 | m_close = FALSE; |
10 | m_lines = 0; | 11 | m_lines = 0; |
11 | m_description->setText(tr("Connection to")+" <b>" + server.hostname() + ":" + QString::number(server.port()) + "</b>"); | 12 | m_description->setText(tr("Connection to")+" <b>" + server.hostname() + ":" + QString::number(server.port()) + "</b>"); |
12 | m_textview = new QTextView(this); | 13 | m_textview = new QTextView(this); |
13 | m_textview->setHScrollBarMode(QScrollView::AlwaysOff); | 14 | m_textview->setHScrollBarMode(QScrollView::AlwaysOff); |
14 | m_textview->setVScrollBarMode(QScrollView::AlwaysOn); | 15 | m_textview->setVScrollBarMode(QScrollView::AlwaysOn); |
15 | m_textview->setTextFormat(RichText); | 16 | m_textview->setTextFormat(RichText); |
17 | QWhatsThis::add(m_textview, tr("Server messages")); | ||
16 | m_layout->add(m_textview); | 18 | m_layout->add(m_textview); |
17 | m_field = new IRCHistoryLineEdit(this); | 19 | m_field = new IRCHistoryLineEdit(this); |
20 | QWhatsThis::add(m_textview, tr("Type commands here. A list of available commands can be found inside the OpieIRC help")); | ||
18 | m_layout->add(m_field); | 21 | m_layout->add(m_field); |
19 | connect(m_field, SIGNAL(returnPressed()), this, SLOT(processCommand())); | 22 | connect(m_field, SIGNAL(returnPressed()), this, SLOT(processCommand())); |
20 | m_field->setFocus(); | 23 | m_field->setFocus(); |
21 | connect(m_session, SIGNAL(outputReady(IRCOutput)), this, SLOT(display(IRCOutput))); | 24 | connect(m_session, SIGNAL(outputReady(IRCOutput)), this, SLOT(display(IRCOutput))); |
22 | settingsChanged(); | 25 | settingsChanged(); |
23 | } | 26 | } |
24 | 27 | ||
25 | void IRCServerTab::appendText(QString text) { | 28 | void IRCServerTab::appendText(QString text) { |
diff --git a/noncore/net/opieirc/irctab.cpp b/noncore/net/opieirc/irctab.cpp index 0bb9d4c..8a869d6 100644 --- a/noncore/net/opieirc/irctab.cpp +++ b/noncore/net/opieirc/irctab.cpp | |||
@@ -1,30 +1,33 @@ | |||
1 | #include <qpe/resource.h> | 1 | #include <qpe/resource.h> |
2 | #include <qpixmap.h> | 2 | #include <qpixmap.h> |
3 | #include <qpushbutton.h> | 3 | #include <qpushbutton.h> |
4 | #include <qwhatsthis.h> | ||
4 | #include "irctab.h" | 5 | #include "irctab.h" |
5 | 6 | ||
6 | QString IRCTab::m_errorColor; | 7 | QString IRCTab::m_errorColor; |
7 | QString IRCTab::m_serverColor; | 8 | QString IRCTab::m_serverColor; |
8 | QString IRCTab::m_textColor; | 9 | QString IRCTab::m_textColor; |
9 | QString IRCTab::m_backgroundColor; | 10 | QString IRCTab::m_backgroundColor; |
10 | QString IRCTab::m_selfColor; | 11 | QString IRCTab::m_selfColor; |
11 | QString IRCTab::m_otherColor; | 12 | QString IRCTab::m_otherColor; |
12 | QString IRCTab::m_notificationColor; | 13 | QString IRCTab::m_notificationColor; |
13 | int IRCTab::m_maxLines; | 14 | int IRCTab::m_maxLines; |
14 | 15 | ||
15 | IRCTab::IRCTab(QWidget *parent, const char *name, WFlags f) : QWidget(parent, name, f) { | 16 | IRCTab::IRCTab(QWidget *parent, const char *name, WFlags f) : QWidget(parent, name, f) { |
16 | m_layout = new QVBoxLayout(this); | 17 | m_layout = new QVBoxLayout(this); |
17 | QHBoxLayout *descLayout = new QHBoxLayout(m_layout); | 18 | QHBoxLayout *descLayout = new QHBoxLayout(m_layout); |
18 | descLayout->setMargin(5); | 19 | descLayout->setMargin(5); |
19 | m_description = new QLabel(tr("Missing description"), this); | 20 | m_description = new QLabel(tr("Missing description"), this); |
21 | QWhatsThis::add(m_description, tr("Description of the tab's content")); | ||
20 | descLayout->addWidget(m_description); | 22 | descLayout->addWidget(m_description); |
21 | descLayout->setStretchFactor(m_description, 5); | 23 | descLayout->setStretchFactor(m_description, 5); |
22 | QPushButton *close = new QPushButton(this); | 24 | QPushButton *close = new QPushButton(this); |
25 | QWhatsThis::add(close, tr("Close this tab")); | ||
23 | close->setPixmap(Resource::loadPixmap("close")); | 26 | close->setPixmap(Resource::loadPixmap("close")); |
24 | connect(close, SIGNAL(clicked()), this, SLOT(remove())); | 27 | connect(close, SIGNAL(clicked()), this, SLOT(remove())); |
25 | descLayout->addWidget(close); | 28 | descLayout->addWidget(close); |
26 | descLayout->setStretchFactor(m_description, 1); | 29 | descLayout->setStretchFactor(m_description, 1); |
27 | } | 30 | } |
28 | 31 | ||
29 | 32 | ||
30 | void IRCTab::setID(int id) { | 33 | void IRCTab::setID(int id) { |
diff --git a/noncore/net/opieirc/opie-irc.control b/noncore/net/opieirc/opie-irc.control index aada957..0bcdecd 100644 --- a/noncore/net/opieirc/opie-irc.control +++ b/noncore/net/opieirc/opie-irc.control | |||
@@ -1,8 +1,8 @@ | |||
1 | Files: bin/opieirc pics/opieirc apps/Applications/opieirc.desktop | 1 | Files: bin/opieirc pics/opieirc apps/Applications/opieirc.desktop help/en/html/opieirc.html help/en/html/opieirc |
2 | Priority: optional | 2 | Priority: optional |
3 | Section: Communications | 3 | Section: Communications |
4 | Maintainer: Wenzel Jakob <root@wazlaf.de> | 4 | Maintainer: Wenzel Jakob <root@wazlaf.de> |
5 | Architecture: arm | 5 | Architecture: arm |
6 | Version: $QPE_VERSION-$SUB_VERSION | 6 | Version: $QPE_VERSION-$SUB_VERSION |
7 | Depends: opie-base ($QPE_VERSION) | 7 | Depends: opie-base ($QPE_VERSION) |
8 | Description: The Opie IRC client lets you chat on your favorite IRC server using your handheld computer | 8 | Description: The Opie IRC client lets you chat on your favorite IRC server using your handheld computer |