On Saturday 01 April 2006 03:29, Jon Keating wrote:
> On Fri, Mar 31, 2006 at 10:50:39PM +0200, Martin Garbe wrote:

> > A wiki is a good idea but I think many people don't know what to write
> > there.
> > What were the reasons to create this wiki? What should be organised
> > there?
>
> It was created with the main goal of giving good documentation to new
> user's of Licq or provide tips of using it. How many people are aware that
> they can use Licq on their home PC, and via a web server have nearly
> complete control of their Licq remotely? Not many I bet. Or the DCOP
> interface.... it's not documented _anywhere_.

Do you mean Licq's implementation or the functions exported via DCOP?
The interface itself is documented here http://tinyurl.com/hzxvz

However it won't be very useful at the moment as the tab switching in the Qt 
GUI's userinfodlg is broken and thus the KDE addressbook integration can not 
be used from inside the GUI.

I resend the patch just in case the one I sent in end of November has been 
overlooked.

Cheers,
Kevin
-- 
Kevin Krammer <[EMAIL PROTECTED]>
Qt/KDE Developer, Debian User
Moderator: www.mrunix.de (German), www.qtcentre.org
Index: userinfodlg.cpp
===================================================================
--- userinfodlg.cpp	(Revision 4384)
+++ userinfodlg.cpp	(Arbeitskopie)
@@ -132,7 +132,7 @@
   tabs->addTab(tabList[KABCInfo].tab, tabList[KABCInfo].label);
 #endif
 
-  connect (tabs, SIGNAL(selected(const QString &)), this, SLOT(updateTab(const QString &)));
+  connect (tabs, SIGNAL(currentChanged(QWidget*)), this, SLOT(updateTab(QWidget*)));
   connect (sigman, SIGNAL(signal_updatedUser(CICQSignal *)),
            this, SLOT(updatedUser(CICQSignal *)));
 
@@ -1618,7 +1618,7 @@
 void UserInfoDlg::CreateKABCInfo()
 {
 #ifdef USE_KABC
-  tabList[KABCInfo].label = tr("&KDE Addressbook");
+  tabList[KABCInfo].label = tr("KDE Addressbook");
   tabList[KABCInfo].tab = new QWidget(this, tabList[KABCInfo].label.latin1());
   tabList[KABCInfo].loaded = false;
 
@@ -2127,9 +2127,9 @@
 
 // -----------------------------------------------------------------------------
 
-void UserInfoDlg::updateTab(const QString& txt)
+void UserInfoDlg::updateTab(QWidget* tab)
 {
-  if (txt == tabList[GeneralInfo].label)
+  if (tab == tabList[GeneralInfo].tab)
   {
     currentTab = GeneralInfo;
     btnMain1->setText(m_bOwner ? tr("&Save") : tr("&Menu"));
@@ -2141,7 +2141,7 @@
     if (!tabList[GeneralInfo].loaded)
       SetGeneralInfo(NULL);
   }
-  else if (txt == tabList[MoreInfo].label)
+  else if (tab == tabList[MoreInfo].tab)
   {
     btnMain1->setText(m_bOwner ? tr("&Save") : tr("&Menu"));
     btnMain2->setText(m_bOwner ? tr("&Retrieve") : tr("&Save"));
@@ -2153,7 +2153,7 @@
     if (!tabList[MoreInfo].loaded)
       SetMoreInfo(NULL);
   }
-  else if (txt == tabList[More2Info].label)
+  else if (tab == tabList[More2Info].tab)
   {
      btnMain1->setText(m_bOwner ? tr("&Save") : tr("&Menu"));
      btnMain2->setText(m_bOwner ? tr("&Retrieve") : tr("&Save"));
@@ -2165,7 +2165,7 @@
      if (!tabList[More2Info].loaded)
        SetMore2Info(NULL);
   }
-  else if (txt == tabList[WorkInfo].label)
+  else if (tab == tabList[WorkInfo].tab)
   {
     btnMain1->setText(m_bOwner ? tr("&Save") : tr("&Menu"));
     btnMain2->setText(m_bOwner ? tr("&Retrieve") : tr("&Save"));
@@ -2177,7 +2177,7 @@
     if (!tabList[WorkInfo].loaded)
       SetWorkInfo(NULL);
   }
-  else if (txt == tabList[AboutInfo].label)
+  else if (tab == tabList[AboutInfo].tab)
   {
     btnMain1->setText(m_bOwner ? tr("&Save") : tr("&Menu"));
     btnMain2->setText(m_bOwner ? tr("&Retrieve") : tr("&Save"));
@@ -2189,7 +2189,7 @@
     if (!tabList[AboutInfo].loaded)
       SetAbout(NULL);
   }
-  else if (txt == tabList[PhoneInfo].label)
+  else if (tab == tabList[PhoneInfo].tab)
   {
     btnMain3->setText(m_bOwner ? tr("&Add")   : tr("&Update"));
     btnMain2->setText(m_bOwner ? tr("&Clear") : tr("&Save"));
@@ -2201,7 +2201,7 @@
     if (!tabList[PhoneInfo].loaded)
       SetPhoneBook(NULL);
   }
-  else if (txt == tabList[PictureInfo].label)
+  else if (tab == tabList[PictureInfo].tab)
   {
     btnMain3->setText(m_bOwner ? tr("&Browse") : tr("&Update"));
     btnMain2->setText(m_bOwner ? tr("&Clear")  : tr("&Save"));
@@ -2213,7 +2213,7 @@
     if (!tabList[PictureInfo].loaded)
       SetPicture(NULL);
   }
-  else if (txt == tabList[HistoryInfo].label)
+  else if (tab == tabList[HistoryInfo].tab)
   {
     btnMain3->setText(tr("Nex&t"));
     btnMain2->setText(tr("P&rev"));
@@ -2229,7 +2229,7 @@
       SetupHistory();
     mlvHistory->setFocus();
   }
-  else if (txt == tabList[LastCountersInfo].label)
+  else if (tab == tabList[LastCountersInfo].tab)
   {
     currentTab = LastCountersInfo;
     btnMain3->setText("");
@@ -2242,7 +2242,7 @@
       SetLastCountersInfo(NULL);
   }
 #ifdef USE_KABC
-  else if (txt == tabList[KABCInfo].label)
+  else if (tab == tabList[KABCInfo].tab)
   {
     currentTab = KABCInfo;
     btnMain3->setText(tr("&Browse"));
Index: userinfodlg.h
===================================================================
--- userinfodlg.h	(Revision 4384)
+++ userinfodlg.h	(Arbeitskopie)
@@ -200,7 +200,7 @@
   void ShowHistoryNext();
   void HistoryReverse(bool);
   void HistoryReload();
-  void updateTab(const QString&);
+  void updateTab(QWidget*);
   void updatedUser(CICQSignal*);
   void SaveSettings();
   void slotUpdate();

Attachment: pgpVEDBlm1X51.pgp
Description: PGP signature

Reply via email to