[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdeedu/kiten
From:       Jason Katz-Brown <jason () katzbrown ! com>
Date:       2004-04-13 4:13:06
Message-ID: 20040413041306.D3D7999BF () office ! kde ! org
[Download RAW message or body]

CVS commit by katz: 

add correct dictionary licence, make option dialog links work


  A            edict_kanjidic_licence.html   1.1
  M +1 -1      README   1.13
  M +695 -0    edict_doc.html   1.2
  M +19 -3     optiondialog.cpp   1.27
  M +3 -0      optiondialog.h   1.7
  R            edict.doc.gz   1.1
  R            edict_kanjidic_licens.txt.gz   1.1
  R            kanjidic.doc.gz   1.1


--- kdeedu/kiten/README  #1.12:1.13
@@ -17,5 +17,5 @@
 http://www.csse.monash.edu.au/~jwb/kanjidic.html
 
-respectively. Jim Breen compiled these fine files, so many thanks to him.
+respectively. Jim Breen compiled these fine files, so many thanks to him. The \
licences for these two files can be found the file edict_kanjidic_licence.html in \
this directory.  
 --

--- kdeedu/kiten/optiondialog.cpp  #1.26:1.27
@@ -1,2 +1,3 @@
+#include <kdebug.h>
 #include <kapplication.h>
 #include <qvgroupbox.h>
@@ -13,4 +14,5 @@
 #include <kstandarddirs.h>
 #include <kurllabel.h>
+#include <krun.h>
 #include <klistview.h>
 
@@ -37,8 +39,17 @@ ConfigureDialog::ConfigureDialog(KGlobal
         QVBoxLayout *descBox = new QVBoxLayout(Page0);
         descBox->addWidget(new QLabel(QString("<p>") + i18n("Kiten includes Edict \
for a regular word search. For Kanji searching, Kanjidic is included. Feel free to \
add your own extras (see foreign-language link below) by adding them in the \
configuration pages below this one.") + QString("</p>"), Page0)); +
         descBox->addStretch();
-        descBox->addWidget(new \
KURLLabel("http://www.csse.monash.edu.au/~jwb/edict.html", i18n("Edict information \
                page"), Page0));
-        descBox->addWidget(new \
KURLLabel("http://www.csse.monash.edu.au/~jwb/kanjidic.html", i18n("Kanjidic \
                information page"), Page0));
-        descBox->addWidget(new \
KURLLabel("http://www.katzbrown.com/kiten/Dictionaries/", i18n("Foreign language \
Edicts"), Page0)); +
+        KURLLabel *edictLabel = new \
KURLLabel("http://www.csse.monash.edu.au/~jwb/edict.html", i18n("Edict information \
page"), Page0); +        connect(edictLabel, SIGNAL(leftClickedURL(const QString &)), \
this, SLOT(openURL(const QString &))); +        descBox->addWidget(edictLabel);
+        KURLLabel *kanjidicLabel = new \
KURLLabel("http://www.csse.monash.edu.au/~jwb/kanjidic.html", i18n("Kanjidic \
information page"), Page0); +        connect(kanjidicLabel, \
SIGNAL(leftClickedURL(const QString &)), this, SLOT(openURL(const QString &))); +     \
descBox->addWidget(kanjidicLabel); +        KURLLabel *foreignLabel = new \
KURLLabel("http://www.katzbrown.com/kiten/Dictionaries/", i18n("Foreign language \
Edicts"), Page0); +        connect(foreignLabel, SIGNAL(leftClickedURL(const QString \
&)), this, SLOT(openURL(const QString &))); +        \
descBox->addWidget(foreignLabel); +
         descBox->addStretch();
 
@@ -160,4 +171,9 @@ void ConfigureDialog::writeConfig()
 }
 
+void ConfigureDialog::openURL(const QString &url)
+{
+        KRun::runURL(url, "text/html");
+}
+
 void ConfigureDialog::slotOk()
 {

--- kdeedu/kiten/optiondialog.h  #1.6:1.7
@@ -28,4 +28,7 @@ class ConfigureDialog : public KDialogBa
         virtual void slotApply();
 
+        public slots:
+        void openURL(const QString &url);
+
         private slots:
         void readConfig();


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic