TQt4 port kerry

This enables compilation under both Qt3 and Qt4


git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kerry@1239288 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru
tpearson 14 years ago
parent 1a52047ec5
commit 09ec338543

@ -27,7 +27,7 @@ kerry_la_SOURCES = main.cpp beaglesearch.cpp kerryapp.cpp searchdlg.cpp searchdl
hitwidget_layout.ui hitwidget.cpp kwidgetlistbox.cpp \ hitwidget_layout.ui hitwidget.cpp kwidgetlistbox.cpp \
dcopinterface.skel dcopinterface.stub kerrylabel.cpp query.cpp dcopinterface.skel dcopinterface.stub kerrylabel.cpp query.cpp
kerry_la_LDFLAGS = -Wl,-export-dynamic $(KDE_RPATH) $(all_libraries) -module $(KDE_PLUGIN) $(GLIB_LDFLAGS) $(LIBBEAGLE_LDFLAGS) kerry_la_LDFLAGS = -Wl,-export-dynamic $(KDE_RPATH) $(all_libraries) -module $(KDE_PLUGIN) $(GLIB_LDFLAGS) $(LIBBEAGLE_LDFLAGS) $(LIB_QT)
kerry_la_LIBADD = -lkio -lkonq $(LIB_KDEUI) $(LIBBEAGLE_LIBADD) $(GLIB_LIBADD) $(LIB_KABC) kerry_la_LIBADD = -lkio -lkonq $(LIB_KDEUI) $(LIBBEAGLE_LIBADD) $(GLIB_LIBADD) $(LIB_KABC)
autostartdir = $(datadir)/autostart autostartdir = $(datadir)/autostart

