diff --git a/Makefile.am b/Makefile.am index 08921648c..3f95e6e80 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,6 +1,6 @@ KDE_CXXFLAGS = $(USE_RTTI) -UQT_NO_ASCII_CAST -UQT_NO_COMPAT -SUBDIRS = pics +SUBDIRS = about pics INCLUDES = $(all_includes) LDADD = $(LIB_KHTML) -lkspell -lmimelib -lkab $(LIB_KFILE) diff --git a/about/Makefile.am b/about/Makefile.am new file mode 100644 index 000000000..abb269cda --- /dev/null +++ b/about/Makefile.am @@ -0,0 +1,8 @@ + +data_DATA = background.png kmail.png lines2.png shadow1.png bgtable.png \ + konq.css main.html kdelogo2.png lines.png pointers.png + +datadir = $(kde_datadir)/kmail/about + +EXTRA_DIST = $(data_DATA) + diff --git a/about/background.png b/about/background.png new file mode 100644 index 000000000..ef366ccf5 Binary files /dev/null and b/about/background.png differ diff --git a/about/bgtable.png b/about/bgtable.png new file mode 100644 index 000000000..f7e21d992 Binary files /dev/null and b/about/bgtable.png differ diff --git a/about/kdelogo2.png b/about/kdelogo2.png new file mode 100644 index 000000000..10ac5f8b7 Binary files /dev/null and b/about/kdelogo2.png differ diff --git a/about/kmail.png b/about/kmail.png new file mode 100644 index 000000000..a258f040b Binary files /dev/null and b/about/kmail.png differ diff --git a/about/konq.css b/about/konq.css new file mode 100644 index 000000000..5566b04f0 --- /dev/null +++ b/about/konq.css @@ -0,0 +1,59 @@ +body {background-color: #3679AD; + color: #000000; + margin-left: 0; + margin-right: 0; + margin-top: 5; + padding: 0; + background-image: url(background.png); + background-repeat: no-repeat; + background-position: top-center;} + +td.trans {background-image: url(bgtable.png); + background-repeat: no-repeat;} +td.end {background-image: url(lines2.png); + background-repeat: x-repeat;} +td.shadow1 {background-image: url(shadow1.png); + background-repeat: x-repeat;} + +table.vnice { font-family: verdana,geneva,arial,helvetica,sans-serif; + font-size: x-small;} + +a:link {background-color: transparent; + color: #191970; + text-decoration:none;} +a:visited {background-color: transparent; + color: #551a8a; + text-decoration:none;} +a:active {background-color: transparent; + color: #fe0000; + text-decoration:none;} +a:hover {background-color: transparent; + color: #1919aa; + text-decoration:underline;} + +tr.menurow {background-color: #505050; + color: #000000; + vertical-align: middle;} + +td.deco {color: #ffffff; + background-color: #505050; + font-family: verdana,geneva,arial,helvetica,sans-serif; + font-size: small;} + +td.menuactive {color: #ffcc00; + background-color: #777777; + font-family: verdana,geneva,arial,helvetica,sans-serif; + font-size: small;} + +td.menu {color: #ffffff; + background-color: #505050; + font-family: verdana,geneva,arial,helvetica,sans-serif; + font-size: small;} + +a.menu {color: #eeeeee; + font-family: verdana,geneva,arial,helvetica,sans-serif; + font-size: small;} + +a.menu:hover {color: #ffffff; + text-decoration:none;} + diff --git a/about/lines.png b/about/lines.png new file mode 100644 index 000000000..ca3e434c7 Binary files /dev/null and b/about/lines.png differ diff --git a/about/lines2.png b/about/lines2.png new file mode 100644 index 000000000..5bcb5d8b8 Binary files /dev/null and b/about/lines2.png differ diff --git a/about/main.html b/about/main.html new file mode 100644 index 000000000..5edf56ac6 --- /dev/null +++ b/about/main.html @@ -0,0 +1,102 @@ + + +
+| + | |||
| + | ![]() |
+ + | |
+
+
|
+ |||
| + | + | ||
| + | + | ||
| + |
+
+
|
+ + | |||||||
| + | |||||||||
| + | ![]() |
+
| + | |
KMail is an email client for the K " + "Desktop Environment. It is designed to be fully compatible with Internet " + "mailing standards including MIME, SMTP and POP3.
\n" + "Some of the new features in this release of KMail include " + "(compared to KMail 1.1.99, which is part of KDE 2.0):
\n" + "Please take a moment to fill in the KMail configuration panel at " + "Settings->Configuration.\n" + "You need to at least create a primary identity and setup a mail " + "spool/POP3 account.
\n" + "We hope that you will enjoy KMail.
\n" + "Thank you,
\n" + "The KMail Team
")).arg("help:kmail") + .arg("http://kmail.kde.org/")); + mViewer->end(); +} + + //----------------------------------------------------------------------------- void KMReaderWin::updateReaderWin() { @@ -465,6 +504,8 @@ void KMReaderWin::updateReaderWin() if (mMsg && !mMsg->msgIdMD5().isEmpty()) updateReaderWinTimer.start( delay, TRUE ); + if (!mMsgDisplay) return; + if (mMsg) parseMsg(); else { @@ -1316,8 +1357,8 @@ void KMReaderWin::slotUrlOpen(const KURL &aUrl, const KParts::URLArgs &) slotAtmOpen(); } else { - if (aUrl.protocol().isEmpty() || (aUrl.protocol() == "file")) - return; +// if (aUrl.protocol().isEmpty() || (aUrl.protocol() == "file")) +// return; emit urlClicked(aUrl,/* aButton*/LeftButton); //### FIXME: add button to URLArgs! } } diff --git a/kmreaderwin.h b/kmreaderwin.h index 53ba40c55..e47df9c37 100644 --- a/kmreaderwin.h +++ b/kmreaderwin.h @@ -104,6 +104,12 @@ public: /** Is html mail to be supported? Takes into account override */ bool htmlMail(); + /** Display the about page instead of a message */ + void displayAboutPage(); + + /** Enable the displaying of messages again after an URL was displayed */ + void enableMsgDisplay() { mMsgDisplay = TRUE; } + /** View message part of type message/RFC822 in extra viewer window. */ void atmViewMsg(KMMessagePart* msgPart); @@ -239,6 +245,7 @@ protected: QTimer mResizeTimer; QTextCodec *mCodec; bool mAutoDetectEncoding; + bool mMsgDisplay; int fntSize; QString mBodyFamily;