@ -22,7 +22,7 @@
#include <kmessagebox.h> #include <kmessagebox.h>
#include <kdebug.h> #include <kdebug.h>
#include <klocale.h> #include <klocale.h>
#include <qapplication.h> #include <tqapplication.h>
#include <kurl.h> #include <kurl.h>
struct PropertyInfo struct PropertyInfo
@ -169,8 +169,8 @@ static const HitFlavorInfo hitflavorinfos[] =
{ 0, 0, 0, 0} { 0, 0, 0, 0}
}; };
BeagleSearch::BeagleSearch(int id, QObject *parent, QString term) BeagleSearch::BeagleSearch(int id, TQObject *tqparent, TQString term)
: id (id), kill_me (false), parent (parent) : id (id), kill_me (false), tqparent (tqparent)
{ {
query = beagle_query_new (); query = beagle_query_new ();
beagle_query_set_max_hits(query, 100); beagle_query_set_max_hits(query, 100);
@ -178,7 +178,7 @@ BeagleSearch::BeagleSearch(int id, QObject *parent, QString term)
client = beagle_client_new (NULL); client = beagle_client_new (NULL);
client_mutex = new QMutex (); client_mutex = new TQMutex ();
main_loop = g_main_loop_new (NULL, FALSE); main_loop = g_main_loop_new (NULL, FALSE);
} }
@ -210,9 +210,9 @@ void BeagleSearch::run()
} }
kdDebug() << "!!! run ending" << endl; kdDebug() << "!!! run ending" << endl;
QCustomEvent *ev; TQCustomEvent *ev;
ev = new QCustomEvent (KILLME, this); ev = new TQCustomEvent (KILLME, this);
qApp->postEvent(parent, ev); tqApp->postEvent(tqparent, ev);
} }
void BeagleSearch::stopClient() void BeagleSearch::stopClient()
@ -254,26 +254,26 @@ BeagleSearch::~BeagleSearch()
delete client_mutex; delete client_mutex;
} }
QString *BeagleSearch::get_uri_from_file_hit(BeagleHit *hit) TQString *BeagleSearch::get_uri_from_file_hit(BeagleHit *hit)
{ {
return new QString (beagle_hit_get_uri (hit)); return new TQString (beagle_hit_get_uri (hit));
} }
QString *BeagleSearch::get_parent_uri_from_file_hit(BeagleHit *hit) TQString *BeagleSearch::get_parent_uri_from_file_hit(BeagleHit *hit)
{ {
return new QString (beagle_hit_get_parent_uri (hit)); return new TQString (beagle_hit_get_parent_uri (hit));
} }
QString *BeagleSearch::get_source_from_file_hit(BeagleHit *hit) TQString *BeagleSearch::get_source_from_file_hit(BeagleHit *hit)
{ {
return new QString (beagle_hit_get_source (hit)); return new TQString (beagle_hit_get_source (hit));
} }
QString *BeagleSearch::get_uri_from_feed_hit(BeagleHit *hit) TQString *BeagleSearch::get_uri_from_feed_hit(BeagleHit *hit)
{ {
const char *result; const char *result;
beagle_hit_get_one_property (hit, "fixme:itemuri", &result); beagle_hit_get_one_property (hit, "fixme:itemuri", &result);
return new QString (result); return new TQString (result);
} }
void BeagleSearch::hits_added_cb (BeagleQuery *query, BeagleHitsAddedResponse *response, BeagleSearch *client) void BeagleSearch::hits_added_cb (BeagleQuery *query, BeagleHitsAddedResponse *response, BeagleSearch *client)
@ -305,21 +305,21 @@ void BeagleSearch::hits_added_cb (BeagleQuery *query, BeagleHitsAddedResponse *r
beagle_result_struct *result = new beagle_result_struct; beagle_result_struct *result = new beagle_result_struct;
BeagleHit *hit = BEAGLE_HIT (l->data); BeagleHit *hit = BEAGLE_HIT (l->data);
result->hit_type = QString(beagle_hit_get_type (BEAGLE_HIT (l->data))); result->hit_type = TQString(beagle_hit_get_type (BEAGLE_HIT (l->data)));
const char *_mime_type = beagle_hit_get_mime_type(BEAGLE_HIT (l->data)); const char *_mime_type = beagle_hit_get_mime_type(BEAGLE_HIT (l->data));
const char *mime_type = (_mime_type == NULL ? "-" : _mime_type); const char *mime_type = (_mime_type == NULL ? "-" : _mime_type);
if (result->hit_type=="MailMessage" && QString(mime_type)!="message/rfc822") { if (result->hit_type=="MailMessage" && TQString(mime_type)!="message/rfc822") {
delete result; delete result;
continue; continue;
} }
result->mime_type = new QString(mime_type); result->mime_type = new TQString(mime_type);
result->score = beagle_hit_get_score(BEAGLE_HIT (l->data)); result->score = beagle_hit_get_score(BEAGLE_HIT (l->data));
result->uri = get_uri_from_file_hit (BEAGLE_HIT (l->data)); result->uri = get_uri_from_file_hit (BEAGLE_HIT (l->data));
result->tilegroup = Unknown; result->tilegroup = Unknown;
result->parent_uri = get_parent_uri_from_file_hit (BEAGLE_HIT (l->data)); result->tqparent_uri = get_parent_uri_from_file_hit (BEAGLE_HIT (l->data));
result->source = get_source_from_file_hit (BEAGLE_HIT (l->data)); result->source = get_source_from_file_hit (BEAGLE_HIT (l->data));
result->client_id = client->id; result->client_id = client->id;
#if 0 #if 0
@ -333,7 +333,7 @@ void BeagleSearch::hits_added_cb (BeagleQuery *query, BeagleHitsAddedResponse *r
const char* value = beagle_property_get_value( property ); const char* value = beagle_property_get_value( property );
kdDebug() << " \"" << key << "\" = \"" << value << "\"" << endl; kdDebug() << " \"" << key << "\" = \"" << value << "\"" << endl;
} }
kdDebug() << "parent_uri = " << *(result->parent_uri) << endl; kdDebug() << "tqparent_uri = " << *(result->tqparent_uri) << endl;
kdDebug() << "source = " << *(result->source) << endl; kdDebug() << "source = " << *(result->source) << endl;
kdDebug() << "tilegroup = " << result->tilegroup << endl; kdDebug() << "tilegroup = " << result->tilegroup << endl;
#endif #endif
@ -354,11 +354,11 @@ void BeagleSearch::hits_added_cb (BeagleQuery *query, BeagleHitsAddedResponse *r
const char *property = (char*)properties->data; const char *property = (char*)properties->data;
if (property) { if (property) {
if (propertiesInfo[i].label) { if (propertiesInfo[i].label) {
QString propertystr = i18n(propertiesInfo[i].label).arg(property); TQString propertystr = i18n(propertiesInfo[i].label).tqarg(property);
result->properties.append(propertystr); result->properties.append(propertystr);
} }
else else
result->properties.append(QString(propertiesInfo[i].identifier)+'='+property); result->properties.append(TQString(propertiesInfo[i].identifier)+'='+property);
} }
} }
} }
@ -374,7 +374,7 @@ void BeagleSearch::hits_added_cb (BeagleQuery *query, BeagleHitsAddedResponse *r
result->snippet = 0; result->snippet = 0;
} }
else else
result->snippet = new QString( beagle_snippet_response_get_snippet( BEAGLE_SNIPPET_RESPONSE(response)) ); result->snippet = new TQString( beagle_snippet_response_get_snippet( BEAGLE_SNIPPET_RESPONSE(response)) );
if (response) if (response)
g_object_unref(response); g_object_unref(response);
@ -401,8 +401,8 @@ void BeagleSearch::hits_added_cb (BeagleQuery *query, BeagleHitsAddedResponse *r
} }
client->client_mutex->unlock (); client->client_mutex->unlock ();
QCustomEvent *ev = new QCustomEvent (RESULTFOUND, results); TQCustomEvent *ev = new TQCustomEvent (RESULTFOUND, results);
qApp->postEvent (client->parent, ev); tqApp->postEvent (client->tqparent, ev);
} }
void BeagleSearch::hits_subtracted_cb (BeagleQuery */*query*/, BeagleHitsSubtractedResponse *response, BeagleSearch *client) void BeagleSearch::hits_subtracted_cb (BeagleQuery */*query*/, BeagleHitsSubtractedResponse *response, BeagleSearch *client)
@ -430,12 +430,12 @@ void BeagleSearch::hits_subtracted_cb (BeagleQuery */*query*/, BeagleHitsSubtrac
g_print ("removed: %s\n", uri); g_print ("removed: %s\n", uri);
vanished->list.append(QString(uri)); vanished->list.append(TQString(uri));
uris = uris->next; uris = uris->next;
} }
QCustomEvent *ev = new QCustomEvent (RESULTGONE, vanished); TQCustomEvent *ev = new TQCustomEvent (RESULTGONE, vanished);
qApp->postEvent (client->parent, ev); tqApp->postEvent (client->tqparent, ev);
} }
void BeagleSearch::finished_cb (BeagleQuery */*query*/, void BeagleSearch::finished_cb (BeagleQuery */*query*/,
@ -455,6 +455,6 @@ void BeagleSearch::finished_cb (BeagleQuery */*query*/,
g_main_loop_quit (client->main_loop); g_main_loop_quit (client->main_loop);
QCustomEvent *ev = new QCustomEvent (SEARCHOVER, client); TQCustomEvent *ev = new TQCustomEvent (SEARCHOVER, client);
qApp->postEvent (client->parent, ev); tqApp->postEvent (client->tqparent, ev);
} }

@ -21,11 +21,11 @@
#ifndef BEAGLESEARCH_H #ifndef BEAGLESEARCH_H
#define BEAGLESEARCH_H #define BEAGLESEARCH_H
#include <qobject.h> #include <tqobject.h>
#include <qthread.h> #include <tqthread.h>
#include <qstringlist.h> #include <tqstringlist.h>
#include <qregexp.h> #include <tqregexp.h>
#include <qmutex.h> #include <tqmutex.h>
extern "C" { extern "C" {
#include <glib.h> #include <glib.h>
@ -33,15 +33,15 @@ extern "C" {
#include <beagle/beagle-query-part-property.h> #include <beagle/beagle-query-part-property.h>
} }
#define RESULTFOUND (QEvent::Type)1001 /* QEvent::User + 1 */ #define RESULTFOUND (TQEvent::Type)1001 /* TQEvent::User + 1 */
#define RESULTGONE (QEvent::Type)1002 /* QEvent::User + 2 */ #define RESULTGONE (TQEvent::Type)1002 /* TQEvent::User + 2 */
#define SEARCHOVER (QEvent::Type)1003 /* QEvent::User + 3 */ #define SEARCHOVER (TQEvent::Type)1003 /* TQEvent::User + 3 */
#define KILLME (QEvent::Type)1004 /* QEvent::User + 4 */ #define KILLME (TQEvent::Type)1004 /* TQEvent::User + 4 */
/** /**
Interface to beagle-query Interface to beagle-query
*/ */
class BeagleSearch : public QThread { class BeagleSearch : public TQThread {
public: public:
@ -61,13 +61,13 @@ enum TileGroup {
Unknown Unknown
}; };
typedef QValueList<QString> PropertyList; typedef TQValueList<TQString> PropertyList;
class beagle_result_struct { class beagle_result_struct {
public: public:
beagle_result_struct () { beagle_result_struct () {
uri = NULL; uri = NULL;
parent_uri = NULL; tqparent_uri = NULL;
source = NULL; source = NULL;
mime_type = NULL; mime_type = NULL;
snippet = NULL; snippet = NULL;
@ -77,29 +77,29 @@ public:
~beagle_result_struct () { ~beagle_result_struct () {
delete uri; delete uri;
delete parent_uri; delete tqparent_uri;
delete source; delete source;
delete mime_type; delete mime_type;
delete snippet; delete snippet;
} }
QString *uri; TQString *uri;
QString *parent_uri; TQString *tqparent_uri;
QString *source; TQString *source;
PropertyList properties; PropertyList properties;
QString hit_type; TQString hit_type;
QString *mime_type; TQString *mime_type;
time_t last_index_time; time_t last_index_time;
double score; double score;
QString *snippet; TQString *snippet;
TileGroup tilegroup; TileGroup tilegroup;
int client_id; int client_id;
bool show_expanded; bool show_expanded;
}; };
typedef QPtrList<beagle_result_struct> BeagleResultList; typedef TQPtrList<beagle_result_struct> BeagleResultList;
typedef QValueList<QString> VanishedURIList; typedef TQValueList<TQString> VanishedURIList;
class BeagleVanishedURIList { class BeagleVanishedURIList {
public: public:
@ -113,7 +113,7 @@ public:
VanishedURIList list; VanishedURIList list;
}; };
BeagleSearch(int id, QObject *parent, QString term); BeagleSearch(int id, TQObject *tqparent, TQString term);
~BeagleSearch(); ~BeagleSearch();
virtual void run(); virtual void run();
@ -124,18 +124,18 @@ public:
bool kill_me; bool kill_me;
private: private:
QObject *parent; TQObject *tqparent;
static void hits_added_cb (BeagleQuery *, BeagleHitsAddedResponse *, BeagleSearch* client); static void hits_added_cb (BeagleQuery *, BeagleHitsAddedResponse *, BeagleSearch* client);
static void hits_subtracted_cb (BeagleQuery *, BeagleHitsSubtractedResponse *, BeagleSearch* client); static void hits_subtracted_cb (BeagleQuery *, BeagleHitsSubtractedResponse *, BeagleSearch* client);
static void finished_cb (BeagleQuery *, BeagleFinishedResponse *, BeagleSearch* client); static void finished_cb (BeagleQuery *, BeagleFinishedResponse *, BeagleSearch* client);
static QString *get_uri_from_feed_hit (BeagleHit *); static TQString *get_uri_from_feed_hit (BeagleHit *);
static QString *get_uri_from_file_hit (BeagleHit *); static TQString *get_uri_from_file_hit (BeagleHit *);
static QString *get_parent_uri_from_file_hit (BeagleHit *); static TQString *get_parent_uri_from_file_hit (BeagleHit *);
static QString *get_source_from_file_hit (BeagleHit *); static TQString *get_source_from_file_hit (BeagleHit *);
QMutex *client_mutex; TQMutex *client_mutex;
BeagleClient *client; BeagleClient *client;
BeagleQuery *query; BeagleQuery *query;

@ -28,8 +28,8 @@ class dcopIface : virtual public DCOPObject
k_dcop: k_dcop:
virtual ASYNC showSearchDialog() = 0; virtual ASYNC showSearchDialog() = 0;
virtual ASYNC search(const QString&) = 0; virtual ASYNC search(const TQString&) = 0;
virtual ASYNC search(const QString&, const QString&) = 0; virtual ASYNC search(const TQString&, const TQString&) = 0;
virtual ASYNC configChanged() = 0; virtual ASYNC configChanged() = 0;
}; };

@ -23,17 +23,17 @@
#include <kpushbutton.h> #include <kpushbutton.h>
#include <kdebug.h> #include <kdebug.h>
#include <kiconloader.h> #include <kiconloader.h>
#include <qtoolbutton.h> #include <tqtoolbutton.h>
#include <klocale.h> #include <klocale.h>
#include <kurllabel.h> #include <kurllabel.h>
#include <kglobalsettings.h> #include <kglobalsettings.h>
#include <qlayout.h> #include <tqlayout.h>
#include <konq_filetip.h> #include <konq_filetip.h>
#include <qscrollview.h> #include <tqscrollview.h>
HitWidget::HitWidget(QString uri, QString mimetype, KWidgetListbox *parent, const char *name) HitWidget::HitWidget(TQString uri, TQString mimetype, KWidgetListbox *tqparent, const char *name)
: HitWidgetLayout(parent, name), m_uri(uri), m_mimetype(mimetype), m_collapsed(false), : HitWidgetLayout(tqparent, name), m_uri(uri), m_mimetype(mimetype), m_collapsed(false),
m_is_collapsible(false), m_icon(QString::null), m_result(0) m_is_collapsible(false), m_icon(TQString()), m_result(0)
{ {
HitWidgetLayoutLayout->setMargin(4); HitWidgetLayoutLayout->setMargin(4);
toolButton1->setEnabled(false); toolButton1->setEnabled(false);
@ -42,11 +42,11 @@ HitWidget::HitWidget(QString uri, QString mimetype, KWidgetListbox *parent, cons
setDescriptionText(""); setDescriptionText("");
setPropertiesText(""); setPropertiesText("");
icon->installEventFilter(this); icon->installEventFilter(this);
pFileTip = new KonqFileTip(parent); pFileTip = new KonqFileTip(tqparent);
pFileTip->setItem(0L); pFileTip->setItem(0L);
qsv=parent; qsv=tqparent;
connect(toolButton1, SIGNAL(clicked()), SLOT(toggleCollapsed())); connect(toolButton1, TQT_SIGNAL(clicked()), TQT_SLOT(toggleCollapsed()));
} }
HitWidget::~HitWidget() HitWidget::~HitWidget()
@ -54,7 +54,7 @@ HitWidget::~HitWidget()
delete pFileTip; delete pFileTip;
} }
void HitWidget::setIcon(const QString name) void HitWidget::setIcon(const TQString name)
{ {
m_icon = name; m_icon = name;
if (m_collapsed) if (m_collapsed)
@ -99,8 +99,8 @@ void HitWidget::setCollapsed(bool collapsed)
description->setHidden(true); description->setHidden(true);
properties->setHidden(true); properties->setHidden(true);
score->setHidden(true); score->setHidden(true);
icon->setMinimumSize( QSize( 64, 16 ) ); icon->setMinimumSize( TQSize( 64, 16 ) );
icon->setMaximumSize( QSize( 64, 16 ) ); icon->setMaximumSize( TQSize( 64, 16 ) );
m_collapsed = collapsed; m_collapsed = collapsed;
} }
else { else {
@ -110,8 +110,8 @@ void HitWidget::setCollapsed(bool collapsed)
description->setHidden(false); description->setHidden(false);
properties->setHidden(false); properties->setHidden(false);
score->setHidden(false); score->setHidden(false);
icon->setMinimumSize( QSize( 64, 64 ) ); icon->setMinimumSize( TQSize( 64, 64 ) );
icon->setMaximumSize( QSize( 64, 64 ) ); icon->setMaximumSize( TQSize( 64, 64 ) );
m_collapsed = collapsed; m_collapsed = collapsed;
emit uncollapsed(this); emit uncollapsed(this);
} }
@ -133,48 +133,48 @@ bool HitWidget::isCollapsible() const
return m_is_collapsible; return m_is_collapsible;
} }
void HitWidget::setDescriptionText(QString text) void HitWidget::setDescriptionText(TQString text)
{ {
description->setText(text); description->setText(text);
} }
void HitWidget::setPropertiesText(QString text) void HitWidget::setPropertiesText(TQString text)
{ {
properties->setText(text); properties->setText(text);
} }
void HitWidget::insertHeaderWidget( int index, QWidget * widget) void HitWidget::insertHeaderWidget( int index, TQWidget * widget)
{ {
layoutHeader->insertWidget(index,widget); tqlayoutHeader->insertWidget(index,widget);
} }
void HitWidget::insertHitWidget( int index, QWidget * widget) void HitWidget::insertHitWidget( int index, TQWidget * widget)
{ {
layoutButton->insertWidget(index,widget); tqlayoutButton->insertWidget(index,widget);
} }
void HitWidget::insertTextWidget( int index, QWidget * widget) void HitWidget::insertTextWidget( int index, TQWidget * widget)
{ {
layoutText->insertWidget(index,widget); tqlayoutText->insertWidget(index,widget);
} }
void HitWidget::insertHitSpacing( int index, int size) void HitWidget::insertHitSpacing( int index, int size)
{ {
layoutButton->insertSpacing(index,size); tqlayoutButton->insertSpacing(index,size);
} }
QString HitWidget::uri() const TQString HitWidget::uri() const
{ {
return m_uri; return m_uri;
} }
void HitWidget::setUri(const QString uri) void HitWidget::setUri(const TQString uri)
{ {
pFileTip->setItem(0L); pFileTip->setItem(0L);
m_uri = uri; m_uri = uri;
} }
QString HitWidget::mimetype() const TQString HitWidget::mimetype() const
{ {
return m_mimetype; return m_mimetype;
} }
@ -198,17 +198,17 @@ void HitWidget::adjustSize()
HitWidgetLayout::adjustSize(); HitWidgetLayout::adjustSize();
} }
bool HitWidget::eventFilter( QObject *obj, QEvent *ev ) bool HitWidget::eventFilter( TQObject *obj, TQEvent *ev )
{ {
if ( obj == icon && !m_uri.isEmpty() ) { if ( TQT_BASE_OBJECT(obj) == TQT_BASE_OBJECT(icon) && !m_uri.isEmpty() ) {
if ( ev->type() == QEvent::Enter && parent() ) { if ( ev->type() == TQEvent::Enter && tqparent() ) {
pFileTip->setOptions(true, true, 6); pFileTip->setOptions(true, true, 6);
KFileItem *fileitem=new KFileItem(m_uri,m_mimetype,KFileItem::Unknown); KFileItem *fileitem=new KFileItem(m_uri,m_mimetype,KFileItem::Unknown);
QPoint viewport = qsv->viewport()->mapFromGlobal(mapToGlobal(icon->pos())); TQPoint viewport = qsv->viewport()->mapFromGlobal(mapToGlobal(icon->pos()));
QRect qr(qsv->viewportToContents(viewport),QSize(icon->width()*2,icon->height())); TQRect qr(qsv->viewportToContents(viewport),TQSize(icon->width()*2,icon->height()));
pFileTip->setItem(fileitem,qr,icon->pixmap()); pFileTip->setItem(fileitem,qr,icon->pixmap());
} }
else if ( ev->type() == QEvent::Leave ) else if ( ev->type() == TQEvent::Leave )
pFileTip->setItem(0L); pFileTip->setItem(0L);
return HitWidgetLayout::eventFilter( obj, ev ); return HitWidgetLayout::eventFilter( obj, ev );
} }

@ -24,14 +24,15 @@
#include "kwidgetlistbox.h" #include "kwidgetlistbox.h"
#include "beaglesearch.h" #include "beaglesearch.h"
class QScrollView; class TQScrollView;
class KonqFileTip; class KonqFileTip;
class HitWidget : public HitWidgetLayout class HitWidget : public HitWidgetLayout
{ {
Q_OBJECT Q_OBJECT
TQ_OBJECT
public: public:
HitWidget(QString uri, QString mimetype, KWidgetListbox *parent = 0, const char *name = 0); HitWidget(TQString uri, TQString mimetype, KWidgetListbox *tqparent = 0, const char *name = 0);
~HitWidget(); ~HitWidget();
void setCollapsible(BeagleSearch::beagle_result_struct *result); void setCollapsible(BeagleSearch::beagle_result_struct *result);
@ -42,21 +43,21 @@ class HitWidget : public HitWidgetLayout
int collapsedHeight() const; int collapsedHeight() const;
void setIcon(QString name); void setIcon(TQString name);
void setDescriptionText(QString text); void setDescriptionText(TQString text);
void setPropertiesText(QString text); void setPropertiesText(TQString text);
void setUri(const QString uri); void setUri(const TQString uri);
QString uri() const; TQString uri() const;
QString mimetype() const; TQString mimetype() const;
void insertHeaderWidget( int index, QWidget * widget); void insertHeaderWidget( int index, TQWidget * widget);
void insertTextWidget( int index, QWidget * widget); void insertTextWidget( int index, TQWidget * widget);
void insertHitWidget( int index, QWidget * widget); void insertHitWidget( int index, TQWidget * widget);
void insertHitSpacing( int index, int size); void insertHitSpacing( int index, int size);
virtual void adjustSize(); virtual void adjustSize();
virtual bool eventFilter(QObject*, QEvent*); virtual bool eventFilter(TQObject*, TQEvent*);
signals: signals:
void uncollapsed(HitWidget*); void uncollapsed(HitWidget*);
@ -66,10 +67,10 @@ class HitWidget : public HitWidgetLayout
private: private:
KWidgetListbox* qsv; KWidgetListbox* qsv;
QString m_uri, m_mimetype; TQString m_uri, m_mimetype;
KonqFileTip* pFileTip; KonqFileTip* pFileTip;
bool m_collapsed, m_is_collapsible; bool m_collapsed, m_is_collapsible;
QString m_icon; TQString m_icon;
BeagleSearch::beagle_result_struct * m_result; BeagleSearch::beagle_result_struct * m_result;
}; };

File diff suppressed because one or more lines are too long

@ -21,27 +21,27 @@
#include "backends.h" #include "backends.h"
#include <qdir.h> #include <tqdir.h>
#include <qdom.h> #include <tqdom.h>
#include <qfile.h> #include <tqfile.h>
#include <qlabel.h> #include <tqlabel.h>
#include <qlayout.h> #include <tqlayout.h>
#include <kdialog.h> #include <kdialog.h>
#include <klocale.h> #include <klocale.h>
KCMBeagleBackends::KCMBeagleBackends(QWidget *parent, const char * ) KCMBeagleBackends::KCMBeagleBackends(TQWidget *tqparent, const char * )
: KCModule(parent, "kcmbeaglebackends") : KCModule(tqparent, "kcmbeaglebackends")
{ {
QVBoxLayout* general_layout = new QVBoxLayout( this, KDialog::spacingHint() ); TQVBoxLayout* general_layout = new TQVBoxLayout( this, KDialog::spacingHint() );
general_layout->addWidget( new QLabel(i18n( "Select which of the available Beagle backends you want to have enabled." ), this) ); general_layout->addWidget( new TQLabel(i18n( "Select which of the available Beagle backends you want to have enabled." ), this) );
listview = new KListView(this); listview = new KListView(this);
listview->addColumn(i18n("Backends")); listview->addColumn(i18n("Backends"));
listview->setResizeMode( QListView::LastColumn ); listview->setResizeMode( TQListView::LastColumn );
listview->setFullWidth( true ); listview->setFullWidth( true );
general_layout->addWidget(listview); general_layout->addWidget(listview);
connect(listview, SIGNAL(clicked(QListViewItem*)), SLOT(changedValue())); connect(listview, TQT_SIGNAL(clicked(TQListViewItem*)), TQT_SLOT(changedValue()));
load(); load();
} }
@ -65,17 +65,17 @@ void KCMBeagleBackends::load( bool useDefaults )
listview->clear(); listview->clear();
KProcess *proc = new KProcess; KProcess *proc = new KProcess;
connect(proc, SIGNAL(receivedStdout(KProcess *, char *, int)), SLOT(gotAvailableBackends(KProcess *, char *, int))); connect(proc, TQT_SIGNAL(receivedStdout(KProcess *, char *, int)), TQT_SLOT(gotAvailableBackends(KProcess *, char *, int)));
*proc << "beagled" << "--list-backends"; *proc << "beagled" << "--list-backends";
if (!proc->start(KProcess::Block,KProcess::Stdout)) if (!proc->start(KProcess::Block,KProcess::Stdout))
kdError("Could not ask Beagle daemon for available backends."); kdError("Could not ask Beagle daemon for available backends.");
if (!useDefaults) { if (!useDefaults) {
QStringList disabledBackends = readDisabledBackends(); TQStringList disabledBackends = readDisabledBackends();
for ( QStringList::Iterator it_backends = disabledBackends.begin(); it_backends != disabledBackends.end(); ++it_backends ) { for ( TQStringList::Iterator it_backends = disabledBackends.begin(); it_backends != disabledBackends.end(); ++it_backends ) {
QListViewItem *item = listview->findItem(*it_backends,0); TQListViewItem *item = listview->tqfindItem(*it_backends,0);
if (item) if (item)
((QCheckListItem*)item)->setOn(false); ((TQCheckListItem*)item)->setOn(false);
} }
} }
@ -89,11 +89,11 @@ void KCMBeagleBackends::defaults()
void KCMBeagleBackends::save() void KCMBeagleBackends::save()
{ {
QStringList disabledBackends; TQStringList disabledBackends;
QListViewItemIterator it_items(listview); TQListViewItemIterator it_items(listview);
while (it_items.current()) while (it_items.current())
{ {
if (!((QCheckListItem*)it_items.current())->isOn()) if (!((TQCheckListItem*)it_items.current())->isOn())
disabledBackends << it_items.current()->text(0); disabledBackends << it_items.current()->text(0);
it_items++; it_items++;
} }
@ -102,23 +102,23 @@ void KCMBeagleBackends::save()
void KCMBeagleBackends::gotAvailableBackends(KProcess*, char *buffer, int len) void KCMBeagleBackends::gotAvailableBackends(KProcess*, char *buffer, int len)
{ {
QString myBuf = QString::fromLatin1(buffer, len); TQString myBuf = TQString::tqfromLatin1(buffer, len);
if (myBuf.startsWith("User:")) { if (myBuf.startsWith("User:")) {
QStringList list = QStringList::split('\n',myBuf); TQStringList list = TQStringList::split('\n',myBuf);
for ( QStringList::Iterator it = list.begin(); it != list.end(); ++it ) for ( TQStringList::Iterator it = list.begin(); it != list.end(); ++it )
if ((*it).startsWith(" - ")) { if ((*it).startsWith(" - ")) {
QCheckListItem *item = new QCheckListItem(listview,(*it).mid(3),QCheckListItem::CheckBox); TQCheckListItem *item = new TQCheckListItem(listview,(*it).mid(3),TQCheckListItem::CheckBox);
item->setOn(true); item->setOn(true);
} }
} }
} }
QStringList KCMBeagleBackends::readDisabledBackends() TQStringList KCMBeagleBackends::readDisabledBackends()
{ {
QStringList disabledBackends; TQStringList disabledBackends;
QDomDocument doc( "mydocument" ); TQDomDocument doc( "mydocument" );
QFile file( QDir::home().absPath()+"/.beagle/config/daemon.xml" ); TQFile file( TQDir::home().absPath()+"/.beagle/config/daemon.xml" );
if ( !file.open( IO_ReadOnly ) ) if ( !file.open( IO_ReadOnly ) )
return disabledBackends; return disabledBackends;
@ -128,16 +128,16 @@ QStringList KCMBeagleBackends::readDisabledBackends()
} }
file.close(); file.close();
QDomElement docElem = doc.documentElement(); TQDomElement docElem = doc.documentElement();
QDomNode n = docElem.firstChild(); TQDomNode n = docElem.firstChild();
while( !n.isNull() ) { while( !n.isNull() ) {
QDomElement e = n.toElement(); TQDomElement e = n.toElement();
if( !e.isNull() ) { if( !e.isNull() ) {
if (e.tagName()=="DeniedBackends") { if (e.tagName()=="DeniedBackends") {
QDomNode ro = n.firstChild(); TQDomNode ro = n.firstChild();
while( !ro.isNull() ) { while( !ro.isNull() ) {
QDomElement exel = ro.toElement(); TQDomElement exel = ro.toElement();
if( !exel.isNull() ) if( !exel.isNull() )
disabledBackends << exel.text(); disabledBackends << exel.text();
ro = ro.nextSibling(); ro = ro.nextSibling();
@ -149,20 +149,20 @@ QStringList KCMBeagleBackends::readDisabledBackends()
return disabledBackends; return disabledBackends;
} }
bool KCMBeagleBackends::saveDisabledBackends(QStringList disabledBackends) bool KCMBeagleBackends::saveDisabledBackends(TQStringList disabledBackends)
{ {
QDir beagleDir(QDir::home().absPath()+"/.beagle"); TQDir beagleDir(TQDir::home().absPath()+"/.beagle");
if (!beagleDir.exists()) if (!beagleDir.exists())
beagleDir.mkdir(QDir::home().absPath()+"/.beagle"); beagleDir.mkdir(TQDir::home().absPath()+"/.beagle");
QDir beagleConfigDir(QDir::home().absPath()+"/.beagle/config"); TQDir beagleConfigDir(TQDir::home().absPath()+"/.beagle/config");
if (!beagleConfigDir.exists()) if (!beagleConfigDir.exists())
beagleConfigDir.mkdir(QDir::home().absPath()+"/.beagle/config"); beagleConfigDir.mkdir(TQDir::home().absPath()+"/.beagle/config");
QFile configFile( QDir::home().absPath()+"/.beagle/config/daemon.xml" ); TQFile configFile( TQDir::home().absPath()+"/.beagle/config/daemon.xml" );
QDomDocument doc( QString::null ); TQDomDocument doc( TQString::null );
QDomElement root; TQDomElement root;
if (configFile.exists()) { if (configFile.exists()) {
if ( !configFile.open( IO_ReadOnly ) ) if ( !configFile.open( IO_ReadOnly ) )
@ -176,9 +176,9 @@ bool KCMBeagleBackends::saveDisabledBackends(QStringList disabledBackends)
root = doc.documentElement(); root = doc.documentElement();
QDomNode n = root.firstChild(); TQDomNode n = root.firstChild();
while( !n.isNull() ) { while( !n.isNull() ) {
QDomElement e = n.toElement(); TQDomElement e = n.toElement();
if( !e.isNull() ) if( !e.isNull() )
if (e.tagName()=="DeniedBackends") if (e.tagName()=="DeniedBackends")
root.removeChild( e ); root.removeChild( e );
@ -195,15 +195,15 @@ bool KCMBeagleBackends::saveDisabledBackends(QStringList disabledBackends)
doc.appendChild( root ); doc.appendChild( root );
} }
QDomElement rootselement = doc.createElement( "DeniedBackends" ); TQDomElement rootselement = doc.createElement( "DeniedBackends" );
root.appendChild(rootselement); root.appendChild(rootselement);
for ( QStringList::Iterator it = disabledBackends.begin(); it != disabledBackends.end(); ++it ) { for ( TQStringList::Iterator it = disabledBackends.begin(); it != disabledBackends.end(); ++it ) {
QDomElement tag = doc.createElement( "anyType" ); TQDomElement tag = doc.createElement( "anyType" );
tag.setAttribute("xsi:type","xsd:string"); tag.setAttribute("xsi:type","xsd:string");
rootselement.appendChild( tag ); rootselement.appendChild( tag );
QDomText t = doc.createTextNode( *it ); TQDomText t = doc.createTextNode( *it );
tag.appendChild( t ); tag.appendChild( t );
} }
@ -211,7 +211,7 @@ bool KCMBeagleBackends::saveDisabledBackends(QStringList disabledBackends)
if ( !configFile.open( IO_WriteOnly ) ) if ( !configFile.open( IO_WriteOnly ) )
return false; return false;
QTextStream stream( &configFile ); TQTextStream stream( &configFile );
stream << doc.toString(); stream << doc.toString();
configFile.close(); configFile.close();

@ -30,9 +30,10 @@
class KCMBeagleBackends : public KCModule class KCMBeagleBackends : public KCModule
{ {
Q_OBJECT Q_OBJECT
TQ_OBJECT
public: public:
KCMBeagleBackends(QWidget *parent=0, const char *name=0); KCMBeagleBackends(TQWidget *tqparent=0, const char *name=0);
~KCMBeagleBackends(); ~KCMBeagleBackends();
virtual void load(); virtual void load();
@ -47,8 +48,8 @@ protected slots:
private: private:
KListView* listview; KListView* listview;
QStringList readDisabledBackends(); TQStringList readDisabledBackends();
bool saveDisabledBackends(QStringList disabledBackends); bool saveDisabledBackends(TQStringList disabledBackends);
}; };
#endif #endif

@ -19,8 +19,8 @@
******************************************************************/ ******************************************************************/
#include <qlayout.h> #include <tqlayout.h>
#include <qtabwidget.h> #include <tqtabwidget.h>
#include <kdebug.h> #include <kdebug.h>
#include <kdialog.h> #include <kdialog.h>
#include <klocale.h> #include <klocale.h>
@ -31,32 +31,32 @@
#include "backends.h" #include "backends.h"
#include "status.h" #include "status.h"
KCMBeagle::KCMBeagle(QWidget *parent, const char *name) KCMBeagle::KCMBeagle(TQWidget *tqparent, const char *name)
: KCModule( parent, "kcmbeagle" ) : KCModule( tqparent, "kcmbeagle" )
{ {
setButtons(Default+Apply); setButtons(Default+Apply);
QVBoxLayout *layout = new QVBoxLayout(this); TQVBoxLayout *tqlayout = new TQVBoxLayout(this);
m_tab = new QTabWidget(this); m_tab = new TQTabWidget(this);
layout->addWidget(m_tab); tqlayout->addWidget(m_tab);
m_indexing = new KCMBeagleIndexing( m_tab, name ); m_indexing = new KCMBeagleIndexing( m_tab, name );
m_indexing->layout()->setMargin( KDialog::marginHint() ); m_indexing->tqlayout()->setMargin( KDialog::marginHint() );
m_backends = new KCMBeagleBackends( m_tab, name ); m_backends = new KCMBeagleBackends( m_tab, name );
m_backends->layout()->setMargin( KDialog::marginHint() ); m_backends->tqlayout()->setMargin( KDialog::marginHint() );
m_status = new KCMBeagleStatus( m_tab, name ); m_status = new KCMBeagletqStatus( m_tab, name );
m_status->layout()->setMargin( KDialog::marginHint() ); m_status->tqlayout()->setMargin( KDialog::marginHint() );
m_tab->addTab(m_indexing, i18n("&Indexing")); m_tab->addTab(m_indexing, i18n("&Indexing"));
m_tab->addTab(m_backends, i18n("&Backends")); m_tab->addTab(m_backends, i18n("&Backends"));
m_tab->addTab(m_status, i18n("&Daemon Status")); m_tab->addTab(m_status, i18n("&Daemon tqStatus"));
connect(m_indexing, SIGNAL(changed(bool)), SIGNAL(changed(bool))); connect(m_indexing, TQT_SIGNAL(changed(bool)), TQT_SIGNAL(changed(bool)));
connect(m_backends, SIGNAL(changed(bool)), SIGNAL(changed(bool))); connect(m_backends, TQT_SIGNAL(changed(bool)), TQT_SIGNAL(changed(bool)));
connect(m_status, SIGNAL(changed(bool)), SIGNAL(changed(bool))); connect(m_status, TQT_SIGNAL(changed(bool)), TQT_SIGNAL(changed(bool)));
connect(m_tab, SIGNAL(currentChanged(QWidget *)), SIGNAL(quickHelpChanged())); connect(m_tab, TQT_SIGNAL(currentChanged(TQWidget *)), TQT_SIGNAL(quickHelpChanged()));
} }
void KCMBeagle::load() void KCMBeagle::load()
@ -86,15 +86,15 @@ void KCMBeagle::save()
kdError("Could not make Beagle reload its config."); kdError("Could not make Beagle reload its config.");
} }
QString KCMBeagle::quickHelp() const TQString KCMBeagle::quickHelp() const
{ {
QWidget *w = m_tab->currentPage(); TQWidget *w = m_tab->currentPage();
if (w->inherits("KCModule")) if (w->inherits("KCModule"))
{ {
KCModule *m = static_cast<KCModule *>(w); KCModule *m = static_cast<KCModule *>(w);
return m->quickHelp(); return m->quickHelp();
} }
return QString::null; return TQString();
} }
#include "beagle.moc" #include "beagle.moc"

@ -25,25 +25,26 @@
#include <kcmodule.h> #include <kcmodule.h>
class KConfig; class KConfig;
class QTabWidget; class TQTabWidget;
class KCMBeagle : public KCModule class KCMBeagle : public KCModule
{ {
Q_OBJECT Q_OBJECT
TQ_OBJECT
public: public:
KCMBeagle(QWidget *parent=0, const char *name=0); KCMBeagle(TQWidget *tqparent=0, const char *name=0);
virtual void load(); virtual void load();
virtual void save(); virtual void save();
virtual void defaults(); virtual void defaults();
virtual QString quickHelp() const; virtual TQString quickHelp() const;
private: private:
KCModule *m_indexing; KCModule *m_indexing;
KCModule *m_backends; KCModule *m_backends;
KCModule *m_status; KCModule *m_status;
QTabWidget *m_tab; TQTabWidget *m_tab;
}; };
#endif #endif

@ -22,11 +22,11 @@
#include "indexing.h" #include "indexing.h"
#include "select_privacy_resource.h" #include "select_privacy_resource.h"
#include <qdom.h> #include <tqdom.h>
#include <qgroupbox.h> #include <tqgroupbox.h>
#include <qlabel.h> #include <tqlabel.h>
#include <qlayout.h> #include <tqlayout.h>
#include <qradiobutton.h> #include <tqradiobutton.h>
#include <kconfig.h> #include <kconfig.h>
#include <kdialog.h> #include <kdialog.h>
#include <kdirselectdialog.h> #include <kdirselectdialog.h>
@ -38,38 +38,38 @@
#include <kurl.h> #include <kurl.h>
#include <kurlrequester.h> #include <kurlrequester.h>
KCMBeagleIndexing::KCMBeagleIndexing(QWidget *parent, const char * ) KCMBeagleIndexing::KCMBeagleIndexing(TQWidget *tqparent, const char * )
: KCModule(parent, "kcmbeagleindexing") : KCModule(tqparent, "kcmbeagleindexing")
{ {
QVBoxLayout* top_layout = new QVBoxLayout( this, KDialog::spacingHint() ); TQVBoxLayout* top_layout = new TQVBoxLayout( this, KDialog::spacingHint() );
// General // General
QGroupBox* gb_general = new QGroupBox(0, Qt::Vertical, i18n("General"), this); TQGroupBox* gb_general = new TQGroupBox(0, Qt::Vertical, i18n("General"), this);
top_layout->addWidget(gb_general); top_layout->addWidget(gb_general);
gb_general->setFlat(true); gb_general->setFlat(true);
QVBoxLayout* gb_general_layout = new QVBoxLayout( gb_general->layout(), KDialog::spacingHint() ); TQVBoxLayout* gb_general_layout = new TQVBoxLayout( gb_general->tqlayout(), KDialog::spacingHint() );
startBeagle = new QCheckBox(i18n("Start Beagle indexing service automatically"), gb_general); startBeagle = new TQCheckBox(i18n("Start Beagle indexing service automatically"), gb_general);
gb_general_layout->addWidget( startBeagle); gb_general_layout->addWidget( startBeagle);
indexOnBattery = new QCheckBox(i18n("Index data while on battery power"), gb_general); indexOnBattery = new TQCheckBox(i18n("Index data while on battery power"), gb_general);
gb_general_layout->addWidget( indexOnBattery ); gb_general_layout->addWidget( indexOnBattery );
// Index // Index
QGroupBox* gb_index = new QGroupBox(0, Qt::Vertical, i18n("Index"), this); TQGroupBox* gb_index = new TQGroupBox(0, Qt::Vertical, i18n("Index"), this);
top_layout->addWidget(gb_index); top_layout->addWidget(gb_index);
gb_index->setFlat(true); gb_index->setFlat(true);
QVBoxLayout* gb_index_layout = new QVBoxLayout( gb_index->layout(), KDialog::spacingHint() ); TQVBoxLayout* gb_index_layout = new TQVBoxLayout( gb_index->tqlayout(), KDialog::spacingHint() );
QHBoxLayout* qh_index = new QHBoxLayout(gb_index_layout); TQHBoxLayout* qh_index = new TQHBoxLayout(gb_index_layout);
indexHome = new QCheckBox(i18n("Index my home folder"), gb_index); indexHome = new TQCheckBox(i18n("Index my home folder"), gb_index);
qh_index->addWidget( indexHome ); qh_index->addWidget( indexHome );
qh_index->addStretch(1); qh_index->addStretch(1);
QLabel* label_index = new QLabel(i18n( "Add any additional folder to be included for indexing." ), gb_index); TQLabel* label_index = new TQLabel(i18n( "Add any additional folder to be included for indexing." ), gb_index);
gb_index_layout->addWidget(label_index); gb_index_layout->addWidget(label_index);
QGridLayout* grid_index = new QGridLayout( gb_index_layout, 1, 1, KDialog::spacingHint()); TQGridLayout* grid_index = new TQGridLayout( gb_index_layout, 1, 1, KDialog::spacingHint());
index_list = new KListView( gb_index ); index_list = new KListView( gb_index );
index_list->addColumn( i18n( "Name" ) ); index_list->addColumn( i18n( "Name" ) );
@ -78,30 +78,30 @@ KCMBeagleIndexing::KCMBeagleIndexing(QWidget *parent, const char * )
grid_index->addMultiCellWidget( index_list, 0, 2, 0, 0 ); grid_index->addMultiCellWidget( index_list, 0, 2, 0, 0 );
label_index->setBuddy(index_list); label_index->setBuddy(index_list);
QPushButton* add_index = new QPushButton( i18n("Add..."), gb_index ); TQPushButton* add_index = new TQPushButton( i18n("Add..."), gb_index );
grid_index->addWidget( add_index, 0, 1 ); grid_index->addWidget( add_index, 0, 1 );
remove_index = new QPushButton( i18n("Remove"), gb_index ); remove_index = new TQPushButton( i18n("Remove"), gb_index );
remove_index->setEnabled(false); remove_index->setEnabled(false);
grid_index->addWidget( remove_index, 1, 1 ); grid_index->addWidget( remove_index, 1, 1 );
QSpacerItem* index_spacer = new QSpacerItem( 20, 30, QSizePolicy::Minimum, QSizePolicy::Preferred ); TQSpacerItem* index_spacer = new TQSpacerItem( 20, 30, TQSizePolicy::Minimum, TQSizePolicy::Preferred );
grid_index->addItem( index_spacer, 2, 1 ); grid_index->addItem( index_spacer, 2, 1 );
connect( add_index, SIGNAL( clicked() ), this, SLOT( slotAddSearch() ) ); connect( add_index, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotAddSearch() ) );
connect( remove_index, SIGNAL( clicked() ), this, SLOT( slotRemoveSearch() ) ); connect( remove_index, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotRemoveSearch() ) );
connect( index_list, SIGNAL( selectionChanged(QListViewItem*) ), this, SLOT( slotSearchSelectionChanged(QListViewItem*) ) ); connect( index_list, TQT_SIGNAL( selectionChanged(TQListViewItem*) ), this, TQT_SLOT( slotSearchSelectionChanged(TQListViewItem*) ) );
// Privacy // Privacy
QGroupBox* gb_privacy = new QGroupBox(0, Qt::Vertical, i18n("Privacy"), this); TQGroupBox* gb_privacy = new TQGroupBox(0, Qt::Vertical, i18n("Privacy"), this);
top_layout->addWidget(gb_privacy); top_layout->addWidget(gb_privacy);
gb_privacy->setFlat(true); gb_privacy->setFlat(true);
QVBoxLayout* gb_privacy_layout = new QVBoxLayout( gb_privacy->layout(), KDialog::spacingHint() ); TQVBoxLayout* gb_privacy_layout = new TQVBoxLayout( gb_privacy->tqlayout(), KDialog::spacingHint() );
QLabel* label_privacy = new QLabel(i18n( "Specify any resource, such as folder or pattern, you wish to exclude from indexing." ), gb_privacy); TQLabel* label_privacy = new TQLabel(i18n( "Specify any resource, such as folder or pattern, you wish to exclude from indexing." ), gb_privacy);
gb_privacy_layout->addWidget(label_privacy); gb_privacy_layout->addWidget(label_privacy);
QGridLayout* grid_privacy = new QGridLayout( gb_privacy_layout, 1, 1, KDialog::spacingHint()); TQGridLayout* grid_privacy = new TQGridLayout( gb_privacy_layout, 1, 1, KDialog::spacingHint());
privacy_list = new KListView( gb_privacy ); privacy_list = new KListView( gb_privacy );
privacy_list->addColumn( i18n( "Type" ) ); privacy_list->addColumn( i18n( "Type" ) );
@ -112,30 +112,30 @@ KCMBeagleIndexing::KCMBeagleIndexing(QWidget *parent, const char * )
grid_privacy->addMultiCellWidget( privacy_list, 0, 2, 0, 0 ); grid_privacy->addMultiCellWidget( privacy_list, 0, 2, 0, 0 );
label_privacy->setBuddy(privacy_list); label_privacy->setBuddy(privacy_list);
QPushButton* add_privacy = new QPushButton( i18n("Add..."), gb_privacy ); TQPushButton* add_privacy = new TQPushButton( i18n("Add..."), gb_privacy );
grid_privacy->addWidget( add_privacy, 0, 1 ); grid_privacy->addWidget( add_privacy, 0, 1 );
remove_privacy = new QPushButton( i18n("Remove"), gb_privacy ); remove_privacy = new TQPushButton( i18n("Remove"), gb_privacy );
remove_privacy->setEnabled(false); remove_privacy->setEnabled(false);
grid_privacy->addWidget( remove_privacy, 1, 1 ); grid_privacy->addWidget( remove_privacy, 1, 1 );
QSpacerItem* privacy_spacer = new QSpacerItem( 20, 30, QSizePolicy::Minimum, QSizePolicy::Preferred ); TQSpacerItem* privacy_spacer = new TQSpacerItem( 20, 30, TQSizePolicy::Minimum, TQSizePolicy::Preferred );
grid_privacy->addItem( privacy_spacer, 2, 1 ); grid_privacy->addItem( privacy_spacer, 2, 1 );
connect( add_privacy, SIGNAL( clicked() ), this, SLOT( slotAddPrivacy() ) ); connect( add_privacy, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotAddPrivacy() ) );
connect( remove_privacy, SIGNAL( clicked() ), this, SLOT( slotRemovePrivacy() ) ); connect( remove_privacy, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotRemovePrivacy() ) );
connect( privacy_list, SIGNAL( selectionChanged(QListViewItem*) ), this, SLOT( slotPrivacySelectionChanged(QListViewItem*) ) ); connect( privacy_list, TQT_SIGNAL( selectionChanged(TQListViewItem*) ), this, TQT_SLOT( slotPrivacySelectionChanged(TQListViewItem*) ) );
// Add some spacing at the end // Add some spacing at the end
QWidget *dummy = new QWidget( this ); TQWidget *dummy = new TQWidget( this );
top_layout->addWidget(dummy); top_layout->addWidget(dummy);
top_layout->setStretchFactor( dummy, 1 ); top_layout->setStretchFactor( dummy, 1 );
load(); load();
connect(indexOnBattery, SIGNAL(clicked()), SLOT(changedValue())); connect(indexOnBattery, TQT_SIGNAL(clicked()), TQT_SLOT(changedValue()));
connect(startBeagle, SIGNAL(clicked()), SLOT(changedValue())); connect(startBeagle, TQT_SIGNAL(clicked()), TQT_SLOT(changedValue()));
connect(indexHome, SIGNAL(clicked()), SLOT(changedValue())); connect(indexHome, TQT_SIGNAL(clicked()), TQT_SLOT(changedValue()));
} }
KCMBeagleIndexing::~KCMBeagleIndexing() KCMBeagleIndexing::~KCMBeagleIndexing()
@ -155,7 +155,7 @@ void KCMBeagleIndexing::load()
void KCMBeagleIndexing::load( bool useDefaults ) void KCMBeagleIndexing::load( bool useDefaults )
{ {
bool _indexHomeDir, _indexOnBattery, _startBeagle; bool _indexHomeDir, _indexOnBattery, _startBeagle;
QStringList roots, excludeTypes, excludeValues; TQStringList roots, excludeTypes, excludeValues;
if (useDefaults) { if (useDefaults) {
_indexHomeDir = true; _indexHomeDir = true;
@ -177,14 +177,14 @@ void KCMBeagleIndexing::load( bool useDefaults )
index_list->clear(); index_list->clear();
remove_index->setEnabled(false); remove_index->setEnabled(false);
for ( QStringList::Iterator it = roots.begin(); it != roots.end(); ++it ) { for ( TQStringList::Iterator it = roots.begin(); it != roots.end(); ++it ) {
new KListViewItem(index_list,*it); new KListViewItem(index_list,*it);
} }
privacy_list->clear(); privacy_list->clear();
remove_privacy->setEnabled(false); remove_privacy->setEnabled(false);
QStringList::Iterator it_values = excludeValues.begin(); TQStringList::Iterator it_values = excludeValues.begin();
for ( QStringList::Iterator it_types = excludeTypes.begin(); it_types != excludeTypes.end(); ++it_types ) { for ( TQStringList::Iterator it_types = excludeTypes.begin(); it_types != excludeTypes.end(); ++it_types ) {
new KListViewItem(privacy_list,*it_types,*it_values); new KListViewItem(privacy_list,*it_types,*it_values);
it_values++; it_values++;
} }
@ -206,15 +206,15 @@ void KCMBeagleIndexing::save()
delete config; delete config;
QStringList roots; TQStringList roots;
for (int i=0;i<index_list->childCount();i++) for (int i=0;i<index_list->childCount();i++)
roots << index_list->itemAtIndex(i)->text(0); roots << index_list->itemAtIndex(i)->text(0);
QStringList excludeTypes; TQStringList excludeTypes;
for (int i=0;i<privacy_list->childCount();i++) for (int i=0;i<privacy_list->childCount();i++)
excludeTypes << privacy_list->itemAtIndex(i)->text(0); excludeTypes << privacy_list->itemAtIndex(i)->text(0);
QStringList excludeValues; TQStringList excludeValues;
for (int i=0;i<privacy_list->childCount();i++) for (int i=0;i<privacy_list->childCount();i++)
excludeValues << privacy_list->itemAtIndex(i)->text(1); excludeValues << privacy_list->itemAtIndex(i)->text(1);
@ -223,19 +223,19 @@ void KCMBeagleIndexing::save()
void KCMBeagleIndexing::slotAddSearch() void KCMBeagleIndexing::slotAddSearch()
{ {
KURL path = KDirSelectDialog::selectDirectory( QDir::home().absPath(), true, this, i18n("Select Folder")); KURL path = KDirSelectDialog::selectDirectory( TQDir::home().absPath(), true, this, i18n("Select Folder"));
new KListViewItem(index_list,path.path()); new KListViewItem(index_list,path.path());
changedValue(); changedValue();
} }
void KCMBeagleIndexing::slotSearchSelectionChanged(QListViewItem* item) void KCMBeagleIndexing::slotSearchSelectionChanged(TQListViewItem* item)
{ {
remove_index->setEnabled( item ); remove_index->setEnabled( item );
} }
void KCMBeagleIndexing::slotRemoveSearch() void KCMBeagleIndexing::slotRemoveSearch()
{ {
QListViewItem *item = index_list->currentItem(); TQListViewItem *item = index_list->currentItem();
if (item && if (item &&
KMessageBox::warningContinueCancel(this, i18n("<qt>Do you really want to remove this folder from the list of folders to be included for indexing?</qt>"),i18n("Remove Folder"),KStdGuiItem::del()) == KMessageBox::Continue) KMessageBox::warningContinueCancel(this, i18n("<qt>Do you really want to remove this folder from the list of folders to be included for indexing?</qt>"),i18n("Remove Folder"),KStdGuiItem::del()) == KMessageBox::Continue)
{ {
@ -250,10 +250,10 @@ void KCMBeagleIndexing::slotAddPrivacy()
KDialogBase dlg(this, 0, true, i18n("Add Resource"), KDialogBase::Ok | KDialogBase::Cancel); KDialogBase dlg(this, 0, true, i18n("Add Resource"), KDialogBase::Ok | KDialogBase::Cancel);
AddPrivacyResource w(&dlg); AddPrivacyResource w(&dlg);
dlg.setMainWidget(&w); dlg.setMainWidget(&w);
connect(w.radioButtonFolder, SIGNAL(toggled(bool)), w.folderRequester, SLOT(setEnabled(bool))); connect(w.radioButtonFolder, TQT_SIGNAL(toggled(bool)), w.folderRequester, TQT_SLOT(setEnabled(bool)));
connect(w.radioButtonFolder, SIGNAL(toggled(bool)), w.patternEdit, SLOT(setDisabled(bool))); connect(w.radioButtonFolder, TQT_SIGNAL(toggled(bool)), w.patternEdit, TQT_SLOT(setDisabled(bool)));
connect(w.radioButtonPattern, SIGNAL(toggled(bool)), w.patternEdit, SLOT(setEnabled(bool))); connect(w.radioButtonPattern, TQT_SIGNAL(toggled(bool)), w.patternEdit, TQT_SLOT(setEnabled(bool)));
connect(w.radioButtonPattern, SIGNAL(toggled(bool)), w.folderRequester, SLOT(setDisabled(bool))); connect(w.radioButtonPattern, TQT_SIGNAL(toggled(bool)), w.folderRequester, TQT_SLOT(setDisabled(bool)));
w.folderRequester->setCaption(i18n("Select Folder")); w.folderRequester->setCaption(i18n("Select Folder"));
w.radioButtonFolder->setChecked(true); w.radioButtonFolder->setChecked(true);
w.folderRequester->setMode(KFile::Directory | KFile::LocalOnly); w.folderRequester->setMode(KFile::Directory | KFile::LocalOnly);
@ -272,7 +272,7 @@ void KCMBeagleIndexing::slotAddPrivacy()
void KCMBeagleIndexing::slotRemovePrivacy() void KCMBeagleIndexing::slotRemovePrivacy()
{ {
QListViewItem *item = privacy_list->currentItem(); TQListViewItem *item = privacy_list->currentItem();
if (item && if (item &&
KMessageBox::warningContinueCancel(this, i18n("<qt>Do you really want to remove this item from the list of data to be excluded from indexing?</qt>"),i18n("Remove Item"),KStdGuiItem::del()) == KMessageBox::Continue) KMessageBox::warningContinueCancel(this, i18n("<qt>Do you really want to remove this item from the list of data to be excluded from indexing?</qt>"),i18n("Remove Item"),KStdGuiItem::del()) == KMessageBox::Continue)
{ {
@ -282,12 +282,12 @@ void KCMBeagleIndexing::slotRemovePrivacy()
} }
} }
void KCMBeagleIndexing::slotPrivacySelectionChanged(QListViewItem* item) void KCMBeagleIndexing::slotPrivacySelectionChanged(TQListViewItem* item)
{ {
remove_privacy->setEnabled( item ); remove_privacy->setEnabled( item );
} }
void KCMBeagleIndexing::readIndexConfig(bool &indexHomeDir, bool &indexOnBattery, QStringList &roots, QStringList &excludeTypes, QStringList &excludeValues) void KCMBeagleIndexing::readIndexConfig(bool &indexHomeDir, bool &indexOnBattery, TQStringList &roots, TQStringList &excludeTypes, TQStringList &excludeValues)
{ {
indexHomeDir = true; indexHomeDir = true;
indexOnBattery = true; indexOnBattery = true;
@ -295,40 +295,40 @@ void KCMBeagleIndexing::readIndexConfig(bool &indexHomeDir, bool &indexOnBattery
excludeTypes.clear(); excludeTypes.clear();
excludeValues.clear(); excludeValues.clear();
QFile file( QDir::home().absPath()+"/.beagle/config/indexing.xml" ); TQFile file( TQDir::home().absPath()+"/.beagle/config/indexing.xml" );
if ( !file.open( IO_ReadOnly ) ) if ( !file.open( IO_ReadOnly ) )
return; return;
QDomDocument doc( "mydocument" ); TQDomDocument doc( "mydocument" );
if ( !doc.setContent( &file ) ) { if ( !doc.setContent( &file ) ) {
file.close(); file.close();
return; return;
} }
file.close(); file.close();
QDomElement docElem = doc.documentElement(); TQDomElement docElem = doc.documentElement();
QDomNode n = docElem.firstChild(); TQDomNode n = docElem.firstChild();
while( !n.isNull() ) { while( !n.isNull() ) {
QDomElement e = n.toElement(); TQDomElement e = n.toElement();
if( !e.isNull() ) { if( !e.isNull() ) {
if (e.tagName()=="IndexHomeDir") if (e.tagName()=="IndexHomeDir")
indexHomeDir = e.text()=="true"; indexHomeDir = e.text()=="true";
if (e.tagName()=="IndexOnBattery") if (e.tagName()=="IndexOnBattery")
indexOnBattery = e.text()=="true"; indexOnBattery = e.text()=="true";
else if (e.tagName()=="Roots") { else if (e.tagName()=="Roots") {
QDomNode ro = n.firstChild(); TQDomNode ro = n.firstChild();
while( !ro.isNull() ) { while( !ro.isNull() ) {
QDomElement exel = ro.toElement(); TQDomElement exel = ro.toElement();
if( !exel.isNull() ) if( !exel.isNull() )
roots << exel.text(); roots << exel.text();
ro = ro.nextSibling(); ro = ro.nextSibling();
} }
} }
else if (e.tagName()=="Excludes") { else if (e.tagName()=="Excludes") {
QDomNode ex = n.firstChild(); TQDomNode ex = n.firstChild();
while( !ex.isNull() ) { while( !ex.isNull() ) {
QDomElement exel = ex.toElement(); TQDomElement exel = ex.toElement();
if( !exel.isNull() ) { if( !exel.isNull() ) {
excludeTypes << exel.attribute("Type"); excludeTypes << exel.attribute("Type");
excludeValues << exel.attribute("Value"); excludeValues << exel.attribute("Value");
@ -341,44 +341,44 @@ void KCMBeagleIndexing::readIndexConfig(bool &indexHomeDir, bool &indexOnBattery
} }
} }
bool KCMBeagleIndexing::saveIndexConfig(bool indexHomeDir, bool indexOnBattery, QStringList roots, QStringList excludeTypes, QStringList excludeValues) bool KCMBeagleIndexing::saveIndexConfig(bool indexHomeDir, bool indexOnBattery, TQStringList roots, TQStringList excludeTypes, TQStringList excludeValues)
{ {
QDir beagleDir(QDir::home().absPath()+"/.beagle"); TQDir beagleDir(TQDir::home().absPath()+"/.beagle");
if (!beagleDir.exists()) if (!beagleDir.exists())
beagleDir.mkdir(QDir::home().absPath()+"/.beagle"); beagleDir.mkdir(TQDir::home().absPath()+"/.beagle");
QDir beagleConfigDir(QDir::home().absPath()+"/.beagle/config"); TQDir beagleConfigDir(TQDir::home().absPath()+"/.beagle/config");
if (!beagleConfigDir.exists()) if (!beagleConfigDir.exists())
beagleConfigDir.mkdir(QDir::home().absPath()+"/.beagle/config"); beagleConfigDir.mkdir(TQDir::home().absPath()+"/.beagle/config");
QFile configFile( QDir::home().absPath()+"/.beagle/config/indexing.xml" ); TQFile configFile( TQDir::home().absPath()+"/.beagle/config/indexing.xml" );
if ( !configFile.open( IO_WriteOnly ) ) if ( !configFile.open( IO_WriteOnly ) )
return false; return false;
QDomDocument doc( QString::null ); TQDomDocument doc( TQString::null );
doc.appendChild( doc.createProcessingInstruction( doc.appendChild( doc.createProcessingInstruction(
"xml", "version=\"1.0\" encoding=\"UTF-8\"" ) ); "xml", "version=\"1.0\" encoding=\"UTF-8\"" ) );
QDomElement root = doc.createElement( "IndexingConfig" ); TQDomElement root = doc.createElement( "IndexingConfig" );
root.setAttribute("xmlns:xsd","http://www.w3.org/2001/XMLSchema"); root.setAttribute("xmlns:xsd","http://www.w3.org/2001/XMLSchema");
root.setAttribute("xmlns:xsi","http://www.w3.org/2001/XMLSchema-instance"); root.setAttribute("xmlns:xsi","http://www.w3.org/2001/XMLSchema-instance");
doc.appendChild( root ); doc.appendChild( root );
QDomElement rootselement = doc.createElement( "Roots" ); TQDomElement rootselement = doc.createElement( "Roots" );
root.appendChild(rootselement); root.appendChild(rootselement);
for ( QStringList::Iterator it = roots.begin(); it != roots.end(); ++it ) { for ( TQStringList::Iterator it = roots.begin(); it != roots.end(); ++it ) {
QDomElement tag = doc.createElement( "Root" ); TQDomElement tag = doc.createElement( "Root" );
rootselement.appendChild( tag ); rootselement.appendChild( tag );
QDomText t = doc.createTextNode( *it ); TQDomText t = doc.createTextNode( *it );
tag.appendChild( t ); tag.appendChild( t );
} }
QDomElement tag = doc.createElement( "IndexHomeDir" ); TQDomElement tag = doc.createElement( "IndexHomeDir" );
root.appendChild( tag ); root.appendChild( tag );
QDomText t = doc.createTextNode( indexHomeDir ? "true" : "false" ); TQDomText t = doc.createTextNode( indexHomeDir ? "true" : "false" );
tag.appendChild( t ); tag.appendChild( t );
tag = doc.createElement( "IndexOnBattery" ); tag = doc.createElement( "IndexOnBattery" );
@ -387,12 +387,12 @@ bool KCMBeagleIndexing::saveIndexConfig(bool indexHomeDir, bool indexOnBattery,
t = doc.createTextNode( indexOnBattery ? "true" : "false" ); t = doc.createTextNode( indexOnBattery ? "true" : "false" );
tag.appendChild( t ); tag.appendChild( t );
QDomElement excludeselement = doc.createElement( "Excludes" ); TQDomElement excludeselement = doc.createElement( "Excludes" );
root.appendChild(excludeselement); root.appendChild(excludeselement);
QStringList::Iterator it_types = excludeTypes.begin(); TQStringList::Iterator it_types = excludeTypes.begin();
for ( QStringList::Iterator it = excludeValues.begin(); it != excludeValues.end(); ++it ) { for ( TQStringList::Iterator it = excludeValues.begin(); it != excludeValues.end(); ++it ) {
QDomElement t = doc.createElement( "ExcludeItem" ); TQDomElement t = doc.createElement( "ExcludeItem" );
t.setAttribute("Type", *it_types); t.setAttribute("Type", *it_types);
t.setAttribute("Value", *it); t.setAttribute("Value", *it);
excludeselement.appendChild( t ); excludeselement.appendChild( t );
@ -400,7 +400,7 @@ bool KCMBeagleIndexing::saveIndexConfig(bool indexHomeDir, bool indexOnBattery,
++it_types; ++it_types;
} }
QTextStream stream( &configFile ); TQTextStream stream( &configFile );
stream << doc.toString(); stream << doc.toString();
configFile.close(); configFile.close();

@ -22,7 +22,7 @@
#ifndef __INDEXING_H__ #ifndef __INDEXING_H__
#define __INDEXING_H__ #define __INDEXING_H__
#include <qcheckbox.h> #include <tqcheckbox.h>
#include <klistview.h> #include <klistview.h>
#include <kpushbutton.h> #include <kpushbutton.h>
#include <kcmodule.h> #include <kcmodule.h>
@ -30,9 +30,10 @@
class KCMBeagleIndexing : public KCModule class KCMBeagleIndexing : public KCModule
{ {
Q_OBJECT Q_OBJECT
TQ_OBJECT
public: public:
KCMBeagleIndexing(QWidget *parent=0, const char *name=0); KCMBeagleIndexing(TQWidget *tqparent=0, const char *name=0);
~KCMBeagleIndexing(); ~KCMBeagleIndexing();
virtual void load(); virtual void load();
@ -43,21 +44,21 @@ public:
private slots: private slots:
void slotAddSearch(); void slotAddSearch();
void slotRemoveSearch(); void slotRemoveSearch();
void slotSearchSelectionChanged(QListViewItem*); void slotSearchSelectionChanged(TQListViewItem*);
void slotAddPrivacy(); void slotAddPrivacy();
void slotRemovePrivacy(); void slotRemovePrivacy();
void slotPrivacySelectionChanged(QListViewItem*); void slotPrivacySelectionChanged(TQListViewItem*);
void changedValue(); void changedValue();
private: private:
QCheckBox *startBeagle; TQCheckBox *startBeagle;
QCheckBox *indexOnBattery; TQCheckBox *indexOnBattery;
QCheckBox *indexHome; TQCheckBox *indexHome;
KListView* index_list, *privacy_list; KListView* index_list, *privacy_list;
QPushButton* remove_index, *remove_privacy; TQPushButton* remove_index, *remove_privacy;
void readIndexConfig(bool &indexHomeDir, bool &indexOnBattery, QStringList &roots, QStringList &excludeTypes, QStringList &excludeValues); void readIndexConfig(bool &indexHomeDir, bool &indexOnBattery, TQStringList &roots, TQStringList &excludeTypes, TQStringList &excludeValues);
bool saveIndexConfig(bool indexHomeDir, bool indexOnBattery, QStringList roots, QStringList excludeTypes, QStringList excludeValues); bool saveIndexConfig(bool indexHomeDir, bool indexOnBattery, TQStringList roots, TQStringList excludeTypes, TQStringList excludeValues);
}; };
#endif #endif

@ -19,8 +19,8 @@
******************************************************************/ ******************************************************************/
#include <qlayout.h> #include <tqlayout.h>
#include <qtabwidget.h> #include <tqtabwidget.h>
#include <dcopclient.h> #include <dcopclient.h>
#include <kapplication.h> #include <kapplication.h>
#include <kdebug.h> #include <kdebug.h>
@ -34,36 +34,36 @@
#include "backends.h" #include "backends.h"
#include "status.h" #include "status.h"
KCMKerry::KCMKerry(QWidget *parent, const char *name) KCMKerry::KCMKerry(TQWidget *tqparent, const char *name)
: KCModule( parent, "kcmkerry" ) : KCModule( tqparent, "kcmkerry" )
{ {
setButtons(Default+Apply); setButtons(Default+Apply);
QVBoxLayout *layout = new QVBoxLayout(this); TQVBoxLayout *tqlayout = new TQVBoxLayout(this);
m_tab = new QTabWidget(this); m_tab = new TQTabWidget(this);
layout->addWidget(m_tab); tqlayout->addWidget(m_tab);
m_search = new KCMKerrySearch( m_tab, name ); m_search = new KCMKerrySearch( m_tab, name );
m_search->layout()->setMargin( KDialog::marginHint() ); m_search->tqlayout()->setMargin( KDialog::marginHint() );
m_indexing = new KCMBeagleIndexing( m_tab, name ); m_indexing = new KCMBeagleIndexing( m_tab, name );
m_indexing->layout()->setMargin( KDialog::marginHint() ); m_indexing->tqlayout()->setMargin( KDialog::marginHint() );
m_backends = new KCMBeagleBackends( m_tab, name ); m_backends = new KCMBeagleBackends( m_tab, name );
m_backends->layout()->setMargin( KDialog::marginHint() ); m_backends->tqlayout()->setMargin( KDialog::marginHint() );
m_status = new KCMBeagleStatus( m_tab, name ); m_status = new KCMBeagletqStatus( m_tab, name );
m_status->layout()->setMargin( KDialog::marginHint() ); m_status->tqlayout()->setMargin( KDialog::marginHint() );
m_tab->addTab(m_search, i18n("&Search")); m_tab->addTab(m_search, i18n("&Search"));
m_tab->addTab(m_indexing, i18n("&Indexing")); m_tab->addTab(m_indexing, i18n("&Indexing"));
m_tab->addTab(m_backends, i18n("&Backends")); m_tab->addTab(m_backends, i18n("&Backends"));
m_tab->addTab(m_status, i18n("&Daemon Status")); m_tab->addTab(m_status, i18n("&Daemon tqStatus"));
connect(m_search, SIGNAL(changed(bool)), SIGNAL(changed(bool))); connect(m_search, TQT_SIGNAL(changed(bool)), TQT_SIGNAL(changed(bool)));
connect(m_indexing, SIGNAL(changed(bool)), SIGNAL(changed(bool))); connect(m_indexing, TQT_SIGNAL(changed(bool)), TQT_SIGNAL(changed(bool)));
connect(m_backends, SIGNAL(changed(bool)), SIGNAL(changed(bool))); connect(m_backends, TQT_SIGNAL(changed(bool)), TQT_SIGNAL(changed(bool)));
connect(m_status, SIGNAL(changed(bool)), SIGNAL(changed(bool))); connect(m_status, TQT_SIGNAL(changed(bool)), TQT_SIGNAL(changed(bool)));
connect(m_tab, SIGNAL(currentChanged(QWidget *)), SIGNAL(quickHelpChanged())); connect(m_tab, TQT_SIGNAL(currentChanged(TQWidget *)), TQT_SIGNAL(quickHelpChanged()));
} }
void KCMKerry::load() void KCMKerry::load()
@ -90,7 +90,7 @@ void KCMKerry::save()
m_status->save(); m_status->save();
DCOPClient *client = kapp->dcopClient(); DCOPClient *client = kapp->dcopClient();
client->send("kerry", "default", "configChanged()", ""); client->send("kerry", "default", "configChanged()", TQString(""));
KProcess *proc = new KProcess; KProcess *proc = new KProcess;
*proc << "beagle-config"; *proc << "beagle-config";
@ -99,15 +99,15 @@ void KCMKerry::save()
kdError("Could not make Beagle reload its config."); kdError("Could not make Beagle reload its config.");
} }
QString KCMKerry::quickHelp() const TQString KCMKerry::quickHelp() const
{ {
QWidget *w = m_tab->currentPage(); TQWidget *w = m_tab->currentPage();
if (w->inherits("KCModule")) if (w->inherits("KCModule"))
{ {
KCModule *m = static_cast<KCModule *>(w); KCModule *m = static_cast<KCModule *>(w);
return m->quickHelp(); return m->quickHelp();
} }
return QString::null; return TQString();
} }
#include "kerry.moc" #include "kerry.moc"

@ -25,26 +25,27 @@
#include <kcmodule.h> #include <kcmodule.h>
class KConfig; class KConfig;
class QTabWidget; class TQTabWidget;
class KCMKerry : public KCModule class KCMKerry : public KCModule
{ {
Q_OBJECT Q_OBJECT
TQ_OBJECT
public: public:
KCMKerry(QWidget *parent=0, const char *name=0); KCMKerry(TQWidget *tqparent=0, const char *name=0);
virtual void load(); virtual void load();
virtual void save(); virtual void save();
virtual void defaults(); virtual void defaults();
virtual QString quickHelp() const; virtual TQString quickHelp() const;
private: private:
KCModule *m_search; KCModule *m_search;
KCModule *m_indexing; KCModule *m_indexing;
KCModule *m_backends; KCModule *m_backends;
KCModule *m_status; KCModule *m_status;
QTabWidget *m_tab; TQTabWidget *m_tab;
}; };
#endif #endif

@ -27,16 +27,16 @@
extern "C" extern "C"
{ {
KDE_EXPORT KCModule *create_beagle(QWidget *parent, const char *name) KDE_EXPORT KCModule *create_beagle(TQWidget *tqparent, const char *name)
{ {
KGlobal::locale()->insertCatalogue("kcmbeagle"); KGlobal::locale()->insertCatalogue("kcmbeagle");
return new KCMBeagle(parent, name); return new KCMBeagle(tqparent, name);
} }
KDE_EXPORT KCModule *create_kerry(QWidget *parent, const char *name) KDE_EXPORT KCModule *create_kerry(TQWidget *tqparent, const char *name)
{ {
KGlobal::locale()->insertCatalogue("kcmbeagle"); KGlobal::locale()->insertCatalogue("kcmbeagle");
return new KCMKerry(parent, name); return new KCMKerry(tqparent, name);
} }
} }

@ -23,54 +23,54 @@
#include <kconfig.h> #include <kconfig.h>
KCMKerrySearch::KCMKerrySearch(QWidget *parent, const char * ) KCMKerrySearch::KCMKerrySearch(TQWidget *tqparent, const char * )
: KCModule(parent, "kcmkerrysearch") : KCModule(tqparent, "kcmkerrysearch")
{ {
QVBoxLayout* top_layout = new QVBoxLayout( this, KDialog::spacingHint() ); TQVBoxLayout* top_layout = new TQVBoxLayout( this, KDialog::spacingHint() );
// General // General
QGroupBox* gb_general = new QGroupBox(0, Qt::Vertical, i18n("General"), this); TQGroupBox* gb_general = new TQGroupBox(0, Qt::Vertical, i18n("General"), this);
gb_general->setFlat(true); gb_general->setFlat(true);
top_layout->addWidget(gb_general); top_layout->addWidget(gb_general);
QVBoxLayout* gb_general_layout = new QVBoxLayout( gb_general->layout(), KDialog::spacingHint() ); TQVBoxLayout* gb_general_layout = new TQVBoxLayout( gb_general->tqlayout(), KDialog::spacingHint() );
QHBoxLayout* qh_layout = new QHBoxLayout(gb_general_layout); TQHBoxLayout* qh_layout = new TQHBoxLayout(gb_general_layout);
QLabel* label_order = new QLabel(i18n("Default result sort order:"), gb_general); TQLabel* label_order = new TQLabel(i18n("Default result sort order:"), gb_general);
qh_layout->addWidget(label_order); qh_layout->addWidget(label_order);
combo_order = new QComboBox(gb_general); combo_order = new TQComboBox(gb_general);
combo_order->insertItem(i18n("Type")); combo_order->insertItem(i18n("Type"));
combo_order->insertItem(i18n("Date Modified")); combo_order->insertItem(i18n("Date Modified"));
combo_order->insertItem(i18n("Name")); combo_order->insertItem(i18n("Name"));
combo_order->insertItem(i18n("Relevance")); combo_order->insertItem(i18n("Relevance"));
QWhatsThis::add(combo_order,i18n("Define the default sort order at startup.")); TQWhatsThis::add(combo_order,i18n("Define the default sort order at startup."));
label_order->setBuddy(combo_order); label_order->setBuddy(combo_order);
qh_layout->addWidget(combo_order); qh_layout->addWidget(combo_order);
QHBoxLayout* qh_number = new QHBoxLayout(gb_general_layout); TQHBoxLayout* qh_number = new TQHBoxLayout(gb_general_layout);
QLabel* label_number = new QLabel(i18n( "Maximum number of results displayed:" ), gb_general); TQLabel* label_number = new TQLabel(i18n( "Maximum number of results displayed:" ), gb_general);
qh_number->addWidget(label_number); qh_number->addWidget(label_number);
maxResultsDisplayed = new QSpinBox( 1, 100, 1, gb_general ); maxResultsDisplayed = new TQSpinBox( 1, 100, 1, gb_general );
maxResultsDisplayed->setSpecialValueText(i18n("No Limit")); maxResultsDisplayed->setSpecialValueText(i18n("No Limit"));
QWhatsThis::add(maxResultsDisplayed,i18n("Define how many results shall be displayed on one result page.")); TQWhatsThis::add(maxResultsDisplayed,i18n("Define how many results shall be displayed on one result page."));
label_number->setBuddy(maxResultsDisplayed); label_number->setBuddy(maxResultsDisplayed);
qh_number->addWidget(maxResultsDisplayed); qh_number->addWidget(maxResultsDisplayed);
showBigTiles = new QCheckBox(i18n("Show search results with details by default"), gb_general); showBigTiles = new TQCheckBox(i18n("Show search results with details by default"), gb_general);
gb_general_layout->addWidget(showBigTiles); gb_general_layout->addWidget(showBigTiles);
// Global Shortcuts // Global Shortcuts
QGroupBox* gb_keys = new QGroupBox(0, Qt::Vertical, i18n("Global Shortcuts"), this); TQGroupBox* gb_keys = new TQGroupBox(0, Qt::Vertical, i18n("Global Shortcuts"), this);
QVBoxLayout* gb_keys_layout = new QVBoxLayout( gb_keys->layout(), KDialog::spacingHint() ); TQVBoxLayout* gb_keys_layout = new TQVBoxLayout( gb_keys->tqlayout(), KDialog::spacingHint() );
top_layout->addWidget(gb_keys); top_layout->addWidget(gb_keys);
gb_keys->setFlat(true); gb_keys->setFlat(true);
globalKeys = new KGlobalAccel(this); globalKeys = new KGlobalAccel(TQT_TQOBJECT(this));
globalKeys->insert( "Program:kerry", i18n("Kerry Beagle Search") ); globalKeys->insert( "Program:kerry", i18n("Kerry Beagle Search") );
KShortcut showDialogShortcut = KShortcut(ALT+Key_Space); KShortcut showDialogShortcut = KShortcut(ALT+Key_Space);
showDialogShortcut.append( KKey( Key_F12 ) ); showDialogShortcut.append( KKey( Key_F12 ) );
globalKeys->insert( "Show Kerry Dialog", i18n("Show Search Dialog"), QString::null, showDialogShortcut, showDialogShortcut, 0, 0); globalKeys->insert( "Show Kerry Dialog", i18n("Show Search Dialog"), TQString(), showDialogShortcut, showDialogShortcut, 0, 0);
globalKeys->insert( "Search Primary Selection with Kerry", i18n("Search Primary Selection"), QString::null, CTRL+ALT+Key_Space, CTRL+ALT+Key_Space, 0, 0); globalKeys->insert( "Search Primary Selection with Kerry", i18n("Search Primary Selection"), TQString(), CTRL+ALT+Key_Space, CTRL+ALT+Key_Space, 0, 0);
KConfig *config = new KConfig("kerryrc"); KConfig *config = new KConfig("kerryrc");
globalKeys->readSettings(config); globalKeys->readSettings(config);
@ -80,14 +80,14 @@ KCMKerrySearch::KCMKerrySearch(QWidget *parent, const char * )
gb_keys_layout->addWidget(keysWidget); gb_keys_layout->addWidget(keysWidget);
// Add some spacing at the end // Add some spacing at the end
QWidget *dummy = new QWidget( this ); TQWidget *dummy = new TQWidget( this );
top_layout->setStretchFactor( dummy, 1 ); top_layout->setStretchFactor( dummy, 1 );
top_layout->addWidget(dummy); top_layout->addWidget(dummy);
connect(maxResultsDisplayed, SIGNAL(valueChanged(int)), SLOT(changedValue())); connect(maxResultsDisplayed, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(changedValue()));
connect(combo_order, SIGNAL(activated(int)), SLOT(changedValue())); connect(combo_order, TQT_SIGNAL(activated(int)), TQT_SLOT(changedValue()));
connect(keysWidget, SIGNAL(keyChange()), SLOT(changedValue())); connect(keysWidget, TQT_SIGNAL(keyChange()), TQT_SLOT(changedValue()));
connect(showBigTiles, SIGNAL(clicked()), SLOT(changedValue())); connect(showBigTiles, TQT_SIGNAL(clicked()), TQT_SLOT(changedValue()));
load(); load();
} }

@ -22,14 +22,14 @@
#ifndef __SEARCH_H__ #ifndef __SEARCH_H__
#define __SEARCH_H__ #define __SEARCH_H__
#include <qcheckbox.h> #include <tqcheckbox.h>
#include <qgroupbox.h> #include <tqgroupbox.h>
#include <qlabel.h> #include <tqlabel.h>
#include <qlayout.h> #include <tqlayout.h>
#include <qspinbox.h> #include <tqspinbox.h>
#include <qwhatsthis.h> #include <tqwhatsthis.h>
#include <kcmodule.h> #include <kcmodule.h>
#include <qcombobox.h> #include <tqcombobox.h>
#include <kglobalaccel.h> #include <kglobalaccel.h>
#include <kkeydialog.h> #include <kkeydialog.h>
#include <klocale.h> #include <klocale.h>
@ -37,9 +37,10 @@
class KCMKerrySearch : public KCModule class KCMKerrySearch : public KCModule
{ {
Q_OBJECT Q_OBJECT
TQ_OBJECT
public: public:
KCMKerrySearch(QWidget *parent=0, const char *name=0); KCMKerrySearch(TQWidget *tqparent=0, const char *name=0);
~KCMKerrySearch(); ~KCMKerrySearch();
virtual void load(); virtual void load();
@ -51,9 +52,9 @@ protected slots:
void changedValue(); void changedValue();
private: private:
QSpinBox *maxResultsDisplayed; TQSpinBox *maxResultsDisplayed;
QComboBox* combo_order; TQComboBox* combo_order;
QCheckBox* showBigTiles; TQCheckBox* showBigTiles;
KKeyChooser *keysWidget; KKeyChooser *keysWidget;
KGlobalAccel *globalKeys; KGlobalAccel *globalKeys;
}; };

@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.3" stdsetdef="1"> <!DOCTYPE UI><UI version="3.3" stdsetdef="1">
<class>AddPrivacyResource</class> <class>AddPrivacyResource</class>
<widget class="QWidget"> <widget class="TQWidget">
<property name="name"> <property name="name">
<cstring>AddPrivacyResource</cstring> <cstring>AddPrivacyResource</cstring>
</property> </property>
@ -19,7 +19,7 @@
<property name="name"> <property name="name">
<cstring>unnamed</cstring> <cstring>unnamed</cstring>
</property> </property>
<widget class="QLabel" row="0" column="0"> <widget class="TQLabel" row="0" column="0">
<property name="name"> <property name="name">
<cstring>textLabel</cstring> <cstring>textLabel</cstring>
</property> </property>
@ -27,7 +27,7 @@
<string>Please select a resource you wish to exclude from indexing.</string> <string>Please select a resource you wish to exclude from indexing.</string>
</property> </property>
</widget> </widget>
<widget class="QButtonGroup" row="1" column="0"> <widget class="TQButtonGroup" row="1" column="0">
<property name="name"> <property name="name">
<cstring>buttonGroup1</cstring> <cstring>buttonGroup1</cstring>
</property> </property>
@ -47,7 +47,7 @@
<property name="spacing"> <property name="spacing">
<number>0</number> <number>0</number>
</property> </property>
<widget class="QRadioButton"> <widget class="TQRadioButton">
<property name="name"> <property name="name">
<cstring>radioButtonFolder</cstring> <cstring>radioButtonFolder</cstring>
</property> </property>
@ -60,7 +60,7 @@
<cstring>folderRequester</cstring> <cstring>folderRequester</cstring>
</property> </property>
</widget> </widget>
<widget class="QRadioButton"> <widget class="TQRadioButton">
<property name="name"> <property name="name">
<cstring>radioButtonPattern</cstring> <cstring>radioButtonPattern</cstring>
</property> </property>
@ -82,5 +82,5 @@
<includes> <includes>
<include location="local" impldecl="in implementation">select_privacy_resource.ui.h</include> <include location="local" impldecl="in implementation">select_privacy_resource.ui.h</include>
</includes> </includes>
<layoutdefaults spacing="6" margin="11"/> <tqlayoutdefaults spacing="6" margin="11"/>
</UI> </UI>

@ -22,10 +22,10 @@
#include "status.h" #include "status.h"
#include <qdatetime.h> #include <tqdatetime.h>
#include <qhbox.h> #include <tqhbox.h>
#include <qlayout.h> #include <tqlayout.h>
#include <qtimer.h> #include <tqtimer.h>
#include <kdialog.h> #include <kdialog.h>
#include <klocale.h> #include <klocale.h>
#include <kpassivepopup.h> #include <kpassivepopup.h>
@ -36,64 +36,64 @@ extern "C" {
#include <beagle/beagle.h> #include <beagle/beagle.h>
} }
KCMBeagleStatus::KCMBeagleStatus(QWidget *parent, const char * ) KCMBeagletqStatus::KCMBeagletqStatus(TQWidget *tqparent, const char * )
: KCModule(parent, "kcmbeaglestatus") : KCModule(tqparent, "kcmbeaglestatus")
{ {
QVBoxLayout* general_layout = new QVBoxLayout( this, KDialog::spacingHint() ); TQVBoxLayout* general_layout = new TQVBoxLayout( this, KDialog::spacingHint() );
QHBox *control_box = new QHBox (this); TQHBox *control_box = new TQHBox (this);
control_box->setSpacing (3); control_box->setSpacing (3);
general_layout->addWidget(control_box); general_layout->addWidget(control_box);
label_control = new QLabel (control_box); label_control = new TQLabel (control_box);
QWidget *dummy = new QWidget( control_box ); TQWidget *dummy = new TQWidget( control_box );
control_box->setStretchFactor( dummy, 1 ); control_box->setStretchFactor( dummy, 1 );
pb_control = new KPushButton (control_box); pb_control = new KPushButton (control_box);
connect (pb_control, SIGNAL (clicked ()), this, SLOT (controlPressed ()) ); connect (pb_control, TQT_SIGNAL (clicked ()), this, TQT_SLOT (controlPressed ()) );
status_box = new QGroupBox (1, Qt::Horizontal, this); status_box = new TQGroupBox (1, Qt::Horizontal, this);
general_layout->addWidget(status_box); general_layout->addWidget(status_box);
version_label = new QLabel (status_box); version_label = new TQLabel (status_box);
status_area = new QTextEdit (status_box); status_area = new TQTextEdit (status_box);
status_area->setReadOnly (true); status_area->setReadOnly (true);
index_info_box = new QTextEdit (status_box); index_info_box = new TQTextEdit (status_box);
index_info_box->setReadOnly (true); index_info_box->setReadOnly (true);
QHBox *footer_box = new QHBox (this); TQHBox *footer_box = new TQHBox (this);
general_layout->addWidget(footer_box); general_layout->addWidget(footer_box);
// Add some spacing to left // Add some spacing to left
dummy = new QWidget( footer_box ); dummy = new TQWidget( footer_box );
footer_box->setStretchFactor( dummy, 1 ); footer_box->setStretchFactor( dummy, 1 );
pb_refresh = new KPushButton (i18n("Refresh Status"), footer_box); pb_refresh = new KPushButton (i18n("Refresh tqStatus"), footer_box);
connect (pb_refresh, SIGNAL (clicked()), this, SLOT (refreshStatus ()) ); connect (pb_refresh, TQT_SIGNAL (clicked()), this, TQT_SLOT (refreshtqStatus ()) );
g_type_init (); g_type_init ();
refreshStatus (); refreshtqStatus ();
load(); load();
} }
KCMBeagleStatus::~KCMBeagleStatus() KCMBeagletqStatus::~KCMBeagletqStatus()
{ {
} }
void KCMBeagleStatus::load() void KCMBeagletqStatus::load()
{ {
load( false ); load( false );
} }
void KCMBeagleStatus::load( bool useDefaults ) void KCMBeagletqStatus::load( bool useDefaults )
{ {
emit changed( useDefaults ); emit changed( useDefaults );
} }
void KCMBeagleStatus::defaults() void KCMBeagletqStatus::defaults()
{ {
// if (!beagle_util_daemon_is_running ()) // if (!beagle_util_daemon_is_running ())
// controlPressed(); // controlPressed();
@ -101,12 +101,12 @@ void KCMBeagleStatus::defaults()
load( true ); load( true );
} }
void KCMBeagleStatus::save() void KCMBeagletqStatus::save()
{ {
} }
bool KCMBeagleStatus::refreshDaemonStatus () bool KCMBeagletqStatus::refreshDaemontqStatus ()
{ {
gboolean is_running = beagle_util_daemon_is_running (); gboolean is_running = beagle_util_daemon_is_running ();
if (is_running) { if (is_running) {
@ -121,12 +121,12 @@ bool KCMBeagleStatus::refreshDaemonStatus ()
return is_running; return is_running;
} }
void KCMBeagleStatus::refreshStatus () void KCMBeagletqStatus::refreshtqStatus ()
{ {
pb_refresh->setDisabled (TRUE); pb_refresh->setDisabled (TRUE);
bool is_running = refreshDaemonStatus (); bool is_running = refreshDaemontqStatus ();
status_box->setTitle ( QString ("[%1] ").arg (QDateTime::currentDateTime ().toString ()) ); status_box->setTitle ( TQString ("[%1] ").arg (TQDateTime::tqcurrentDateTime ().toString ()) );
if (! is_running) { if (! is_running) {
version_label->setText (i18n("Service not started.")); version_label->setText (i18n("Service not started."));
pb_refresh->setDisabled (FALSE); pb_refresh->setDisabled (FALSE);
@ -157,25 +157,25 @@ void KCMBeagleStatus::refreshStatus ()
pb_refresh->setDisabled (FALSE); pb_refresh->setDisabled (FALSE);
} }
void KCMBeagleStatus::controlPressed () void KCMBeagletqStatus::controlPressed ()
{ {
pb_control->setDisabled (TRUE); pb_control->setDisabled (TRUE);
if (last_status) { if (last_status) {
if (stopBeagle ()) if (stopBeagle ())
QTimer::singleShot (1000, this, SLOT (verifyStatus ())); TQTimer::singleShot (1000, this, TQT_SLOT (verifytqStatus ()));
} else { } else {
if (startBeagle ()) if (startBeagle ())
QTimer::singleShot (5000, this, SLOT (verifyStatus ())); TQTimer::singleShot (5000, this, TQT_SLOT (verifytqStatus ()));
} }
} }
void KCMBeagleStatus::verifyStatus () void KCMBeagletqStatus::verifytqStatus ()
{ {
pb_control->setEnabled (TRUE); pb_control->setEnabled (TRUE);
refreshDaemonStatus (); refreshDaemontqStatus ();
} }
bool KCMBeagleStatus::stopBeagle () bool KCMBeagletqStatus::stopBeagle ()
{ {
gboolean is_running = beagle_util_daemon_is_running (); gboolean is_running = beagle_util_daemon_is_running ();
if (! is_running) { if (! is_running) {
@ -194,7 +194,7 @@ bool KCMBeagleStatus::stopBeagle ()
return true; return true;
} }
bool KCMBeagleStatus::startBeagle () bool KCMBeagletqStatus::startBeagle ()
{ {
gboolean is_running = beagle_util_daemon_is_running (); gboolean is_running = beagle_util_daemon_is_running ();
if (is_running) { if (is_running) {

@ -23,19 +23,20 @@
#ifndef __STATUS_H__ #ifndef __STATUS_H__
#define __STATUS_H__ #define __STATUS_H__
#include <qlabel.h> #include <tqlabel.h>
#include <qgroupbox.h> #include <tqgroupbox.h>
#include <qtextedit.h> #include <tqtextedit.h>
#include <kcmodule.h> #include <kcmodule.h>
#include <kpushbutton.h> #include <kpushbutton.h>
class KCMBeagleStatus : public KCModule class KCMBeagletqStatus : public KCModule
{ {
Q_OBJECT Q_OBJECT
TQ_OBJECT
public: public:
KCMBeagleStatus(QWidget *parent=0, const char *name=0); KCMBeagletqStatus(TQWidget *tqparent=0, const char *name=0);
~KCMBeagleStatus(); ~KCMBeagletqStatus();
virtual void load(); virtual void load();
virtual void load( bool useDefaults ); virtual void load( bool useDefaults );
@ -43,20 +44,20 @@ public:
virtual void defaults(); virtual void defaults();
private slots: private slots:
void refreshStatus (); void refreshtqStatus ();
void controlPressed (); void controlPressed ();
void verifyStatus (); void verifytqStatus ();
private: private:
bool refreshDaemonStatus (); bool refreshDaemontqStatus ();
bool stopBeagle (); bool stopBeagle ();
bool startBeagle (); bool startBeagle ();
QLabel *label_control; TQLabel *label_control;
KPushButton *pb_control, *pb_refresh; KPushButton *pb_control, *pb_refresh;
QLabel *version_label; TQLabel *version_label;
QTextEdit *status_area, *index_info_box; TQTextEdit *status_area, *index_info_box;
QGroupBox *status_box; TQGroupBox *status_box;
bool last_status; bool last_status;
}; };

@ -17,10 +17,10 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA * * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA *
***************************************************************************/ ***************************************************************************/
#include <qstring.h> #include <tqstring.h>
#include <qstringlist.h> #include <tqstringlist.h>
#include <qdir.h> #include <tqdir.h>
#include <qclipboard.h> #include <tqclipboard.h>
#include <kfiledialog.h> #include <kfiledialog.h>
#include <kcmdlineargs.h> #include <kcmdlineargs.h>
#include <fcntl.h> #include <fcntl.h>
@ -30,9 +30,9 @@
#include <khelpmenu.h> #include <khelpmenu.h>
#include <kprocess.h> #include <kprocess.h>
#include <qtooltip.h> #include <tqtooltip.h>
#include <qdom.h> #include <tqdom.h>
#include <qtimer.h> #include <tqtimer.h>
#include "searchdlg.h" #include "searchdlg.h"
#include "kerryapp.h" #include "kerryapp.h"
@ -92,55 +92,55 @@ void KerryApplication::init(const KAboutData* /*about*/)
config->setGroup("General"); config->setGroup("General");
hitListWindow = new SearchDlg(); hitListWindow = new SearchDlg();
QSize *defaultSize; TQSize *defaultSize;
defaultSize = new QSize(750, 650); defaultSize = new TQSize(750, 650);
hitListWindow->resize(config->readSizeEntry("DialogSize", defaultSize)); hitListWindow->resize(config->readSizeEntry("DialogSize", defaultSize));
delete defaultSize; delete defaultSize;
connect(hitListWindow,SIGNAL(configure()),SLOT(configure())); connect(hitListWindow,TQT_SIGNAL(configure()),TQT_SLOT(configure()));
connect(hitListWindow,SIGNAL(readConfiguration()),SLOT(configChanged())); connect(hitListWindow,TQT_SIGNAL(readConfiguration()),TQT_SLOT(configChanged()));
hitListWindow->editSearch->setHistoryItems(config->readListEntry("History")); hitListWindow->editSearch->setHistoryItems(config->readListEntry("History"));
hitListWindow->configChanged(); hitListWindow->configChanged();
sysTrayIcon = new KSystemTray(hitListWindow); sysTrayIcon = new KSystemTray(hitListWindow);
KPopupMenu *menu = sysTrayIcon->contextMenu(); KPopupMenu *menu = sysTrayIcon->contextMenu();
connect(menu,SIGNAL(aboutToShow()),SLOT(aboutToShowSysTrayMenu())); connect(menu,TQT_SIGNAL(aboutToShow()),TQT_SLOT(aboutToShowSysTrayMenu()));
connect(menu,SIGNAL(activated(int)),SLOT(historySelected(int))); connect(menu,TQT_SIGNAL(activated(int)),TQT_SLOT(historySelected(int)));
menu->insertSeparator(); menu->insertSeparator();
menu->insertItem(SmallIconSet("history_clear"), menu->insertItem(SmallIconSet("history_clear"),
i18n("Clear Search History"), this, i18n("Clear Search History"), this,
SLOT(clearHistory()),0,HISTORY_ITEMS_CLEAR_ID); TQT_SLOT(clearHistory()),0,HISTORY_ITEMS_CLEAR_ID);
menu->insertItem(SmallIconSet("configure"), menu->insertItem(SmallIconSet("configure"),
i18n("Configure Kerry..."), this, i18n("Configure Kerry..."), this,
SLOT(configure())); TQT_SLOT(configure()));
/* /*
KHelpMenu *helpmenu = new KHelpMenu(hitListWindow, about, false); KHelpMenu *helpmenu = new KHelpMenu(hitListWindow, about, false);
menu->insertItem( SmallIconSet("help"), KStdGuiItem::help().text(), helpmenu->menu() ); menu->insertItem( SmallIconSet("help"), KStdGuiItem::help().text(), helpmenu->menu() );
*/ */
globalKeys = new KGlobalAccel(this); globalKeys = new KGlobalAccel(TQT_TQOBJECT(this));
globalKeys->insert( "Program:kerry", i18n("Kerry Beagle Search") ); globalKeys->insert( "Program:kerry", i18n("Kerry Beagle Search") );
KShortcut showDialogShortcut = KShortcut(ALT+Key_Space); KShortcut showDialogShortcut = KShortcut(ALT+Key_Space);
showDialogShortcut.append( KKey( Key_F12 ) ); showDialogShortcut.append( KKey( Key_F12 ) );
globalKeys->insert( "Show Kerry Dialog", i18n("Show Search Dialog"), QString::null, showDialogShortcut, showDialogShortcut, hitListWindow, SLOT(showSearchDialog()) ); globalKeys->insert( "Show Kerry Dialog", i18n("Show Search Dialog"), TQString(), showDialogShortcut, showDialogShortcut, TQT_TQOBJECT(hitListWindow), TQT_SLOT(showSearchDialog()) );
globalKeys->insert( "Search Primary Selection with Kerry", i18n("Search Primary Selection"), QString::null, CTRL+ALT+Key_Space, CTRL+ALT+Key_Space, this, SLOT(searchPrimarySelection()) ); globalKeys->insert( "Search Primary Selection with Kerry", i18n("Search Primary Selection"), TQString(), CTRL+ALT+Key_Space, CTRL+ALT+Key_Space, TQT_TQOBJECT(this), TQT_SLOT(searchPrimarySelection()) );
configChanged(); configChanged();
sysTrayIcon->setPixmap(sysTrayIcon->loadIcon("kerry_systemtray")); sysTrayIcon->setPixmap(sysTrayIcon->loadIcon("kerry_systemtray"));
QToolTip::add(sysTrayIcon, i18n("Kerry Beagle Search (%1)").arg(globalKeys->shortcut("Show Kerry Dialog").seq(0).toString())); TQToolTip::add(sysTrayIcon, i18n("Kerry Beagle Search (%1)").tqarg(globalKeys->shortcut("Show Kerry Dialog").seq(0).toString()));
sysTrayIcon->show(); sysTrayIcon->show();
sysTrayIcon->actionCollection()->action("file_quit")->setShortcut(KShortcut()); sysTrayIcon->actionCollection()->action("file_quit")->setShortcut(KShortcut());
disconnect(sysTrayIcon->actionCollection()->action("file_quit"), SIGNAL(activated()), sysTrayIcon, SLOT(maybeQuit())); disconnect(sysTrayIcon->actionCollection()->action("file_quit"), TQT_SIGNAL(activated()), sysTrayIcon, TQT_SLOT(maybeQuit()));
connect(sysTrayIcon->actionCollection()->action("file_quit"), SIGNAL(activated()), this, SLOT(quitKerry())); connect(sysTrayIcon->actionCollection()->action("file_quit"), TQT_SIGNAL(activated()), TQT_TQOBJECT(this), TQT_SLOT(quitKerry()));
QTimer::singleShot( 1000, this, SLOT(checkBeagleBuildIndex())); TQTimer::singleShot( 1000, TQT_TQOBJECT(this), TQT_SLOT(checkBeagleBuildIndex()));
} }
void KerryApplication::search(const QString& text) void KerryApplication::search(const TQString& text)
{ {
if (hitListWindow) if (hitListWindow)
hitListWindow->search(text); hitListWindow->search(text);
@ -153,7 +153,7 @@ void KerryApplication::aboutToShowSysTrayMenu()
for (int id=HISTORY_ITEMS_START_ID;id<=HISTORY_ITEMS_START_ID+MAX_HISTORY_ITEMS;id++) for (int id=HISTORY_ITEMS_START_ID;id<=HISTORY_ITEMS_START_ID+MAX_HISTORY_ITEMS;id++)
menu->removeItem(id); menu->removeItem(id);
QStringList searches = hitListWindow->editSearch->historyItems(); TQStringList searches = hitListWindow->editSearch->historyItems();
if (searches.count()==0) { if (searches.count()==0) {
menu->insertItem(i18n("<No Recent Searches>"),HISTORY_ITEMS_START_ID,1); menu->insertItem(i18n("<No Recent Searches>"),HISTORY_ITEMS_START_ID,1);
menu->setItemEnabled(HISTORY_ITEMS_START_ID,false); menu->setItemEnabled(HISTORY_ITEMS_START_ID,false);
@ -177,8 +177,8 @@ void KerryApplication::historySelected(int id)
void KerryApplication::searchPrimarySelection() void KerryApplication::searchPrimarySelection()
{ {
QApplication::clipboard()->setSelectionMode( true ); TQApplication::tqclipboard()->setSelectionMode( true );
QString text = QApplication::clipboard()->text(); TQString text = TQApplication::tqclipboard()->text();
if (!text.isEmpty() && hitListWindow) if (!text.isEmpty() && hitListWindow)
hitListWindow->search(text); hitListWindow->search(text);
} }
@ -208,15 +208,15 @@ void KerryApplication::quitKerry()
kdDebug() << "Couldn't run beagle-shutdown." << endl; kdDebug() << "Couldn't run beagle-shutdown." << endl;
#endif #endif
qApp->closeAllWindows(); tqApp->closeAllWindows();
qApp->quit(); tqApp->quit();
} }
void KerryApplication::clearHistory() void KerryApplication::clearHistory()
{ {
hitListWindow->editSearch->clearHistory(); hitListWindow->editSearch->clearHistory();
KConfig *config = KGlobal::config(); KConfig *config = KGlobal::config();
config->writeEntry("History",QString::null); config->writeEntry("History",TQString());
config->sync(); config->sync();
} }
@ -237,24 +237,24 @@ void KerryApplication::configChanged()
void KerryApplication::checkBeagleBuildIndex() void KerryApplication::checkBeagleBuildIndex()
{ {
QDir dir("/tmp", ".beagleindexwapi*"); TQDir dir("/tmp", ".beagleindexwapi*");
dir.setFilter(QDir::Dirs|QDir::Hidden); dir.setFilter(TQDir::Dirs|TQDir::Hidden);
QStringList entryList = dir.entryList(); TQStringList entryList = dir.entryList();
if (entryList.isEmpty()) if (entryList.isEmpty())
return; return;
bool current_wapidir = false; bool current_wapidir = false;
for ( QStringList::Iterator it = entryList.begin(); it != entryList.end(); ++it ) { for ( TQStringList::Iterator it = entryList.begin(); it != entryList.end(); ++it ) {
if ( QFileInfo("tmp/"+(*it)).lastModified().date()==QDate::currentDate() ) { if ( TQFileInfo("tmp/"+(*it)).lastModified().date()==TQDate::tqcurrentDate() ) {
current_wapidir=true; current_wapidir=true;
break; break;
} }
} }
QString oldMessage = I18N_NOOP("The daily running process for updating the system\nwide Beagle documentation index was detected."); TQString oldMessage = I18N_NOOP("The daily running process for updating the system\nwide Beagle documentation index was detected.");
QString message; TQString message;
if (oldMessage==i18n(oldMessage.ascii())) if (oldMessage==i18n(oldMessage.ascii()))
message = "The daily process that updates the search index for system documentation\n is running, which may make the system appear slower than usual.\n\nThis process should complete shortly."; message = "The daily process that updates the search index for system documentation\n is running, which may make the system appear slower than usual.\n\nThis process should complete shortly.";

@ -24,7 +24,7 @@
#include <ksystemtray.h> #include <ksystemtray.h>
#include <kglobalaccel.h> #include <kglobalaccel.h>
#define kerryApp ((KerryApplication*)qApp) #define kerryApp ((KerryApplication*)tqApp)
#define MAX_HISTORY_ITEMS 10 #define MAX_HISTORY_ITEMS 10
class kerry; class kerry;
@ -37,13 +37,14 @@ class KProcess;
class KerryApplication : public KUniqueApplication class KerryApplication : public KUniqueApplication
{ {
Q_OBJECT Q_OBJECT
TQ_OBJECT
public: public:
KerryApplication(); KerryApplication();
~KerryApplication(); ~KerryApplication();
void init(const KAboutData* about); void init(const KAboutData* about);
int newInstance(); int newInstance();
void search(const QString&); void search(const TQString&);
protected: protected:
SearchDlg* hitListWindow; SearchDlg* hitListWindow;

@ -21,7 +21,7 @@
#include "kerrylabel.h" #include "kerrylabel.h"
#include "hitwidget.h" #include "hitwidget.h"
#include <qdragobject.h> #include <tqdragobject.h>
#include <kglobalsettings.h> #include <kglobalsettings.h>
#include <kurl.h> #include <kurl.h>
#include <krun.h> #include <krun.h>
@ -29,22 +29,22 @@
#include <konqbookmarkmanager.h> #include <konqbookmarkmanager.h>
#include <knewmenu.h> #include <knewmenu.h>
KerryLabel::KerryLabel (QWidget* parent, const char* name) KerryLabel::KerryLabel (TQWidget* tqparent, const char* name)
: KURLLabel (parent, name) : KURLLabel (tqparent, name)
{ {
dragInfo.state = diNone; dragInfo.state = diNone;
} }
void KerryLabel::mousePressEvent(QMouseEvent* ev) void KerryLabel::mousePressEvent(TQMouseEvent* ev)
{ {
if (!url().isEmpty()) if (!url().isEmpty())
{ {
if ( ev->button() == LeftButton) if ( ev->button() == Qt::LeftButton)
{ {
dragInfo.state = diPending; dragInfo.state = diPending;
dragInfo.start = ev->pos(); dragInfo.start = ev->pos();
} }
else if (ev->button() == RightButton) else if (ev->button() == Qt::RightButton)
{ {
ev->accept(); ev->accept();
popupMenu( mapToGlobal(ev->pos()) ); popupMenu( mapToGlobal(ev->pos()) );
@ -54,7 +54,7 @@ void KerryLabel::mousePressEvent(QMouseEvent* ev)
KURLLabel::mousePressEvent(ev); KURLLabel::mousePressEvent(ev);
} }
void KerryLabel::mouseMoveEvent(QMouseEvent* ev) void KerryLabel::mouseMoveEvent(TQMouseEvent* ev)
{ {
if (dragInfo.state == diPending) { if (dragInfo.state == diPending) {
int distance = KGlobalSettings::dndEventDelay(); int distance = KGlobalSettings::dndEventDelay();
@ -67,9 +67,9 @@ void KerryLabel::mouseMoveEvent(QMouseEvent* ev)
KURLLabel::mouseMoveEvent(ev); KURLLabel::mouseMoveEvent(ev);
} }
void KerryLabel::mouseReleaseEvent(QMouseEvent* ev) void KerryLabel::mouseReleaseEvent(TQMouseEvent* ev)
{ {
if ( ev->button() == LeftButton) if ( ev->button() == Qt::LeftButton)
{ {
dragInfo.state = diNone; dragInfo.state = diNone;
} }
@ -80,14 +80,14 @@ void KerryLabel::doDrag()
{ {
dragInfo.state = diDragging; dragInfo.state = diDragging;
const KURL kuri = KURL(url()); const KURL kuri = KURL(url());
dragInfo.dragObject = new QTextDrag("'"+kuri.url().replace("file://",QString::null)+"'", this); dragInfo.dragObject = new TQTextDrag("'"+kuri.url().tqreplace("file://",TQString())+"'", this);
dragInfo.dragObject->dragCopy(); dragInfo.dragObject->dragCopy();
// Don't delete the QTextDrag object. Qt will delete it when it's done with it. // Don't delete the TQTextDrag object. TQt will delete it when it's done with it.
} }
void KerryLabel::popupMenu( const QPoint &_global ) void KerryLabel::popupMenu( const TQPoint &_global )
{ {
KFileItem item( ((HitWidget*)parent())->uri(),((HitWidget*)parent())->mimetype(),KFileItem::Unknown); KFileItem item( ((HitWidget*)tqparent())->uri(),((HitWidget*)tqparent())->mimetype(),KFileItem::Unknown);
KFileItemList _items; KFileItemList _items;
_items.append( &item ); _items.append( &item );

@ -24,23 +24,24 @@
#include <kurl.h> #include <kurl.h>
#include <kurllabel.h> #include <kurllabel.h>
class QTextDrag; class TQTextDrag;
class KerryLabel : public KURLLabel class KerryLabel : public KURLLabel
{ {
Q_OBJECT Q_OBJECT
TQ_OBJECT
public: public:
KerryLabel (QWidget* parent = 0L, const char* name = 0L); KerryLabel (TQWidget* tqparent = 0L, const char* name = 0L);
protected: protected:
void mousePressEvent( QMouseEvent* ); void mousePressEvent( TQMouseEvent* );
void mouseReleaseEvent( QMouseEvent* ); void mouseReleaseEvent( TQMouseEvent* );
void mouseMoveEvent( QMouseEvent* ); void mouseMoveEvent( TQMouseEvent* );
void doDrag(); void doDrag();
protected slots: protected slots:
void popupMenu( const QPoint &_global ); void popupMenu( const TQPoint &_global );
private: private:
KURL::List kurllist; KURL::List kurllist;
@ -49,8 +50,8 @@ class KerryLabel : public KURLLabel
struct _dragInfo { struct _dragInfo {
DragState state; DragState state;
QPoint start; TQPoint start;
QTextDrag *dragObject; TQTextDrag *dragObject;
} dragInfo; } dragInfo;
}; };

@ -22,8 +22,8 @@
#include <kglobalsettings.h> #include <kglobalsettings.h>
#include <hitwidget.h> #include <hitwidget.h>
KWidgetListbox::KWidgetListbox(QWidget *parent, const char *name) KWidgetListbox::KWidgetListbox(TQWidget *tqparent, const char *name)
: QTable(parent, name) : TQTable(tqparent, name)
{ {
setNumRows(0); setNumRows(0);
setNumCols(1); setNumCols(1);
@ -32,12 +32,12 @@ KWidgetListbox::KWidgetListbox(QWidget *parent, const char *name)
setTopMargin(0); setTopMargin(0);
horizontalHeader()->hide(); horizontalHeader()->hide();
verticalHeader()->hide(); verticalHeader()->hide();
setSelectionMode(QTable::NoSelection); setSelectionMode(TQTable::NoSelection);
setFocusStyle(QTable::FollowStyle); setFocusStyle(TQTable::FollowStyle);
connect(this, SIGNAL(currentChanged(int, int)), connect(this, TQT_SIGNAL(currentChanged(int, int)),
this, SLOT(selectionChanged(int, int))); this, TQT_SLOT(selectionChanged(int, int)));
setHScrollBarMode(QScrollView::AlwaysOff); setHScrollBarMode(TQScrollView::AlwaysOff);
setVScrollBarMode(QScrollView::Auto); setVScrollBarMode(TQScrollView::Auto);
} }
KWidgetListbox::~KWidgetListbox() KWidgetListbox::~KWidgetListbox()
@ -52,7 +52,7 @@ void KWidgetListbox::clear()
setNumRows(0); setNumRows(0);
} }
int KWidgetListbox::insertItem(QWidget* item, int index) int KWidgetListbox::insertItem(TQWidget* item, int index)
{ {
int row; int row;
@ -78,7 +78,7 @@ int KWidgetListbox::insertItem(QWidget* item, int index)
return row; return row;
} }
void KWidgetListbox::adjustSize(QWidget* item) void KWidgetListbox::adjustSize(TQWidget* item)
{ {
item->setMinimumWidth( columnWidth(0) ); item->setMinimumWidth( columnWidth(0) );
item->adjustSize(); item->adjustSize();
@ -89,7 +89,7 @@ void KWidgetListbox::adjustSize(QWidget* item)
setRowHeight(index(item), item->height()); setRowHeight(index(item), item->height());
} }
void KWidgetListbox::setSelected(QWidget* item) void KWidgetListbox::setSelected(TQWidget* item)
{ {
setSelected(index(item)); setSelected(index(item));
} }
@ -101,7 +101,7 @@ void KWidgetListbox::selectionChanged(int row, int col)
emit selected(row); emit selected(row);
} }
void KWidgetListbox::removeItem(QWidget* item) void KWidgetListbox::removeItem(TQWidget* item)
{ {
removeItem(index(item)); removeItem(index(item));
} }
@ -122,17 +122,17 @@ int KWidgetListbox::selected() const
return currentRow(); return currentRow();
} }
QWidget* KWidgetListbox::selectedItem() const TQWidget* KWidgetListbox::selectedItem() const
{ {
return item(selected()); return item(selected());
} }
QWidget* KWidgetListbox::item(int index) const TQWidget* KWidgetListbox::item(int index) const
{ {
return cellWidget(index, 0); return cellWidget(index, 0);
} }
int KWidgetListbox::index(QWidget* itm) const int KWidgetListbox::index(TQWidget* itm) const
{ {
for(int i = 0; i < numRows(); ++i) for(int i = 0; i < numRows(); ++i)
if(item(i) == itm) if(item(i) == itm)
@ -168,7 +168,7 @@ void KWidgetListbox::updateColors()
void KWidgetListbox::setItemColors(int index, bool even) void KWidgetListbox::setItemColors(int index, bool even)
{ {
QWidget* itm = item(index); TQWidget* itm = item(index);
if (!itm) if (!itm)
return; return;
@ -208,14 +208,14 @@ void KWidgetListbox::showItems(show_callback func, void* data)
updateColors(); updateColors();
} }
void KWidgetListbox::showEvent(QShowEvent*) void KWidgetListbox::showEvent(TQShowEvent*)
{ {
//kdDebug() << k_funcinfo << endl; //kdDebug() << k_funcinfo << endl;
repaintContents(false); tqrepaintContents(false);
} }
void KWidgetListbox::paintCell(QPainter*, int, int, const QRect&, void KWidgetListbox::paintCell(TQPainter*, int, int, const TQRect&,
bool, const QColorGroup&) bool, const TQColorGroup&)
{ {
//kdDebug() << k_funcinfo << endl; //kdDebug() << k_funcinfo << endl;
} }

@ -20,40 +20,41 @@
#ifndef KWIDGETLISTBOX_H #ifndef KWIDGETLISTBOX_H
#define KWIDGETLISTBOX_H #define KWIDGETLISTBOX_H
#include <qtable.h> #include <tqtable.h>
typedef bool (*show_callback) (int index, QWidget* widget, void* data); typedef bool (*show_callback) (int index, TQWidget* widget, void* data);
class KWidgetListbox : public QTable class KWidgetListbox : public TQTable
{ {
Q_OBJECT Q_OBJECT
TQ_OBJECT
public: public:
KWidgetListbox(QWidget *parent = 0, const char *name = 0); KWidgetListbox(TQWidget *tqparent = 0, const char *name = 0);
~KWidgetListbox(); ~KWidgetListbox();
int insertItem(QWidget* item, int index = -1); int insertItem(TQWidget* item, int index = -1);
void setSelected(QWidget* item); void setSelected(TQWidget* item);
void setSelected(int index); void setSelected(int index);
void removeItem(QWidget* item); void removeItem(TQWidget* item);
void removeItem(int index); void removeItem(int index);
void clear(); void clear();
int selected() const; int selected() const;
QWidget* selectedItem() const; TQWidget* selectedItem() const;
QWidget* item(int index) const; TQWidget* item(int index) const;
int index(QWidget* itm) const; int index(TQWidget* itm) const;
uint count() const { return numRows(); }; uint count() const { return numRows(); };
void showItems(show_callback func = 0, void* data = 0); void showItems(show_callback func = 0, void* data = 0);
void paintCell(QPainter* p, int row, int col, const QRect& cr, void paintCell(TQPainter* p, int row, int col, const TQRect& cr,
bool selected, const QColorGroup& cg); bool selected, const TQColorGroup& cg);
void adjustSize(QWidget* item); void adjustSize(TQWidget* item);
protected: protected:
void setItemColors(int index, bool even); void setItemColors(int index, bool even);
void updateColors(); void updateColors();
bool even(int index); bool even(int index);
virtual void showEvent(QShowEvent* e); virtual void showEvent(TQShowEvent* e);
protected slots: protected slots:
void selectionChanged(int row, int col); void selectionChanged(int row, int col);

@ -18,16 +18,16 @@
***************************************************************************/ ***************************************************************************/
#include <kerryapp.h> #include <kerryapp.h>
#include <qobject.h> #include <tqobject.h>
#include <qdir.h> #include <tqdir.h>
#include <qdom.h> #include <tqdom.h>
#include <kaboutdata.h> #include <kaboutdata.h>
#include <kcmdlineargs.h> #include <kcmdlineargs.h>
#include <klocale.h> #include <klocale.h>
#include <kconfig.h> #include <kconfig.h>
#include <qfileinfo.h> #include <tqfileinfo.h>
#include <qstringlist.h> #include <tqstringlist.h>
#include <kconfig.h> #include <kconfig.h>
#include <kstandarddirs.h> #include <kstandarddirs.h>
#include <kdeversion.h> #include <kdeversion.h>
@ -46,7 +46,7 @@ static KCmdLineOptions options[] =
{ 0, 0, 0 } { 0, 0, 0 }
}; };
bool KSessionManaged::saveState(QSessionManager&) bool KSessionManaged::saveState(TQSessionManager&)
{ {
// KConfig* config = kapp->sessionConfig(); // KConfig* config = kapp->sessionConfig();
// config->setGroup("General"); // config->setGroup("General");
@ -55,7 +55,7 @@ bool KSessionManaged::saveState(QSessionManager&)
return true; return true;
} }
bool KSessionManaged::commitData(QSessionManager&) bool KSessionManaged::commitData(TQSessionManager&)
{ {
return true; return true;
} }
@ -63,15 +63,15 @@ bool KSessionManaged::commitData(QSessionManager&)
extern "C" KDE_EXPORT int kdemain(int argc, char **argv) extern "C" KDE_EXPORT int kdemain(int argc, char **argv)
{ {
if (!getuid()) { if (!getuid()) {
QFile file( "/root/.beagle/config/daemon.xml" ); TQFile file( "/root/.beagle/config/daemon.xml" );
bool fail = true; bool fail = true;
if ( file.open( IO_ReadOnly ) ) { if ( file.open( IO_ReadOnly ) ) {
QDomDocument doc( "mydocument" ); TQDomDocument doc( "mydocument" );
if ( doc.setContent( &file ) ) { if ( doc.setContent( &file ) ) {
QDomElement docElem = doc.documentElement(); TQDomElement docElem = doc.documentElement();
QDomNode n = docElem.firstChild(); TQDomNode n = docElem.firstChild();
while( !n.isNull() ) { while( !n.isNull() ) {
QDomElement e = n.toElement(); TQDomElement e = n.toElement();
if( !e.isNull() && e.tagName()=="AllowRoot") if( !e.isNull() && e.tagName()=="AllowRoot")
fail = e.text()!="true"; fail = e.text()!="true";
n = n.nextSibling(); n = n.nextSibling();

@ -29,17 +29,17 @@ Query::Query()
void Query::clear() void Query::clear()
{ {
query_term = QString::null; query_term = TQString();
alternatives.clear(); alternatives.clear();
} }
void Query::set(const QString &term) void Query::set(const TQString &term)
{ {
query_term = term; query_term = term;
alternatives.clear(); alternatives.clear();
current_alternative = new Alternative; current_alternative = new Alternative;
current_part = QString::null; current_part = TQString();
within_quotes = false; within_quotes = false;
exclude_part = false; exclude_part = false;
@ -60,7 +60,7 @@ void Query::set(const QString &term)
current_alternative = new Alternative; current_alternative = new Alternative;
within_quotes = false; within_quotes = false;
exclude_part = false; exclude_part = false;
current_part = QString::null; current_part = TQString();
} }
else else
current_part+=term[index]; current_part+=term[index];
@ -92,17 +92,17 @@ void Query::add_term() {
} }
within_quotes = false; within_quotes = false;
exclude_part = false; exclude_part = false;
current_part = QString::null; current_part = TQString();
} }
QString Query::get() const TQString Query::get() const
{ {
return query_term; return query_term;
} }
bool Query::matches(const QString &term) bool Query::matches(const TQString &term)
{ {
QString lower_term = term.lower(); TQString lower_term = term.lower();
for (Alternative* alt=alternatives.first(); alt; alt=alternatives.next()) { for (Alternative* alt=alternatives.first(); alt; alt=alternatives.next()) {
if (!alt->includes.count()) if (!alt->includes.count())
@ -110,8 +110,8 @@ bool Query::matches(const QString &term)
bool next_alternative = false; bool next_alternative = false;
for ( QStringList::ConstIterator it = alt->excludes.begin(); it != alt->excludes.end(); ++it ) { for ( TQStringList::ConstIterator it = alt->excludes.begin(); it != alt->excludes.end(); ++it ) {
if ( lower_term.find(*it)!=-1 ) { if ( lower_term.tqfind(*it)!=-1 ) {
next_alternative = true; next_alternative = true;
continue; continue;
} }
@ -119,8 +119,8 @@ bool Query::matches(const QString &term)
if (next_alternative) if (next_alternative)
continue; continue;
for ( QStringList::ConstIterator it = alt->includes.begin(); it != alt->includes.end(); ++it ) { for ( TQStringList::ConstIterator it = alt->includes.begin(); it != alt->includes.end(); ++it ) {
if ( lower_term.find(*it)==-1 ) { if ( lower_term.tqfind(*it)==-1 ) {
next_alternative = true; next_alternative = true;
continue; continue;
} }

@ -19,17 +19,17 @@
******************************************************************/ ******************************************************************/
#ifndef QUERY_H #ifndef TQUERY_H
#define QUERY_H #define TQUERY_H
#include <qstringlist.h> #include <tqstringlist.h>
#include <qptrlist.h> #include <tqptrlist.h>
class Alternative class Alternative
{ {
public: public:
QStringList includes; TQStringList includes;
QStringList excludes; TQStringList excludes;
}; };
class Query class Query
@ -37,16 +37,16 @@ class Query
public: public:
Query(); Query();
void clear(); void clear();
void set(const QString &); void set(const TQString &);
QString get() const; TQString get() const;
bool matches(const QString &); bool matches(const TQString &);
private: private:
QString query_term; TQString query_term;
QPtrList<Alternative> alternatives; TQPtrList<Alternative> alternatives;
void add_term(); void add_term();
QString current_part; TQString current_part;
Alternative *current_alternative; Alternative *current_alternative;
bool within_quotes; bool within_quotes;
bool exclude_part; bool exclude_part;

File diff suppressed because it is too large Load Diff

@ -31,7 +31,7 @@
#include <kabc/stdaddressbook.h> #include <kabc/stdaddressbook.h>
class KFileItem; class KFileItem;
class QCheckBox; class TQCheckBox;
class KBookmarkManager; class KBookmarkManager;
class KBookmarkGroup; class KBookmarkGroup;
class HitWidget; class HitWidget;
@ -39,6 +39,7 @@ class HitWidget;
class SearchDlg : public HitsLayout, virtual public dcopIface class SearchDlg : public HitsLayout, virtual public dcopIface
{ {
Q_OBJECT Q_OBJECT
TQ_OBJECT
enum ScopeType { enum ScopeType {
Everywhere, Everywhere,
@ -69,12 +70,12 @@ class SearchDlg : public HitsLayout, virtual public dcopIface
}; };
public: public:
SearchDlg(QWidget *parent = 0, const char *name = 0); SearchDlg(TQWidget *tqparent = 0, const char *name = 0);
~SearchDlg(); ~SearchDlg();
public slots: public slots:
void search(const QString& text); void search(const TQString& text);
void search(const QString& text, const QString& scope); void search(const TQString& text, const TQString& scope);
void showSearchDialog(); void showSearchDialog();
void configChanged(); void configChanged();
@ -82,9 +83,9 @@ class SearchDlg : public HitsLayout, virtual public dcopIface
void setDisplayAmount(int); void setDisplayAmount(int);
void setSortOrder(int); void setSortOrder(int);
void keyPressEvent(QKeyEvent *); void keyPressEvent(TQKeyEvent *);
void showEvent(QShowEvent *); void showEvent(TQShowEvent *);
bool eventFilter(QObject *obj, QEvent *e); bool eventFilter(TQObject *obj, TQEvent *e);
signals: signals:
void configure(); void configure();
@ -97,22 +98,22 @@ class SearchDlg : public HitsLayout, virtual public dcopIface
void slotPrevious(); void slotPrevious();
void slotNext(); void slotNext();
void search(); void search();
void searchChanged(const QString &); void searchChanged(const TQString &);
void searchHasOutput(BeagleSearch::BeagleResultList &results); void searchHasOutput(BeagleSearch::BeagleResultList &results);
void searchLostOutput(BeagleSearch::VanishedURIList &results); void searchLostOutput(BeagleSearch::VanishedURIList &results);
void searchFinished(); void searchFinished();
void searchError (const QString& error); void searchError (const TQString& error);
void sortFilterResults(); void sortFilterResults();
void slotOpen(); void slotOpen();
void slotOpenDir(); void slotOpenDir();
void slotMailTo(const QString&); void slotMailTo(const TQString&);
void slotOpenEvolution(const QString&); void slotOpenEvolution(const TQString&);
void slotOpenThunderbird(const QString&); void slotOpenThunderbird(const TQString&);
void slotOpenKAddressBook(const QString&); void slotOpenKAddressBook(const TQString&);
void slotOpenKNotes(const QString&); void slotOpenKNotes(const TQString&);
void slotOpenURL(const QString&); void slotOpenURL(const TQString&);
void slotContextMenu( int row, int col, const QPoint & pos ); void slotContextMenu( int row, int col, const TQPoint & pos );
void slotPreview(const KFileItem *, const QPixmap &); void slotPreview(const KFileItem *, const TQPixmap &);
void slotPreviewResult(); void slotPreviewResult();
void slotCleanClientList (); void slotCleanClientList ();
void itemUncollapsed(HitWidget*); void itemUncollapsed(HitWidget*);
@ -121,8 +122,8 @@ class SearchDlg : public HitsLayout, virtual public dcopIface
BeagleSearch* beagle_search; BeagleSearch* beagle_search;
Query current_query; Query current_query;
QPtrList<BeagleSearch> toclean_client_list; TQPtrList<BeagleSearch> toclean_client_list;
QMutex toclean_list_mutex; TQMutex toclean_list_mutex;
int current_beagle_client_id; int current_beagle_client_id;
BeagleSearch::BeagleResultList results, displayed_results, new_results; BeagleSearch::BeagleResultList results, displayed_results, new_results;
@ -131,31 +132,31 @@ class SearchDlg : public HitsLayout, virtual public dcopIface
int defaultSortOrder,currentSortOrder; int defaultSortOrder,currentSortOrder;
void insertResult(BeagleSearch::beagle_result_struct *result,int index); void insertResult(BeagleSearch::beagle_result_struct *result,int index);
void fillTableHits(); void fillTableHits();
void updateStatus(); void updatetqStatus();
void showQuickTips(); void showQuickTips();
QString formatBytes(QString& bytesStr) const; TQString formatBytes(TQString& bytesStr) const;
QCheckBox* cb_beagleStart; TQCheckBox* cb_beagleStart;
bool beagleJustStarted; bool beagleJustStarted;
void customEvent (QCustomEvent *e); void customEvent (TQCustomEvent *e);
bool pending_showQuickTips; bool pending_showQuickTips;
void displayResults(BeagleSearch::BeagleResultList &items); void displayResults(BeagleSearch::BeagleResultList &items);
bool mimeTypeMatch( const QString& mimeType, const QStringList& mimeList ) const; bool mimeTypeMatch( const TQString& mimeType, const TQStringList& mimeList ) const;
bool canPreview( KFileItem* item ); bool canPreview( KFileItem* item );
void updatePreviewMimeTypes(); void updatePreviewMimeTypes();
QStringList* pPreviewMimeTypes; TQStringList* pPreviewMimeTypes;
KIO::PreviewJob *pPreviewJob; KIO::PreviewJob *pPreviewJob;
void startPreview( const KFileItemList& items ); void startPreview( const KFileItemList& items );
void stopPreview(); void stopPreview();
KFileItemList previewItems; KFileItemList previewItems;
QString takeProperty( const QString& property, QStringList& propertyList); TQString takeProperty( const TQString& property, TQStringList& propertyList);
QDateTime datetimeFromString( const QString& ); TQDateTime datetimeFromString( const TQString& );
QRegExp encodingRegexp; TQRegExp encodingRegexp;
void searchProgramList(QString relPath); void searchProgramList(TQString relPath);
bool checkUriInResults(const QString& path) const; bool checkUriInResults(const TQString& path) const;
KBookmarkManager *bookmarkManager; KBookmarkManager *bookmarkManager;
KABC::AddressBook* m_addressBook; KABC::AddressBook* m_addressBook;
@ -166,7 +167,7 @@ class SearchDlg : public HitsLayout, virtual public dcopIface
DateRange dateRange; DateRange dateRange;
bool showBigTiles; bool showBigTiles;
bool ensureServiceRunning(const QString & name); bool ensureServiceRunning(const TQString & name);
bool still_searching; bool still_searching;
}; };

@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.3" stdsetdef="1"> <!DOCTYPE UI><UI version="3.3" stdsetdef="1">
<class>HitsLayout</class> <class>HitsLayout</class>
<widget class="QDialog"> <widget class="TQDialog">
<property name="name"> <property name="name">
<cstring>HitsLayout</cstring> <cstring>HitsLayout</cstring>
</property> </property>
@ -12,7 +12,7 @@
<height>898</height> <height>898</height>
</rect> </rect>
</property> </property>
<property name="minimumSize"> <property name="tqminimumSize">
<size> <size>
<width>0</width> <width>0</width>
<height>0</height> <height>0</height>
@ -37,7 +37,7 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="minimumSize"> <property name="tqminimumSize">
<size> <size>
<width>480</width> <width>480</width>
<height>440</height> <height>440</height>
@ -47,9 +47,9 @@
<enum>StrongFocus</enum> <enum>StrongFocus</enum>
</property> </property>
</widget> </widget>
<widget class="QLayoutWidget" row="0" column="0" rowspan="1" colspan="2"> <widget class="TQLayoutWidget" row="0" column="0" rowspan="1" colspan="2">
<property name="name"> <property name="name">
<cstring>layout8</cstring> <cstring>tqlayout8</cstring>
</property> </property>
<hbox> <hbox>
<property name="name"> <property name="name">
@ -67,7 +67,7 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="minimumSize"> <property name="tqminimumSize">
<size> <size>
<width>24</width> <width>24</width>
<height>24</height> <height>24</height>
@ -83,7 +83,7 @@
<string>Clear the search term and results</string> <string>Clear the search term and results</string>
</property> </property>
</widget> </widget>
<widget class="QLabel"> <widget class="TQLabel">
<property name="name"> <property name="name">
<cstring>labelSearch</cstring> <cstring>labelSearch</cstring>
</property> </property>
@ -107,14 +107,14 @@
</sizepolicy> </sizepolicy>
</property> </property>
</widget> </widget>
<widget class="QToolButton"> <widget class="TQToolButton">
<property name="name"> <property name="name">
<cstring>buttonFind</cstring> <cstring>buttonFind</cstring>
</property> </property>
<property name="enabled"> <property name="enabled">
<bool>false</bool> <bool>false</bool>
</property> </property>
<property name="minimumSize"> <property name="tqminimumSize">
<size> <size>
<width>0</width> <width>0</width>
<height>0</height> <height>0</height>
@ -130,7 +130,7 @@
<string>Start the search for entered term</string> <string>Start the search for entered term</string>
</property> </property>
</widget> </widget>
<widget class="QLabel"> <widget class="TQLabel">
<property name="name"> <property name="name">
<cstring>m_searchPixmap</cstring> <cstring>m_searchPixmap</cstring>
</property> </property>
@ -142,13 +142,13 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="minimumSize"> <property name="tqminimumSize">
<size> <size>
<width>32</width> <width>32</width>
<height>32</height> <height>32</height>
</size> </size>
</property> </property>
<property name="maximumSize"> <property name="tqmaximumSize">
<size> <size>
<width>32</width> <width>32</width>
<height>32</height> <height>32</height>
@ -166,17 +166,17 @@
</widget> </widget>
</hbox> </hbox>
</widget> </widget>
<widget class="QLayoutWidget" row="2" column="0"> <widget class="TQLayoutWidget" row="2" column="0">
<property name="name"> <property name="name">
<cstring>layout5</cstring> <cstring>tqlayout5</cstring>
</property> </property>
<hbox> <hbox>
<property name="name"> <property name="name">
<cstring>unnamed</cstring> <cstring>unnamed</cstring>
</property> </property>
<widget class="QLabel"> <widget class="TQLabel">
<property name="name"> <property name="name">
<cstring>labelStatus</cstring> <cstring>labeltqStatus</cstring>
</property> </property>
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy> <sizepolicy>
@ -189,7 +189,7 @@
<property name="text"> <property name="text">
<string>Results &lt;b&gt;%1 through %2 of %3&lt;/b&gt; are shown.</string> <string>Results &lt;b&gt;%1 through %2 of %3&lt;/b&gt; are shown.</string>
</property> </property>
<property name="alignment"> <property name="tqalignment">
<set>AlignVCenter</set> <set>AlignVCenter</set>
</property> </property>
</widget> </widget>
@ -203,7 +203,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Fixed</enum> <enum>Fixed</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>16</width> <width>16</width>
<height>20</height> <height>20</height>
@ -225,7 +225,7 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="minimumSize"> <property name="tqminimumSize">
<size> <size>
<width>0</width> <width>0</width>
<height>0</height> <height>0</height>
@ -256,7 +256,7 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="minimumSize"> <property name="tqminimumSize">
<size> <size>
<width>0</width> <width>0</width>
<height>0</height> <height>0</height>
@ -274,15 +274,15 @@
</widget> </widget>
</hbox> </hbox>
</widget> </widget>
<widget class="QLayoutWidget" row="1" column="1" rowspan="2" colspan="1"> <widget class="TQLayoutWidget" row="1" column="1" rowspan="2" colspan="1">
<property name="name"> <property name="name">
<cstring>layout4</cstring> <cstring>tqlayout4</cstring>
</property> </property>
<vbox> <vbox>
<property name="name"> <property name="name">
<cstring>unnamed</cstring> <cstring>unnamed</cstring>
</property> </property>
<widget class="QFrame"> <widget class="TQFrame">
<property name="name"> <property name="name">
<cstring>frame3</cstring> <cstring>frame3</cstring>
</property> </property>
@ -304,7 +304,7 @@
<property name="name"> <property name="name">
<cstring>unnamed</cstring> <cstring>unnamed</cstring>
</property> </property>
<widget class="QLabel"> <widget class="TQLabel">
<property name="name"> <property name="name">
<cstring>textLabel1_3</cstring> <cstring>textLabel1_3</cstring>
</property> </property>
@ -329,7 +329,7 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="minimumSize"> <property name="tqminimumSize">
<size> <size>
<width>40</width> <width>40</width>
<height>0</height> <height>0</height>
@ -345,7 +345,7 @@
<enum>Horizontal</enum> <enum>Horizontal</enum>
</property> </property>
</widget> </widget>
<widget class="QLabel"> <widget class="TQLabel">
<property name="name"> <property name="name">
<cstring>showEverything</cstring> <cstring>showEverything</cstring>
</property> </property>
@ -357,95 +357,95 @@
<property name="text"> <property name="text">
<string>Everything</string> <string>Everything</string>
</property> </property>
<property name="alignment"> <property name="tqalignment">
<set>AlignVCenter</set> <set>AlignVCenter</set>
</property> </property>
</widget> </widget>
<widget class="QLabel"> <widget class="TQLabel">
<property name="name"> <property name="name">
<cstring>showApplications</cstring> <cstring>showApplications</cstring>
</property> </property>
<property name="text"> <property name="text">
<string>Applications</string> <string>Applications</string>
</property> </property>
<property name="alignment"> <property name="tqalignment">
<set>AlignVCenter</set> <set>AlignVCenter</set>
</property> </property>
</widget> </widget>
<widget class="QLabel"> <widget class="TQLabel">
<property name="name"> <property name="name">
<cstring>showContacts</cstring> <cstring>showContacts</cstring>
</property> </property>
<property name="text"> <property name="text">
<string>Contacts</string> <string>Contacts</string>
</property> </property>
<property name="alignment"> <property name="tqalignment">
<set>AlignVCenter</set> <set>AlignVCenter</set>
</property> </property>
</widget> </widget>
<widget class="QLabel"> <widget class="TQLabel">
<property name="name"> <property name="name">
<cstring>showDocuments</cstring> <cstring>showDocuments</cstring>
</property> </property>
<property name="text"> <property name="text">
<string>Office Documents</string> <string>Office Documents</string>
</property> </property>
<property name="alignment"> <property name="tqalignment">
<set>AlignVCenter</set> <set>AlignVCenter</set>
</property> </property>
</widget> </widget>
<widget class="QLabel"> <widget class="TQLabel">
<property name="name"> <property name="name">
<cstring>showConversations</cstring> <cstring>showConversations</cstring>
</property> </property>
<property name="text"> <property name="text">
<string>Conversations</string> <string>Conversations</string>
</property> </property>
<property name="alignment"> <property name="tqalignment">
<set>AlignVCenter</set> <set>AlignVCenter</set>
</property> </property>
</widget> </widget>
<widget class="QLabel"> <widget class="TQLabel">
<property name="name"> <property name="name">
<cstring>showImages</cstring> <cstring>showImages</cstring>
</property> </property>
<property name="text"> <property name="text">
<string>Images</string> <string>Images</string>
</property> </property>
<property name="alignment"> <property name="tqalignment">
<set>AlignVCenter</set> <set>AlignVCenter</set>
</property> </property>
</widget> </widget>
<widget class="QLabel"> <widget class="TQLabel">
<property name="name"> <property name="name">
<cstring>showMedia</cstring> <cstring>showMedia</cstring>
</property> </property>
<property name="text"> <property name="text">
<string>Media</string> <string>Media</string>
</property> </property>
<property name="alignment"> <property name="tqalignment">
<set>AlignVCenter</set> <set>AlignVCenter</set>
</property> </property>
</widget> </widget>
<widget class="QLabel"> <widget class="TQLabel">
<property name="name"> <property name="name">
<cstring>showWebPages</cstring> <cstring>showWebPages</cstring>
</property> </property>
<property name="text"> <property name="text">
<string>Web Pages</string> <string>Web Pages</string>
</property> </property>
<property name="alignment"> <property name="tqalignment">
<set>AlignVCenter</set> <set>AlignVCenter</set>
</property> </property>
</widget> </widget>
<widget class="QLabel"> <widget class="TQLabel">
<property name="name"> <property name="name">
<cstring>showFilePathName</cstring> <cstring>showFilePathName</cstring>
</property> </property>
<property name="text"> <property name="text">
<string>File/Path Name</string> <string>File/Path Name</string>
</property> </property>
<property name="alignment"> <property name="tqalignment">
<set>AlignVCenter</set> <set>AlignVCenter</set>
</property> </property>
</widget> </widget>
@ -459,14 +459,14 @@
<property name="sizeType"> <property name="sizeType">
<enum>Fixed</enum> <enum>Fixed</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>20</width> <width>20</width>
<height>16</height> <height>16</height>
</size> </size>
</property> </property>
</spacer> </spacer>
<widget class="QLabel"> <widget class="TQLabel">
<property name="name"> <property name="name">
<cstring>textLabel1_2</cstring> <cstring>textLabel1_2</cstring>
</property> </property>
@ -491,7 +491,7 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="minimumSize"> <property name="tqminimumSize">
<size> <size>
<width>40</width> <width>40</width>
<height>0</height> <height>0</height>
@ -507,7 +507,7 @@
<enum>Horizontal</enum> <enum>Horizontal</enum>
</property> </property>
</widget> </widget>
<widget class="QLabel"> <widget class="TQLabel">
<property name="name"> <property name="name">
<cstring>sortByType</cstring> <cstring>sortByType</cstring>
</property> </property>
@ -519,40 +519,40 @@
<property name="text"> <property name="text">
<string>Type</string> <string>Type</string>
</property> </property>
<property name="alignment"> <property name="tqalignment">
<set>AlignVCenter</set> <set>AlignVCenter</set>
</property> </property>
</widget> </widget>
<widget class="QLabel"> <widget class="TQLabel">
<property name="name"> <property name="name">
<cstring>sortByDate</cstring> <cstring>sortByDate</cstring>
</property> </property>
<property name="text"> <property name="text">
<string>Date</string> <string>Date</string>
</property> </property>
<property name="alignment"> <property name="tqalignment">
<set>AlignVCenter</set> <set>AlignVCenter</set>
</property> </property>
</widget> </widget>
<widget class="QLabel"> <widget class="TQLabel">
<property name="name"> <property name="name">
<cstring>sortByName</cstring> <cstring>sortByName</cstring>
</property> </property>
<property name="text"> <property name="text">
<string>Name</string> <string>Name</string>
</property> </property>
<property name="alignment"> <property name="tqalignment">
<set>WordBreak|AlignVCenter</set> <set>WordBreak|AlignVCenter</set>
</property> </property>
</widget> </widget>
<widget class="QLabel"> <widget class="TQLabel">
<property name="name"> <property name="name">
<cstring>sortByRelevance</cstring> <cstring>sortByRelevance</cstring>
</property> </property>
<property name="text"> <property name="text">
<string>Relevance</string> <string>Relevance</string>
</property> </property>
<property name="alignment"> <property name="tqalignment">
<set>AlignVCenter</set> <set>AlignVCenter</set>
</property> </property>
</widget> </widget>
@ -566,14 +566,14 @@
<property name="sizeType"> <property name="sizeType">
<enum>Fixed</enum> <enum>Fixed</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>20</width> <width>20</width>
<height>16</height> <height>16</height>
</size> </size>
</property> </property>
</spacer> </spacer>
<widget class="QLabel"> <widget class="TQLabel">
<property name="name"> <property name="name">
<cstring>textLabel1</cstring> <cstring>textLabel1</cstring>
</property> </property>
@ -598,7 +598,7 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="minimumSize"> <property name="tqminimumSize">
<size> <size>
<width>40</width> <width>40</width>
<height>0</height> <height>0</height>
@ -614,7 +614,7 @@
<enum>Horizontal</enum> <enum>Horizontal</enum>
</property> </property>
</widget> </widget>
<widget class="QLabel"> <widget class="TQLabel">
<property name="name"> <property name="name">
<cstring>showAnyDate</cstring> <cstring>showAnyDate</cstring>
</property> </property>
@ -626,62 +626,62 @@
<property name="text"> <property name="text">
<string>Any Date</string> <string>Any Date</string>
</property> </property>
<property name="alignment"> <property name="tqalignment">
<set>AlignVCenter</set> <set>AlignVCenter</set>
</property> </property>
</widget> </widget>
<widget class="QLabel"> <widget class="TQLabel">
<property name="name"> <property name="name">
<cstring>showToday</cstring> <cstring>showToday</cstring>
</property> </property>
<property name="text"> <property name="text">
<string>Today</string> <string>Today</string>
</property> </property>
<property name="alignment"> <property name="tqalignment">
<set>AlignVCenter</set> <set>AlignVCenter</set>
</property> </property>
</widget> </widget>
<widget class="QLabel"> <widget class="TQLabel">
<property name="name"> <property name="name">
<cstring>showSinceYesterday</cstring> <cstring>showSinceYesterday</cstring>
</property> </property>
<property name="text"> <property name="text">
<string>Since Yesterday</string> <string>Since Yesterday</string>
</property> </property>
<property name="alignment"> <property name="tqalignment">
<set>AlignVCenter</set> <set>AlignVCenter</set>
</property> </property>
</widget> </widget>
<widget class="QLabel"> <widget class="TQLabel">
<property name="name"> <property name="name">
<cstring>showThisWeek</cstring> <cstring>showThisWeek</cstring>
</property> </property>
<property name="text"> <property name="text">
<string>This Week</string> <string>This Week</string>
</property> </property>
<property name="alignment"> <property name="tqalignment">
<set>AlignVCenter</set> <set>AlignVCenter</set>
</property> </property>
</widget> </widget>
<widget class="QLabel"> <widget class="TQLabel">
<property name="name"> <property name="name">
<cstring>showThisMonth</cstring> <cstring>showThisMonth</cstring>
</property> </property>
<property name="text"> <property name="text">
<string>This Month</string> <string>This Month</string>
</property> </property>
<property name="alignment"> <property name="tqalignment">
<set>AlignVCenter</set> <set>AlignVCenter</set>
</property> </property>
</widget> </widget>
<widget class="QLabel"> <widget class="TQLabel">
<property name="name"> <property name="name">
<cstring>showThisYear</cstring> <cstring>showThisYear</cstring>
</property> </property>
<property name="text"> <property name="text">
<string>This Year</string> <string>This Year</string>
</property> </property>
<property name="alignment"> <property name="tqalignment">
<set>AlignVCenter</set> <set>AlignVCenter</set>
</property> </property>
</widget> </widget>
@ -695,7 +695,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>20</width> <width>20</width>
<height>1</height> <height>1</height>
@ -704,9 +704,9 @@
</spacer> </spacer>
</vbox> </vbox>
</widget> </widget>
<widget class="QLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>layout3</cstring> <cstring>tqlayout3</cstring>
</property> </property>
<hbox> <hbox>
<property name="name"> <property name="name">
@ -722,7 +722,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Preferred</enum> <enum>Preferred</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>0</width> <width>0</width>
<height>20</height> <height>20</height>
@ -741,7 +741,7 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="minimumSize"> <property name="tqminimumSize">
<size> <size>
<width>0</width> <width>0</width>
<height>0</height> <height>0</height>
@ -766,7 +766,7 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="minimumSize"> <property name="tqminimumSize">
<size> <size>
<width>0</width> <width>0</width>
<height>0</height> <height>0</height>
@ -849,14 +849,14 @@
<slot access="public" specifier="">update()</slot> <slot access="public" specifier="">update()</slot>
<slot access="public" specifier="">update(int,int,int,int)</slot> <slot access="public" specifier="">update(int,int,int,int)</slot>
<slot access="public" specifier="">update(const QRect&amp;)</slot> <slot access="public" specifier="">update(const QRect&amp;)</slot>
<slot access="public" specifier="">repaint()</slot> <slot access="public" specifier="">tqrepaint()</slot>
<slot access="public" specifier="">repaint(bool)</slot> <slot access="public" specifier="">tqrepaint(bool)</slot>
<slot access="public" specifier="">repaint(int,int,int,int)</slot> <slot access="public" specifier="">tqrepaint(int,int,int,int)</slot>
<slot access="public" specifier="">repaint(int,int,int,int,bool)</slot> <slot access="public" specifier="">tqrepaint(int,int,int,int,bool)</slot>
<slot access="public" specifier="">repaint(const QRect&amp;)</slot> <slot access="public" specifier="">tqrepaint(const QRect&amp;)</slot>
<slot access="public" specifier="">repaint(const QRect&amp;,bool)</slot> <slot access="public" specifier="">tqrepaint(const QRect&amp;,bool)</slot>
<slot access="public" specifier="">repaint(const QRegion&amp;)</slot> <slot access="public" specifier="">tqrepaint(const QRegion&amp;)</slot>
<slot access="public" specifier="">repaint(const QRegion&amp;,bool)</slot> <slot access="public" specifier="">tqrepaint(const QRegion&amp;,bool)</slot>
<slot access="public" specifier="">show()</slot> <slot access="public" specifier="">show()</slot>
<slot access="public" specifier="">hide()</slot> <slot access="public" specifier="">hide()</slot>
<slot access="public" specifier="">setShown(bool)</slot> <slot access="public" specifier="">setShown(bool)</slot>
@ -897,7 +897,7 @@
<slot access="public" specifier="">setPalette(const QPalette&amp;)</slot> <slot access="public" specifier="">setPalette(const QPalette&amp;)</slot>
<slot access="public" specifier="">setSelection(int,int)</slot> <slot access="public" specifier="">setSelection(int,int)</slot>
<slot access="public" specifier="">setCursorPosition(int)</slot> <slot access="public" specifier="">setCursorPosition(int)</slot>
<slot access="public" specifier="">setAlignment(int)</slot> <slot access="public" specifier="">tqsetAlignment(int)</slot>
<slot access="public" specifier="">cut()</slot> <slot access="public" specifier="">cut()</slot>
<slot access="public" specifier="">copy()</slot> <slot access="public" specifier="">copy()</slot>
<slot access="public" specifier="">paste()</slot> <slot access="public" specifier="">paste()</slot>
@ -921,10 +921,10 @@
<slot access="private" specifier="">setTextWorkaround(const QString&amp;)</slot> <slot access="private" specifier="">setTextWorkaround(const QString&amp;)</slot>
<property type="CString">name</property> <property type="CString">name</property>
<property type="Bool">enabled</property> <property type="Bool">enabled</property>
<property type="Rect">geometry</property> <property type="Rect">tqgeometry</property>
<property type="SizePolicy">sizePolicy</property> <property type="SizePolicy">sizePolicy</property>
<property type="Size">minimumSize</property> <property type="Size">tqminimumSize</property>
<property type="Size">maximumSize</property> <property type="Size">tqmaximumSize</property>
<property type="Size">sizeIncrement</property> <property type="Size">sizeIncrement</property>
<property type="Size">baseSize</property> <property type="Size">baseSize</property>
<property type="Color">paletteForegroundColor</property> <property type="Color">paletteForegroundColor</property>
@ -950,7 +950,7 @@
<property type="Bool">frame</property> <property type="Bool">frame</property>
<property type="EchoMode">echoMode</property> <property type="EchoMode">echoMode</property>
<property type="Int">cursorPosition</property> <property type="Int">cursorPosition</property>
<property type="Alignment">alignment</property> <property type="Alignment">tqalignment</property>
<property type="Bool">dragEnabled</property> <property type="Bool">dragEnabled</property>
<property type="Bool">readOnly</property> <property type="Bool">readOnly</property>
<property type="String">inputMask</property> <property type="String">inputMask</property>
@ -995,14 +995,14 @@
<slot access="public" specifier="">update()</slot> <slot access="public" specifier="">update()</slot>
<slot access="public" specifier="">update(int,int,int,int)</slot> <slot access="public" specifier="">update(int,int,int,int)</slot>
<slot access="public" specifier="">update(const QRect&amp;)</slot> <slot access="public" specifier="">update(const QRect&amp;)</slot>
<slot access="public" specifier="">repaint()</slot> <slot access="public" specifier="">tqrepaint()</slot>
<slot access="public" specifier="">repaint(bool)</slot> <slot access="public" specifier="">tqrepaint(bool)</slot>
<slot access="public" specifier="">repaint(int,int,int,int)</slot> <slot access="public" specifier="">tqrepaint(int,int,int,int)</slot>
<slot access="public" specifier="">repaint(int,int,int,int,bool)</slot> <slot access="public" specifier="">tqrepaint(int,int,int,int,bool)</slot>
<slot access="public" specifier="">repaint(const QRect&amp;)</slot> <slot access="public" specifier="">tqrepaint(const QRect&amp;)</slot>
<slot access="public" specifier="">repaint(const QRect&amp;,bool)</slot> <slot access="public" specifier="">tqrepaint(const QRect&amp;,bool)</slot>
<slot access="public" specifier="">repaint(const QRegion&amp;)</slot> <slot access="public" specifier="">tqrepaint(const QRegion&amp;)</slot>
<slot access="public" specifier="">repaint(const QRegion&amp;,bool)</slot> <slot access="public" specifier="">tqrepaint(const QRegion&amp;,bool)</slot>
<slot access="public" specifier="">show()</slot> <slot access="public" specifier="">show()</slot>
<slot access="public" specifier="">hide()</slot> <slot access="public" specifier="">hide()</slot>
<slot access="public" specifier="">setShown(bool)</slot> <slot access="public" specifier="">setShown(bool)</slot>
@ -1036,10 +1036,10 @@
<slot access="private" specifier="">slotSettingsChanged(int)</slot> <slot access="private" specifier="">slotSettingsChanged(int)</slot>
<property type="CString">name</property> <property type="CString">name</property>
<property type="Bool">enabled</property> <property type="Bool">enabled</property>
<property type="Rect">geometry</property> <property type="Rect">tqgeometry</property>
<property type="SizePolicy">sizePolicy</property> <property type="SizePolicy">sizePolicy</property>
<property type="Size">minimumSize</property> <property type="Size">tqminimumSize</property>
<property type="Size">maximumSize</property> <property type="Size">tqmaximumSize</property>
<property type="Size">sizeIncrement</property> <property type="Size">sizeIncrement</property>
<property type="Size">baseSize</property> <property type="Size">baseSize</property>
<property type="Color">paletteForegroundColor</property> <property type="Color">paletteForegroundColor</property>
@ -1096,8 +1096,8 @@
<includes> <includes>
<include location="local" impldecl="in implementation">searchdlg_layout.ui.h</include> <include location="local" impldecl="in implementation">searchdlg_layout.ui.h</include>
</includes> </includes>
<layoutdefaults spacing="6" margin="11"/> <tqlayoutdefaults spacing="6" margin="11"/>
<layoutfunctions spacing="KDialog::spacingHint" margin="KDialog::marginHint"/> <tqlayoutfunctions spacing="KDialog::spacingHint" margin="KDialog::marginHint"/>
<includehints> <includehints>
<includehint>kwidgetlistbox.h</includehint> <includehint>kwidgetlistbox.h</includehint>
<includehint>kpushbutton.h</includehint> <includehint>kpushbutton.h</includehint>

Loading…
Cancel
Save