TQt4 port kbfx

This enables compilation under both Qt3 and Qt4


git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kbfx@1230544 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru
tpearson 14 years ago
parent 39e896bddf
commit 421b60af92

@ -21,8 +21,8 @@
#include "kbfxconfigapp.h" #include "kbfxconfigapp.h"
KbfxConfigApp::KbfxConfigApp ( QWidget* parent, const char* name, WFlags fl ) KbfxConfigApp::KbfxConfigApp ( TQWidget* tqparent, const char* name, WFlags fl )
: KbfxConfigDlgMain ( parent,name,fl ) : KbfxConfigDlgMain ( tqparent,name,fl )
{ {
// m_KbfxVersion = tr2i18n("<p align='center'>Running KBFX version: " APPLICATION_VERSION "</p>"); // m_KbfxVersion = tr2i18n("<p align='center'>Running KBFX version: " APPLICATION_VERSION "</p>");
m_KbfxVersion = tr2i18n ( "<p align='center'>%1</p>" ); m_KbfxVersion = tr2i18n ( "<p align='center'>%1</p>" );
@ -79,62 +79,62 @@ void KbfxConfigApp::InitForm()
lb_Main->insertItem ( img_themes, tr2i18n ( "Themes" ), THEMES ); lb_Main->insertItem ( img_themes, tr2i18n ( "Themes" ), THEMES );
KbfxConfigDlgThemes *pageThemes = new KbfxConfigDlgThemes(); KbfxConfigDlgThemes *pageThemes = new KbfxConfigDlgThemes();
ws_Main->addWidget ( pageThemes, THEMES ); ws_Main->addWidget ( pageThemes, THEMES );
connect ( this, SIGNAL ( KbfxConfigDlgThemesChanged() ), connect ( this, TQT_SIGNAL ( KbfxConfigDlgThemesChanged() ),
pageThemes, SLOT ( ChangeForm() ) ); pageThemes, TQT_SLOT ( ChangeForm() ) );
emit KbfxConfigDlgThemesChanged(); emit KbfxConfigDlgThemesChanged();
connect ( pageThemes->KbfxGetMoreThemes, SIGNAL ( clicked() ), connect ( pageThemes->KbfxGetMoreThemes, TQT_SIGNAL ( clicked() ),
this, SLOT ( KbfxGetMoreThemesClicked() ) ); this, TQT_SLOT ( KbfxGetMoreThemesClicked() ) );
connect ( this, SIGNAL ( KbfxThemeDoInstall ( QString & ) ), connect ( this, TQT_SIGNAL ( KbfxThemeDoInstall ( TQString & ) ),
pageThemes, SLOT ( KbfxThemeInstall ( QString & ) ) ); pageThemes, TQT_SLOT ( KbfxThemeInstall ( TQString & ) ) );
/* initialize Button page */ /* initialize Button page */
lb_Main->insertItem ( img_button, tr2i18n ( "Start Button" ), BUTTON ); lb_Main->insertItem ( img_button, tr2i18n ( "Start Button" ), BUTTON );
KbfxConfigDlgButton *pageButton = new KbfxConfigDlgButton(); KbfxConfigDlgButton *pageButton = new KbfxConfigDlgButton();
ws_Main->addWidget ( pageButton, BUTTON ); ws_Main->addWidget ( pageButton, BUTTON );
connect ( this, SIGNAL ( KbfxConfigDlgButtonChanged() ), connect ( this, TQT_SIGNAL ( KbfxConfigDlgButtonChanged() ),
pageButton, SLOT ( ChangeForm() ) ); pageButton, TQT_SLOT ( ChangeForm() ) );
emit KbfxConfigDlgButtonChanged(); emit KbfxConfigDlgButtonChanged();
/* initialize Fonts page */ /* initialize Fonts page */
lb_Main->insertItem ( img_fonts, tr2i18n ( "Fonts" ), FONTS ); lb_Main->insertItem ( img_fonts, tr2i18n ( "Fonts" ), FONTS );
KbfxConfigDlgFonts *pageFonts = new KbfxConfigDlgFonts(); KbfxConfigDlgFonts *pageFonts = new KbfxConfigDlgFonts();
ws_Main->addWidget ( pageFonts, FONTS ); ws_Main->addWidget ( pageFonts, FONTS );
connect ( this, SIGNAL ( KbfxConfigDlgFontsChanged() ), connect ( this, TQT_SIGNAL ( KbfxConfigDlgFontsChanged() ),
pageFonts, SLOT ( ChangeForm() ) ); pageFonts, TQT_SLOT ( ChangeForm() ) );
emit KbfxConfigDlgFontsChanged(); emit KbfxConfigDlgFontsChanged();
/* initialize Layout Page */ /* initialize Layout Page */
lb_Main->insertItem ( img_search, tr2i18n ( "Layout" ), LAYOUT ); lb_Main->insertItem ( img_search, tr2i18n ( "Layout" ), LAYOUT );
KbfxConfigDlgLayout *pageLayout = new KbfxConfigDlgLayout(); KbfxConfigDlgLayout *pageLayout = new KbfxConfigDlgLayout();
ws_Main->addWidget ( pageLayout, LAYOUT ); ws_Main->addWidget ( pageLayout, LAYOUT );
connect ( this, SIGNAL ( KbfxConfigDlgLayoutChanged() ), connect ( this, TQT_SIGNAL ( KbfxConfigDlgLayoutChanged() ),
pageLayout, SLOT ( ChangeForm() ) ); pageLayout, TQT_SLOT ( ChangeForm() ) );
connect ( this, SIGNAL ( KbfxConfigDlgLayoutLeft() ), connect ( this, TQT_SIGNAL ( KbfxConfigDlgLayoutLeft() ),
pageLayout, SLOT ( LayoutFormLeft() ) ); pageLayout, TQT_SLOT ( LayoutFormLeft() ) );
emit KbfxConfigDlgLayoutChanged(); emit KbfxConfigDlgLayoutChanged();
/* initialize Plugins Page */ /* initialize Plugins Page */
lb_Main->insertItem ( img_plugins, tr2i18n ( "Plugins" ), PLUGINS ); lb_Main->insertItem ( img_plugins, tr2i18n ( "Plugins" ), PLUGINS );
KbfxConfigDlgPlugins *pagePlugins = new KbfxConfigDlgPlugins(); KbfxConfigDlgPlugins *pagePlugins = new KbfxConfigDlgPlugins();
ws_Main->addWidget ( pagePlugins, PLUGINS ); ws_Main->addWidget ( pagePlugins, PLUGINS );
connect ( this, SIGNAL ( KbfxConfigDlgPluginsChanged() ), connect ( this, TQT_SIGNAL ( KbfxConfigDlgPluginsChanged() ),
pagePlugins, SLOT ( ChangeForm() ) ); pagePlugins, TQT_SLOT ( ChangeForm() ) );
emit KbfxConfigDlgPluginsChanged(); emit KbfxConfigDlgPluginsChanged();
/* initialize Tooltip page */ /* initialize Tooltip page */
lb_Main->insertItem ( img_tooltip, tr2i18n ( "Tooltip" ), TOOLTIP ); lb_Main->insertItem ( img_tooltip, tr2i18n ( "Tooltip" ), TOOLTIP );
KbfxConfigDlgTooltip *pageTooltip = new KbfxConfigDlgTooltip(); KbfxConfigDlgTooltip *pageTooltip = new KbfxConfigDlgTooltip();
ws_Main->addWidget ( pageTooltip, TOOLTIP ); ws_Main->addWidget ( pageTooltip, TOOLTIP );
connect ( this, SIGNAL ( KbfxConfigDlgTooltipChanged() ), connect ( this, TQT_SIGNAL ( KbfxConfigDlgTooltipChanged() ),
pageTooltip, SLOT ( ChangeForm() ) ); pageTooltip, TQT_SLOT ( ChangeForm() ) );
emit KbfxConfigDlgTooltipChanged(); emit KbfxConfigDlgTooltipChanged();
/* initialize Menu Style page */ /* initialize Menu Style page */
lb_Main->insertItem ( img_style, tr2i18n ( "Menu Style" ), STYLE ); lb_Main->insertItem ( img_style, tr2i18n ( "Menu Style" ), STYLE );
KbfxConfigDlgStyle *pageStyle = new KbfxConfigDlgStyle(); KbfxConfigDlgStyle *pageStyle = new KbfxConfigDlgStyle();
ws_Main->addWidget ( pageStyle, STYLE ); ws_Main->addWidget ( pageStyle, STYLE );
connect ( this, SIGNAL ( KbfxConfigDlgStyleChanged() ), connect ( this, TQT_SIGNAL ( KbfxConfigDlgStyleChanged() ),
pageStyle, SLOT ( ChangeForm() ) ); pageStyle, TQT_SLOT ( ChangeForm() ) );
emit KbfxConfigDlgStyleChanged(); emit KbfxConfigDlgStyleChanged();
/* initialize About page */ /* initialize About page */
@ -143,14 +143,14 @@ void KbfxConfigApp::InitForm()
ws_Main->addWidget ( pageAbout,ABOUT ); ws_Main->addWidget ( pageAbout,ABOUT );
pageAbout->KbfxLabelVersion->setText ( m_KbfxVersion2 ); pageAbout->KbfxLabelVersion->setText ( m_KbfxVersion2 );
connect ( btn_Default, SIGNAL ( clicked() ), connect ( btn_Default, TQT_SIGNAL ( clicked() ),
this, SLOT ( btn_DefaultClicked() ) ); this, TQT_SLOT ( btn_DefaultClicked() ) );
connect ( btn_Help, SIGNAL ( clicked() ), connect ( btn_Help, TQT_SIGNAL ( clicked() ),
this, SLOT ( btn_HelpClicked() ) ); this, TQT_SLOT ( btn_HelpClicked() ) );
connect ( lb_Main, SIGNAL ( highlighted ( int ) ), connect ( lb_Main, TQT_SIGNAL ( highlighted ( int ) ),
this, SLOT ( KbfxMenuItemChanged ( int ) ) ); this, TQT_SLOT ( KbfxMenuItemChanged ( int ) ) );
connect ( btn_SaveApply, SIGNAL ( clicked() ), connect ( btn_SaveApply, TQT_SIGNAL ( clicked() ),
this, SLOT ( btn_SaveApplyClicked() ) ); this, TQT_SLOT ( btn_SaveApplyClicked() ) );
m_KbfxPage = THEMES; m_KbfxPage = THEMES;
lb_Main->setCurrentItem ( THEMES ); lb_Main->setCurrentItem ( THEMES );
@ -350,8 +350,8 @@ void KbfxConfigApp::browserInit()
{ {
/* initialize NewsBrowser widget */ /* initialize NewsBrowser widget */
kio = new KbfxKioDownload(); kio = new KbfxKioDownload();
connect ( kio, SIGNAL ( KbfxKioDownloadReady() ), connect ( kio, TQT_SIGNAL ( KbfxKioDownloadReady() ),
this, SLOT ( KbfxNewsBrowserLoad() ) ); this, TQT_SLOT ( KbfxNewsBrowserLoad() ) );
kio->KbfxKioDownloadStart ( m_KbfxNewsBrowserAddress ); kio->KbfxKioDownloadStart ( m_KbfxNewsBrowserAddress );
} }
@ -363,17 +363,17 @@ void KbfxConfigApp::KbfxNewsBrowserLoad()
browser = new KHTMLPart ( KBFXNewsBrowser ); browser = new KHTMLPart ( KBFXNewsBrowser );
browser->openURL ( kio->KbfxBrowserTmpFile() ); browser->openURL ( kio->KbfxBrowserTmpFile() );
browser->view()->resize ( KBFXNewsBrowser->width(), KBFXNewsBrowser->height() ); browser->view()->resize ( KBFXNewsBrowser->width(), KBFXNewsBrowser->height() );
browser->view()->setVScrollBarMode ( QScrollView::AlwaysOff ); browser->view()->setVScrollBarMode ( TQScrollView::AlwaysOff );
browser->view()->setHScrollBarMode ( QScrollView::AlwaysOff ); browser->view()->setHScrollBarMode ( TQScrollView::AlwaysOff );
browser->view()->setFocusPolicy ( QWidget::NoFocus ); browser->view()->setFocusPolicy ( TQ_NoFocus );
browser->view()->show(); browser->view()->show();
connect ( browser->browserExtension(), connect ( browser->browserExtension(),
SIGNAL ( openURLRequest ( const KURL &, const KParts::URLArgs & ) ), TQT_SIGNAL ( openURLRequest ( const KURL &, const KParts::URLArgs & ) ),
this, this,
SLOT ( KbfxNewsBrowserOpenURLRequest ( const KURL &, const KParts::URLArgs & ) ) ); TQT_SLOT ( KbfxNewsBrowserOpenURLRequest ( const KURL &, const KParts::URLArgs & ) ) );
connect ( browser, SIGNAL ( completed() ), connect ( browser, TQT_SIGNAL ( completed() ),
this, SLOT ( KbfxNewsBrowserCompleted() ) ); this, TQT_SLOT ( KbfxNewsBrowserCompleted() ) );
} }
} }
@ -384,7 +384,7 @@ void KbfxConfigApp::KbfxGetMoreThemesClicked()
return ; return ;
} }
void KbfxConfigApp::KbfxThemeInstall ( QString & themeURL ) void KbfxConfigApp::KbfxThemeInstall ( TQString & themeURL )
{ {
emit KbfxThemeDoInstall ( themeURL ); emit KbfxThemeDoInstall ( themeURL );
} }

@ -25,20 +25,20 @@
#include <config.h> #include <config.h>
#include <qbuttongroup.h> #include <tqbuttongroup.h>
#include <qgroupbox.h> #include <tqgroupbox.h>
#include <qlabel.h> #include <tqlabel.h>
#include <qlayout.h> #include <tqlayout.h>
#include <qmap.h> #include <tqmap.h>
#include <qpushbutton.h> #include <tqpushbutton.h>
#include <qtabwidget.h> #include <tqtabwidget.h>
#include <qtextbrowser.h> #include <tqtextbrowser.h>
#include <qtimer.h> #include <tqtimer.h>
#include <qtoolbox.h> #include <tqtoolbox.h>
#include <qtooltip.h> #include <tqtooltip.h>
#include <qvariant.h> #include <tqvariant.h>
#include <qwhatsthis.h> #include <tqwhatsthis.h>
#include <qwidgetstack.h> #include <tqwidgetstack.h>
#include <dcopref.h> #include <dcopref.h>
#include <kactivelabel.h> #include <kactivelabel.h>
@ -89,11 +89,12 @@ enum {THEMES=0, BUTTON, FONTS, LAYOUT, PLUGINS, TOOLTIP, STYLE, ABOUT};
class KbfxConfigApp : public KbfxConfigDlgMain class KbfxConfigApp : public KbfxConfigDlgMain
{ {
Q_OBJECT Q_OBJECT
TQ_OBJECT
public: public:
/** /**
* Default Constructor * Default Constructor
*/ */
KbfxConfigApp ( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); KbfxConfigApp ( TQWidget* tqparent = 0, const char* name = 0, WFlags fl = 0 );
/** /**
* Default Destructor * Default Destructor
@ -101,23 +102,23 @@ class KbfxConfigApp : public KbfxConfigDlgMain
virtual ~KbfxConfigApp(); virtual ~KbfxConfigApp();
void InitForm(); void InitForm();
QString m_KbfxVersion; TQString m_KbfxVersion;
QString m_KbfxVersion2; TQString m_KbfxVersion2;
QString m_KbfxNewsBrowserError; TQString m_KbfxNewsBrowserError;
QString m_KbfxNewsBrowserAddress; TQString m_KbfxNewsBrowserAddress;
void browserInit(); void browserInit();
private: private:
QString m_KbfxLogoButton; TQString m_KbfxLogoButton;
QString m_KbfxLogoThemes; TQString m_KbfxLogoThemes;
QString m_KbfxLogoAbout; TQString m_KbfxLogoAbout;
QString m_KbfxLogoLayout; TQString m_KbfxLogoLayout;
QString m_KbfxLogoTooltip; TQString m_KbfxLogoTooltip;
QString m_KbfxLogoFonts; TQString m_KbfxLogoFonts;
QString m_KbfxLogoStyle; TQString m_KbfxLogoStyle;
QString m_KbfxLogoPlugins; TQString m_KbfxLogoPlugins;
KbfxConfigDlgButton *pageButton; KbfxConfigDlgButton *pageButton;
KbfxConfigDlgThemes *pageThemes; KbfxConfigDlgThemes *pageThemes;
KbfxConfigDlgFonts *pageFonts; KbfxConfigDlgFonts *pageFonts;
@ -128,8 +129,8 @@ class KbfxConfigApp : public KbfxConfigDlgMain
KbfxConfigDlgAbout *pageAbout; KbfxConfigDlgAbout *pageAbout;
KHTMLPart * browser; KHTMLPart * browser;
KbfxKioDownload * kio; KbfxKioDownload * kio;
QString m_KbfxThemeUrl; TQString m_KbfxThemeUrl;
QString m_KbfxThemeFolderUrl; TQString m_KbfxThemeFolderUrl;
int m_KbfxPage; int m_KbfxPage;
public slots: public slots:
@ -141,7 +142,7 @@ class KbfxConfigApp : public KbfxConfigDlgMain
virtual void KbfxNewsBrowserCompleted(); virtual void KbfxNewsBrowserCompleted();
virtual void KbfxNewsBrowserLoad(); virtual void KbfxNewsBrowserLoad();
virtual void KbfxGetMoreThemesClicked(); virtual void KbfxGetMoreThemesClicked();
virtual void KbfxThemeInstall ( QString & ); virtual void KbfxThemeInstall ( TQString & );
signals: signals:
void KbfxConfigDlgButtonChanged(); void KbfxConfigDlgButtonChanged();
@ -152,7 +153,7 @@ class KbfxConfigApp : public KbfxConfigDlgMain
void KbfxConfigDlgLayoutLeft(); void KbfxConfigDlgLayoutLeft();
void KbfxConfigDlgPluginsChanged(); void KbfxConfigDlgPluginsChanged();
void KbfxConfigDlgFontsChanged(); void KbfxConfigDlgFontsChanged();
void KbfxThemeDoInstall( QString & ); void KbfxThemeDoInstall( TQString & );
}; };

@ -1,10 +1,10 @@
<!DOCTYPE UI><UI version="3.3" stdsetdef="1"> <!DOCTYPE UI><UI version="3.3" stdsetdef="1">
<class>KbfxConfigDlgAbout</class> <class>KbfxConfigDlgAbout</class>
<widget class="QWidget"> <widget class="TQWidget">
<property name="name"> <property name="name">
<cstring>KbfxConfigDlgAbout</cstring> <cstring>KbfxConfigDlgAbout</cstring>
</property> </property>
<property name="geometry"> <property name="tqgeometry">
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
@ -45,13 +45,13 @@
<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>29</height> <height>29</height>
</size> </size>
</property> </property>
<property name="maximumSize"> <property name="tqmaximumSize">
<size> <size>
<width>32767</width> <width>32767</width>
<height>29</height> <height>29</height>
@ -80,17 +80,17 @@
<string>&lt;b&gt;&lt;h3&gt;&lt;p align="center"&gt;People behind KBFX&lt;/p&gt;&lt;/h3&gt;&lt;/b&gt;</string> <string>&lt;b&gt;&lt;h3&gt;&lt;p align="center"&gt;People behind KBFX&lt;/p&gt;&lt;/h3&gt;&lt;/b&gt;</string>
</property> </property>
</widget> </widget>
<widget class="QLayoutWidget" row="1" column="0"> <widget class="TQLayoutWidget" row="1" column="0">
<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="QLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>layout5</cstring> <cstring>tqlayout5</cstring>
</property> </property>
<hbox> <hbox>
<property name="name"> <property name="name">
@ -114,13 +114,13 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="minimumSize"> <property name="tqminimumSize">
<size> <size>
<width>629</width> <width>629</width>
<height>20</height> <height>20</height>
</size> </size>
</property> </property>
<property name="maximumSize"> <property name="tqmaximumSize">
<size> <size>
<width>629</width> <width>629</width>
<height>20</height> <height>20</height>
@ -160,13 +160,13 @@
<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>20</height> <height>20</height>
</size> </size>
</property> </property>
<property name="maximumSize"> <property name="tqmaximumSize">
<size> <size>
<width>32767</width> <width>32767</width>
<height>20</height> <height>20</height>
@ -181,7 +181,7 @@
</widget> </widget>
</hbox> </hbox>
</widget> </widget>
<widget class="QLabel"> <widget class="TQLabel">
<property name="name"> <property name="name">
<cstring>textLabel1</cstring> <cstring>textLabel1</cstring>
</property> </property>
@ -198,7 +198,7 @@
We would like to thank all people who have helped with KBFX or have donated money to our project! We would like to thank all people who have helped with KBFX or have donated money to our project!
THANKS A LOT ALL OF YOU OUT THERE!!!</string> THANKS A LOT ALL OF YOU OUT THERE!!!</string>
</property> </property>
<property name="alignment"> <property name="tqalignment">
<set>AlignVCenter</set> <set>AlignVCenter</set>
</property> </property>
</widget> </widget>
@ -218,15 +218,15 @@ THANKS A LOT ALL OF YOU OUT THERE!!!</string>
</widget> </widget>
</vbox> </vbox>
</widget> </widget>
<widget class="QLayoutWidget" row="2" column="0"> <widget class="TQLayoutWidget" row="2" column="0">
<property name="name"> <property name="name">
<cstring>layout6</cstring> <cstring>tqlayout6</cstring>
</property> </property>
<hbox> <hbox>
<property name="name"> <property name="name">
<cstring>unnamed</cstring> <cstring>unnamed</cstring>
</property> </property>
<widget class="QTextEdit"> <widget class="TQTextEdit">
<property name="name"> <property name="name">
<cstring>KbfxTeamInfo</cstring> <cstring>KbfxTeamInfo</cstring>
</property> </property>
@ -254,17 +254,17 @@ THANKS A LOT ALL OF YOU OUT THERE!!!</string>
<bool>true</bool> <bool>true</bool>
</property> </property>
</widget> </widget>
<widget class="QLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>layout5</cstring> <cstring>tqlayout5</cstring>
</property> </property>
<vbox> <vbox>
<property name="name"> <property name="name">
<cstring>unnamed</cstring> <cstring>unnamed</cstring>
</property> </property>
<widget class="QLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>layout8</cstring> <cstring>tqlayout8</cstring>
</property> </property>
<grid> <grid>
<property name="name"> <property name="name">
@ -273,7 +273,7 @@ THANKS A LOT ALL OF YOU OUT THERE!!!</string>
<property name="spacing"> <property name="spacing">
<number>20</number> <number>20</number>
</property> </property>
<widget class="QLabel" row="1" column="2"> <widget class="TQLabel" row="1" column="2">
<property name="name"> <property name="name">
<cstring>KbfxPixmapLabelEphracis</cstring> <cstring>KbfxPixmapLabelEphracis</cstring>
</property> </property>
@ -285,13 +285,13 @@ THANKS A LOT ALL OF YOU OUT THERE!!!</string>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="minimumSize"> <property name="tqminimumSize">
<size> <size>
<width>90</width> <width>90</width>
<height>90</height> <height>90</height>
</size> </size>
</property> </property>
<property name="maximumSize"> <property name="tqmaximumSize">
<size> <size>
<width>90</width> <width>90</width>
<height>90</height> <height>90</height>
@ -316,7 +316,7 @@ THANKS A LOT ALL OF YOU OUT THERE!!!</string>
<bool>true</bool> <bool>true</bool>
</property> </property>
</widget> </widget>
<widget class="QLabel" row="1" column="1"> <widget class="TQLabel" row="1" column="1">
<property name="name"> <property name="name">
<cstring>KbfxPixmapLabelJohnny</cstring> <cstring>KbfxPixmapLabelJohnny</cstring>
</property> </property>
@ -328,13 +328,13 @@ THANKS A LOT ALL OF YOU OUT THERE!!!</string>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="minimumSize"> <property name="tqminimumSize">
<size> <size>
<width>90</width> <width>90</width>
<height>90</height> <height>90</height>
</size> </size>
</property> </property>
<property name="maximumSize"> <property name="tqmaximumSize">
<size> <size>
<width>90</width> <width>90</width>
<height>90</height> <height>90</height>
@ -359,7 +359,7 @@ THANKS A LOT ALL OF YOU OUT THERE!!!</string>
<bool>true</bool> <bool>true</bool>
</property> </property>
</widget> </widget>
<widget class="QLabel" row="0" column="1"> <widget class="TQLabel" row="0" column="1">
<property name="name"> <property name="name">
<cstring>KbfxPixmapLabelPhobosK</cstring> <cstring>KbfxPixmapLabelPhobosK</cstring>
</property> </property>
@ -371,13 +371,13 @@ THANKS A LOT ALL OF YOU OUT THERE!!!</string>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="minimumSize"> <property name="tqminimumSize">
<size> <size>
<width>90</width> <width>90</width>
<height>90</height> <height>90</height>
</size> </size>
</property> </property>
<property name="maximumSize"> <property name="tqmaximumSize">
<size> <size>
<width>90</width> <width>90</width>
<height>90</height> <height>90</height>
@ -402,7 +402,7 @@ THANKS A LOT ALL OF YOU OUT THERE!!!</string>
<bool>true</bool> <bool>true</bool>
</property> </property>
</widget> </widget>
<widget class="QLabel" row="0" column="2"> <widget class="TQLabel" row="0" column="2">
<property name="name"> <property name="name">
<cstring>KbfxPixmapLabelNookie</cstring> <cstring>KbfxPixmapLabelNookie</cstring>
</property> </property>
@ -414,13 +414,13 @@ THANKS A LOT ALL OF YOU OUT THERE!!!</string>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="minimumSize"> <property name="tqminimumSize">
<size> <size>
<width>90</width> <width>90</width>
<height>90</height> <height>90</height>
</size> </size>
</property> </property>
<property name="maximumSize"> <property name="tqmaximumSize">
<size> <size>
<width>90</width> <width>90</width>
<height>90</height> <height>90</height>
@ -445,7 +445,7 @@ THANKS A LOT ALL OF YOU OUT THERE!!!</string>
<bool>true</bool> <bool>true</bool>
</property> </property>
</widget> </widget>
<widget class="QLabel" row="1" column="0"> <widget class="TQLabel" row="1" column="0">
<property name="name"> <property name="name">
<cstring>KbfxPixmapLabelNathanael</cstring> <cstring>KbfxPixmapLabelNathanael</cstring>
</property> </property>
@ -457,13 +457,13 @@ THANKS A LOT ALL OF YOU OUT THERE!!!</string>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="minimumSize"> <property name="tqminimumSize">
<size> <size>
<width>90</width> <width>90</width>
<height>90</height> <height>90</height>
</size> </size>
</property> </property>
<property name="maximumSize"> <property name="tqmaximumSize">
<size> <size>
<width>90</width> <width>90</width>
<height>90</height> <height>90</height>
@ -488,7 +488,7 @@ THANKS A LOT ALL OF YOU OUT THERE!!!</string>
<bool>true</bool> <bool>true</bool>
</property> </property>
</widget> </widget>
<widget class="QLabel" row="0" column="0"> <widget class="TQLabel" row="0" column="0">
<property name="name"> <property name="name">
<cstring>KbfxPixmapLabelSiraj</cstring> <cstring>KbfxPixmapLabelSiraj</cstring>
</property> </property>
@ -500,13 +500,13 @@ THANKS A LOT ALL OF YOU OUT THERE!!!</string>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="minimumSize"> <property name="tqminimumSize">
<size> <size>
<width>90</width> <width>90</width>
<height>90</height> <height>90</height>
</size> </size>
</property> </property>
<property name="maximumSize"> <property name="tqmaximumSize">
<size> <size>
<width>90</width> <width>90</width>
<height>90</height> <height>90</height>
@ -536,7 +536,7 @@ THANKS A LOT ALL OF YOU OUT THERE!!!</string>
</widget> </widget>
</grid> </grid>
</widget> </widget>
<widget class="QLabel"> <widget class="TQLabel">
<property name="name"> <property name="name">
<cstring>textLabel3</cstring> <cstring>textLabel3</cstring>
</property> </property>
@ -557,7 +557,7 @@ THANKS A LOT ALL OF YOU OUT THERE!!!</string>
<property name="text"> <property name="text">
<string>&lt;b&gt;Tip!&lt;/b&gt; Hover over the contact images to see each personal contact information.</string> <string>&lt;b&gt;Tip!&lt;/b&gt; Hover over the contact images to see each personal contact information.</string>
</property> </property>
<property name="alignment"> <property name="tqalignment">
<set>WordBreak|AlignVCenter</set> <set>WordBreak|AlignVCenter</set>
</property> </property>
</widget> </widget>
@ -571,14 +571,14 @@ THANKS A LOT ALL OF YOU OUT THERE!!!</string>
<property name="sizeType"> <property name="sizeType">
<enum>MinimumExpanding</enum> <enum>MinimumExpanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>24</width> <width>24</width>
<height>1</height> <height>1</height>
</size> </size>
</property> </property>
</spacer> </spacer>
<widget class="QGroupBox"> <widget class="TQGroupBox">
<property name="name"> <property name="name">
<cstring>groupBox1</cstring> <cstring>groupBox1</cstring>
</property> </property>
@ -601,7 +601,7 @@ THANKS A LOT ALL OF YOU OUT THERE!!!</string>
<property name="title"> <property name="title">
<string>SPONSORS!</string> <string>SPONSORS!</string>
</property> </property>
<property name="alignment"> <property name="tqalignment">
<set>AlignVCenter</set> <set>AlignVCenter</set>
</property> </property>
<grid> <grid>
@ -611,7 +611,7 @@ THANKS A LOT ALL OF YOU OUT THERE!!!</string>
<property name="margin"> <property name="margin">
<number>4</number> <number>4</number>
</property> </property>
<widget class="QLabel" row="0" column="0"> <widget class="TQLabel" row="0" column="0">
<property name="name"> <property name="name">
<cstring>textLabel5</cstring> <cstring>textLabel5</cstring>
</property> </property>
@ -626,7 +626,7 @@ THANKS A LOT ALL OF YOU OUT THERE!!!</string>
<property name="text"> <property name="text">
<string>We would like to thank swedish computer company &lt;b&gt;PC Agenten&lt;/b&gt; for sponsoring us with a server and bandwidth.</string> <string>We would like to thank swedish computer company &lt;b&gt;PC Agenten&lt;/b&gt; for sponsoring us with a server and bandwidth.</string>
</property> </property>
<property name="alignment"> <property name="tqalignment">
<set>WordBreak|AlignVCenter</set> <set>WordBreak|AlignVCenter</set>
</property> </property>
</widget> </widget>
@ -699,25 +699,25 @@ THANKS A LOT ALL OF YOU OUT THERE!!!</string>
</tabstops> </tabstops>
<includes> <includes>
<include location="global" impldecl="in declaration">kdebug.h</include> <include location="global" impldecl="in declaration">kdebug.h</include>
<include location="global" impldecl="in declaration">qevent.h</include> <include location="global" impldecl="in declaration">tqevent.h</include>
<include location="local" impldecl="in implementation">kbfxconfigdlgabout.ui.h</include> <include location="local" impldecl="in implementation">kbfxconfigdlgabout.ui.h</include>
</includes> </includes>
<variables> <variables>
<variable>QString KbfxMemberTextJohnny;</variable> <variable>TQString KbfxMemberTextJohnny;</variable>
<variable>QString KbfxMemberTextEphracis;</variable> <variable>TQString KbfxMemberTextEphracis;</variable>
<variable>QString KbfxMemberTextNathanael;</variable> <variable>TQString KbfxMemberTextNathanael;</variable>
<variable>QString KbfxMemberTextSiraj;</variable> <variable>TQString KbfxMemberTextSiraj;</variable>
<variable>QString KbfxMemberTextNookie;</variable> <variable>TQString KbfxMemberTextNookie;</variable>
<variable>QString KbfxMemberTextPhobosK;</variable> <variable>TQString KbfxMemberTextPhobosK;</variable>
</variables> </variables>
<slots> <Q_SLOTS>
<slot>KbfxUnmarkAllPixmaps()</slot> <slot>KbfxUnmarkAllPixmaps()</slot>
</slots> </Q_SLOTS>
<functions> <functions>
<function access="private" specifier="non virtual">init()</function> <function access="private" specifier="non virtual">init()</function>
<function specifier="non virtual" returnType="bool">eventFilter( QObject * obj, QEvent * ev )</function> <function specifier="non virtual" returnType="bool">eventFilter( TQObject * obj, TQEvent * ev )</function>
</functions> </functions>
<layoutdefaults spacing="6" margin="0"/> <tqlayoutdefaults spacing="6" margin="0"/>
<includehints> <includehints>
<includehint>kactivelabel.h</includehint> <includehint>kactivelabel.h</includehint>
<includehint>kactivelabel.h</includehint> <includehint>kactivelabel.h</includehint>

@ -2,7 +2,7 @@
** ui.h extension file, included from the uic-generated form implementation. ** ui.h extension file, included from the uic-generated form implementation.
** **
** If you want to add, delete, or rename functions or slots, use ** If you want to add, delete, or rename functions or slots, use
** Qt Designer to update this file, preserving your code. ** TQt Designer to update this file, preserving your code.
** **
** You should not define a constructor or destructor in this file. ** You should not define a constructor or destructor in this file.
** Instead, write your code in functions called init() and destroy(). ** Instead, write your code in functions called init() and destroy().
@ -51,7 +51,7 @@ void KbfxConfigDlgAbout::init()
"<br><br>" "<br><br>"
"<strong>Country:</strong> Bulgaria" "<strong>Country:</strong> Bulgaria"
"<br><br>" "<br><br>"
"<strong>KBFX:</strong> package & release manager, Q/A, bug hunter, mandriva packages, project administrator, developer Qt/C++" "<strong>KBFX:</strong> package & release manager, Q/A, bug hunter, mandriva packages, project administrator, developer TQt/C++"
"<br><br>" "<br><br>"
"<strong>Email:</strong> phobosk@mail.kbfx.org" ); "<strong>Email:</strong> phobosk@mail.kbfx.org" );
@ -60,7 +60,7 @@ void KbfxConfigDlgAbout::init()
"<br><br>" "<br><br>"
"<strong>Country:</strong> Peru" "<strong>Country:</strong> Peru"
"<br><br>" "<br><br>"
"<strong>KBFX:</strong> developer Qt4/C++" "<strong>KBFX:</strong> developer TQt4/C++"
"<br><br>" "<br><br>"
"<strong>Email:</strong> saenzac@mail.kbfx.org" ); "<strong>Email:</strong> saenzac@mail.kbfx.org" );
@ -74,60 +74,60 @@ void KbfxConfigDlgAbout::init()
"<strong>Email:</strong> ephracis@mail.kbfx.org" ); "<strong>Email:</strong> ephracis@mail.kbfx.org" );
} }
bool KbfxConfigDlgAbout::eventFilter ( QObject *obj, QEvent *ev ) bool KbfxConfigDlgAbout::eventFilter ( TQObject *obj, TQEvent *ev )
{ {
QCursor kbfxCursor; TQCursor kbfxCursor;
kbfxCursor.setShape ( Qt::PointingHandCursor ); kbfxCursor.setShape ( Qt::PointingHandCursor );
this->setCursor ( ( const QCursor ) kbfxCursor ); this->setCursor ( ( const TQCursor ) kbfxCursor );
if ( ev->type() == QEvent::FocusIn || ev->type() == QEvent::Enter ) if ( ev->type() == TQEvent::FocusIn || ev->type() == TQEvent::Enter )
{ {
if ( obj == KbfxPixmapLabelNookie ) if ( TQT_BASE_OBJECT(obj) == TQT_BASE_OBJECT(KbfxPixmapLabelNookie) )
{ {
KbfxTeamInfo->setText ( KbfxMemberTextNookie ); KbfxTeamInfo->setText ( KbfxMemberTextNookie );
KbfxUnmarkAllPixmaps(); KbfxUnmarkAllPixmaps();
KbfxPixmapLabelNookie->setFrameShape ( QFrame::WinPanel ); KbfxPixmapLabelNookie->setFrameShape ( TQFrame::WinPanel );
return TRUE; return TRUE;
} }
else if ( obj == KbfxPixmapLabelSiraj ) else if ( TQT_BASE_OBJECT(obj) == TQT_BASE_OBJECT(KbfxPixmapLabelSiraj) )
{ {
KbfxTeamInfo->setText ( KbfxMemberTextSiraj ); KbfxTeamInfo->setText ( KbfxMemberTextSiraj );
KbfxUnmarkAllPixmaps(); KbfxUnmarkAllPixmaps();
KbfxPixmapLabelSiraj->setFrameShape ( QFrame::WinPanel ); KbfxPixmapLabelSiraj->setFrameShape ( TQFrame::WinPanel );
return TRUE; return TRUE;
} }
else if ( obj == KbfxPixmapLabelNathanael ) else if ( TQT_BASE_OBJECT(obj) == TQT_BASE_OBJECT(KbfxPixmapLabelNathanael) )
{ {
KbfxTeamInfo->setText ( KbfxMemberTextNathanael ); KbfxTeamInfo->setText ( KbfxMemberTextNathanael );
KbfxUnmarkAllPixmaps(); KbfxUnmarkAllPixmaps();
KbfxPixmapLabelNathanael->setFrameShape ( QFrame::WinPanel ); KbfxPixmapLabelNathanael->setFrameShape ( TQFrame::WinPanel );
return TRUE; return TRUE;
} }
else if ( obj == KbfxPixmapLabelPhobosK ) else if ( TQT_BASE_OBJECT(obj) == TQT_BASE_OBJECT(KbfxPixmapLabelPhobosK) )
{ {
KbfxTeamInfo->setText ( KbfxMemberTextPhobosK ); KbfxTeamInfo->setText ( KbfxMemberTextPhobosK );
KbfxUnmarkAllPixmaps(); KbfxUnmarkAllPixmaps();
KbfxPixmapLabelPhobosK->setFrameShape ( QFrame::WinPanel ); KbfxPixmapLabelPhobosK->setFrameShape ( TQFrame::WinPanel );
return TRUE; return TRUE;
} }
else if ( obj == KbfxPixmapLabelJohnny ) else if ( TQT_BASE_OBJECT(obj) == TQT_BASE_OBJECT(KbfxPixmapLabelJohnny) )
{ {
KbfxTeamInfo->setText ( KbfxMemberTextJohnny ); KbfxTeamInfo->setText ( KbfxMemberTextJohnny );
KbfxUnmarkAllPixmaps(); KbfxUnmarkAllPixmaps();
KbfxPixmapLabelJohnny->setFrameShape ( QFrame::WinPanel ); KbfxPixmapLabelJohnny->setFrameShape ( TQFrame::WinPanel );
return TRUE; return TRUE;
} }
else if ( obj == KbfxPixmapLabelEphracis ) else if ( TQT_BASE_OBJECT(obj) == TQT_BASE_OBJECT(KbfxPixmapLabelEphracis) )
{ {
KbfxTeamInfo->setText ( KbfxMemberTextEphracis ); KbfxTeamInfo->setText ( KbfxMemberTextEphracis );
KbfxUnmarkAllPixmaps(); KbfxUnmarkAllPixmaps();
KbfxPixmapLabelEphracis->setFrameShape ( QFrame::WinPanel ); KbfxPixmapLabelEphracis->setFrameShape ( TQFrame::WinPanel );
return TRUE; return TRUE;
} }
} }
/* /*
if ( ev->type() == QEvent::Leave ) if ( ev->type() == TQEvent::Leave )
{ {
if( if(
obj == KbfxPixmapLabelNookie || obj == KbfxPixmapLabelNookie ||
@ -144,16 +144,16 @@ bool KbfxConfigDlgAbout::eventFilter ( QObject *obj, QEvent *ev )
} }
*/ */
return QWidget::eventFilter ( obj, ev ); return TQWidget::eventFilter ( obj, ev );
// return FALSE; // return FALSE;
} }
void KbfxConfigDlgAbout::KbfxUnmarkAllPixmaps() void KbfxConfigDlgAbout::KbfxUnmarkAllPixmaps()
{ {
KbfxPixmapLabelNookie->setFrameShape ( QFrame::NoFrame ); KbfxPixmapLabelNookie->setFrameShape ( TQFrame::NoFrame );
KbfxPixmapLabelSiraj->setFrameShape ( QFrame::NoFrame ); KbfxPixmapLabelSiraj->setFrameShape ( TQFrame::NoFrame );
KbfxPixmapLabelNathanael->setFrameShape ( QFrame::NoFrame ); KbfxPixmapLabelNathanael->setFrameShape ( TQFrame::NoFrame );
KbfxPixmapLabelPhobosK->setFrameShape ( QFrame::NoFrame ); KbfxPixmapLabelPhobosK->setFrameShape ( TQFrame::NoFrame );
KbfxPixmapLabelEphracis->setFrameShape ( QFrame::NoFrame ); KbfxPixmapLabelEphracis->setFrameShape ( TQFrame::NoFrame );
KbfxPixmapLabelJohnny->setFrameShape ( QFrame::NoFrame ); KbfxPixmapLabelJohnny->setFrameShape ( TQFrame::NoFrame );
} }

@ -1,13 +1,13 @@
<!DOCTYPE UI><UI version="3.3" stdsetdef="1"> <!DOCTYPE UI><UI version="3.3" stdsetdef="1">
<class>KbfxConfigDlgButton</class> <class>KbfxConfigDlgButton</class>
<widget class="QWidget"> <widget class="TQWidget">
<property name="name"> <property name="name">
<cstring>KbfxConfigDlgButton</cstring> <cstring>KbfxConfigDlgButton</cstring>
</property> </property>
<property name="enabled"> <property name="enabled">
<bool>true</bool> <bool>true</bool>
</property> </property>
<property name="geometry"> <property name="tqgeometry">
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
@ -48,15 +48,15 @@
<property name="resizeMode"> <property name="resizeMode">
<enum>Minimum</enum> <enum>Minimum</enum>
</property> </property>
<widget class="QLayoutWidget" row="2" column="0" rowspan="1" colspan="2"> <widget class="TQLayoutWidget" row="2" column="0" rowspan="1" colspan="2">
<property name="name"> <property name="name">
<cstring>layout6</cstring> <cstring>tqlayout6</cstring>
</property> </property>
<hbox> <hbox>
<property name="name"> <property name="name">
<cstring>unnamed</cstring> <cstring>unnamed</cstring>
</property> </property>
<widget class="QGroupBox"> <widget class="TQGroupBox">
<property name="name"> <property name="name">
<cstring>groupBoxPressed</cstring> <cstring>groupBoxPressed</cstring>
</property> </property>
@ -68,7 +68,7 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="maximumSize"> <property name="tqmaximumSize">
<size> <size>
<width>32767</width> <width>32767</width>
<height>150</height> <height>150</height>
@ -80,7 +80,7 @@
<property name="title"> <property name="title">
<string>"PRESSED" IMAGE SELECTION</string> <string>"PRESSED" IMAGE SELECTION</string>
</property> </property>
<property name="alignment"> <property name="tqalignment">
<set>AlignVCenter</set> <set>AlignVCenter</set>
</property> </property>
<grid> <grid>
@ -93,7 +93,7 @@
<property name="spacing"> <property name="spacing">
<number>0</number> <number>0</number>
</property> </property>
<widget class="QLabel" row="0" column="0"> <widget class="TQLabel" row="0" column="0">
<property name="name"> <property name="name">
<cstring>textLabel8</cstring> <cstring>textLabel8</cstring>
</property> </property>
@ -142,7 +142,7 @@
</widget> </widget>
</grid> </grid>
</widget> </widget>
<widget class="QGroupBox"> <widget class="TQGroupBox">
<property name="name"> <property name="name">
<cstring>groupBox10</cstring> <cstring>groupBox10</cstring>
</property> </property>
@ -154,7 +154,7 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="maximumSize"> <property name="tqmaximumSize">
<size> <size>
<width>322</width> <width>322</width>
<height>150</height> <height>150</height>
@ -166,7 +166,7 @@
<property name="title"> <property name="title">
<string>Preview</string> <string>Preview</string>
</property> </property>
<property name="alignment"> <property name="tqalignment">
<set>AlignVCenter</set> <set>AlignVCenter</set>
</property> </property>
<hbox> <hbox>
@ -191,13 +191,13 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="minimumSize"> <property name="tqminimumSize">
<size> <size>
<width>150</width> <width>150</width>
<height>50</height> <height>50</height>
</size> </size>
</property> </property>
<property name="maximumSize"> <property name="tqmaximumSize">
<size> <size>
<width>150</width> <width>150</width>
<height>50</height> <height>50</height>
@ -220,15 +220,15 @@
</widget> </widget>
</hbox> </hbox>
</widget> </widget>
<widget class="QLayoutWidget" row="1" column="0" rowspan="1" colspan="2"> <widget class="TQLayoutWidget" row="1" column="0" rowspan="1" colspan="2">
<property name="name"> <property name="name">
<cstring>layout7</cstring> <cstring>tqlayout7</cstring>
</property> </property>
<hbox> <hbox>
<property name="name"> <property name="name">
<cstring>unnamed</cstring> <cstring>unnamed</cstring>
</property> </property>
<widget class="QGroupBox"> <widget class="TQGroupBox">
<property name="name"> <property name="name">
<cstring>groupBoxNormal</cstring> <cstring>groupBoxNormal</cstring>
</property> </property>
@ -240,7 +240,7 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="maximumSize"> <property name="tqmaximumSize">
<size> <size>
<width>32767</width> <width>32767</width>
<height>150</height> <height>150</height>
@ -252,7 +252,7 @@
<property name="title"> <property name="title">
<string>"NORMAL" IMAGE SELECTION</string> <string>"NORMAL" IMAGE SELECTION</string>
</property> </property>
<property name="alignment"> <property name="tqalignment">
<set>AlignVCenter</set> <set>AlignVCenter</set>
</property> </property>
<grid> <grid>
@ -265,7 +265,7 @@
<property name="spacing"> <property name="spacing">
<number>0</number> <number>0</number>
</property> </property>
<widget class="QLabel" row="0" column="0"> <widget class="TQLabel" row="0" column="0">
<property name="name"> <property name="name">
<cstring>textLabel6</cstring> <cstring>textLabel6</cstring>
</property> </property>
@ -308,7 +308,7 @@
</widget> </widget>
</grid> </grid>
</widget> </widget>
<widget class="QGroupBox"> <widget class="TQGroupBox">
<property name="name"> <property name="name">
<cstring>groupBox7</cstring> <cstring>groupBox7</cstring>
</property> </property>
@ -320,7 +320,7 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="maximumSize"> <property name="tqmaximumSize">
<size> <size>
<width>322</width> <width>322</width>
<height>150</height> <height>150</height>
@ -332,7 +332,7 @@
<property name="title"> <property name="title">
<string>Preview</string> <string>Preview</string>
</property> </property>
<property name="alignment"> <property name="tqalignment">
<set>AlignVCenter</set> <set>AlignVCenter</set>
</property> </property>
<hbox> <hbox>
@ -360,13 +360,13 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="minimumSize"> <property name="tqminimumSize">
<size> <size>
<width>150</width> <width>150</width>
<height>50</height> <height>50</height>
</size> </size>
</property> </property>
<property name="maximumSize"> <property name="tqmaximumSize">
<size> <size>
<width>150</width> <width>150</width>
<height>50</height> <height>50</height>
@ -389,15 +389,15 @@
</widget> </widget>
</hbox> </hbox>
</widget> </widget>
<widget class="QLayoutWidget" row="3" column="0" rowspan="1" colspan="2"> <widget class="TQLayoutWidget" row="3" 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">
<cstring>unnamed</cstring> <cstring>unnamed</cstring>
</property> </property>
<widget class="QGroupBox"> <widget class="TQGroupBox">
<property name="name"> <property name="name">
<cstring>groupBoxHover</cstring> <cstring>groupBoxHover</cstring>
</property> </property>
@ -409,7 +409,7 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="maximumSize"> <property name="tqmaximumSize">
<size> <size>
<width>32767</width> <width>32767</width>
<height>150</height> <height>150</height>
@ -421,7 +421,7 @@
<property name="title"> <property name="title">
<string>"HOVER" IMAGE SELECTION</string> <string>"HOVER" IMAGE SELECTION</string>
</property> </property>
<property name="alignment"> <property name="tqalignment">
<set>AlignVCenter</set> <set>AlignVCenter</set>
</property> </property>
<grid> <grid>
@ -434,7 +434,7 @@
<property name="spacing"> <property name="spacing">
<number>0</number> <number>0</number>
</property> </property>
<widget class="QLabel" row="0" column="0"> <widget class="TQLabel" row="0" column="0">
<property name="name"> <property name="name">
<cstring>textLabel7</cstring> <cstring>textLabel7</cstring>
</property> </property>
@ -486,7 +486,7 @@
</widget> </widget>
</grid> </grid>
</widget> </widget>
<widget class="QGroupBox"> <widget class="TQGroupBox">
<property name="name"> <property name="name">
<cstring>groupBox9</cstring> <cstring>groupBox9</cstring>
</property> </property>
@ -498,7 +498,7 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="maximumSize"> <property name="tqmaximumSize">
<size> <size>
<width>322</width> <width>322</width>
<height>150</height> <height>150</height>
@ -510,7 +510,7 @@
<property name="title"> <property name="title">
<string>Preview</string> <string>Preview</string>
</property> </property>
<property name="alignment"> <property name="tqalignment">
<set>AlignVCenter</set> <set>AlignVCenter</set>
</property> </property>
<hbox> <hbox>
@ -535,13 +535,13 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="minimumSize"> <property name="tqminimumSize">
<size> <size>
<width>150</width> <width>150</width>
<height>50</height> <height>50</height>
</size> </size>
</property> </property>
<property name="maximumSize"> <property name="tqmaximumSize">
<size> <size>
<width>150</width> <width>150</width>
<height>50</height> <height>50</height>
@ -576,13 +576,13 @@
<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>29</height> <height>29</height>
</size> </size>
</property> </property>
<property name="maximumSize"> <property name="tqmaximumSize">
<size> <size>
<width>32767</width> <width>32767</width>
<height>29</height> <height>29</height>
@ -620,7 +620,7 @@
<set>AutoAll</set> <set>AutoAll</set>
</property> </property>
</widget> </widget>
<widget class="QGroupBox" row="7" column="1"> <widget class="TQGroupBox" row="7" column="1">
<property name="name"> <property name="name">
<cstring>KbfxResizeKickerBox</cstring> <cstring>KbfxResizeKickerBox</cstring>
</property> </property>
@ -638,7 +638,7 @@
<property name="title"> <property name="title">
<string>Resize Panel</string> <string>Resize Panel</string>
</property> </property>
<property name="alignment"> <property name="tqalignment">
<set>AlignVCenter</set> <set>AlignVCenter</set>
</property> </property>
<grid> <grid>
@ -651,7 +651,7 @@
<property name="spacing"> <property name="spacing">
<number>0</number> <number>0</number>
</property> </property>
<widget class="QLabel" row="0" column="0"> <widget class="TQLabel" row="0" column="0">
<property name="name"> <property name="name">
<cstring>textLabel9_2</cstring> <cstring>textLabel9_2</cstring>
</property> </property>
@ -669,13 +669,13 @@
<property name="textFormat"> <property name="textFormat">
<enum>RichText</enum> <enum>RichText</enum>
</property> </property>
<property name="alignment"> <property name="tqalignment">
<set>WordBreak|AlignTop|AlignLeft</set> <set>WordBreak|AlignTop|AlignLeft</set>
</property> </property>
</widget> </widget>
<widget class="QLayoutWidget" row="2" column="0"> <widget class="TQLayoutWidget" row="2" column="0">
<property name="name"> <property name="name">
<cstring>layout8</cstring> <cstring>tqlayout8</cstring>
</property> </property>
<hbox> <hbox>
<property name="name"> <property name="name">
@ -691,14 +691,14 @@
<property name="sizeType"> <property name="sizeType">
<enum>Minimum</enum> <enum>Minimum</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>1</width> <width>1</width>
<height>1</height> <height>1</height>
</size> </size>
</property> </property>
</spacer> </spacer>
<widget class="QPushButton"> <widget class="TQPushButton">
<property name="name"> <property name="name">
<cstring>KbfxResizeKicker</cstring> <cstring>KbfxResizeKicker</cstring>
</property> </property>
@ -710,7 +710,7 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="maximumSize"> <property name="tqmaximumSize">
<size> <size>
<width>270</width> <width>270</width>
<height>58</height> <height>58</height>
@ -745,7 +745,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Minimum</enum> <enum>Minimum</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>1</width> <width>1</width>
<height>1</height> <height>1</height>
@ -764,7 +764,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Minimum</enum> <enum>Minimum</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>16</width> <width>16</width>
<height>1</height> <height>1</height>
@ -785,13 +785,13 @@
<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>29</height> <height>29</height>
</size> </size>
</property> </property>
<property name="maximumSize"> <property name="tqmaximumSize">
<size> <size>
<width>32767</width> <width>32767</width>
<height>29</height> <height>29</height>
@ -829,7 +829,7 @@
<set>AutoAll</set> <set>AutoAll</set>
</property> </property>
</widget> </widget>
<widget class="QGroupBox" row="7" column="0"> <widget class="TQGroupBox" row="7" column="0">
<property name="name"> <property name="name">
<cstring>groupBox11</cstring> <cstring>groupBox11</cstring>
</property> </property>
@ -847,7 +847,7 @@
<property name="title"> <property name="title">
<string>Livepreview</string> <string>Livepreview</string>
</property> </property>
<property name="alignment"> <property name="tqalignment">
<set>AlignVCenter</set> <set>AlignVCenter</set>
</property> </property>
<hbox> <hbox>
@ -860,7 +860,7 @@
<property name="spacing"> <property name="spacing">
<number>0</number> <number>0</number>
</property> </property>
<widget class="QLabel"> <widget class="TQLabel">
<property name="name"> <property name="name">
<cstring>textLabel9</cstring> <cstring>textLabel9</cstring>
</property> </property>
@ -878,7 +878,7 @@
<property name="textFormat"> <property name="textFormat">
<enum>RichText</enum> <enum>RichText</enum>
</property> </property>
<property name="alignment"> <property name="tqalignment">
<set>WordBreak|AlignTop|AlignLeft</set> <set>WordBreak|AlignTop|AlignLeft</set>
</property> </property>
</widget> </widget>
@ -892,7 +892,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Minimum</enum> <enum>Minimum</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>20</width> <width>20</width>
<height>1</height> <height>1</height>
@ -914,13 +914,13 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="minimumSize"> <property name="tqminimumSize">
<size> <size>
<width>150</width> <width>150</width>
<height>50</height> <height>50</height>
</size> </size>
</property> </property>
<property name="maximumSize"> <property name="tqmaximumSize">
<size> <size>
<width>150</width> <width>150</width>
<height>50</height> <height>50</height>
@ -944,7 +944,7 @@
</widget> </widget>
</hbox> </hbox>
</widget> </widget>
<widget class="QButtonGroup" row="4" column="0" rowspan="1" colspan="2"> <widget class="TQButtonGroup" row="4" column="0" rowspan="1" colspan="2">
<property name="name"> <property name="name">
<cstring>KbfxFadeButton</cstring> <cstring>KbfxFadeButton</cstring>
</property> </property>
@ -987,7 +987,7 @@
<property name="margin"> <property name="margin">
<number>10</number> <number>10</number>
</property> </property>
<widget class="QLabel" row="0" column="0"> <widget class="TQLabel" row="0" column="0">
<property name="name"> <property name="name">
<cstring>textLabel5</cstring> <cstring>textLabel5</cstring>
</property> </property>
@ -1009,7 +1009,7 @@
<string>Here you can enter the value of the fade effect transition time in msec.&lt;br&gt;Valid values are between 20 and 1000 msec.&lt;br&gt;Default is 75 msec.</string> <string>Here you can enter the value of the fade effect transition time in msec.&lt;br&gt;Valid values are between 20 and 1000 msec.&lt;br&gt;Default is 75 msec.</string>
</property> </property>
</widget> </widget>
<widget class="QLineEdit" row="0" column="1"> <widget class="TQLineEdit" row="0" column="1">
<property name="name"> <property name="name">
<cstring>KbfxFadeTime</cstring> <cstring>KbfxFadeTime</cstring>
</property> </property>
@ -1027,7 +1027,7 @@
<property name="frameShape"> <property name="frameShape">
<enum>StyledPanel</enum> <enum>StyledPanel</enum>
</property> </property>
<property name="alignment"> <property name="tqalignment">
<set>AlignHCenter</set> <set>AlignHCenter</set>
</property> </property>
<property name="toolTip" stdset="0"> <property name="toolTip" stdset="0">
@ -1047,7 +1047,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>MinimumExpanding</enum> <enum>MinimumExpanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>16</width> <width>16</width>
<height>16</height> <height>16</height>
@ -1066,7 +1066,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>MinimumExpanding</enum> <enum>MinimumExpanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>16</width> <width>16</width>
<height>1</height> <height>1</height>
@ -1091,7 +1091,7 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
<pixmap>image1</pixmap> <pixmap>image1</pixmap>
<signal>targetDrop(const QString &amp;)</signal> <signal>targetDrop(const TQString &amp;)</signal>
<signal>mouseClicked( const ButtonState &amp; )</signal> <signal>mouseClicked( const ButtonState &amp; )</signal>
<signal>mouseDoubleClicked( const ButtonState &amp; )</signal> <signal>mouseDoubleClicked( const ButtonState &amp; )</signal>
<slot access="public" specifier="">dragEnterEvent( QDragEnterEvent *mouseDragEnterEvent )</slot> <slot access="public" specifier="">dragEnterEvent( QDragEnterEvent *mouseDragEnterEvent )</slot>
@ -1137,39 +1137,39 @@
<connections> <connections>
<connection> <connection>
<sender>KbfxURLRequesterHover</sender> <sender>KbfxURLRequesterHover</sender>
<signal>urlSelected(const QString&amp;)</signal> <signal>urlSelected(const TQString&amp;)</signal>
<receiver>KbfxConfigDlgButton</receiver> <receiver>KbfxConfigDlgButton</receiver>
<slot>KbfxURLRequesterHoverUrlSelected(const QString&amp;)</slot> <slot>KbfxURLRequesterHoverUrlSelected(const TQString&amp;)</slot>
</connection> </connection>
<connection> <connection>
<sender>KbfxURLRequesterPressed</sender> <sender>KbfxURLRequesterPressed</sender>
<signal>urlSelected(const QString&amp;)</signal> <signal>urlSelected(const TQString&amp;)</signal>
<receiver>KbfxConfigDlgButton</receiver> <receiver>KbfxConfigDlgButton</receiver>
<slot>KbfxURLRequesterPressedUrlSelected(const QString&amp;)</slot> <slot>KbfxURLRequesterPressedUrlSelected(const TQString&amp;)</slot>
</connection> </connection>
<connection> <connection>
<sender>KbfxURLRequesterNormal</sender> <sender>KbfxURLRequesterNormal</sender>
<signal>urlSelected(const QString&amp;)</signal> <signal>urlSelected(const TQString&amp;)</signal>
<receiver>KbfxConfigDlgButton</receiver> <receiver>KbfxConfigDlgButton</receiver>
<slot>KbfxURLRequesterNormalUrlSelected(const QString&amp;)</slot> <slot>KbfxURLRequesterNormalUrlSelected(const TQString&amp;)</slot>
</connection> </connection>
<connection> <connection>
<sender>KbfxURLRequesterHover</sender> <sender>KbfxURLRequesterHover</sender>
<signal>returnPressed(const QString&amp;)</signal> <signal>returnPressed(const TQString&amp;)</signal>
<receiver>KbfxConfigDlgButton</receiver> <receiver>KbfxConfigDlgButton</receiver>
<slot>KbfxURLRequesterHoverUrlSelected(const QString&amp;)</slot> <slot>KbfxURLRequesterHoverUrlSelected(const TQString&amp;)</slot>
</connection> </connection>
<connection> <connection>
<sender>KbfxURLRequesterPressed</sender> <sender>KbfxURLRequesterPressed</sender>
<signal>returnPressed(const QString&amp;)</signal> <signal>returnPressed(const TQString&amp;)</signal>
<receiver>KbfxConfigDlgButton</receiver> <receiver>KbfxConfigDlgButton</receiver>
<slot>KbfxURLRequesterPressedUrlSelected(const QString&amp;)</slot> <slot>KbfxURLRequesterPressedUrlSelected(const TQString&amp;)</slot>
</connection> </connection>
<connection> <connection>
<sender>KbfxURLRequesterNormal</sender> <sender>KbfxURLRequesterNormal</sender>
<signal>returnPressed(const QString&amp;)</signal> <signal>returnPressed(const TQString&amp;)</signal>
<receiver>KbfxConfigDlgButton</receiver> <receiver>KbfxConfigDlgButton</receiver>
<slot>KbfxURLRequesterNormalUrlSelected(const QString&amp;)</slot> <slot>KbfxURLRequesterNormalUrlSelected(const TQString&amp;)</slot>
</connection> </connection>
<connection> <connection>
<sender>KbfxButton</sender> <sender>KbfxButton</sender>
@ -1179,21 +1179,21 @@
</connection> </connection>
<connection> <connection>
<sender>KbfxPixmapLabelHover</sender> <sender>KbfxPixmapLabelHover</sender>
<signal>targetDrop(const QString&amp;)</signal> <signal>targetDrop(const TQString&amp;)</signal>
<receiver>KbfxConfigDlgButton</receiver> <receiver>KbfxConfigDlgButton</receiver>
<slot>KbfxURLRequesterHoverUrlSelected(const QString&amp;)</slot> <slot>KbfxURLRequesterHoverUrlSelected(const TQString&amp;)</slot>
</connection> </connection>
<connection> <connection>
<sender>KbfxPixmapLabelNormal</sender> <sender>KbfxPixmapLabelNormal</sender>
<signal>targetDrop(const QString&amp;)</signal> <signal>targetDrop(const TQString&amp;)</signal>
<receiver>KbfxConfigDlgButton</receiver> <receiver>KbfxConfigDlgButton</receiver>
<slot>KbfxURLRequesterNormalUrlSelected(const QString&amp;)</slot> <slot>KbfxURLRequesterNormalUrlSelected(const TQString&amp;)</slot>
</connection> </connection>
<connection> <connection>
<sender>KbfxPixmapLabelPressed</sender> <sender>KbfxPixmapLabelPressed</sender>
<signal>targetDrop(const QString&amp;)</signal> <signal>targetDrop(const TQString&amp;)</signal>
<receiver>KbfxConfigDlgButton</receiver> <receiver>KbfxConfigDlgButton</receiver>
<slot>KbfxURLRequesterPressedUrlSelected(const QString&amp;)</slot> <slot>KbfxURLRequesterPressedUrlSelected(const TQString&amp;)</slot>
</connection> </connection>
<connection> <connection>
<sender>KbfxResizeKicker</sender> <sender>KbfxResizeKicker</sender>
@ -1231,30 +1231,30 @@
<includes> <includes>
<include location="global" impldecl="in declaration">kmessagebox.h</include> <include location="global" impldecl="in declaration">kmessagebox.h</include>
<include location="global" impldecl="in declaration">kbfxpushbutton.h</include> <include location="global" impldecl="in declaration">kbfxpushbutton.h</include>
<include location="global" impldecl="in declaration">qstring.h</include> <include location="global" impldecl="in declaration">tqstring.h</include>
<include location="global" impldecl="in declaration">qpainter.h</include> <include location="global" impldecl="in declaration">tqpainter.h</include>
<include location="global" impldecl="in declaration">qimage.h</include> <include location="global" impldecl="in declaration">tqimage.h</include>
<include location="global" impldecl="in declaration">kbfxpixmaplabel.h</include> <include location="global" impldecl="in declaration">kbfxpixmaplabel.h</include>
<include location="local" impldecl="in implementation">kbfxconfigdlgbutton.ui.h</include> <include location="local" impldecl="in implementation">kbfxconfigdlgbutton.ui.h</include>
</includes> </includes>
<signals> <Q_SIGNALS>
<signal>KbfxConfigDlgButtonChanged(const char * name, const QString &amp; path)</signal> <signal>KbfxConfigDlgButtonChanged(const char * name, const TQString &amp; path)</signal>
</signals> </Q_SIGNALS>
<slots> <Q_SLOTS>
<slot>KbfxURLRequesterNormalUrlSelected( const QString &amp; selected_img_path )</slot> <slot>KbfxURLRequesterNormalUrlSelected( const TQString &amp; selected_img_path )</slot>
<slot>KbfxURLRequesterPressedUrlSelected( const QString &amp; selected_img_path )</slot> <slot>KbfxURLRequesterPressedUrlSelected( const TQString &amp; selected_img_path )</slot>
<slot>KbfxURLRequesterHoverUrlSelected( const QString &amp; selected_img_path )</slot> <slot>KbfxURLRequesterHoverUrlSelected( const TQString &amp; selected_img_path )</slot>
<slot>KbfxButtonToggled( bool )</slot> <slot>KbfxButtonToggled( bool )</slot>
<slot>ChangeForm( const char * name, const QString &amp; path )</slot> <slot>ChangeForm( const char * name, const TQString &amp; path )</slot>
<slot>ChangeForm()</slot> <slot>ChangeForm()</slot>
<slot>KbfxResizeKickerToggled( bool )</slot> <slot>KbfxResizeKickerToggled( bool )</slot>
<slot>KbfxFadeButton_toggled( bool _state )</slot> <slot>KbfxFadeButton_toggled( bool _state )</slot>
<slot>KbfxFadeTime_lostFocus()</slot> <slot>KbfxFadeTime_lostFocus()</slot>
</slots> </Q_SLOTS>
<functions> <functions>
<function access="private" specifier="non virtual">init()</function> <function access="private" specifier="non virtual">init()</function>
</functions> </functions>
<layoutdefaults spacing="4" margin="0"/> <tqlayoutdefaults spacing="4" margin="0"/>
<includehints> <includehints>
<includehint>kurlrequester.h</includehint> <includehint>kurlrequester.h</includehint>
<includehint>klineedit.h</includehint> <includehint>klineedit.h</includehint>

@ -2,7 +2,7 @@
** ui.h extension file, included from the uic-generated form implementation. ** ui.h extension file, included from the uic-generated form implementation.
** **
** If you want to add, delete, or rename functions or slots, use ** If you want to add, delete, or rename functions or slots, use
** Qt Designer to update this file, preserving your code. ** TQt Designer to update this file, preserving your code.
** **
** You should not define a constructor or destructor in this file. ** You should not define a constructor or destructor in this file.
** Instead, write your code in functions called init() and destroy(). ** Instead, write your code in functions called init() and destroy().
@ -12,22 +12,22 @@
void KbfxConfigDlgButton::init() void KbfxConfigDlgButton::init()
{ {
connect ( this, SIGNAL ( KbfxConfigDlgButtonChanged ( const char *, const QString & ) ), connect ( this, TQT_SIGNAL ( KbfxConfigDlgButtonChanged ( const char *, const TQString & ) ),
this, SLOT ( ChangeForm ( const char *, const QString & ) ) ); this, TQT_SLOT ( ChangeForm ( const char *, const TQString & ) ) );
} }
/* actions performed when url is selected */ /* actions performed when url is selected */
void KbfxConfigDlgButton::KbfxURLRequesterNormalUrlSelected ( const QString &selected_img_path ) void KbfxConfigDlgButton::KbfxURLRequesterNormalUrlSelected ( const TQString &selected_img_path )
{ {
emit KbfxConfigDlgButtonChanged ( "normal", selected_img_path ); emit KbfxConfigDlgButtonChanged ( "normal", selected_img_path );
} }
void KbfxConfigDlgButton::KbfxURLRequesterPressedUrlSelected ( const QString &selected_img_path ) void KbfxConfigDlgButton::KbfxURLRequesterPressedUrlSelected ( const TQString &selected_img_path )
{ {
emit KbfxConfigDlgButtonChanged ( "pressed", selected_img_path ); emit KbfxConfigDlgButtonChanged ( "pressed", selected_img_path );
} }
void KbfxConfigDlgButton::KbfxURLRequesterHoverUrlSelected ( const QString &selected_img_path ) void KbfxConfigDlgButton::KbfxURLRequesterHoverUrlSelected ( const TQString &selected_img_path )
{ {
emit KbfxConfigDlgButtonChanged ( "hover", selected_img_path ); emit KbfxConfigDlgButtonChanged ( "hover", selected_img_path );
} }
@ -42,16 +42,16 @@ void KbfxConfigDlgButton::KbfxButtonToggled ( bool )
} }
/* url processing */ /* url processing */
void KbfxConfigDlgButton::ChangeForm ( const char *name, const QString &path ) void KbfxConfigDlgButton::ChangeForm ( const char *name, const TQString &path )
{ {
kdDebug() << "Received: " << name << " + " << path << endl; kdDebug() << "Received: " << name << " + " << path << endl;
QString tmppath = path; TQString tmppath = path;
if ( tmppath.startsWith ( "file://" ) ) tmppath.remove ( "file://" ); if ( tmppath.startsWith ( "file://" ) ) tmppath.remove ( "file://" );
QImage tmp ( tmppath ); TQImage tmp ( tmppath );
QString tmpname = name; TQString tmpname = name;
if ( tmpname == "pressed" ) if ( tmpname == "pressed" )
{ {
if ( tmp.isNull() ) if ( tmp.isNull() )
@ -133,7 +133,7 @@ void KbfxConfigDlgButton::ChangeForm()
if ( ConfigInit().m_ToolBarResize == FALSE && KbfxResizeKicker->state() == 2 ) if ( ConfigInit().m_ToolBarResize == FALSE && KbfxResizeKicker->state() == 2 )
KbfxResizeKicker->toggle(); KbfxResizeKicker->toggle();
KbfxFadeTime->setText ( QString::number ( ConfigInit().m_fadeTime ) ); KbfxFadeTime->setText ( TQString::number ( ConfigInit().m_fadeTime ) );
} }
@ -163,7 +163,7 @@ void KbfxConfigDlgButton::KbfxFadeButton_toggled( bool _state )
{ {
if ( _state ) if ( _state )
{ {
KbfxFadeTime->setText ( QString::number ( ConfigInit().m_fadeTimeDefault ) ); KbfxFadeTime->setText ( TQString::number ( ConfigInit().m_fadeTimeDefault ) );
ConfigInit().m_fadeTime = ConfigInit().m_fadeTimeDefault; ConfigInit().m_fadeTime = ConfigInit().m_fadeTimeDefault;
} }
else else
@ -179,5 +179,5 @@ void KbfxConfigDlgButton::KbfxFadeTime_lostFocus()
ConfigInit().m_fadeTime = _value; ConfigInit().m_fadeTime = _value;
ConfigInit().checkValues(); ConfigInit().checkValues();
KbfxFadeTime->setText ( QString::number ( ConfigInit().m_fadeTime ) ); KbfxFadeTime->setText ( TQString::number ( ConfigInit().m_fadeTime ) );
} }

@ -1,10 +1,10 @@
<!DOCTYPE UI><UI version="3.3" stdsetdef="1"> <!DOCTYPE UI><UI version="3.3" stdsetdef="1">
<class>KbfxConfigDlgFonts</class> <class>KbfxConfigDlgFonts</class>
<widget class="QWidget"> <widget class="TQWidget">
<property name="name"> <property name="name">
<cstring>KbfxConfigDlgFonts</cstring> <cstring>KbfxConfigDlgFonts</cstring>
</property> </property>
<property name="geometry"> <property name="tqgeometry">
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
@ -51,13 +51,13 @@
<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>29</height> <height>29</height>
</size> </size>
</property> </property>
<property name="maximumSize"> <property name="tqmaximumSize">
<size> <size>
<width>32767</width> <width>32767</width>
<height>29</height> <height>29</height>
@ -83,9 +83,9 @@
<string>&lt;b&gt;&lt;h3&gt;&lt;p align="center"&gt;Font options&lt;/p&gt;&lt;/h3&gt;&lt;/b&gt;</string> <string>&lt;b&gt;&lt;h3&gt;&lt;p align="center"&gt;Font options&lt;/p&gt;&lt;/h3&gt;&lt;/b&gt;</string>
</property> </property>
</widget> </widget>
<widget class="QLayoutWidget" row="2" column="0"> <widget class="TQLayoutWidget" row="2" column="0">
<property name="name"> <property name="name">
<cstring>layout14</cstring> <cstring>tqlayout14</cstring>
</property> </property>
<hbox> <hbox>
<property name="name"> <property name="name">
@ -101,14 +101,14 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>436</width> <width>436</width>
<height>1</height> <height>1</height>
</size> </size>
</property> </property>
</spacer> </spacer>
<widget class="QPushButton"> <widget class="TQPushButton">
<property name="name"> <property name="name">
<cstring>KbfxExportFile</cstring> <cstring>KbfxExportFile</cstring>
</property> </property>
@ -132,7 +132,7 @@
</widget> </widget>
</hbox> </hbox>
</widget> </widget>
<widget class="QGroupBox" row="1" column="0"> <widget class="TQGroupBox" row="1" column="0">
<property name="name"> <property name="name">
<cstring>groupBox43</cstring> <cstring>groupBox43</cstring>
</property> </property>
@ -167,24 +167,24 @@
<property name="sizeType"> <property name="sizeType">
<enum>MinimumExpanding</enum> <enum>MinimumExpanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>16</width> <width>16</width>
<height>1</height> <height>1</height>
</size> </size>
</property> </property>
</spacer> </spacer>
<widget class="QLayoutWidget" row="4" column="0"> <widget class="TQLayoutWidget" row="4" column="0">
<property name="name"> <property name="name">
<cstring>layout17</cstring> <cstring>tqlayout17</cstring>
</property> </property>
<hbox> <hbox>
<property name="name"> <property name="name">
<cstring>unnamed</cstring> <cstring>unnamed</cstring>
</property> </property>
<widget class="QLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>layout15</cstring> <cstring>tqlayout15</cstring>
</property> </property>
<vbox> <vbox>
<property name="name"> <property name="name">
@ -200,16 +200,16 @@
<property name="sizeType"> <property name="sizeType">
<enum>MinimumExpanding</enum> <enum>MinimumExpanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>1</width> <width>1</width>
<height>1</height> <height>1</height>
</size> </size>
</property> </property>
</spacer> </spacer>
<widget class="QLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>layout22</cstring> <cstring>tqlayout22</cstring>
</property> </property>
<hbox> <hbox>
<property name="name"> <property name="name">
@ -261,9 +261,9 @@
</widget> </widget>
</hbox> </hbox>
</widget> </widget>
<widget class="QLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>layout21</cstring> <cstring>tqlayout21</cstring>
</property> </property>
<hbox> <hbox>
<property name="name"> <property name="name">
@ -315,9 +315,9 @@
</widget> </widget>
</hbox> </hbox>
</widget> </widget>
<widget class="QLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>layout20</cstring> <cstring>tqlayout20</cstring>
</property> </property>
<hbox> <hbox>
<property name="name"> <property name="name">
@ -369,9 +369,9 @@
</widget> </widget>
</hbox> </hbox>
</widget> </widget>
<widget class="QLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>layout19</cstring> <cstring>tqlayout19</cstring>
</property> </property>
<hbox> <hbox>
<property name="name"> <property name="name">
@ -423,9 +423,9 @@
</widget> </widget>
</hbox> </hbox>
</widget> </widget>
<widget class="QLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>layout23</cstring> <cstring>tqlayout23</cstring>
</property> </property>
<hbox> <hbox>
<property name="name"> <property name="name">
@ -471,9 +471,9 @@
</widget> </widget>
</hbox> </hbox>
</widget> </widget>
<widget class="QLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>layout17</cstring> <cstring>tqlayout17</cstring>
</property> </property>
<hbox> <hbox>
<property name="name"> <property name="name">
@ -525,9 +525,9 @@
</widget> </widget>
</hbox> </hbox>
</widget> </widget>
<widget class="QLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>layout18</cstring> <cstring>tqlayout18</cstring>
</property> </property>
<hbox> <hbox>
<property name="name"> <property name="name">
@ -579,9 +579,9 @@
</widget> </widget>
</hbox> </hbox>
</widget> </widget>
<widget class="QLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>layout18_2</cstring> <cstring>tqlayout18_2</cstring>
</property> </property>
<hbox> <hbox>
<property name="name"> <property name="name">
@ -649,9 +649,9 @@
<enum>Vertical</enum> <enum>Vertical</enum>
</property> </property>
</widget> </widget>
<widget class="QLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>layout16</cstring> <cstring>tqlayout16</cstring>
</property> </property>
<vbox> <vbox>
<property name="name"> <property name="name">
@ -667,7 +667,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>MinimumExpanding</enum> <enum>MinimumExpanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>22</width> <width>22</width>
<height>1</height> <height>1</height>
@ -821,7 +821,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Minimum</enum> <enum>Minimum</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>16</width> <width>16</width>
<height>1</height> <height>1</height>
@ -842,9 +842,9 @@
<enum>Horizontal</enum> <enum>Horizontal</enum>
</property> </property>
</widget> </widget>
<widget class="QLayoutWidget" row="1" column="0"> <widget class="TQLayoutWidget" row="1" column="0">
<property name="name"> <property name="name">
<cstring>layout15</cstring> <cstring>tqlayout15</cstring>
</property> </property>
<hbox> <hbox>
<property name="name"> <property name="name">
@ -868,7 +868,7 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="maximumSize"> <property name="tqmaximumSize">
<size> <size>
<width>32767</width> <width>32767</width>
<height>32767</height> <height>32767</height>
@ -896,7 +896,7 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="maximumSize"> <property name="tqmaximumSize">
<size> <size>
<width>32767</width> <width>32767</width>
<height>32767</height> <height>32767</height>
@ -928,7 +928,7 @@
<string>Please select the theme you want to edit</string> <string>Please select the theme you want to edit</string>
</property> </property>
</widget> </widget>
<widget class="QCheckBox"> <widget class="TQCheckBox">
<property name="name"> <property name="name">
<cstring>KbfxBoldHover</cstring> <cstring>KbfxBoldHover</cstring>
</property> </property>
@ -965,7 +965,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Minimum</enum> <enum>Minimum</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>16</width> <width>16</width>
<height>1</height> <height>1</height>
@ -1010,39 +1010,39 @@
<connections> <connections>
<connection> <connection>
<sender>KbfxApplicationColor</sender> <sender>KbfxApplicationColor</sender>
<signal>activated(const QColor&amp;)</signal> <signal>activated(const TQColor&amp;)</signal>
<receiver>KbfxConfigDlgFonts</receiver> <receiver>KbfxConfigDlgFonts</receiver>
<slot>KbfxApplicationColorSelected(const QColor&amp;)</slot> <slot>KbfxApplicationColorSelected(const TQColor&amp;)</slot>
</connection> </connection>
<connection> <connection>
<sender>KbfxCommentColor</sender> <sender>KbfxCommentColor</sender>
<signal>activated(const QColor&amp;)</signal> <signal>activated(const TQColor&amp;)</signal>
<receiver>KbfxConfigDlgFonts</receiver> <receiver>KbfxConfigDlgFonts</receiver>
<slot>KbfxCommentColorSelected(const QColor&amp;)</slot> <slot>KbfxCommentColorSelected(const TQColor&amp;)</slot>
</connection> </connection>
<connection> <connection>
<sender>KbfxLineColor</sender> <sender>KbfxLineColor</sender>
<signal>activated(const QColor&amp;)</signal> <signal>activated(const TQColor&amp;)</signal>
<receiver>KbfxConfigDlgFonts</receiver> <receiver>KbfxConfigDlgFonts</receiver>
<slot>KbfxLineColorSelected(const QColor&amp;)</slot> <slot>KbfxLineColorSelected(const TQColor&amp;)</slot>
</connection> </connection>
<connection> <connection>
<sender>KbfxCategoryColor</sender> <sender>KbfxCategoryColor</sender>
<signal>activated(const QColor&amp;)</signal> <signal>activated(const TQColor&amp;)</signal>
<receiver>KbfxConfigDlgFonts</receiver> <receiver>KbfxConfigDlgFonts</receiver>
<slot>KbfxCategoryColorSelected(const QColor&amp;)</slot> <slot>KbfxCategoryColorSelected(const TQColor&amp;)</slot>
</connection> </connection>
<connection> <connection>
<sender>KbfxNameColor</sender> <sender>KbfxNameColor</sender>
<signal>activated(const QColor&amp;)</signal> <signal>activated(const TQColor&amp;)</signal>
<receiver>KbfxConfigDlgFonts</receiver> <receiver>KbfxConfigDlgFonts</receiver>
<slot>KbfxNameColorSelected(const QColor&amp;)</slot> <slot>KbfxNameColorSelected(const TQColor&amp;)</slot>
</connection> </connection>
<connection> <connection>
<sender>KbfxSeparatorColor</sender> <sender>KbfxSeparatorColor</sender>
<signal>activated(const QColor&amp;)</signal> <signal>activated(const TQColor&amp;)</signal>
<receiver>KbfxConfigDlgFonts</receiver> <receiver>KbfxConfigDlgFonts</receiver>
<slot>KbfxSeparatorColorSelected(const QColor&amp;)</slot> <slot>KbfxSeparatorColorSelected(const TQColor&amp;)</slot>
</connection> </connection>
<connection> <connection>
<sender>KbfxExportFile</sender> <sender>KbfxExportFile</sender>
@ -1082,9 +1082,9 @@
</connection> </connection>
<connection> <connection>
<sender>KbfxPluginColor</sender> <sender>KbfxPluginColor</sender>
<signal>activated(const QColor&amp;)</signal> <signal>activated(const TQColor&amp;)</signal>
<receiver>KbfxConfigDlgFonts</receiver> <receiver>KbfxConfigDlgFonts</receiver>
<slot>KbfxPluginColorSelected(const QColor&amp;)</slot> <slot>KbfxPluginColorSelected(const TQColor&amp;)</slot>
</connection> </connection>
<connection> <connection>
<sender>KbfxFont_separator</sender> <sender>KbfxFont_separator</sender>
@ -1100,9 +1100,9 @@
</connection> </connection>
<connection> <connection>
<sender>KbfxTooltipColor</sender> <sender>KbfxTooltipColor</sender>
<signal>activated(const QColor&amp;)</signal> <signal>activated(const TQColor&amp;)</signal>
<receiver>KbfxConfigDlgFonts</receiver> <receiver>KbfxConfigDlgFonts</receiver>
<slot>KbfxTooltipColorSelected(const QColor&amp;)</slot> <slot>KbfxTooltipColorSelected(const TQColor&amp;)</slot>
</connection> </connection>
<connection> <connection>
<sender>KbfxFont_tooltip</sender> <sender>KbfxFont_tooltip</sender>
@ -1144,24 +1144,24 @@
<variables> <variables>
<variable access="private">bool KbfxFormReady;</variable> <variable access="private">bool KbfxFormReady;</variable>
</variables> </variables>
<slots> <Q_SLOTS>
<slot>ChangeForm()</slot> <slot>ChangeForm()</slot>
<slot>KbfxApplicationColorSelected( const QColor &amp; color )</slot> <slot>KbfxApplicationColorSelected( const TQColor &amp; color )</slot>
<slot>KbfxTooltipColorSelected( const QColor &amp; )</slot> <slot>KbfxTooltipColorSelected( const TQColor &amp; )</slot>
<slot>KbfxCommentColorSelected( const QColor &amp; color )</slot> <slot>KbfxCommentColorSelected( const TQColor &amp; color )</slot>
<slot>KbfxLineColorSelected( const QColor &amp; color )</slot> <slot>KbfxLineColorSelected( const TQColor &amp; color )</slot>
<slot>KbfxCategoryColorSelected( const QColor &amp; color )</slot> <slot>KbfxCategoryColorSelected( const TQColor &amp; color )</slot>
<slot>KbfxNameColorSelected( const QColor &amp; color )</slot> <slot>KbfxNameColorSelected( const TQColor &amp; color )</slot>
<slot>KbfxSeparatorColorSelected( const QColor &amp; color )</slot> <slot>KbfxSeparatorColorSelected( const TQColor &amp; color )</slot>
<slot>KbfxPluginColorSelected( const QColor &amp; color )</slot> <slot>KbfxPluginColorSelected( const TQColor &amp; color )</slot>
<slot>KbfxExportFileAction()</slot> <slot>KbfxExportFileAction()</slot>
<slot>FontChanged()</slot> <slot>FontChanged()</slot>
<slot>KbfxBoldHover_toggled( bool state )</slot> <slot>KbfxBoldHover_toggled( bool state )</slot>
</slots> </Q_SLOTS>
<functions> <functions>
<function access="private" specifier="non virtual">init()</function> <function access="private" specifier="non virtual">init()</function>
</functions> </functions>
<layoutdefaults spacing="6" margin="11"/> <tqlayoutdefaults spacing="6" margin="11"/>
<includehints> <includehints>
<includehint>kactivelabel.h</includehint> <includehint>kactivelabel.h</includehint>
<includehint>kactivelabel.h</includehint> <includehint>kactivelabel.h</includehint>

@ -2,7 +2,7 @@
** ui.h extension file, included from the uic-generated form implementation. ** ui.h extension file, included from the uic-generated form implementation.
** **
** If you want to add, delete, or rename functions or slots, use ** If you want to add, delete, or rename functions or slots, use
** Qt Designer to update this file, preserving your code. ** TQt Designer to update this file, preserving your code.
** **
** You should not define a constructor or destructor in this file. ** You should not define a constructor or destructor in this file.
** Instead, write your code in functions called init() and destroy(). ** Instead, write your code in functions called init() and destroy().
@ -38,7 +38,7 @@ void KbfxConfigDlgFonts::ChangeForm()
KbfxFormReady = TRUE; KbfxFormReady = TRUE;
} }
void KbfxConfigDlgFonts::KbfxApplicationColorSelected ( const QColor &color ) void KbfxConfigDlgFonts::KbfxApplicationColorSelected ( const TQColor &color )
{ {
ConfigInit().m_fontAppNameColor = color; ConfigInit().m_fontAppNameColor = color;
@ -47,7 +47,7 @@ void KbfxConfigDlgFonts::KbfxApplicationColorSelected ( const QColor &color )
<< endl; << endl;
} }
void KbfxConfigDlgFonts::KbfxTooltipColorSelected ( const QColor &color ) void KbfxConfigDlgFonts::KbfxTooltipColorSelected ( const TQColor &color )
{ {
ConfigInit().m_fontTooltipColor = color; ConfigInit().m_fontTooltipColor = color;
@ -56,7 +56,7 @@ void KbfxConfigDlgFonts::KbfxTooltipColorSelected ( const QColor &color )
<< endl; << endl;
} }
void KbfxConfigDlgFonts::KbfxCommentColorSelected ( const QColor &color ) void KbfxConfigDlgFonts::KbfxCommentColorSelected ( const TQColor &color )
{ {
ConfigInit().m_fontAppCommentColor = color; ConfigInit().m_fontAppCommentColor = color;
@ -65,7 +65,7 @@ void KbfxConfigDlgFonts::KbfxCommentColorSelected ( const QColor &color )
<< endl; << endl;
} }
void KbfxConfigDlgFonts::KbfxLineColorSelected ( const QColor & color ) void KbfxConfigDlgFonts::KbfxLineColorSelected ( const TQColor & color )
{ {
ConfigInit().m_lineColor = color; ConfigInit().m_lineColor = color;
@ -74,7 +74,7 @@ void KbfxConfigDlgFonts::KbfxLineColorSelected ( const QColor & color )
<< endl; << endl;
} }
void KbfxConfigDlgFonts::KbfxCategoryColorSelected ( const QColor &color ) void KbfxConfigDlgFonts::KbfxCategoryColorSelected ( const TQColor &color )
{ {
ConfigInit().m_fontIndexColor = color; ConfigInit().m_fontIndexColor = color;
@ -83,7 +83,7 @@ void KbfxConfigDlgFonts::KbfxCategoryColorSelected ( const QColor &color )
<< endl; << endl;
} }
void KbfxConfigDlgFonts::KbfxNameColorSelected ( const QColor &color ) void KbfxConfigDlgFonts::KbfxNameColorSelected ( const TQColor &color )
{ {
ConfigInit().m_userNameColor = color; ConfigInit().m_userNameColor = color;
@ -92,7 +92,7 @@ void KbfxConfigDlgFonts::KbfxNameColorSelected ( const QColor &color )
<< endl; << endl;
} }
void KbfxConfigDlgFonts::KbfxSeparatorColorSelected ( const QColor &color ) void KbfxConfigDlgFonts::KbfxSeparatorColorSelected ( const TQColor &color )
{ {
ConfigInit().m_sepNameColor = color; ConfigInit().m_sepNameColor = color;
@ -101,7 +101,7 @@ void KbfxConfigDlgFonts::KbfxSeparatorColorSelected ( const QColor &color )
<< endl; << endl;
} }
void KbfxConfigDlgFonts::KbfxPluginColorSelected( const QColor &color ) void KbfxConfigDlgFonts::KbfxPluginColorSelected( const TQColor &color )
{ {
ConfigInit().m_pluginNameColor = color; ConfigInit().m_pluginNameColor = color;
@ -113,7 +113,7 @@ void KbfxConfigDlgFonts::KbfxPluginColorSelected( const QColor &color )
void KbfxConfigDlgFonts::KbfxExportFileAction() void KbfxConfigDlgFonts::KbfxExportFileAction()
{ {
/* /*
KFileDialog KbfxExportFontRcDialog(QString::null, KFileDialog KbfxExportFontRcDialog(TQString(),
"*.*|" + tr2i18n("All files"), "*.*|" + tr2i18n("All files"),
0, 0,
0, 0,
@ -124,11 +124,11 @@ void KbfxConfigDlgFonts::KbfxExportFileAction()
if(!KbfxExportFontRcDialog.exec()) return; if(!KbfxExportFontRcDialog.exec()) return;
QString KbfxExportFontRcDialogURL = KbfxExportFontRcDialog.selectedURL().path(); TQString KbfxExportFontRcDialogURL = KbfxExportFontRcDialog.selectedURL().path();
*/ */
QString KbfxExportFontRcDialogURL = KFileDialog::getExistingDirectory ( TQString KbfxExportFontRcDialogURL = KFileDialog::getExistingDirectory (
QString::null, TQString(),
0, 0,
tr2i18n ( "Select folder to export kbfxfontrc file" ) ).append ( "/kbfxfontrc" ); tr2i18n ( "Select folder to export kbfxfontrc file" ) ).append ( "/kbfxfontrc" );

@ -1,10 +1,10 @@
<!DOCTYPE UI><UI version="3.3" stdsetdef="1"> <!DOCTYPE UI><UI version="3.3" stdsetdef="1">
<class>KbfxConfigDlgLayout</class> <class>KbfxConfigDlgLayout</class>
<widget class="QWidget"> <widget class="TQWidget">
<property name="name"> <property name="name">
<cstring>KbfxConfigDlgLayout</cstring> <cstring>KbfxConfigDlgLayout</cstring>
</property> </property>
<property name="geometry"> <property name="tqgeometry">
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
@ -51,13 +51,13 @@
<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>29</height> <height>29</height>
</size> </size>
</property> </property>
<property name="maximumSize"> <property name="tqmaximumSize">
<size> <size>
<width>32767</width> <width>32767</width>
<height>29</height> <height>29</height>
@ -83,9 +83,9 @@
<string>&lt;b&gt;&lt;h3&gt;&lt;p align="center"&gt;Layout options&lt;/p&gt;&lt;/h3&gt;&lt;/b&gt;</string> <string>&lt;b&gt;&lt;h3&gt;&lt;p align="center"&gt;Layout options&lt;/p&gt;&lt;/h3&gt;&lt;/b&gt;</string>
</property> </property>
</widget> </widget>
<widget class="QLayoutWidget" row="2" column="0"> <widget class="TQLayoutWidget" row="2" column="0">
<property name="name"> <property name="name">
<cstring>layout14_2</cstring> <cstring>tqlayout14_2</cstring>
</property> </property>
<hbox> <hbox>
<property name="name"> <property name="name">
@ -101,14 +101,14 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>408</width> <width>408</width>
<height>1</height> <height>1</height>
</size> </size>
</property> </property>
</spacer> </spacer>
<widget class="QPushButton"> <widget class="TQPushButton">
<property name="name"> <property name="name">
<cstring>KbfxExportFile</cstring> <cstring>KbfxExportFile</cstring>
</property> </property>
@ -127,12 +127,12 @@
<string>EXPORT KBFXLAYOUTRC FILE</string> <string>EXPORT KBFXLAYOUTRC FILE</string>
</property> </property>
<property name="toolTip" stdset="0"> <property name="toolTip" stdset="0">
<string>Export the kbfxlayoutrc file to a folder</string> <string>Export the kbfxtqlayoutrc file to a folder</string>
</property> </property>
</widget> </widget>
</hbox> </hbox>
</widget> </widget>
<widget class="QGroupBox" row="1" column="0"> <widget class="TQGroupBox" row="1" column="0">
<property name="name"> <property name="name">
<cstring>groupBox43</cstring> <cstring>groupBox43</cstring>
</property> </property>
@ -167,16 +167,16 @@
<property name="sizeType"> <property name="sizeType">
<enum>Minimum</enum> <enum>Minimum</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>23</width> <width>23</width>
<height>1</height> <height>1</height>
</size> </size>
</property> </property>
</spacer> </spacer>
<widget class="QLayoutWidget" row="1" column="0" rowspan="1" colspan="2"> <widget class="TQLayoutWidget" row="1" column="0" rowspan="1" colspan="2">
<property name="name"> <property name="name">
<cstring>layout30</cstring> <cstring>tqlayout30</cstring>
</property> </property>
<hbox> <hbox>
<property name="name"> <property name="name">
@ -279,16 +279,16 @@
<property name="sizeType"> <property name="sizeType">
<enum>Minimum</enum> <enum>Minimum</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>16</width> <width>16</width>
<height>1</height> <height>1</height>
</size> </size>
</property> </property>
</spacer> </spacer>
<widget class="QLayoutWidget" row="6" column="0" rowspan="1" colspan="2"> <widget class="TQLayoutWidget" row="6" column="0" rowspan="1" colspan="2">
<property name="name"> <property name="name">
<cstring>layout17</cstring> <cstring>tqlayout17</cstring>
</property> </property>
<hbox> <hbox>
<property name="name"> <property name="name">
@ -304,14 +304,14 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>1</width> <width>1</width>
<height>1</height> <height>1</height>
</size> </size>
</property> </property>
</spacer> </spacer>
<widget class="QPushButton"> <widget class="TQPushButton">
<property name="name"> <property name="name">
<cstring>Kbfx2PanelsLeft</cstring> <cstring>Kbfx2PanelsLeft</cstring>
</property> </property>
@ -327,7 +327,7 @@
<string>Make it 2 panels (Left "ON")</string> <string>Make it 2 panels (Left "ON")</string>
</property> </property>
</widget> </widget>
<widget class="QPushButton"> <widget class="TQPushButton">
<property name="name"> <property name="name">
<cstring>Kbfx2PanelsRight</cstring> <cstring>Kbfx2PanelsRight</cstring>
</property> </property>
@ -343,7 +343,7 @@
<string>Make it 2 panels (Right "ON")</string> <string>Make it 2 panels (Right "ON")</string>
</property> </property>
</widget> </widget>
<widget class="QPushButton"> <widget class="TQPushButton">
<property name="name"> <property name="name">
<cstring>Kbfx3Panels</cstring> <cstring>Kbfx3Panels</cstring>
</property> </property>
@ -369,7 +369,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>1</width> <width>1</width>
<height>1</height> <height>1</height>
@ -388,24 +388,24 @@
<property name="sizeType"> <property name="sizeType">
<enum>MinimumExpanding</enum> <enum>MinimumExpanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>16</width> <width>16</width>
<height>1</height> <height>1</height>
</size> </size>
</property> </property>
</spacer> </spacer>
<widget class="QLayoutWidget" row="4" column="0" rowspan="1" colspan="2"> <widget class="TQLayoutWidget" row="4" column="0" rowspan="1" colspan="2">
<property name="name"> <property name="name">
<cstring>layout33</cstring> <cstring>tqlayout33</cstring>
</property> </property>
<hbox> <hbox>
<property name="name"> <property name="name">
<cstring>unnamed</cstring> <cstring>unnamed</cstring>
</property> </property>
<widget class="QLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>layout28</cstring> <cstring>tqlayout28</cstring>
</property> </property>
<vbox> <vbox>
<property name="name"> <property name="name">
@ -417,9 +417,9 @@
<property name="spacing"> <property name="spacing">
<number>0</number> <number>0</number>
</property> </property>
<widget class="QLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>layout21</cstring> <cstring>tqlayout21</cstring>
</property> </property>
<vbox> <vbox>
<property name="name"> <property name="name">
@ -431,9 +431,9 @@
<property name="spacing"> <property name="spacing">
<number>0</number> <number>0</number>
</property> </property>
<widget class="QLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>layout16</cstring> <cstring>tqlayout16</cstring>
</property> </property>
<hbox> <hbox>
<property name="name"> <property name="name">
@ -445,7 +445,7 @@
<property name="spacing"> <property name="spacing">
<number>0</number> <number>0</number>
</property> </property>
<widget class="QLabel"> <widget class="TQLabel">
<property name="name"> <property name="name">
<cstring>textLabel1</cstring> <cstring>textLabel1</cstring>
</property> </property>
@ -461,7 +461,7 @@
<string>textLabel1</string> <string>textLabel1</string>
</property> </property>
</widget> </widget>
<widget class="QLineEdit"> <widget class="TQLineEdit">
<property name="name"> <property name="name">
<cstring>lineEdit1</cstring> <cstring>lineEdit1</cstring>
</property> </property>
@ -479,15 +479,15 @@
<property name="frameShape"> <property name="frameShape">
<enum>StyledPanel</enum> <enum>StyledPanel</enum>
</property> </property>
<property name="alignment"> <property name="tqalignment">
<set>AlignHCenter</set> <set>AlignHCenter</set>
</property> </property>
</widget> </widget>
</hbox> </hbox>
</widget> </widget>
<widget class="QLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>layout16_2</cstring> <cstring>tqlayout16_2</cstring>
</property> </property>
<hbox> <hbox>
<property name="name"> <property name="name">
@ -499,7 +499,7 @@
<property name="spacing"> <property name="spacing">
<number>0</number> <number>0</number>
</property> </property>
<widget class="QLabel"> <widget class="TQLabel">
<property name="name"> <property name="name">
<cstring>textLabel2</cstring> <cstring>textLabel2</cstring>
</property> </property>
@ -515,7 +515,7 @@
<string>textLabel2</string> <string>textLabel2</string>
</property> </property>
</widget> </widget>
<widget class="QLineEdit"> <widget class="TQLineEdit">
<property name="name"> <property name="name">
<cstring>lineEdit2</cstring> <cstring>lineEdit2</cstring>
</property> </property>
@ -533,15 +533,15 @@
<property name="frameShape"> <property name="frameShape">
<enum>StyledPanel</enum> <enum>StyledPanel</enum>
</property> </property>
<property name="alignment"> <property name="tqalignment">
<set>AlignHCenter</set> <set>AlignHCenter</set>
</property> </property>
</widget> </widget>
</hbox> </hbox>
</widget> </widget>
<widget class="QLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>layout16_3</cstring> <cstring>tqlayout16_3</cstring>
</property> </property>
<hbox> <hbox>
<property name="name"> <property name="name">
@ -553,7 +553,7 @@
<property name="spacing"> <property name="spacing">
<number>0</number> <number>0</number>
</property> </property>
<widget class="QLabel"> <widget class="TQLabel">
<property name="name"> <property name="name">
<cstring>textLabel3</cstring> <cstring>textLabel3</cstring>
</property> </property>
@ -569,7 +569,7 @@
<string>textLabel3</string> <string>textLabel3</string>
</property> </property>
</widget> </widget>
<widget class="QLineEdit"> <widget class="TQLineEdit">
<property name="name"> <property name="name">
<cstring>lineEdit3</cstring> <cstring>lineEdit3</cstring>
</property> </property>
@ -587,15 +587,15 @@
<property name="frameShape"> <property name="frameShape">
<enum>StyledPanel</enum> <enum>StyledPanel</enum>
</property> </property>
<property name="alignment"> <property name="tqalignment">
<set>AlignHCenter</set> <set>AlignHCenter</set>
</property> </property>
</widget> </widget>
</hbox> </hbox>
</widget> </widget>
<widget class="QLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>layout16_4</cstring> <cstring>tqlayout16_4</cstring>
</property> </property>
<hbox> <hbox>
<property name="name"> <property name="name">
@ -607,7 +607,7 @@
<property name="spacing"> <property name="spacing">
<number>0</number> <number>0</number>
</property> </property>
<widget class="QLabel"> <widget class="TQLabel">
<property name="name"> <property name="name">
<cstring>textLabel4</cstring> <cstring>textLabel4</cstring>
</property> </property>
@ -623,7 +623,7 @@
<string>textLabel4</string> <string>textLabel4</string>
</property> </property>
</widget> </widget>
<widget class="QLineEdit"> <widget class="TQLineEdit">
<property name="name"> <property name="name">
<cstring>lineEdit4</cstring> <cstring>lineEdit4</cstring>
</property> </property>
@ -641,7 +641,7 @@
<property name="frameShape"> <property name="frameShape">
<enum>StyledPanel</enum> <enum>StyledPanel</enum>
</property> </property>
<property name="alignment"> <property name="tqalignment">
<set>AlignHCenter</set> <set>AlignHCenter</set>
</property> </property>
</widget> </widget>
@ -649,7 +649,7 @@
</widget> </widget>
</vbox> </vbox>
</widget> </widget>
<widget class="QCheckBox"> <widget class="TQCheckBox">
<property name="name"> <property name="name">
<cstring>checkBox1</cstring> <cstring>checkBox1</cstring>
</property> </property>
@ -689,9 +689,9 @@
<enum>Vertical</enum> <enum>Vertical</enum>
</property> </property>
</widget> </widget>
<widget class="QLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>layout29</cstring> <cstring>tqlayout29</cstring>
</property> </property>
<vbox> <vbox>
<property name="name"> <property name="name">
@ -703,9 +703,9 @@
<property name="spacing"> <property name="spacing">
<number>0</number> <number>0</number>
</property> </property>
<widget class="QLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>layout21_2</cstring> <cstring>tqlayout21_2</cstring>
</property> </property>
<vbox> <vbox>
<property name="name"> <property name="name">
@ -717,9 +717,9 @@
<property name="spacing"> <property name="spacing">
<number>0</number> <number>0</number>
</property> </property>
<widget class="QLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>layout16_5</cstring> <cstring>tqlayout16_5</cstring>
</property> </property>
<hbox> <hbox>
<property name="name"> <property name="name">
@ -731,7 +731,7 @@
<property name="spacing"> <property name="spacing">
<number>0</number> <number>0</number>
</property> </property>
<widget class="QLabel"> <widget class="TQLabel">
<property name="name"> <property name="name">
<cstring>textLabel5</cstring> <cstring>textLabel5</cstring>
</property> </property>
@ -747,7 +747,7 @@
<string>textLabel5</string> <string>textLabel5</string>
</property> </property>
</widget> </widget>
<widget class="QLineEdit"> <widget class="TQLineEdit">
<property name="name"> <property name="name">
<cstring>lineEdit5</cstring> <cstring>lineEdit5</cstring>
</property> </property>
@ -765,15 +765,15 @@
<property name="frameShape"> <property name="frameShape">
<enum>StyledPanel</enum> <enum>StyledPanel</enum>
</property> </property>
<property name="alignment"> <property name="tqalignment">
<set>AlignHCenter</set> <set>AlignHCenter</set>
</property> </property>
</widget> </widget>
</hbox> </hbox>
</widget> </widget>
<widget class="QLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>layout16_2_2</cstring> <cstring>tqlayout16_2_2</cstring>
</property> </property>
<hbox> <hbox>
<property name="name"> <property name="name">
@ -785,7 +785,7 @@
<property name="spacing"> <property name="spacing">
<number>0</number> <number>0</number>
</property> </property>
<widget class="QLabel"> <widget class="TQLabel">
<property name="name"> <property name="name">
<cstring>textLabel6</cstring> <cstring>textLabel6</cstring>
</property> </property>
@ -801,7 +801,7 @@
<string>textLabel6</string> <string>textLabel6</string>
</property> </property>
</widget> </widget>
<widget class="QLineEdit"> <widget class="TQLineEdit">
<property name="name"> <property name="name">
<cstring>lineEdit6</cstring> <cstring>lineEdit6</cstring>
</property> </property>
@ -819,15 +819,15 @@
<property name="frameShape"> <property name="frameShape">
<enum>StyledPanel</enum> <enum>StyledPanel</enum>
</property> </property>
<property name="alignment"> <property name="tqalignment">
<set>AlignHCenter</set> <set>AlignHCenter</set>
</property> </property>
</widget> </widget>
</hbox> </hbox>
</widget> </widget>
<widget class="QLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>layout16_3_2</cstring> <cstring>tqlayout16_3_2</cstring>
</property> </property>
<hbox> <hbox>
<property name="name"> <property name="name">
@ -839,7 +839,7 @@
<property name="spacing"> <property name="spacing">
<number>0</number> <number>0</number>
</property> </property>
<widget class="QLabel"> <widget class="TQLabel">
<property name="name"> <property name="name">
<cstring>textLabel7</cstring> <cstring>textLabel7</cstring>
</property> </property>
@ -855,7 +855,7 @@
<string>textLabel7</string> <string>textLabel7</string>
</property> </property>
</widget> </widget>
<widget class="QLineEdit"> <widget class="TQLineEdit">
<property name="name"> <property name="name">
<cstring>lineEdit7</cstring> <cstring>lineEdit7</cstring>
</property> </property>
@ -873,15 +873,15 @@
<property name="frameShape"> <property name="frameShape">
<enum>StyledPanel</enum> <enum>StyledPanel</enum>
</property> </property>
<property name="alignment"> <property name="tqalignment">
<set>AlignHCenter</set> <set>AlignHCenter</set>
</property> </property>
</widget> </widget>
</hbox> </hbox>
</widget> </widget>
<widget class="QLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>layout16_4_2</cstring> <cstring>tqlayout16_4_2</cstring>
</property> </property>
<hbox> <hbox>
<property name="name"> <property name="name">
@ -893,7 +893,7 @@
<property name="spacing"> <property name="spacing">
<number>0</number> <number>0</number>
</property> </property>
<widget class="QLabel"> <widget class="TQLabel">
<property name="name"> <property name="name">
<cstring>textLabel8</cstring> <cstring>textLabel8</cstring>
</property> </property>
@ -909,7 +909,7 @@
<string>textLabel8</string> <string>textLabel8</string>
</property> </property>
</widget> </widget>
<widget class="QLineEdit"> <widget class="TQLineEdit">
<property name="name"> <property name="name">
<cstring>lineEdit8</cstring> <cstring>lineEdit8</cstring>
</property> </property>
@ -927,7 +927,7 @@
<property name="frameShape"> <property name="frameShape">
<enum>StyledPanel</enum> <enum>StyledPanel</enum>
</property> </property>
<property name="alignment"> <property name="tqalignment">
<set>AlignHCenter</set> <set>AlignHCenter</set>
</property> </property>
</widget> </widget>
@ -935,7 +935,7 @@
</widget> </widget>
</vbox> </vbox>
</widget> </widget>
<widget class="QCheckBox"> <widget class="TQCheckBox">
<property name="name"> <property name="name">
<cstring>checkBox2</cstring> <cstring>checkBox2</cstring>
</property> </property>
@ -968,7 +968,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Minimum</enum> <enum>Minimum</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>23</width> <width>23</width>
<height>1</height> <height>1</height>
@ -1050,16 +1050,16 @@
<include location="global" impldecl="in declaration">kbfxthemesdata.h</include> <include location="global" impldecl="in declaration">kbfxthemesdata.h</include>
<include location="global" impldecl="in declaration">kbfxconfig.h</include> <include location="global" impldecl="in declaration">kbfxconfig.h</include>
<include location="global" impldecl="in declaration">kdebug.h</include> <include location="global" impldecl="in declaration">kdebug.h</include>
<include location="global" impldecl="in declaration">qstringlist.h</include> <include location="global" impldecl="in declaration">tqstringlist.h</include>
<include location="global" impldecl="in declaration">kstandarddirs.h</include> <include location="global" impldecl="in declaration">kstandarddirs.h</include>
<include location="global" impldecl="in declaration">kmessagebox.h</include> <include location="global" impldecl="in declaration">kmessagebox.h</include>
<include location="global" impldecl="in declaration">kfiledialog.h</include> <include location="global" impldecl="in declaration">kfiledialog.h</include>
<include location="local" impldecl="in implementation">kbfxconfigdlglayout.ui.h</include> <include location="local" impldecl="in implementation">kbfxconfigdlgtqlayout.ui.h</include>
</includes> </includes>
<variables> <variables>
<variable access="private">int previous_state;</variable> <variable access="private">int previous_state;</variable>
</variables> </variables>
<slots> <Q_SLOTS>
<slot>ChangeForm()</slot> <slot>ChangeForm()</slot>
<slot>KbfxLayoutProperty_activated( int index )</slot> <slot>KbfxLayoutProperty_activated( int index )</slot>
<slot>KbfxExportFileAction()</slot> <slot>KbfxExportFileAction()</slot>
@ -1067,14 +1067,14 @@
<slot>Kbfx2PanelsLeft_clicked()</slot> <slot>Kbfx2PanelsLeft_clicked()</slot>
<slot>Kbfx2PanelsRight_clicked()</slot> <slot>Kbfx2PanelsRight_clicked()</slot>
<slot>Kbfx3Panels_clicked()</slot> <slot>Kbfx3Panels_clicked()</slot>
</slots> </Q_SLOTS>
<functions> <functions>
<function access="private" specifier="non virtual">init()</function> <function access="private" specifier="non virtual">init()</function>
<function access="private">KbfxShowAll()</function> <function access="private">KbfxShowAll()</function>
<function access="private">KbfxMakePanel(int)</function> <function access="private">KbfxMakePanel(int)</function>
<function access="private" returnType="bool">KbfxMessage()</function> <function access="private" returnType="bool">KbfxMessage()</function>
</functions> </functions>
<layoutdefaults spacing="6" margin="11"/> <tqlayoutdefaults spacing="6" margin="11"/>
<includehints> <includehints>
<includehint>kactivelabel.h</includehint> <includehint>kactivelabel.h</includehint>
<includehint>kactivelabel.h</includehint> <includehint>kactivelabel.h</includehint>

@ -2,7 +2,7 @@
** ui.h extension file, included from the uic-generated form implementation. ** ui.h extension file, included from the uic-generated form implementation.
** **
** If you want to add, delete, or rename functions or slots, use ** If you want to add, delete, or rename functions or slots, use
** Qt Designer to update this file, preserving your code. ** TQt Designer to update this file, preserving your code.
** **
** You should not define a constructor or destructor in this file. ** You should not define a constructor or destructor in this file.
** Instead, write your code in functions called init() and destroy(). ** Instead, write your code in functions called init() and destroy().
@ -187,7 +187,7 @@ void KbfxConfigDlgLayout::KbfxLayoutProperty_activated( int index )
break; break;
} }
default: /* default action switch does nothing */ default: /* default action switch does nothing */
kdDebug() << "Default action switch for saving layout changed..." << endl; kdDebug() << "Default action switch for saving tqlayout changed..." << endl;
} }
KbfxShowAll (); KbfxShowAll ();
@ -205,14 +205,14 @@ void KbfxConfigDlgLayout::KbfxLayoutProperty_activated( int index )
textLabel8->setText ( tr2i18n ( "Face Box Width" ) ); textLabel8->setText ( tr2i18n ( "Face Box Width" ) );
checkBox1->setText ( tr2i18n ( "Hide User Name" ) ); checkBox1->setText ( tr2i18n ( "Hide User Name" ) );
checkBox2->hide(); checkBox2->hide();
lineEdit1->setText ( QString::number ( ConfigInit().m_facePos_x ) ); lineEdit1->setText ( TQString::number ( ConfigInit().m_facePos_x ) );
lineEdit2->setText ( QString::number ( ConfigInit().m_facePos_y ) ); lineEdit2->setText ( TQString::number ( ConfigInit().m_facePos_y ) );
lineEdit3->setText ( QString::number ( ConfigInit().m_userNamePos_x ) ); lineEdit3->setText ( TQString::number ( ConfigInit().m_userNamePos_x ) );
lineEdit4->setText ( QString::number ( ConfigInit().m_userNamePos_y ) ); lineEdit4->setText ( TQString::number ( ConfigInit().m_userNamePos_y ) );
lineEdit5->setText ( QString::number ( ConfigInit().m_faceIconX ) ); lineEdit5->setText ( TQString::number ( ConfigInit().m_faceIconX ) );
lineEdit6->setText ( QString::number ( ConfigInit().m_faceIconY ) ); lineEdit6->setText ( TQString::number ( ConfigInit().m_faceIconY ) );
lineEdit7->setText ( QString::number ( ConfigInit().m_faceIconH ) ); lineEdit7->setText ( TQString::number ( ConfigInit().m_faceIconH ) );
lineEdit8->setText ( QString::number ( ConfigInit().m_faceIconW ) ); lineEdit8->setText ( TQString::number ( ConfigInit().m_faceIconW ) );
checkBox1->setChecked ( ConfigInit().m_faceBoxHideText ); checkBox1->setChecked ( ConfigInit().m_faceBoxHideText );
previous_state = 0; previous_state = 0;
break; break;
@ -233,15 +233,15 @@ void KbfxConfigDlgLayout::KbfxLayoutProperty_activated( int index )
textLabel8->hide(); textLabel8->hide();
checkBox1->hide(); checkBox1->hide();
checkBox2->hide(); checkBox2->hide();
// lineEdit1->setText ( QString::number ( ConfigInit().m_topBar_x ) ); // lineEdit1->setText ( TQString::number ( ConfigInit().m_topBar_x ) );
// lineEdit2->setText ( QString::number ( ConfigInit().m_topBar_y ) ); // lineEdit2->setText ( TQString::number ( ConfigInit().m_topBar_y ) );
lineEdit1->setText ( QString::number ( ConfigInit().m_topBar_h ) ); lineEdit1->setText ( TQString::number ( ConfigInit().m_topBar_h ) );
lineEdit2->hide(); lineEdit2->hide();
lineEdit3->hide(); lineEdit3->hide();
lineEdit4->hide(); lineEdit4->hide();
// lineEdit5->setText ( QString::number ( ConfigInit().m_topBar_h ) ); // lineEdit5->setText ( TQString::number ( ConfigInit().m_topBar_h ) );
// lineEdit6->setText ( QString::number ( ConfigInit().m_topBar_w ) ); // lineEdit6->setText ( TQString::number ( ConfigInit().m_topBar_w ) );
lineEdit5->setText ( QString::number ( ConfigInit().m_topBar_w ) ); lineEdit5->setText ( TQString::number ( ConfigInit().m_topBar_w ) );
lineEdit6->hide(); lineEdit6->hide();
lineEdit7->hide(); lineEdit7->hide();
lineEdit8->hide(); lineEdit8->hide();
@ -264,15 +264,15 @@ void KbfxConfigDlgLayout::KbfxLayoutProperty_activated( int index )
textLabel8->hide(); textLabel8->hide();
checkBox1->hide(); checkBox1->hide();
checkBox2->hide(); checkBox2->hide();
// lineEdit1->setText ( QString::number ( ConfigInit().m_botBar_x ) ); // lineEdit1->setText ( TQString::number ( ConfigInit().m_botBar_x ) );
// lineEdit2->setText ( QString::number ( ConfigInit().m_botBar_y ) ); // lineEdit2->setText ( TQString::number ( ConfigInit().m_botBar_y ) );
lineEdit1->setText ( QString::number ( ConfigInit().m_botBar_h ) ); lineEdit1->setText ( TQString::number ( ConfigInit().m_botBar_h ) );
lineEdit2->hide(); lineEdit2->hide();
lineEdit3->hide(); lineEdit3->hide();
lineEdit4->hide(); lineEdit4->hide();
// lineEdit5->setText ( QString::number ( ConfigInit().m_botBar_h ) ); // lineEdit5->setText ( TQString::number ( ConfigInit().m_botBar_h ) );
// lineEdit6->setText ( QString::number ( ConfigInit().m_botBar_w ) ); // lineEdit6->setText ( TQString::number ( ConfigInit().m_botBar_w ) );
lineEdit5->setText ( QString::number ( ConfigInit().m_botBar_w ) ); lineEdit5->setText ( TQString::number ( ConfigInit().m_botBar_w ) );
lineEdit6->hide(); lineEdit6->hide();
lineEdit7->hide(); lineEdit7->hide();
lineEdit8->hide(); lineEdit8->hide();
@ -293,12 +293,12 @@ void KbfxConfigDlgLayout::KbfxLayoutProperty_activated( int index )
textLabel8->hide(); textLabel8->hide();
checkBox1->hide(); checkBox1->hide();
checkBox2->hide(); checkBox2->hide();
lineEdit1->setText ( QString::number ( ConfigInit().m_scrollBarTopX ) ); lineEdit1->setText ( TQString::number ( ConfigInit().m_scrollBarTopX ) );
lineEdit2->setText ( QString::number ( ConfigInit().m_scrollBarTopY ) ); lineEdit2->setText ( TQString::number ( ConfigInit().m_scrollBarTopY ) );
lineEdit3->hide(); lineEdit3->hide();
lineEdit4->hide(); lineEdit4->hide();
lineEdit5->setText ( QString::number ( ConfigInit().m_scrollBarBotX ) ); lineEdit5->setText ( TQString::number ( ConfigInit().m_scrollBarBotX ) );
lineEdit6->setText ( QString::number ( ConfigInit().m_scrollBarBotY ) ); lineEdit6->setText ( TQString::number ( ConfigInit().m_scrollBarBotY ) );
lineEdit7->hide(); lineEdit7->hide();
lineEdit8->hide(); lineEdit8->hide();
previous_state = 3; previous_state = 3;
@ -318,12 +318,12 @@ void KbfxConfigDlgLayout::KbfxLayoutProperty_activated( int index )
textLabel8->hide(); textLabel8->hide();
checkBox1->hide(); checkBox1->hide();
checkBox2->hide(); checkBox2->hide();
lineEdit1->setText ( QString::number ( ConfigInit().m_listBox_x ) ); lineEdit1->setText ( TQString::number ( ConfigInit().m_listBox_x ) );
lineEdit2->setText ( QString::number ( ConfigInit().m_listBox_y ) ); lineEdit2->setText ( TQString::number ( ConfigInit().m_listBox_y ) );
lineEdit3->hide(); lineEdit3->hide();
lineEdit4->hide(); lineEdit4->hide();
lineEdit5->setText ( QString::number ( ConfigInit().m_listBox_h ) ); lineEdit5->setText ( TQString::number ( ConfigInit().m_listBox_h ) );
lineEdit6->setText ( QString::number ( ConfigInit().m_listBox_w ) ); lineEdit6->setText ( TQString::number ( ConfigInit().m_listBox_w ) );
lineEdit7->hide(); lineEdit7->hide();
lineEdit8->hide(); lineEdit8->hide();
previous_state = 3; previous_state = 3;
@ -341,12 +341,12 @@ void KbfxConfigDlgLayout::KbfxLayoutProperty_activated( int index )
textLabel8->hide(); textLabel8->hide();
checkBox1->hide(); checkBox1->hide();
checkBox2->hide(); checkBox2->hide();
lineEdit1->setText ( QString::number ( ConfigInit().m_searchBox_x ) ); lineEdit1->setText ( TQString::number ( ConfigInit().m_searchBox_x ) );
lineEdit2->setText ( QString::number ( ConfigInit().m_searchBox_y ) ); lineEdit2->setText ( TQString::number ( ConfigInit().m_searchBox_y ) );
lineEdit3->hide(); lineEdit3->hide();
lineEdit4->hide(); lineEdit4->hide();
lineEdit5->setText ( QString::number ( ConfigInit().m_searchBox_h ) ); lineEdit5->setText ( TQString::number ( ConfigInit().m_searchBox_h ) );
lineEdit6->setText ( QString::number ( ConfigInit().m_searchBox_w ) ); lineEdit6->setText ( TQString::number ( ConfigInit().m_searchBox_w ) );
lineEdit7->hide(); lineEdit7->hide();
lineEdit8->hide(); lineEdit8->hide();
previous_state = 4; previous_state = 4;
@ -364,13 +364,13 @@ void KbfxConfigDlgLayout::KbfxLayoutProperty_activated( int index )
textLabel8->hide(); textLabel8->hide();
checkBox1->setText ( tr2i18n ( "No Comments in Item" ) ); checkBox1->setText ( tr2i18n ( "No Comments in Item" ) );
checkBox2->hide(); checkBox2->hide();
lineEdit1->setText ( QString::number ( ConfigInit().m_itemView_x ) ); lineEdit1->setText ( TQString::number ( ConfigInit().m_itemView_x ) );
lineEdit2->setText ( QString::number ( ConfigInit().m_itemView_y ) ); lineEdit2->setText ( TQString::number ( ConfigInit().m_itemView_y ) );
lineEdit3->setText ( QString::number ( ConfigInit().m_iconSize ) ); lineEdit3->setText ( TQString::number ( ConfigInit().m_iconSize ) );
lineEdit4->hide(); lineEdit4->hide();
lineEdit5->setText ( QString::number ( ConfigInit().m_itemView_h ) ); lineEdit5->setText ( TQString::number ( ConfigInit().m_itemView_h ) );
lineEdit6->setText ( QString::number ( ConfigInit().m_itemView_w ) ); lineEdit6->setText ( TQString::number ( ConfigInit().m_itemView_w ) );
lineEdit7->setText ( QString::number ( ConfigInit().m_commentMargine ) ); lineEdit7->setText ( TQString::number ( ConfigInit().m_commentMargine ) );
lineEdit8->hide(); lineEdit8->hide();
checkBox1->setChecked ( ConfigInit().m_noComments ); checkBox1->setChecked ( ConfigInit().m_noComments );
previous_state = 5; previous_state = 5;
@ -389,11 +389,11 @@ void KbfxConfigDlgLayout::KbfxLayoutProperty_activated( int index )
textLabel8->hide(); textLabel8->hide();
checkBox1->hide(); checkBox1->hide();
checkBox2->hide(); checkBox2->hide();
lineEdit1->setText ( QString::number ( ConfigInit().m_toolBarButtonNormalSize ) ); lineEdit1->setText ( TQString::number ( ConfigInit().m_toolBarButtonNormalSize ) );
lineEdit2->hide(); lineEdit2->hide();
lineEdit3->hide(); lineEdit3->hide();
lineEdit4->hide(); lineEdit4->hide();
lineEdit5->setText ( QString::number ( ConfigInit().m_toolBarButtonExpandSize ) ); lineEdit5->setText ( TQString::number ( ConfigInit().m_toolBarButtonExpandSize ) );
lineEdit6->hide(); lineEdit6->hide();
lineEdit7->hide(); lineEdit7->hide();
lineEdit8->hide(); lineEdit8->hide();
@ -413,11 +413,11 @@ void KbfxConfigDlgLayout::KbfxLayoutProperty_activated( int index )
textLabel8->hide(); textLabel8->hide();
checkBox1->setText ( tr2i18n ( "Contracted Menues" ) ); checkBox1->setText ( tr2i18n ( "Contracted Menues" ) );
checkBox2->hide(); checkBox2->hide();
lineEdit1->setText ( QString::number ( ConfigInit().m_userMenuHeight ) ); lineEdit1->setText ( TQString::number ( ConfigInit().m_userMenuHeight ) );
lineEdit2->hide(); lineEdit2->hide();
lineEdit3->hide(); lineEdit3->hide();
lineEdit4->hide(); lineEdit4->hide();
lineEdit5->setText ( QString::number ( ConfigInit().m_userMenuWidth ) ); lineEdit5->setText ( TQString::number ( ConfigInit().m_userMenuWidth ) );
lineEdit6->hide(); lineEdit6->hide();
lineEdit7->hide(); lineEdit7->hide();
lineEdit8->hide(); lineEdit8->hide();
@ -426,7 +426,7 @@ void KbfxConfigDlgLayout::KbfxLayoutProperty_activated( int index )
break; break;
} }
default: /* default action switch should never be reached */ default: /* default action switch should never be reached */
kdDebug() << "Default action switch for layout changed..." << endl; kdDebug() << "Default action switch for tqlayout changed..." << endl;
} }
} }
@ -454,100 +454,100 @@ void KbfxConfigDlgLayout::KbfxShowAll()
void KbfxConfigDlgLayout::KbfxExportFileAction() void KbfxConfigDlgLayout::KbfxExportFileAction()
{ {
QString KbfxExportLayoutRcDialogURL = KFileDialog::getExistingDirectory ( TQString KbfxExportLayoutRcDialogURL = KFileDialog::getExistingDirectory (
QString::null, TQString(),
0, 0,
tr2i18n ( "Select folder to export kbfxlayoutrc file" ) ).append ( "/kbfxlayoutrc" ); tr2i18n ( "Select folder to export kbfxtqlayoutrc file" ) ).append ( "/kbfxtqlayoutrc" );
if ( KbfxExportLayoutRcDialogURL == "/kbfxlayoutrc") return; if ( KbfxExportLayoutRcDialogURL == "/kbfxtqlayoutrc") return;
kdDebug() << "Selected export file is: " kdDebug() << "Selected export file is: "
<< KbfxExportLayoutRcDialogURL << KbfxExportLayoutRcDialogURL
<< endl; << endl;
/* write layout theme configuration file */ /* write tqlayout theme configuration file */
KConfig *layoutconfig = new KConfig ( KbfxExportLayoutRcDialogURL ); KConfig *tqlayoutconfig = new KConfig ( KbfxExportLayoutRcDialogURL );
layoutconfig->setGroup ( "KbfxButton" ); tqlayoutconfig->setGroup ( "KbfxButton" );
layoutconfig->writeEntry ( "FadeTime", ConfigInit().m_fadeTime ); tqlayoutconfig->writeEntry ( "FadeTime", ConfigInit().m_fadeTime );
/* /*
// No need for this to be exported because it is user/installation specific // No need for this to be exported because it is user/installation specific
layoutconfig->writeEntry ( "Normal", ConfigInit().m_KbfxNormalButtonPath ); tqlayoutconfig->writeEntry ( "Normal", ConfigInit().m_KbfxNormalButtonPath );
layoutconfig->writeEntry ( "Hover", ConfigInit().m_KbfxHoverButtonPath ); tqlayoutconfig->writeEntry ( "Hover", ConfigInit().m_KbfxHoverButtonPath );
layoutconfig->writeEntry ( "Press", ConfigInit().m_KbfxPressedButtonPath ); tqlayoutconfig->writeEntry ( "Press", ConfigInit().m_KbfxPressedButtonPath );
layoutconfig->setGroup ( "ToolTip" ); tqlayoutconfig->setGroup ( "ToolTip" );
layoutconfig->writeEntry ( "Avatar", m_ToolTipAvatar ); tqlayoutconfig->writeEntry ( "Avatar", m_ToolTipAvatar );
layoutconfig->writeEntry ( "Dudebox", m_SpinxTooltipDudebox ); tqlayoutconfig->writeEntry ( "Dudebox", m_SpinxTooltipDudebox );
layoutconfig->writeEntry ( "Mask", m_SpinxTooltipMask ); tqlayoutconfig->writeEntry ( "Mask", m_SpinxTooltipMask );
layoutconfig->writeEntry ( "Window", m_SpinxTooltipWindow ); tqlayoutconfig->writeEntry ( "Window", m_SpinxTooltipWindow );
layoutconfig->writeEntry ( "Logo", m_SpinxTooltipLogo ); tqlayoutconfig->writeEntry ( "Logo", m_SpinxTooltipLogo );
*/ */
layoutconfig->setGroup ( "TopBar" ); tqlayoutconfig->setGroup ( "TopBar" );
layoutconfig->writeEntry ( "DudeX", ConfigInit().m_facePos_x ); tqlayoutconfig->writeEntry ( "DudeX", ConfigInit().m_facePos_x );
layoutconfig->writeEntry ( "DudeY", ConfigInit().m_facePos_y ); tqlayoutconfig->writeEntry ( "DudeY", ConfigInit().m_facePos_y );
layoutconfig->writeEntry ( "FaceX", ConfigInit().m_faceIconX ); tqlayoutconfig->writeEntry ( "FaceX", ConfigInit().m_faceIconX );
layoutconfig->writeEntry ( "FaceY", ConfigInit().m_faceIconY ); tqlayoutconfig->writeEntry ( "FaceY", ConfigInit().m_faceIconY );
layoutconfig->writeEntry ( "FaceH", ConfigInit().m_faceIconH ); tqlayoutconfig->writeEntry ( "FaceH", ConfigInit().m_faceIconH );
layoutconfig->writeEntry ( "FaceW", ConfigInit().m_faceIconW ); tqlayoutconfig->writeEntry ( "FaceW", ConfigInit().m_faceIconW );
layoutconfig->writeEntry ( "UserNameX", ConfigInit().m_userNamePos_x ); tqlayoutconfig->writeEntry ( "UserNameX", ConfigInit().m_userNamePos_x );
layoutconfig->writeEntry ( "UserNameY", ConfigInit().m_userNamePos_y ); tqlayoutconfig->writeEntry ( "UserNameY", ConfigInit().m_userNamePos_y );
layoutconfig->writeEntry ( "DisableUserName", ConfigInit().m_faceBoxHideText ); tqlayoutconfig->writeEntry ( "DisableUserName", ConfigInit().m_faceBoxHideText );
layoutconfig->writeEntry ( "Height", ConfigInit().m_topBar_h ); tqlayoutconfig->writeEntry ( "Height", ConfigInit().m_topBar_h );
layoutconfig->writeEntry ( "Width", ConfigInit().m_topBar_w ); tqlayoutconfig->writeEntry ( "Width", ConfigInit().m_topBar_w );
layoutconfig->writeEntry ( "X", ConfigInit().m_topBar_x ); tqlayoutconfig->writeEntry ( "X", ConfigInit().m_topBar_x );
layoutconfig->writeEntry ( "Y", ConfigInit().m_topBar_y ); tqlayoutconfig->writeEntry ( "Y", ConfigInit().m_topBar_y );
layoutconfig->setGroup ( "BottomBar" ); tqlayoutconfig->setGroup ( "BottomBar" );
layoutconfig->writeEntry ( "Height", ConfigInit().m_botBar_h ); tqlayoutconfig->writeEntry ( "Height", ConfigInit().m_botBar_h );
layoutconfig->writeEntry ( "Width", ConfigInit().m_botBar_w ); tqlayoutconfig->writeEntry ( "Width", ConfigInit().m_botBar_w );
layoutconfig->writeEntry ( "X", ConfigInit().m_botBar_x ); tqlayoutconfig->writeEntry ( "X", ConfigInit().m_botBar_x );
layoutconfig->writeEntry ( "Y", ConfigInit().m_botBar_y ); tqlayoutconfig->writeEntry ( "Y", ConfigInit().m_botBar_y );
layoutconfig->setGroup ( "Scrollbars" ); tqlayoutconfig->setGroup ( "Scrollbars" );
layoutconfig->writeEntry ( "ScrollBarBotX", ConfigInit().m_scrollBarBotX ); tqlayoutconfig->writeEntry ( "ScrollBarBotX", ConfigInit().m_scrollBarBotX );
layoutconfig->writeEntry ( "ScrollBarBotY", ConfigInit().m_scrollBarBotY ); tqlayoutconfig->writeEntry ( "ScrollBarBotY", ConfigInit().m_scrollBarBotY );
layoutconfig->writeEntry ( "ScrollBarTopX", ConfigInit().m_scrollBarTopX ); tqlayoutconfig->writeEntry ( "ScrollBarTopX", ConfigInit().m_scrollBarTopX );
layoutconfig->writeEntry ( "ScrollBarTopY", ConfigInit().m_scrollBarTopY ); tqlayoutconfig->writeEntry ( "ScrollBarTopY", ConfigInit().m_scrollBarTopY );
layoutconfig->setGroup ( "ListBox" ); tqlayoutconfig->setGroup ( "ListBox" );
layoutconfig->writeEntry ( "Height", ConfigInit().m_listBox_h ); tqlayoutconfig->writeEntry ( "Height", ConfigInit().m_listBox_h );
layoutconfig->writeEntry ( "Width", ConfigInit().m_listBox_w ); tqlayoutconfig->writeEntry ( "Width", ConfigInit().m_listBox_w );
layoutconfig->writeEntry ( "X", ConfigInit().m_listBox_x ); tqlayoutconfig->writeEntry ( "X", ConfigInit().m_listBox_x );
layoutconfig->writeEntry ( "Y", ConfigInit().m_listBox_y ); tqlayoutconfig->writeEntry ( "Y", ConfigInit().m_listBox_y );
layoutconfig->setGroup ( "SearchBox" ); tqlayoutconfig->setGroup ( "SearchBox" );
layoutconfig->writeEntry ( "Height", ConfigInit().m_searchBox_h ); tqlayoutconfig->writeEntry ( "Height", ConfigInit().m_searchBox_h );
layoutconfig->writeEntry ( "Width", ConfigInit().m_searchBox_w ); tqlayoutconfig->writeEntry ( "Width", ConfigInit().m_searchBox_w );
layoutconfig->writeEntry ( "X", ConfigInit().m_searchBox_x ); tqlayoutconfig->writeEntry ( "X", ConfigInit().m_searchBox_x );
layoutconfig->writeEntry ( "Y", ConfigInit().m_searchBox_y ); tqlayoutconfig->writeEntry ( "Y", ConfigInit().m_searchBox_y );
layoutconfig->writeEntry ( "FixedPos", ConfigInit().m_searchBox_static ); tqlayoutconfig->writeEntry ( "FixedPos", ConfigInit().m_searchBox_static );
layoutconfig->setGroup ( "ItemView" ); tqlayoutconfig->setGroup ( "ItemView" );
layoutconfig->writeEntry ( "Height", ConfigInit().m_itemView_h ); tqlayoutconfig->writeEntry ( "Height", ConfigInit().m_itemView_h );
layoutconfig->writeEntry ( "Width", ConfigInit().m_itemView_w ); tqlayoutconfig->writeEntry ( "Width", ConfigInit().m_itemView_w );
layoutconfig->writeEntry ( "X", ConfigInit().m_itemView_x ); tqlayoutconfig->writeEntry ( "X", ConfigInit().m_itemView_x );
layoutconfig->writeEntry ( "Y", ConfigInit().m_itemView_y ); tqlayoutconfig->writeEntry ( "Y", ConfigInit().m_itemView_y );
layoutconfig->setGroup ( "ToolBar" ); tqlayoutconfig->setGroup ( "ToolBar" );
layoutconfig->writeEntry ( "ButtonNormalSize", ConfigInit().m_toolBarButtonNormalSize ); tqlayoutconfig->writeEntry ( "ButtonNormalSize", ConfigInit().m_toolBarButtonNormalSize );
layoutconfig->writeEntry ( "ButtonPressedSize", ConfigInit().m_toolBarButtonExpandSize ); tqlayoutconfig->writeEntry ( "ButtonPressedSize", ConfigInit().m_toolBarButtonExpandSize );
layoutconfig->setGroup ( "MainMenu" ); tqlayoutconfig->setGroup ( "MainMenu" );
layoutconfig->writeEntry ( "UserMenuHeight", ConfigInit().m_userMenuHeight ); tqlayoutconfig->writeEntry ( "UserMenuHeight", ConfigInit().m_userMenuHeight );
layoutconfig->writeEntry ( "UserMenuWidth", ConfigInit().m_userMenuWidth ); tqlayoutconfig->writeEntry ( "UserMenuWidth", ConfigInit().m_userMenuWidth );
layoutconfig->writeEntry ( "ContractedMenu", ConfigInit().m_startHidden ); tqlayoutconfig->writeEntry ( "ContractedMenu", ConfigInit().m_startHidden );
layoutconfig->setGroup ( "ItemProperties" ); tqlayoutconfig->setGroup ( "ItemProperties" );
layoutconfig->writeEntry ( "NoComments", ConfigInit().m_noComments ); tqlayoutconfig->writeEntry ( "NoComments", ConfigInit().m_noComments );
layoutconfig->writeEntry ( "CommentMargin", ConfigInit().m_commentMargine ); tqlayoutconfig->writeEntry ( "CommentMargin", ConfigInit().m_commentMargine );
layoutconfig->writeEntry ( "IconSize", ConfigInit().m_iconSize ); tqlayoutconfig->writeEntry ( "IconSize", ConfigInit().m_iconSize );
layoutconfig->sync(); tqlayoutconfig->sync();
delete layoutconfig; delete tqlayoutconfig;
KMessageBox::information ( 0, KMessageBox::information ( 0,
tr2i18n ( "<p align='center'>The Layout configuration of the KBFX Theme <strong>%1</strong> has been exported successfully!</p>" ).arg ( ConfigInit().m_SpinxThemeName ), tr2i18n ( "<p align='center'>The Layout configuration of the KBFX Theme <strong>%1</strong> has been exported successfully!</p>" ).arg ( ConfigInit().m_SpinxThemeName ),

@ -1,13 +1,13 @@
<!DOCTYPE UI><UI version="3.3" stdsetdef="1"> <!DOCTYPE UI><UI version="3.3" stdsetdef="1">
<class>KbfxConfigDlgMain</class> <class>KbfxConfigDlgMain</class>
<widget class="QDialog"> <widget class="TQDialog">
<property name="name"> <property name="name">
<cstring>tb_Main</cstring> <cstring>tb_Main</cstring>
</property> </property>
<property name="enabled"> <property name="enabled">
<bool>true</bool> <bool>true</bool>
</property> </property>
<property name="geometry"> <property name="tqgeometry">
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
@ -42,15 +42,15 @@
<property name="resizeMode"> <property name="resizeMode">
<enum>Minimum</enum> <enum>Minimum</enum>
</property> </property>
<widget class="QLayoutWidget" row="0" column="0"> <widget class="TQLayoutWidget" row="0" column="0">
<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="QListBox"> <widget class="TQListBox">
<item> <item>
<property name="text"> <property name="text">
<string>Start Button</string> <string>Start Button</string>
@ -126,13 +126,13 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="minimumSize"> <property name="tqminimumSize">
<size> <size>
<width>150</width> <width>150</width>
<height>265</height> <height>265</height>
</size> </size>
</property> </property>
<property name="maximumSize"> <property name="tqmaximumSize">
<size> <size>
<width>32767</width> <width>32767</width>
<height>32767</height> <height>32767</height>
@ -160,13 +160,13 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="minimumSize"> <property name="tqminimumSize">
<size> <size>
<width>150</width> <width>150</width>
<height>280</height> <height>280</height>
</size> </size>
</property> </property>
<property name="maximumSize"> <property name="tqmaximumSize">
<size> <size>
<width>32767</width> <width>32767</width>
<height>32767</height> <height>32767</height>
@ -194,9 +194,9 @@
</widget> </widget>
</vbox> </vbox>
</widget> </widget>
<widget class="QLayoutWidget" row="1" column="0" rowspan="1" colspan="2"> <widget class="TQLayoutWidget" row="1" column="0" rowspan="1" colspan="2">
<property name="name"> <property name="name">
<cstring>layout12</cstring> <cstring>tqlayout12</cstring>
</property> </property>
<hbox> <hbox>
<property name="name"> <property name="name">
@ -205,7 +205,7 @@
<property name="margin"> <property name="margin">
<number>2</number> <number>2</number>
</property> </property>
<widget class="QPushButton"> <widget class="TQPushButton">
<property name="name"> <property name="name">
<cstring>btn_Help</cstring> <cstring>btn_Help</cstring>
</property> </property>
@ -236,7 +236,7 @@
<string>Open Help Documentation</string> <string>Open Help Documentation</string>
</property> </property>
</widget> </widget>
<widget class="QPushButton"> <widget class="TQPushButton">
<property name="name"> <property name="name">
<cstring>btn_Default</cstring> <cstring>btn_Default</cstring>
</property> </property>
@ -277,14 +277,14 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>160</width> <width>160</width>
<height>1</height> <height>1</height>
</size> </size>
</property> </property>
</spacer> </spacer>
<widget class="QPushButton"> <widget class="TQPushButton">
<property name="name"> <property name="name">
<cstring>btn_SaveApply</cstring> <cstring>btn_SaveApply</cstring>
</property> </property>
@ -315,7 +315,7 @@
<string>Save the configuration and Apply it</string> <string>Save the configuration and Apply it</string>
</property> </property>
</widget> </widget>
<widget class="QPushButton"> <widget class="TQPushButton">
<property name="name"> <property name="name">
<cstring>btn_Exit</cstring> <cstring>btn_Exit</cstring>
</property> </property>
@ -348,17 +348,17 @@
</widget> </widget>
</hbox> </hbox>
</widget> </widget>
<widget class="QLayoutWidget" row="0" column="1"> <widget class="TQLayoutWidget" row="0" column="1">
<property name="name"> <property name="name">
<cstring>layout5</cstring> <cstring>tqlayout5</cstring>
</property> </property>
<vbox> <vbox>
<property name="name"> <property name="name">
<cstring>unnamed</cstring> <cstring>unnamed</cstring>
</property> </property>
<widget class="QLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>layout3</cstring> <cstring>tqlayout3</cstring>
</property> </property>
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy> <sizepolicy>
@ -378,7 +378,7 @@
<property name="spacing"> <property name="spacing">
<number>0</number> <number>0</number>
</property> </property>
<widget class="QFrame"> <widget class="TQFrame">
<property name="name"> <property name="name">
<cstring>frame4</cstring> <cstring>frame4</cstring>
</property> </property>
@ -390,13 +390,13 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="minimumSize"> <property name="tqminimumSize">
<size> <size>
<width>507</width> <width>507</width>
<height>100</height> <height>100</height>
</size> </size>
</property> </property>
<property name="maximumSize"> <property name="tqmaximumSize">
<size> <size>
<width>32767</width> <width>32767</width>
<height>100</height> <height>100</height>
@ -436,7 +436,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Minimum</enum> <enum>Minimum</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>61</width> <width>61</width>
<height>25</height> <height>25</height>
@ -453,7 +453,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Minimum</enum> <enum>Minimum</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>16</width> <width>16</width>
<height>16</height> <height>16</height>
@ -470,14 +470,14 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>56</width> <width>56</width>
<height>7</height> <height>7</height>
</size> </size>
</property> </property>
</spacer> </spacer>
<widget class="QLabel" row="1" column="1"> <widget class="TQLabel" row="1" column="1">
<property name="name"> <property name="name">
<cstring>KbfxLogoText</cstring> <cstring>KbfxLogoText</cstring>
</property> </property>
@ -501,7 +501,7 @@
</widget> </widget>
</grid> </grid>
</widget> </widget>
<widget class="QFrame"> <widget class="TQFrame">
<property name="name"> <property name="name">
<cstring>frame3</cstring> <cstring>frame3</cstring>
</property> </property>
@ -513,13 +513,13 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="minimumSize"> <property name="tqminimumSize">
<size> <size>
<width>114</width> <width>114</width>
<height>100</height> <height>100</height>
</size> </size>
</property> </property>
<property name="maximumSize"> <property name="tqmaximumSize">
<size> <size>
<width>114</width> <width>114</width>
<height>100</height> <height>100</height>
@ -537,7 +537,7 @@
</widget> </widget>
</hbox> </hbox>
</widget> </widget>
<widget class="QWidgetStack"> <widget class="TQWidgetStack">
<property name="name"> <property name="name">
<cstring>ws_Main</cstring> <cstring>ws_Main</cstring>
</property> </property>
@ -549,7 +549,7 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="maximumSize"> <property name="tqmaximumSize">
<size> <size>
<width>32767</width> <width>32767</width>
<height>32767</height> <height>32767</height>
@ -640,10 +640,10 @@
</tabstops> </tabstops>
<includes> <includes>
<include location="global" impldecl="in declaration">kdebug.h</include> <include location="global" impldecl="in declaration">kdebug.h</include>
<include location="global" impldecl="in declaration">qstring.h</include> <include location="global" impldecl="in declaration">tqstring.h</include>
<include location="global" impldecl="in declaration">qpainter.h</include> <include location="global" impldecl="in declaration">tqpainter.h</include>
<include location="global" impldecl="in declaration">qimage.h</include> <include location="global" impldecl="in declaration">tqimage.h</include>
<include location="global" impldecl="in declaration">qpixmap.h</include> <include location="global" impldecl="in declaration">tqpixmap.h</include>
<include location="global" impldecl="in declaration">kmessagebox.h</include> <include location="global" impldecl="in declaration">kmessagebox.h</include>
<include location="local" impldecl="in implementation">kbfxconfigdlgmain.ui.h</include> <include location="local" impldecl="in implementation">kbfxconfigdlgmain.ui.h</include>
</includes> </includes>
@ -657,13 +657,13 @@
<variable access="public">QPixmap img_plugins;</variable> <variable access="public">QPixmap img_plugins;</variable>
<variable access="public">QPixmap img_about;</variable> <variable access="public">QPixmap img_about;</variable>
</variables> </variables>
<signals> <Q_SIGNALS>
<signal>KbfxConfigDlgButtonChanged(const char * name, const QString &amp; path)</signal> <signal>KbfxConfigDlgButtonChanged(const char * name, const QString &amp; path)</signal>
</signals> </Q_SIGNALS>
<functions> <functions>
<function access="private" specifier="non virtual">init()</function> <function access="private" specifier="non virtual">init()</function>
</functions> </functions>
<layoutdefaults spacing="10" margin="10"/> <tqlayoutdefaults spacing="10" margin="10"/>
<includehints> <includehints>
<includehint>kactivelabel.h</includehint> <includehint>kactivelabel.h</includehint>
</includehints> </includehints>

@ -2,7 +2,7 @@
** ui.h extension file, included from the uic-generated form implementation. ** ui.h extension file, included from the uic-generated form implementation.
** **
** If you want to add, delete, or rename functions or slots, use ** If you want to add, delete, or rename functions or slots, use
** Qt Designer to update this file, preserving your code. ** TQt Designer to update this file, preserving your code.
** **
** You should not define a constructor or destructor in this file. ** You should not define a constructor or destructor in this file.
** Instead, write your code in functions called init() and destroy(). ** Instead, write your code in functions called init() and destroy().

@ -1,10 +1,10 @@
<!DOCTYPE UI><UI version="3.3" stdsetdef="1"> <!DOCTYPE UI><UI version="3.3" stdsetdef="1">
<class>KbfxConfigDlgPlugins</class> <class>KbfxConfigDlgPlugins</class>
<widget class="QWidget"> <widget class="TQWidget">
<property name="name"> <property name="name">
<cstring>KbfxConfigDlgPlugins</cstring> <cstring>KbfxConfigDlgPlugins</cstring>
</property> </property>
<property name="geometry"> <property name="tqgeometry">
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
@ -48,13 +48,13 @@
<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>29</height> <height>29</height>
</size> </size>
</property> </property>
<property name="maximumSize"> <property name="tqmaximumSize">
<size> <size>
<width>32767</width> <width>32767</width>
<height>29</height> <height>29</height>
@ -80,7 +80,7 @@
<string>&lt;b&gt;&lt;h3&gt;&lt;p align="center"&gt;Plugins options&lt;/p&gt;&lt;/h3&gt;&lt;/b&gt;</string> <string>&lt;b&gt;&lt;h3&gt;&lt;p align="center"&gt;Plugins options&lt;/p&gt;&lt;/h3&gt;&lt;/b&gt;</string>
</property> </property>
</widget> </widget>
<widget class="QGroupBox" row="2" column="0" rowspan="1" colspan="3"> <widget class="TQGroupBox" row="2" column="0" rowspan="1" colspan="3">
<property name="name"> <property name="name">
<cstring>KbfxSelectPanel</cstring> <cstring>KbfxSelectPanel</cstring>
</property> </property>
@ -114,7 +114,7 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="maximumSize"> <property name="tqmaximumSize">
<size> <size>
<width>32767</width> <width>32767</width>
<height>44</height> <height>44</height>
@ -130,7 +130,7 @@
<string>Plugin to configure</string> <string>Plugin to configure</string>
</property> </property>
</widget> </widget>
<widget class="QLabel" row="0" column="0"> <widget class="TQLabel" row="0" column="0">
<property name="name"> <property name="name">
<cstring>textLabel1</cstring> <cstring>textLabel1</cstring>
</property> </property>
@ -142,7 +142,7 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="maximumSize"> <property name="tqmaximumSize">
<size> <size>
<width>32767</width> <width>32767</width>
<height>44</height> <height>44</height>
@ -179,9 +179,9 @@
<enum>SmallIcon</enum> <enum>SmallIcon</enum>
</property> </property>
</widget> </widget>
<widget class="QLayoutWidget" row="3" column="2"> <widget class="TQLayoutWidget" row="3" column="2">
<property name="name"> <property name="name">
<cstring>layout3</cstring> <cstring>tqlayout3</cstring>
</property> </property>
<vbox> <vbox>
<property name="name"> <property name="name">
@ -197,14 +197,14 @@
<property name="sizeType"> <property name="sizeType">
<enum>MinimumExpanding</enum> <enum>MinimumExpanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>1</width> <width>1</width>
<height>1</height> <height>1</height>
</size> </size>
</property> </property>
</spacer> </spacer>
<widget class="QPushButton"> <widget class="TQPushButton">
<property name="name"> <property name="name">
<cstring>KbfxConfigurePluginButton</cstring> <cstring>KbfxConfigurePluginButton</cstring>
</property> </property>
@ -232,7 +232,7 @@
<string>Configure the selected plugin</string> <string>Configure the selected plugin</string>
</property> </property>
</widget> </widget>
<widget class="QPushButton"> <widget class="TQPushButton">
<property name="name"> <property name="name">
<cstring>KbfxPluginInfoButton</cstring> <cstring>KbfxPluginInfoButton</cstring>
</property> </property>
@ -270,7 +270,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>MinimumExpanding</enum> <enum>MinimumExpanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>1</width> <width>1</width>
<height>1</height> <height>1</height>
@ -289,7 +289,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Minimum</enum> <enum>Minimum</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>1</width> <width>1</width>
<height>1</height> <height>1</height>
@ -326,27 +326,27 @@
</connection> </connection>
<connection> <connection>
<sender>KbfxPluginSelector</sender> <sender>KbfxPluginSelector</sender>
<signal>movedDown(QListBoxItem*)</signal> <signal>movedDown(TQListBoxItem*)</signal>
<receiver>KbfxConfigDlgPlugins</receiver> <receiver>KbfxConfigDlgPlugins</receiver>
<slot>KbfxPluginSelector_movedDown(QListBoxItem*)</slot> <slot>KbfxPluginSelector_movedDown(TQListBoxItem*)</slot>
</connection> </connection>
<connection> <connection>
<sender>KbfxPluginSelector</sender> <sender>KbfxPluginSelector</sender>
<signal>movedUp(QListBoxItem*)</signal> <signal>movedUp(TQListBoxItem*)</signal>
<receiver>KbfxConfigDlgPlugins</receiver> <receiver>KbfxConfigDlgPlugins</receiver>
<slot>KbfxPluginSelector_movedUp(QListBoxItem*)</slot> <slot>KbfxPluginSelector_movedUp(TQListBoxItem*)</slot>
</connection> </connection>
<connection> <connection>
<sender>KbfxPluginSelector</sender> <sender>KbfxPluginSelector</sender>
<signal>removed(QListBoxItem*)</signal> <signal>removed(TQListBoxItem*)</signal>
<receiver>KbfxConfigDlgPlugins</receiver> <receiver>KbfxConfigDlgPlugins</receiver>
<slot>KbfxPluginSelector_removed(QListBoxItem*)</slot> <slot>KbfxPluginSelector_removed(TQListBoxItem*)</slot>
</connection> </connection>
<connection> <connection>
<sender>KbfxPluginSelector</sender> <sender>KbfxPluginSelector</sender>
<signal>added(QListBoxItem*)</signal> <signal>added(TQListBoxItem*)</signal>
<receiver>KbfxConfigDlgPlugins</receiver> <receiver>KbfxConfigDlgPlugins</receiver>
<slot>KbfxPluginSelector_added(QListBoxItem*)</slot> <slot>KbfxPluginSelector_added(TQListBoxItem*)</slot>
</connection> </connection>
</connections> </connections>
<tabstops> <tabstops>
@ -359,29 +359,29 @@
<include location="global" impldecl="in declaration">kbfxthemesdata.h</include> <include location="global" impldecl="in declaration">kbfxthemesdata.h</include>
<include location="global" impldecl="in declaration">kbfxconfig.h</include> <include location="global" impldecl="in declaration">kbfxconfig.h</include>
<include location="global" impldecl="in declaration">kdebug.h</include> <include location="global" impldecl="in declaration">kdebug.h</include>
<include location="global" impldecl="in declaration">qstringlist.h</include> <include location="global" impldecl="in declaration">tqstringlist.h</include>
<include location="global" impldecl="in declaration">kstandarddirs.h</include> <include location="global" impldecl="in declaration">kstandarddirs.h</include>
<include location="global" impldecl="in declaration">kmessagebox.h</include> <include location="global" impldecl="in declaration">kmessagebox.h</include>
<include location="global" impldecl="in declaration">qlistbox.h</include> <include location="global" impldecl="in declaration">tqlistbox.h</include>
<include location="global" impldecl="in declaration">kbfxplasmapluginloader.h</include> <include location="global" impldecl="in declaration">kbfxplasmapluginloader.h</include>
<include location="local" impldecl="in implementation">kbfxconfigdlgplugins.ui.h</include> <include location="local" impldecl="in implementation">kbfxconfigdlgplugins.ui.h</include>
</includes> </includes>
<slots> <Q_SLOTS>
<slot>ChangeForm()</slot> <slot>ChangeForm()</slot>
<slot>KbfxConfigurePluginButton_clicked()</slot> <slot>KbfxConfigurePluginButton_clicked()</slot>
<slot>KbfxPluginInfoButton_clicked()</slot> <slot>KbfxPluginInfoButton_clicked()</slot>
<slot>KbfxPanelSelected( int _sel )</slot> <slot>KbfxPanelSelected( int _sel )</slot>
<slot>KbfxPluginSelector_movedDown( QListBoxItem * )</slot> <slot>KbfxPluginSelector_movedDown( TQListBoxItem * )</slot>
<slot>KbfxPluginSelector_movedUp( QListBoxItem * )</slot> <slot>KbfxPluginSelector_movedUp( TQListBoxItem * )</slot>
<slot>KbfxPluginSelector_removed( QListBoxItem * )</slot> <slot>KbfxPluginSelector_removed( TQListBoxItem * )</slot>
<slot>KbfxPluginSelector_added( QListBoxItem * )</slot> <slot>KbfxPluginSelector_added( TQListBoxItem * )</slot>
</slots> </Q_SLOTS>
<functions> <functions>
<function access="private" specifier="non virtual">init()</function> <function access="private" specifier="non virtual">init()</function>
<function access="private" returnType="QStringList">KbfxListPlugins( int panel )</function> <function access="private" returnType="TQStringList">KbfxListPlugins( int panel )</function>
<function access="private">KbfxSaveSelectedPlugins()</function> <function access="private">KbfxSaveSelectedPlugins()</function>
</functions> </functions>
<layoutdefaults spacing="6" margin="11"/> <tqlayoutdefaults spacing="6" margin="11"/>
<includehints> <includehints>
<includehint>kactivelabel.h</includehint> <includehint>kactivelabel.h</includehint>
<includehint>kcombobox.h</includehint> <includehint>kcombobox.h</includehint>

@ -2,7 +2,7 @@
** ui.h extension file, included from the uic-generated form implementation. ** ui.h extension file, included from the uic-generated form implementation.
** **
** If you want to add, delete, or rename functions or slots, use ** If you want to add, delete, or rename functions or slots, use
** Qt Designer to update this file, preserving your code. ** TQt Designer to update this file, preserving your code.
** **
** You should not define a constructor or destructor in this file. ** You should not define a constructor or destructor in this file.
** Instead, write your code in functions called init() and destroy(). ** Instead, write your code in functions called init() and destroy().
@ -25,16 +25,16 @@ void KbfxConfigDlgPlugins::ChangeForm()
KbfxPluginSelector-> availableListBox()-> insertStringList ( KbfxListPlugins ( 0 ) ); // list Left Panel Plugins KbfxPluginSelector-> availableListBox()-> insertStringList ( KbfxListPlugins ( 0 ) ); // list Left Panel Plugins
} }
QStringList KbfxConfigDlgPlugins::KbfxListPlugins ( int panel ) TQStringList KbfxConfigDlgPlugins::KbfxListPlugins ( int panel )
{ {
QStringList _plugins; TQStringList _plugins;
_plugins.clear(); _plugins.clear();
bool _not_present; bool _not_present;
QStringList::Iterator it_available; TQStringList::Iterator it_available;
QStringList::Iterator it_requested; TQStringList::Iterator it_requested;
KbfxPlasmaPluginLoader *_tmp = new KbfxPlasmaPluginLoader(); KbfxPlasmaPluginLoader *_tmp = new KbfxPlasmaPluginLoader();
QStringList allPlugins = _tmp -> scanPlugins(); TQStringList allPlugins = _tmp -> scanPlugins();
delete _tmp; delete _tmp;
for ( it_available = allPlugins.begin(); it_available != allPlugins.end(); ++it_available ) for ( it_available = allPlugins.begin(); it_available != allPlugins.end(); ++it_available )
@ -45,7 +45,7 @@ QStringList KbfxConfigDlgPlugins::KbfxListPlugins ( int panel )
for ( it_requested = ConfigInit ().m_pluginsLeft.begin (); for ( it_requested = ConfigInit ().m_pluginsLeft.begin ();
it_requested != ConfigInit ().m_pluginsLeft.end (); ++it_requested ) it_requested != ConfigInit ().m_pluginsLeft.end (); ++it_requested )
{ {
if ( ( *it_available ).contains ( *it_requested ) > 0 ) if ( ( *it_available ).tqcontains ( *it_requested ) > 0 )
{ {
_not_present = FALSE; _not_present = FALSE;
break; break;
@ -57,7 +57,7 @@ QStringList KbfxConfigDlgPlugins::KbfxListPlugins ( int panel )
for ( it_requested = ConfigInit ().m_pluginsRight.begin (); for ( it_requested = ConfigInit ().m_pluginsRight.begin ();
it_requested != ConfigInit ().m_pluginsRight.end (); ++it_requested ) it_requested != ConfigInit ().m_pluginsRight.end (); ++it_requested )
{ {
if ( ( *it_available ).contains ( *it_requested ) > 0 ) if ( ( *it_available ).tqcontains ( *it_requested ) > 0 )
{ {
_not_present = FALSE; _not_present = FALSE;
break; break;
@ -88,7 +88,7 @@ void KbfxConfigDlgPlugins::KbfxPluginInfoButton_clicked()
void KbfxConfigDlgPlugins::KbfxSaveSelectedPlugins() void KbfxConfigDlgPlugins::KbfxSaveSelectedPlugins()
{ {
int _selectedPanel = KbfxPanel->currentItem(); int _selectedPanel = KbfxPanel->currentItem();
QStringList _plugins; TQStringList _plugins;
_plugins.clear(); _plugins.clear();
int it; int it;
int _num = KbfxPluginSelector-> selectedListBox()->count(); int _num = KbfxPluginSelector-> selectedListBox()->count();
@ -129,28 +129,28 @@ void KbfxConfigDlgPlugins::KbfxPanelSelected ( int _sel )
void KbfxConfigDlgPlugins::KbfxPluginSelector_movedDown ( QListBoxItem * ) void KbfxConfigDlgPlugins::KbfxPluginSelector_movedDown ( TQListBoxItem * )
{ {
/* save current selection */ /* save current selection */
KbfxSaveSelectedPlugins(); KbfxSaveSelectedPlugins();
} }
void KbfxConfigDlgPlugins::KbfxPluginSelector_movedUp ( QListBoxItem * ) void KbfxConfigDlgPlugins::KbfxPluginSelector_movedUp ( TQListBoxItem * )
{ {
/* save current selection */ /* save current selection */
KbfxSaveSelectedPlugins(); KbfxSaveSelectedPlugins();
} }
void KbfxConfigDlgPlugins::KbfxPluginSelector_removed ( QListBoxItem * ) void KbfxConfigDlgPlugins::KbfxPluginSelector_removed ( TQListBoxItem * )
{ {
/* save current selection */ /* save current selection */
KbfxSaveSelectedPlugins(); KbfxSaveSelectedPlugins();
} }
void KbfxConfigDlgPlugins::KbfxPluginSelector_added ( QListBoxItem * ) void KbfxConfigDlgPlugins::KbfxPluginSelector_added ( TQListBoxItem * )
{ {
/* save current selection */ /* save current selection */
KbfxSaveSelectedPlugins(); KbfxSaveSelectedPlugins();

@ -1,10 +1,10 @@
<!DOCTYPE UI><UI version="3.3" stdsetdef="1"> <!DOCTYPE UI><UI version="3.3" stdsetdef="1">
<class>KbfxConfigDlgStyle</class> <class>KbfxConfigDlgStyle</class>
<widget class="QWidget"> <widget class="TQWidget">
<property name="name"> <property name="name">
<cstring>KbfxConfigDlgStyle</cstring> <cstring>KbfxConfigDlgStyle</cstring>
</property> </property>
<property name="geometry"> <property name="tqgeometry">
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
@ -45,13 +45,13 @@
<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>29</height> <height>29</height>
</size> </size>
</property> </property>
<property name="maximumSize"> <property name="tqmaximumSize">
<size> <size>
<width>32767</width> <width>32767</width>
<height>29</height> <height>29</height>
@ -77,7 +77,7 @@
<string>&lt;b&gt;&lt;h3&gt;&lt;p align="center"&gt;Menu type&lt;/p&gt;&lt;/h3&gt;&lt;/b&gt;</string> <string>&lt;b&gt;&lt;h3&gt;&lt;p align="center"&gt;Menu type&lt;/p&gt;&lt;/h3&gt;&lt;/b&gt;</string>
</property> </property>
</widget> </widget>
<widget class="QButtonGroup" row="1" column="0" rowspan="1" colspan="2"> <widget class="TQButtonGroup" row="1" column="0" rowspan="1" colspan="2">
<property name="name"> <property name="name">
<cstring>KbfxStyleGroupBox</cstring> <cstring>KbfxStyleGroupBox</cstring>
</property> </property>
@ -112,7 +112,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Minimum</enum> <enum>Minimum</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>53</width> <width>53</width>
<height>1</height> <height>1</height>
@ -129,7 +129,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>1</width> <width>1</width>
<height>1</height> <height>1</height>
@ -146,14 +146,14 @@
<property name="sizeType"> <property name="sizeType">
<enum>Minimum</enum> <enum>Minimum</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>38</width> <width>38</width>
<height>1</height> <height>1</height>
</size> </size>
</property> </property>
</spacer> </spacer>
<widget class="QRadioButton" row="0" column="1"> <widget class="TQRadioButton" row="0" column="1">
<property name="name"> <property name="name">
<cstring>KbfxRadioButtonKbfxStyle</cstring> <cstring>KbfxRadioButtonKbfxStyle</cstring>
</property> </property>
@ -178,7 +178,7 @@
<number>0</number> <number>0</number>
</property> </property>
</widget> </widget>
<widget class="QRadioButton" row="0" column="3"> <widget class="TQRadioButton" row="0" column="3">
<property name="name"> <property name="name">
<cstring>KbfxRadioButtonKdeStyle</cstring> <cstring>KbfxRadioButtonKdeStyle</cstring>
</property> </property>
@ -202,7 +202,7 @@
</widget> </widget>
</grid> </grid>
</widget> </widget>
<widget class="QGroupBox" row="2" column="0"> <widget class="TQGroupBox" row="2" column="0">
<property name="name"> <property name="name">
<cstring>groupBox4</cstring> <cstring>groupBox4</cstring>
</property> </property>
@ -230,7 +230,7 @@
<property name="spacing"> <property name="spacing">
<number>0</number> <number>0</number>
</property> </property>
<widget class="QLabel" row="1" column="1" rowspan="2" colspan="1"> <widget class="TQLabel" row="1" column="1" rowspan="2" colspan="1">
<property name="name"> <property name="name">
<cstring>pixmapLabel1</cstring> <cstring>pixmapLabel1</cstring>
</property> </property>
@ -242,13 +242,13 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="minimumSize"> <property name="tqminimumSize">
<size> <size>
<width>293</width> <width>293</width>
<height>334</height> <height>334</height>
</size> </size>
</property> </property>
<property name="maximumSize"> <property name="tqmaximumSize">
<size> <size>
<width>293</width> <width>293</width>
<height>334</height> <height>334</height>
@ -274,7 +274,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>MinimumExpanding</enum> <enum>MinimumExpanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>1</width> <width>1</width>
<height>1</height> <height>1</height>
@ -291,7 +291,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>MinimumExpanding</enum> <enum>MinimumExpanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>1</width> <width>1</width>
<height>1</height> <height>1</height>
@ -308,7 +308,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>MinimumExpanding</enum> <enum>MinimumExpanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>1</width> <width>1</width>
<height>1</height> <height>1</height>
@ -325,7 +325,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>MinimumExpanding</enum> <enum>MinimumExpanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>1</width> <width>1</width>
<height>1</height> <height>1</height>
@ -334,7 +334,7 @@
</spacer> </spacer>
</grid> </grid>
</widget> </widget>
<widget class="QGroupBox" row="2" column="1"> <widget class="TQGroupBox" row="2" column="1">
<property name="name"> <property name="name">
<cstring>groupBox6</cstring> <cstring>groupBox6</cstring>
</property> </property>
@ -362,7 +362,7 @@
<property name="spacing"> <property name="spacing">
<number>0</number> <number>0</number>
</property> </property>
<widget class="QLabel" row="1" column="1"> <widget class="TQLabel" row="1" column="1">
<property name="name"> <property name="name">
<cstring>pixmapLabel1_2</cstring> <cstring>pixmapLabel1_2</cstring>
</property> </property>
@ -374,13 +374,13 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="minimumSize"> <property name="tqminimumSize">
<size> <size>
<width>293</width> <width>293</width>
<height>334</height> <height>334</height>
</size> </size>
</property> </property>
<property name="maximumSize"> <property name="tqmaximumSize">
<size> <size>
<width>293</width> <width>293</width>
<height>334</height> <height>334</height>
@ -406,7 +406,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>MinimumExpanding</enum> <enum>MinimumExpanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>1</width> <width>1</width>
<height>1</height> <height>1</height>
@ -423,7 +423,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>MinimumExpanding</enum> <enum>MinimumExpanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>1</width> <width>1</width>
<height>1</height> <height>1</height>
@ -440,7 +440,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>MinimumExpanding</enum> <enum>MinimumExpanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>1</width> <width>1</width>
<height>1</height> <height>1</height>
@ -457,7 +457,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>MinimumExpanding</enum> <enum>MinimumExpanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>1</width> <width>1</width>
<height>1</height> <height>1</height>
@ -494,11 +494,11 @@
<include location="global" impldecl="in declaration">kdebug.h</include> <include location="global" impldecl="in declaration">kdebug.h</include>
<include location="local" impldecl="in implementation">kbfxconfigdlgstyle.ui.h</include> <include location="local" impldecl="in implementation">kbfxconfigdlgstyle.ui.h</include>
</includes> </includes>
<slots> <Q_SLOTS>
<slot>KbfxStyleSelected( int )</slot> <slot>KbfxStyleSelected( int )</slot>
<slot>ChangeForm()</slot> <slot>ChangeForm()</slot>
</slots> </Q_SLOTS>
<layoutdefaults spacing="6" margin="0"/> <tqlayoutdefaults spacing="6" margin="0"/>
<includehints> <includehints>
<includehint>kactivelabel.h</includehint> <includehint>kactivelabel.h</includehint>
</includehints> </includehints>

@ -2,7 +2,7 @@
** ui.h extension file, included from the uic-generated form implementation. ** ui.h extension file, included from the uic-generated form implementation.
** **
** If you want to add, delete, or rename functions or slots, use ** If you want to add, delete, or rename functions or slots, use
** Qt Designer to update this file, preserving your code. ** TQt Designer to update this file, preserving your code.
** **
** You should not define a constructor or destructor in this file. ** You should not define a constructor or destructor in this file.
** Instead, write your code in functions called init() and destroy(). ** Instead, write your code in functions called init() and destroy().

@ -1,10 +1,10 @@
<!DOCTYPE UI><UI version="3.3" stdsetdef="1"> <!DOCTYPE UI><UI version="3.3" stdsetdef="1">
<class>KbfxConfigDlgThemes</class> <class>KbfxConfigDlgThemes</class>
<widget class="QWidget"> <widget class="TQWidget">
<property name="name"> <property name="name">
<cstring>KbfxConfigDlgThemes</cstring> <cstring>KbfxConfigDlgThemes</cstring>
</property> </property>
<property name="geometry"> <property name="tqgeometry">
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
@ -36,7 +36,7 @@
<property name="resizeMode"> <property name="resizeMode">
<enum>Minimum</enum> <enum>Minimum</enum>
</property> </property>
<widget class="QGroupBox" row="1" column="0"> <widget class="TQGroupBox" row="1" column="0">
<property name="name"> <property name="name">
<cstring>groupBox8</cstring> <cstring>groupBox8</cstring>
</property> </property>
@ -77,7 +77,7 @@
<number>10</number> <number>10</number>
</property> </property>
</widget> </widget>
<widget class="QLabel" row="0" column="0"> <widget class="TQLabel" row="0" column="0">
<property name="name"> <property name="name">
<cstring>textLabel1</cstring> <cstring>textLabel1</cstring>
</property> </property>
@ -105,22 +105,22 @@
<property name="sizeType"> <property name="sizeType">
<enum>MinimumExpanding</enum> <enum>MinimumExpanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>28</width> <width>28</width>
<height>16</height> <height>16</height>
</size> </size>
</property> </property>
</spacer> </spacer>
<widget class="QLayoutWidget" row="4" column="0"> <widget class="TQLayoutWidget" row="4" column="0">
<property name="name"> <property name="name">
<cstring>layout7</cstring> <cstring>tqlayout7</cstring>
</property> </property>
<hbox> <hbox>
<property name="name"> <property name="name">
<cstring>unnamed</cstring> <cstring>unnamed</cstring>
</property> </property>
<widget class="QListBox"> <widget class="TQListBox">
<item> <item>
<property name="text"> <property name="text">
<string>SpixBar</string> <string>SpixBar</string>
@ -137,7 +137,7 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="minimumSize"> <property name="tqminimumSize">
<size> <size>
<width>200</width> <width>200</width>
<height>0</height> <height>0</height>
@ -153,15 +153,15 @@
<string>Here are listed all the installed KBFX Themes</string> <string>Here are listed all the installed KBFX Themes</string>
</property> </property>
</widget> </widget>
<widget class="QLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>layout6</cstring> <cstring>tqlayout6</cstring>
</property> </property>
<vbox> <vbox>
<property name="name"> <property name="name">
<cstring>unnamed</cstring> <cstring>unnamed</cstring>
</property> </property>
<widget class="QGroupBox"> <widget class="TQGroupBox">
<property name="name"> <property name="name">
<cstring>groupBox4</cstring> <cstring>groupBox4</cstring>
</property> </property>
@ -179,7 +179,7 @@
<property name="title"> <property name="title">
<string>Selected Theme Preview</string> <string>Selected Theme Preview</string>
</property> </property>
<property name="alignment"> <property name="tqalignment">
<set>AlignVCenter</set> <set>AlignVCenter</set>
</property> </property>
<grid> <grid>
@ -196,7 +196,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Minimum</enum> <enum>Minimum</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>17</width> <width>17</width>
<height>21</height> <height>21</height>
@ -213,7 +213,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>MinimumExpanding</enum> <enum>MinimumExpanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>1</width> <width>1</width>
<height>1</height> <height>1</height>
@ -230,14 +230,14 @@
<property name="sizeType"> <property name="sizeType">
<enum>MinimumExpanding</enum> <enum>MinimumExpanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>1</width> <width>1</width>
<height>1</height> <height>1</height>
</size> </size>
</property> </property>
</spacer> </spacer>
<widget class="QLabel" row="1" column="1"> <widget class="TQLabel" row="1" column="1">
<property name="name"> <property name="name">
<cstring>KbfxPixmapPreview</cstring> <cstring>KbfxPixmapPreview</cstring>
</property> </property>
@ -249,13 +249,13 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="minimumSize"> <property name="tqminimumSize">
<size> <size>
<width>270</width> <width>270</width>
<height>210</height> <height>210</height>
</size> </size>
</property> </property>
<property name="maximumSize"> <property name="tqmaximumSize">
<size> <size>
<width>270</width> <width>270</width>
<height>210</height> <height>210</height>
@ -267,7 +267,7 @@
<property name="scaledContents"> <property name="scaledContents">
<bool>false</bool> <bool>false</bool>
</property> </property>
<property name="alignment"> <property name="tqalignment">
<set>AlignCenter</set> <set>AlignCenter</set>
</property> </property>
</widget> </widget>
@ -281,7 +281,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Minimum</enum> <enum>Minimum</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>17</width> <width>17</width>
<height>21</height> <height>21</height>
@ -290,23 +290,23 @@
</spacer> </spacer>
</grid> </grid>
</widget> </widget>
<widget class="QLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>layout14</cstring> <cstring>tqlayout14</cstring>
</property> </property>
<hbox> <hbox>
<property name="name"> <property name="name">
<cstring>unnamed</cstring> <cstring>unnamed</cstring>
</property> </property>
<widget class="QLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>layout12</cstring> <cstring>tqlayout12</cstring>
</property> </property>
<vbox> <vbox>
<property name="name"> <property name="name">
<cstring>unnamed</cstring> <cstring>unnamed</cstring>
</property> </property>
<widget class="QPushButton"> <widget class="TQPushButton">
<property name="name"> <property name="name">
<cstring>KbfxDeleteTheme</cstring> <cstring>KbfxDeleteTheme</cstring>
</property> </property>
@ -331,7 +331,7 @@
<string>Pressing the button will delete the currently selected theme. &lt;br&gt;&lt;b&gt;Warning!&lt;/b&gt; You cannot delete the installed system wide themes!</string> <string>Pressing the button will delete the currently selected theme. &lt;br&gt;&lt;b&gt;Warning!&lt;/b&gt; You cannot delete the installed system wide themes!</string>
</property> </property>
</widget> </widget>
<widget class="QPushButton"> <widget class="TQPushButton">
<property name="name"> <property name="name">
<cstring>KbfxGetMoreThemes</cstring> <cstring>KbfxGetMoreThemes</cstring>
</property> </property>
@ -358,15 +358,15 @@
</widget> </widget>
</vbox> </vbox>
</widget> </widget>
<widget class="QLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>layout13</cstring> <cstring>tqlayout13</cstring>
</property> </property>
<vbox> <vbox>
<property name="name"> <property name="name">
<cstring>unnamed</cstring> <cstring>unnamed</cstring>
</property> </property>
<widget class="QPushButton"> <widget class="TQPushButton">
<property name="name"> <property name="name">
<cstring>KbfxInstallTheme</cstring> <cstring>KbfxInstallTheme</cstring>
</property> </property>
@ -391,7 +391,7 @@
<string>Pressing the button will offer a dialog where you can choose KBFX Theme Package to install in your home folder</string> <string>Pressing the button will offer a dialog where you can choose KBFX Theme Package to install in your home folder</string>
</property> </property>
</widget> </widget>
<widget class="QPushButton"> <widget class="TQPushButton">
<property name="name"> <property name="name">
<cstring>KbfxThemeInfoBtn</cstring> <cstring>KbfxThemeInfoBtn</cstring>
</property> </property>
@ -422,15 +422,15 @@
</widget> </widget>
</vbox> </vbox>
</widget> </widget>
<widget class="QLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>layout10</cstring> <cstring>tqlayout10</cstring>
</property> </property>
<vbox> <vbox>
<property name="name"> <property name="name">
<cstring>unnamed</cstring> <cstring>unnamed</cstring>
</property> </property>
<widget class="QGroupBox"> <widget class="TQGroupBox">
<property name="name"> <property name="name">
<cstring>groupBox18</cstring> <cstring>groupBox18</cstring>
</property> </property>
@ -462,14 +462,14 @@
<property name="sizeType"> <property name="sizeType">
<enum>Minimum</enum> <enum>Minimum</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>16</width> <width>16</width>
<height>7</height> <height>7</height>
</size> </size>
</property> </property>
</spacer> </spacer>
<widget class="QPushButton" row="5" column="1" rowspan="1" colspan="3"> <widget class="TQPushButton" row="5" column="1" rowspan="1" colspan="3">
<property name="name"> <property name="name">
<cstring>KbfxDeleteDudeImage</cstring> <cstring>KbfxDeleteDudeImage</cstring>
</property> </property>
@ -494,7 +494,7 @@
<string>Pressing the button will delete the personal image you have selected and install the theme's default personal image</string> <string>Pressing the button will delete the personal image you have selected and install the theme's default personal image</string>
</property> </property>
</widget> </widget>
<widget class="QLabel" row="4" column="1" rowspan="1" colspan="3"> <widget class="TQLabel" row="4" column="1" rowspan="1" colspan="3">
<property name="name"> <property name="name">
<cstring>textLabel3</cstring> <cstring>textLabel3</cstring>
</property> </property>
@ -509,11 +509,11 @@
<property name="text"> <property name="text">
<string>Maxsize 48 x 48</string> <string>Maxsize 48 x 48</string>
</property> </property>
<property name="alignment"> <property name="tqalignment">
<set>AlignCenter</set> <set>AlignCenter</set>
</property> </property>
</widget> </widget>
<widget class="QPushButton" row="3" column="1" rowspan="1" colspan="3"> <widget class="TQPushButton" row="3" column="1" rowspan="1" colspan="3">
<property name="name"> <property name="name">
<cstring>KbfxSelectDudeImage</cstring> <cstring>KbfxSelectDudeImage</cstring>
</property> </property>
@ -548,7 +548,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Minimum</enum> <enum>Minimum</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>18</width> <width>18</width>
<height>54</height> <height>54</height>
@ -565,14 +565,14 @@
<property name="sizeType"> <property name="sizeType">
<enum>Minimum</enum> <enum>Minimum</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>17</width> <width>17</width>
<height>62</height> <height>62</height>
</size> </size>
</property> </property>
</spacer> </spacer>
<widget class="QFrame" row="2" column="2"> <widget class="TQFrame" row="2" column="2">
<property name="name"> <property name="name">
<cstring>frame7</cstring> <cstring>frame7</cstring>
</property> </property>
@ -601,7 +601,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>KbfxDudeImage</cstring> <cstring>KbfxDudeImage</cstring>
</property> </property>
@ -613,13 +613,13 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="minimumSize"> <property name="tqminimumSize">
<size> <size>
<width>48</width> <width>48</width>
<height>48</height> <height>48</height>
</size> </size>
</property> </property>
<property name="maximumSize"> <property name="tqmaximumSize">
<size> <size>
<width>48</width> <width>48</width>
<height>48</height> <height>48</height>
@ -644,7 +644,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Minimum</enum> <enum>Minimum</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>16</width> <width>16</width>
<height>16</height> <height>16</height>
@ -661,14 +661,14 @@
<property name="sizeType"> <property name="sizeType">
<enum>Minimum</enum> <enum>Minimum</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>16</width> <width>16</width>
<height>16</height> <height>16</height>
</size> </size>
</property> </property>
</spacer> </spacer>
<widget class="QLabel" row="0" column="0" rowspan="1" colspan="5"> <widget class="TQLabel" row="0" column="0" rowspan="1" colspan="5">
<property name="name"> <property name="name">
<cstring>textLabel2</cstring> <cstring>textLabel2</cstring>
</property> </property>
@ -683,7 +683,7 @@
<property name="text"> <property name="text">
<string>This is your personal image displayed at the KBFX menu.</string> <string>This is your personal image displayed at the KBFX menu.</string>
</property> </property>
<property name="alignment"> <property name="tqalignment">
<set>WordBreak|AlignCenter</set> <set>WordBreak|AlignCenter</set>
</property> </property>
</widget> </widget>
@ -697,7 +697,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Minimum</enum> <enum>Minimum</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>16</width> <width>16</width>
<height>10</height> <height>10</height>
@ -706,7 +706,7 @@
</spacer> </spacer>
</grid> </grid>
</widget> </widget>
<widget class="QGroupBox"> <widget class="TQGroupBox">
<property name="name"> <property name="name">
<cstring>groupBox4_2</cstring> <cstring>groupBox4_2</cstring>
</property> </property>
@ -724,7 +724,7 @@
<property name="title"> <property name="title">
<string>Misc Options</string> <string>Misc Options</string>
</property> </property>
<property name="alignment"> <property name="tqalignment">
<set>AlignVCenter</set> <set>AlignVCenter</set>
</property> </property>
<grid> <grid>
@ -741,14 +741,14 @@
<property name="sizeType"> <property name="sizeType">
<enum>MinimumExpanding</enum> <enum>MinimumExpanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>1</width> <width>1</width>
<height>1</height> <height>1</height>
</size> </size>
</property> </property>
</spacer> </spacer>
<widget class="QCheckBox" row="1" column="0"> <widget class="TQCheckBox" row="1" column="0">
<property name="name"> <property name="name">
<cstring>KbfxWatch</cstring> <cstring>KbfxWatch</cstring>
</property> </property>
@ -770,7 +770,7 @@
<string>Watch for applications installs and reload KBFX if any occurs</string> <string>Watch for applications installs and reload KBFX if any occurs</string>
</property> </property>
</widget> </widget>
<widget class="QCheckBox" row="0" column="0"> <widget class="TQCheckBox" row="0" column="0">
<property name="name"> <property name="name">
<cstring>KbfxShowOldThemes</cstring> <cstring>KbfxShowOldThemes</cstring>
</property> </property>
@ -807,13 +807,13 @@
<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>29</height> <height>29</height>
</size> </size>
</property> </property>
<property name="maximumSize"> <property name="tqmaximumSize">
<size> <size>
<width>32767</width> <width>32767</width>
<height>29</height> <height>29</height>
@ -854,13 +854,13 @@
<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>29</height> <height>29</height>
</size> </size>
</property> </property>
<property name="maximumSize"> <property name="tqmaximumSize">
<size> <size>
<width>32767</width> <width>32767</width>
<height>29</height> <height>29</height>
@ -907,21 +907,21 @@
<connections> <connections>
<connection> <connection>
<sender>KbfxURLRequesterThemesPath</sender> <sender>KbfxURLRequesterThemesPath</sender>
<signal>urlSelected(const QString&amp;)</signal> <signal>urlSelected(const TQString&amp;)</signal>
<receiver>KbfxConfigDlgThemes</receiver> <receiver>KbfxConfigDlgThemes</receiver>
<slot>KbfxURLRequesterThemesPathUrlSelected(const QString&amp;)</slot> <slot>KbfxURLRequesterThemesPathUrlSelected(const TQString&amp;)</slot>
</connection> </connection>
<connection> <connection>
<sender>KbfxURLRequesterThemesPath</sender> <sender>KbfxURLRequesterThemesPath</sender>
<signal>returnPressed(const QString&amp;)</signal> <signal>returnPressed(const TQString&amp;)</signal>
<receiver>KbfxConfigDlgThemes</receiver> <receiver>KbfxConfigDlgThemes</receiver>
<slot>KbfxURLRequesterThemesPathUrlSelected(const QString&amp;)</slot> <slot>KbfxURLRequesterThemesPathUrlSelected(const TQString&amp;)</slot>
</connection> </connection>
<connection> <connection>
<sender>KbfxThemeList</sender> <sender>KbfxThemeList</sender>
<signal>highlighted(const QString&amp;)</signal> <signal>highlighted(const TQString&amp;)</signal>
<receiver>KbfxConfigDlgThemes</receiver> <receiver>KbfxConfigDlgThemes</receiver>
<slot>KbfxThemeSelected(const QString&amp;)</slot> <slot>KbfxThemeSelected(const TQString&amp;)</slot>
</connection> </connection>
<connection> <connection>
<sender>KbfxDeleteTheme</sender> <sender>KbfxDeleteTheme</sender>
@ -981,7 +981,7 @@
<includes> <includes>
<include location="global" impldecl="in declaration">kbfxconfig.h</include> <include location="global" impldecl="in declaration">kbfxconfig.h</include>
<include location="global" impldecl="in declaration">kdebug.h</include> <include location="global" impldecl="in declaration">kdebug.h</include>
<include location="global" impldecl="in declaration">qstringlist.h</include> <include location="global" impldecl="in declaration">tqstringlist.h</include>
<include location="global" impldecl="in declaration">kmessagebox.h</include> <include location="global" impldecl="in declaration">kmessagebox.h</include>
<include location="global" impldecl="in declaration">kio/netaccess.h</include> <include location="global" impldecl="in declaration">kio/netaccess.h</include>
<include location="global" impldecl="in declaration">kfiledialog.h</include> <include location="global" impldecl="in declaration">kfiledialog.h</include>
@ -996,32 +996,32 @@
</forwards> </forwards>
<variables> <variables>
<variable access="private">bool KbfxFormReady;</variable> <variable access="private">bool KbfxFormReady;</variable>
<variable access="private">QString KbfxInstallDialogURL;</variable> <variable access="private">TQString KbfxInstallDialogURL;</variable>
<variable access="public">QStringList KbfxThemes;</variable> <variable access="public">TQStringList KbfxThemes;</variable>
<variable access="public">QPixmap img_nopreview;</variable> <variable access="public">QPixmap img_nopreview;</variable>
<variable>static KbfxThemeInfo * _info_box;</variable> <variable>static KbfxThemeInfo * _info_box;</variable>
</variables> </variables>
<signals> <Q_SIGNALS>
<signal>KbfxThemeDoInstall( QString &amp; installUrl )</signal> <signal>KbfxThemeDoInstall( TQString &amp; installUrl )</signal>
</signals> </Q_SIGNALS>
<slots> <Q_SLOTS>
<slot>KbfxURLRequesterThemesPathUrlSelected( const QString &amp; path )</slot> <slot>KbfxURLRequesterThemesPathUrlSelected( const TQString &amp; path )</slot>
<slot>KbfxThemeSelected( const QString &amp; name )</slot> <slot>KbfxThemeSelected( const TQString &amp; name )</slot>
<slot>setKbfxThemePreview()</slot> <slot>setKbfxThemePreview()</slot>
<slot>ChangeForm()</slot> <slot>ChangeForm()</slot>
<slot>KbfxDeleteThemeClicked()</slot> <slot>KbfxDeleteThemeClicked()</slot>
<slot>KbfxInstallThemeClicked()</slot> <slot>KbfxInstallThemeClicked()</slot>
<slot>KbfxThemeInstall( QString &amp; installUrl )</slot> <slot>KbfxThemeInstall( TQString &amp; installUrl )</slot>
<slot>KbfxSelectDudeImageClicked()</slot> <slot>KbfxSelectDudeImageClicked()</slot>
<slot>KbfxDeleteDudeImageClicked()</slot> <slot>KbfxDeleteDudeImageClicked()</slot>
<slot>KbfxThemeInfoClicked()</slot> <slot>KbfxThemeInfoClicked()</slot>
<slot>KbfxShowOldThemes_toggled( bool )</slot> <slot>KbfxShowOldThemes_toggled( bool )</slot>
<slot>KbfxWatch_toggled( bool )</slot> <slot>KbfxWatch_toggled( bool )</slot>
</slots> </Q_SLOTS>
<functions> <functions>
<function access="private" specifier="non virtual">init()</function> <function access="private" specifier="non virtual">init()</function>
</functions> </functions>
<layoutdefaults spacing="6" margin="11"/> <tqlayoutdefaults spacing="6" margin="11"/>
<includehints> <includehints>
<includehint>kurlrequester.h</includehint> <includehint>kurlrequester.h</includehint>
<includehint>klineedit.h</includehint> <includehint>klineedit.h</includehint>

@ -2,7 +2,7 @@
** ui.h extension file, included from the uic-generated form implementation. ** ui.h extension file, included from the uic-generated form implementation.
** **
** If you want to add, delete, or rename functions or slots, use ** If you want to add, delete, or rename functions or slots, use
** Qt Designer to update this file, preserving your code. ** TQt Designer to update this file, preserving your code.
** **
** You should not define a constructor or destructor in this file. ** You should not define a constructor or destructor in this file.
** Instead, write your code in functions called init() and destroy(). ** Instead, write your code in functions called init() and destroy().
@ -17,8 +17,8 @@ void KbfxConfigDlgThemes::init()
KbfxFormReady = FALSE; KbfxFormReady = FALSE;
img_nopreview = image0; img_nopreview = image0;
connect ( this, SIGNAL ( KbfxThemeDoInstall ( QString & ) ), connect ( this, TQT_SIGNAL ( KbfxThemeDoInstall ( TQString & ) ),
this, SLOT ( KbfxThemeInstall ( QString & ) ) ); this, TQT_SLOT ( KbfxThemeInstall ( TQString & ) ) );
} }
/* /*
@ -27,14 +27,14 @@ void KbfxConfigDlgThemes::KbfxDudeAnimationButtonToggled(bool)
if(KbfxAnimationButton->state() == 2) if(KbfxAnimationButton->state() == 2)
{ {
KbfxAnimationButton->setText(tr2i18n("Animation is ON")); KbfxAnimationButton->setText(tr2i18n("Animation is ON"));
KbfxAnimationButton->setPaletteBackgroundColor(QColor(0,255,0)); KbfxAnimationButton->setPaletteBackgroundColor(TQColor(0,255,0));
ConfigInit().m_SpinxDudeBlink = TRUE; ConfigInit().m_SpinxDudeBlink = TRUE;
} }
if(KbfxAnimationButton->state() == 0) if(KbfxAnimationButton->state() == 0)
{ {
KbfxAnimationButton->setText(tr2i18n("Animation is OFF")); KbfxAnimationButton->setText(tr2i18n("Animation is OFF"));
KbfxAnimationButton->setPaletteBackgroundColor(QColor(221,223,228)); KbfxAnimationButton->setPaletteBackgroundColor(TQColor(221,223,228));
ConfigInit().m_SpinxDudeBlink = FALSE; ConfigInit().m_SpinxDudeBlink = FALSE;
} }
@ -44,15 +44,15 @@ void KbfxConfigDlgThemes::KbfxDudeAnimationButtonToggled(bool)
} }
*/ */
void KbfxConfigDlgThemes::KbfxURLRequesterThemesPathUrlSelected ( const QString &path ) void KbfxConfigDlgThemes::KbfxURLRequesterThemesPathUrlSelected ( const TQString &path )
{ {
QString tmppath = path; TQString tmppath = path;
if ( tmppath.startsWith ( "file://" ) ) tmppath.remove ( "file://" ); if ( tmppath.startsWith ( "file://" ) ) tmppath.remove ( "file://" );
if ( !tmppath.endsWith ( "/" ) ) tmppath.append ( "/" ); if ( !tmppath.endsWith ( "/" ) ) tmppath.append ( "/" );
QDir d ( tmppath ); TQDir d ( tmppath );
d.setFilter ( QDir::Dirs ); d.setFilter ( TQDir::Dirs );
if ( !d.exists() ) if ( !d.exists() )
{ {
kdDebug() << "Themes folder does not exist: " << tmppath << endl; kdDebug() << "Themes folder does not exist: " << tmppath << endl;
@ -78,7 +78,7 @@ void KbfxConfigDlgThemes::KbfxURLRequesterThemesPathUrlSelected ( const QString
setKbfxThemePreview(); setKbfxThemePreview();
} }
void KbfxConfigDlgThemes::KbfxThemeSelected ( const QString &name ) void KbfxConfigDlgThemes::KbfxThemeSelected ( const TQString &name )
{ {
if (KbfxFormReady) if (KbfxFormReady)
{ {
@ -102,16 +102,16 @@ void KbfxConfigDlgThemes::KbfxThemeSelected ( const QString &name )
void KbfxConfigDlgThemes::setKbfxThemePreview() void KbfxConfigDlgThemes::setKbfxThemePreview()
{ {
QString path = ConfigInit().m_SpinxThemeBasePath + ConfigInit().m_SpinxThemeName + "/preview.png"; TQString path = ConfigInit().m_SpinxThemeBasePath + ConfigInit().m_SpinxThemeName + "/preview.png";
QImage tmp ( path ); TQImage tmp ( path );
if ( tmp.isNull() ) if ( tmp.isNull() )
{ {
kdDebug() << "No preview available for theme: " kdDebug() << "No preview available for theme: "
<< ConfigInit().m_SpinxThemeBasePath + ConfigInit().m_SpinxThemeName << ConfigInit().m_SpinxThemeBasePath + ConfigInit().m_SpinxThemeName
<< endl; << endl;
// QString default_path = locate("data", "kbfx/images/nopreview.png"); // TQString default_path = locate("data", "kbfx/images/nopreview.png");
KbfxPixmapPreview->setPixmap ( img_nopreview ); KbfxPixmapPreview->setPixmap ( img_nopreview );
} }
else else
@ -132,7 +132,7 @@ void KbfxConfigDlgThemes::ChangeForm()
<< KbfxThemesData().setThemeList ( ConfigInit().m_UserSpinxThemeBasePath ) [ConfigInit().m_SpinxThemeName] << KbfxThemesData().setThemeList ( ConfigInit().m_UserSpinxThemeBasePath ) [ConfigInit().m_SpinxThemeName]
<< endl; << endl;
KbfxThemeList->setSelected ( KbfxThemeList->findItem ( ConfigInit().m_SpinxThemeName ), TRUE ); KbfxThemeList->setSelected ( KbfxThemeList->tqfindItem ( ConfigInit().m_SpinxThemeName ), TRUE );
setKbfxThemePreview(); setKbfxThemePreview();
@ -163,7 +163,7 @@ void KbfxConfigDlgThemes::KbfxDeleteThemeClicked()
{ {
int messageBoxReturn; int messageBoxReturn;
int messageBoxUserResReturn; int messageBoxUserResReturn;
QString KbfxThemeRcDestination = KGlobal::dirs()->saveLocation ( "data", QString ( "kbfx/themerc/" ), TRUE ); TQString KbfxThemeRcDestination = KGlobal::dirs()->saveLocation ( "data", TQString ( "kbfx/themerc/" ), TRUE );
KbfxThemeRcDestination.append( ConfigInit().m_SpinxThemeName ); KbfxThemeRcDestination.append( ConfigInit().m_SpinxThemeName );
messageBoxReturn = KMessageBox::warningContinueCancel ( 0, messageBoxReturn = KMessageBox::warningContinueCancel ( 0,
@ -181,18 +181,18 @@ void KbfxConfigDlgThemes::KbfxDeleteThemeClicked()
if ( messageBoxUserResReturn == KMessageBox::No ) if ( messageBoxUserResReturn == KMessageBox::No )
{ {
if ( QFile::exists ( KbfxThemeRcDestination + "_fontrc" ) ) if ( TQFile::exists ( KbfxThemeRcDestination + "_fontrc" ) )
{ {
QFile::remove ( KbfxThemeRcDestination + "_fontrc" ); TQFile::remove ( KbfxThemeRcDestination + "_fontrc" );
kdDebug() << "Deleting user's fontrc file: " kdDebug() << "Deleting user's fontrc file: "
<< KbfxThemeRcDestination + "_fontrc" << KbfxThemeRcDestination + "_fontrc"
<< endl; << endl;
} }
if ( QFile::exists ( KbfxThemeRcDestination + "_layoutrc" ) ) if ( TQFile::exists ( KbfxThemeRcDestination + "_layoutrc" ) )
{ {
QFile::remove ( KbfxThemeRcDestination + "_layoutrc" ); TQFile::remove ( KbfxThemeRcDestination + "_layoutrc" );
kdDebug() << "Deleting user's layoutrc file: " kdDebug() << "Deleting user's tqlayoutrc file: "
<< KbfxThemeRcDestination + "_layoutrc" << KbfxThemeRcDestination + "_layoutrc"
<< endl; << endl;
} }
@ -219,7 +219,7 @@ void KbfxConfigDlgThemes::KbfxDeleteThemeClicked()
void KbfxConfigDlgThemes::KbfxInstallThemeClicked() void KbfxConfigDlgThemes::KbfxInstallThemeClicked()
{ {
KFileDialog KbfxInstallDialog ( QString::null, KFileDialog KbfxInstallDialog ( TQString(),
"*.tar *.tar.bz2 *.tar.gz *.kbfxtheme|" + tr2i18n ( "KBFX theme packages (*.tar, *.tar.bz2, *.tar.gz, *.kbfxtheme)" ), "*.tar *.tar.bz2 *.tar.gz *.kbfxtheme|" + tr2i18n ( "KBFX theme packages (*.tar, *.tar.bz2, *.tar.gz, *.kbfxtheme)" ),
0, 0,
0, 0,
@ -234,7 +234,7 @@ void KbfxConfigDlgThemes::KbfxInstallThemeClicked()
emit KbfxThemeDoInstall ( KbfxInstallDialogURL ); emit KbfxThemeDoInstall ( KbfxInstallDialogURL );
} }
void KbfxConfigDlgThemes::KbfxThemeInstall ( QString &installUrl ) void KbfxConfigDlgThemes::KbfxThemeInstall ( TQString &installUrl )
{ {
KTar KbfxThemeArchive ( installUrl ); KTar KbfxThemeArchive ( installUrl );
@ -247,8 +247,8 @@ void KbfxConfigDlgThemes::KbfxThemeInstall ( QString &installUrl )
return; return;
} }
const QString KbfxThemeDestination = KGlobal::dirs()->saveLocation ( "data", const TQString KbfxThemeDestination = KGlobal::dirs()->saveLocation ( "data",
QString ( "kbfx/skins/" ), TQString ( "kbfx/skins/" ),
TRUE ); TRUE );
kdDebug() << "Copying theme: " << KbfxThemeDestination << endl; kdDebug() << "Copying theme: " << KbfxThemeDestination << endl;
@ -261,7 +261,7 @@ void KbfxConfigDlgThemes::KbfxThemeInstall ( QString &installUrl )
void KbfxConfigDlgThemes::KbfxSelectDudeImageClicked() void KbfxConfigDlgThemes::KbfxSelectDudeImageClicked()
{ {
KFileDialog KbfxDudeImageDialog ( QString::null, KFileDialog KbfxDudeImageDialog ( TQString(),
"image/jpeg image/png image/x-xpm image/gif ", "image/jpeg image/png image/x-xpm image/gif ",
0, 0,
0, 0,
@ -274,7 +274,7 @@ void KbfxConfigDlgThemes::KbfxSelectDudeImageClicked()
ConfigInit().m_SpinxDudeImage = KbfxDudeImageDialog.selectedURL().path(); ConfigInit().m_SpinxDudeImage = KbfxDudeImageDialog.selectedURL().path();
QImage tmp ( ConfigInit().m_SpinxDudeImage ); TQImage tmp ( ConfigInit().m_SpinxDudeImage );
if ( tmp.isNull() ) if ( tmp.isNull() )
{ {
KMessageBox::error ( 0, KMessageBox::error ( 0,
@ -295,8 +295,8 @@ void KbfxConfigDlgThemes::KbfxSelectDudeImageClicked()
void KbfxConfigDlgThemes::KbfxDeleteDudeImageClicked() void KbfxConfigDlgThemes::KbfxDeleteDudeImageClicked()
{ {
QString tmp_dude = ConfigInit().m_SpinxThemeBasePath + ConfigInit().m_SpinxThemeName + "/menu_top_image_person.png"; TQString tmp_dude = ConfigInit().m_SpinxThemeBasePath + ConfigInit().m_SpinxThemeName + "/menu_top_image_person.png";
QFile tmp ( tmp_dude ); TQFile tmp ( tmp_dude );
if ( tmp.exists() ) if ( tmp.exists() )
{ {
ConfigInit().m_SpinxDudeImage = tmp_dude; ConfigInit().m_SpinxDudeImage = tmp_dude;
@ -312,10 +312,10 @@ void KbfxConfigDlgThemes::KbfxDeleteDudeImageClicked()
void KbfxConfigDlgThemes::KbfxThemeInfoClicked() void KbfxConfigDlgThemes::KbfxThemeInfoClicked()
{ {
QPixmap _logo = QPixmap (ConfigInit ().m_SpinxThemeBasePath + ConfigInit ().m_SpinxThemeName + "/logo.png"); TQPixmap _logo = TQPixmap (ConfigInit ().m_SpinxThemeBasePath + ConfigInit ().m_SpinxThemeName + "/logo.png");
ConfigInit().readThemeInfo ( ConfigInit().m_SpinxThemeBasePath, ConfigInit().m_SpinxThemeName ); ConfigInit().readThemeInfo ( ConfigInit().m_SpinxThemeBasePath, ConfigInit().m_SpinxThemeName );
_info_box = new KbfxThemeInfo (this,"infodlg",Qt::WType_Modal); _info_box = new KbfxThemeInfo (this,"infodlg",TQt::WType_Modal);
if ( !_logo.isNull() ) if ( !_logo.isNull() )
{ {

@ -1,13 +1,13 @@
<!DOCTYPE UI><UI version="3.3" stdsetdef="1"> <!DOCTYPE UI><UI version="3.3" stdsetdef="1">
<class>KbfxConfigDlgTooltip</class> <class>KbfxConfigDlgTooltip</class>
<widget class="QWidget"> <widget class="TQWidget">
<property name="name"> <property name="name">
<cstring>KbfxConfigDlgTooltip</cstring> <cstring>KbfxConfigDlgTooltip</cstring>
</property> </property>
<property name="enabled"> <property name="enabled">
<bool>true</bool> <bool>true</bool>
</property> </property>
<property name="geometry"> <property name="tqgeometry">
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
@ -48,13 +48,13 @@
<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>29</height> <height>29</height>
</size> </size>
</property> </property>
<property name="maximumSize"> <property name="tqmaximumSize">
<size> <size>
<width>32767</width> <width>32767</width>
<height>29</height> <height>29</height>
@ -80,7 +80,7 @@
<string>&lt;b&gt;&lt;h3&gt;&lt;p align="center"&gt;Tooltip ON or OFF&lt;/p&gt;&lt;/h3&gt;&lt;/b&gt;</string> <string>&lt;b&gt;&lt;h3&gt;&lt;p align="center"&gt;Tooltip ON or OFF&lt;/p&gt;&lt;/h3&gt;&lt;/b&gt;</string>
</property> </property>
</widget> </widget>
<widget class="QGroupBox" row="1" column="0"> <widget class="TQGroupBox" row="1" column="0">
<property name="name"> <property name="name">
<cstring>groupBox24</cstring> <cstring>groupBox24</cstring>
</property> </property>
@ -98,7 +98,7 @@
<property name="title"> <property name="title">
<string>Turn off or on the tooltip</string> <string>Turn off or on the tooltip</string>
</property> </property>
<property name="alignment"> <property name="tqalignment">
<set>AlignVCenter</set> <set>AlignVCenter</set>
</property> </property>
<grid> <grid>
@ -108,17 +108,17 @@
<property name="margin"> <property name="margin">
<number>10</number> <number>10</number>
</property> </property>
<widget class="QLayoutWidget" row="0" column="0"> <widget class="TQLayoutWidget" row="0" column="0">
<property name="name"> <property name="name">
<cstring>layout21</cstring> <cstring>tqlayout21</cstring>
</property> </property>
<hbox> <hbox>
<property name="name"> <property name="name">
<cstring>unnamed</cstring> <cstring>unnamed</cstring>
</property> </property>
<widget class="QLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>layout6</cstring> <cstring>tqlayout6</cstring>
</property> </property>
<vbox> <vbox>
<property name="name"> <property name="name">
@ -140,9 +140,9 @@
<string>Turn your tooltip off or on. &lt;br&gt;You can see the current status of the tooltip to the right.</string> <string>Turn your tooltip off or on. &lt;br&gt;You can see the current status of the tooltip to the right.</string>
</property> </property>
</widget> </widget>
<widget class="QLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>layout4</cstring> <cstring>tqlayout4</cstring>
</property> </property>
<hbox> <hbox>
<property name="name"> <property name="name">
@ -158,14 +158,14 @@
<property name="sizeType"> <property name="sizeType">
<enum>Minimum</enum> <enum>Minimum</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>24</width> <width>24</width>
<height>1</height> <height>1</height>
</size> </size>
</property> </property>
</spacer> </spacer>
<widget class="QPushButton"> <widget class="TQPushButton">
<property name="name"> <property name="name">
<cstring>KbfxTooltipOnButton</cstring> <cstring>KbfxTooltipOnButton</cstring>
</property> </property>
@ -200,7 +200,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>1</width> <width>1</width>
<height>1</height> <height>1</height>
@ -211,7 +211,7 @@
</widget> </widget>
</vbox> </vbox>
</widget> </widget>
<widget class="QLabel"> <widget class="TQLabel">
<property name="name"> <property name="name">
<cstring>KbfxTooltipOnPixmapLabel</cstring> <cstring>KbfxTooltipOnPixmapLabel</cstring>
</property> </property>
@ -223,13 +223,13 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="minimumSize"> <property name="tqminimumSize">
<size> <size>
<width>120</width> <width>120</width>
<height>80</height> <height>80</height>
</size> </size>
</property> </property>
<property name="maximumSize"> <property name="tqmaximumSize">
<size> <size>
<width>120</width> <width>120</width>
<height>80</height> <height>80</height>
@ -249,7 +249,7 @@
</widget> </widget>
</grid> </grid>
</widget> </widget>
<widget class="QGroupBox" row="7" column="0"> <widget class="TQGroupBox" row="7" column="0">
<property name="name"> <property name="name">
<cstring>groupBox3</cstring> <cstring>groupBox3</cstring>
</property> </property>
@ -267,7 +267,7 @@
<property name="title"> <property name="title">
<string>Tooltip Text</string> <string>Tooltip Text</string>
</property> </property>
<property name="alignment"> <property name="tqalignment">
<set>AlignVCenter</set> <set>AlignVCenter</set>
</property> </property>
<grid> <grid>
@ -277,9 +277,9 @@
<property name="margin"> <property name="margin">
<number>10</number> <number>10</number>
</property> </property>
<widget class="QLayoutWidget" row="0" column="1"> <widget class="TQLayoutWidget" row="0" column="1">
<property name="name"> <property name="name">
<cstring>layout19</cstring> <cstring>tqlayout19</cstring>
</property> </property>
<vbox> <vbox>
<property name="name"> <property name="name">
@ -311,7 +311,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Minimum</enum> <enum>Minimum</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>1</width> <width>1</width>
<height>19</height> <height>19</height>
@ -332,13 +332,13 @@
<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>100</height> <height>100</height>
</size> </size>
</property> </property>
<property name="maximumSize"> <property name="tqmaximumSize">
<size> <size>
<width>32767</width> <width>32767</width>
<height>100</height> <height>100</height>
@ -374,13 +374,13 @@
<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>29</height> <height>29</height>
</size> </size>
</property> </property>
<property name="maximumSize"> <property name="tqmaximumSize">
<size> <size>
<width>32767</width> <width>32767</width>
<height>29</height> <height>29</height>
@ -406,7 +406,7 @@
<string>&lt;b&gt;&lt;h3&gt;&lt;p align="center"&gt;Tooltip personal text&lt;/p&gt;&lt;/h3&gt;&lt;/b&gt;</string> <string>&lt;b&gt;&lt;h3&gt;&lt;p align="center"&gt;Tooltip personal text&lt;/p&gt;&lt;/h3&gt;&lt;/b&gt;</string>
</property> </property>
</widget> </widget>
<widget class="QGroupBox" row="4" column="0"> <widget class="TQGroupBox" row="4" column="0">
<property name="name"> <property name="name">
<cstring>groupBox26</cstring> <cstring>groupBox26</cstring>
</property> </property>
@ -424,7 +424,7 @@
<property name="title"> <property name="title">
<string>Tooltip animation</string> <string>Tooltip animation</string>
</property> </property>
<property name="alignment"> <property name="tqalignment">
<set>AlignVCenter</set> <set>AlignVCenter</set>
</property> </property>
<grid> <grid>
@ -437,17 +437,17 @@
<property name="spacing"> <property name="spacing">
<number>0</number> <number>0</number>
</property> </property>
<widget class="QLayoutWidget" row="0" column="0"> <widget class="TQLayoutWidget" row="0" column="0">
<property name="name"> <property name="name">
<cstring>layout20</cstring> <cstring>tqlayout20</cstring>
</property> </property>
<hbox> <hbox>
<property name="name"> <property name="name">
<cstring>unnamed</cstring> <cstring>unnamed</cstring>
</property> </property>
<widget class="QLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>layout9</cstring> <cstring>tqlayout9</cstring>
</property> </property>
<vbox> <vbox>
<property name="name"> <property name="name">
@ -469,9 +469,9 @@
<string>Turn your tooltip animation off or on. &lt;br&gt;You can see the current status of the tooltip to the right.</string> <string>Turn your tooltip animation off or on. &lt;br&gt;You can see the current status of the tooltip to the right.</string>
</property> </property>
</widget> </widget>
<widget class="QLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>layout8</cstring> <cstring>tqlayout8</cstring>
</property> </property>
<hbox> <hbox>
<property name="name"> <property name="name">
@ -487,14 +487,14 @@
<property name="sizeType"> <property name="sizeType">
<enum>Minimum</enum> <enum>Minimum</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>26</width> <width>26</width>
<height>1</height> <height>1</height>
</size> </size>
</property> </property>
</spacer> </spacer>
<widget class="QPushButton"> <widget class="TQPushButton">
<property name="name"> <property name="name">
<cstring>KbfxTooltipAnimationButton</cstring> <cstring>KbfxTooltipAnimationButton</cstring>
</property> </property>
@ -526,7 +526,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>1</width> <width>1</width>
<height>1</height> <height>1</height>
@ -537,7 +537,7 @@
</widget> </widget>
</vbox> </vbox>
</widget> </widget>
<widget class="QLabel"> <widget class="TQLabel">
<property name="name"> <property name="name">
<cstring>KbfxTooltipAnimationPixmapLabel</cstring> <cstring>KbfxTooltipAnimationPixmapLabel</cstring>
</property> </property>
@ -549,13 +549,13 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="minimumSize"> <property name="tqminimumSize">
<size> <size>
<width>120</width> <width>120</width>
<height>80</height> <height>80</height>
</size> </size>
</property> </property>
<property name="maximumSize"> <property name="tqmaximumSize">
<size> <size>
<width>120</width> <width>120</width>
<height>80</height> <height>80</height>
@ -585,7 +585,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>MinimumExpanding</enum> <enum>MinimumExpanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>1</width> <width>1</width>
<height>1</height> <height>1</height>
@ -604,13 +604,13 @@
<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>29</height> <height>29</height>
</size> </size>
</property> </property>
<property name="maximumSize"> <property name="tqmaximumSize">
<size> <size>
<width>32767</width> <width>32767</width>
<height>29</height> <height>29</height>
@ -646,7 +646,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>MinimumExpanding</enum> <enum>MinimumExpanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>1</width> <width>1</width>
<height>1</height> <height>1</height>
@ -697,16 +697,16 @@
<variable access="public">QPixmap img_on;</variable> <variable access="public">QPixmap img_on;</variable>
<variable access="public">QPixmap img_off;</variable> <variable access="public">QPixmap img_off;</variable>
</variables> </variables>
<slots> <Q_SLOTS>
<slot>KbfxTooltipAnimationButtonToggled( bool )</slot> <slot>KbfxTooltipAnimationButtonToggled( bool )</slot>
<slot>KbfxTooltipTextEditTextChanged()</slot> <slot>KbfxTooltipTextEditTextChanged()</slot>
<slot>KbfxTooltipOnButtonToggled( bool )</slot> <slot>KbfxTooltipOnButtonToggled( bool )</slot>
<slot>ChangeForm()</slot> <slot>ChangeForm()</slot>
</slots> </Q_SLOTS>
<functions> <functions>
<function access="private" specifier="non virtual">init()</function> <function access="private" specifier="non virtual">init()</function>
</functions> </functions>
<layoutdefaults spacing="6" margin="0"/> <tqlayoutdefaults spacing="6" margin="0"/>
<includehints> <includehints>
<includehint>kactivelabel.h</includehint> <includehint>kactivelabel.h</includehint>
<includehint>kactivelabel.h</includehint> <includehint>kactivelabel.h</includehint>

@ -2,7 +2,7 @@
** ui.h extension file, included from the uic-generated form implementation. ** ui.h extension file, included from the uic-generated form implementation.
** **
** If you want to add, delete, or rename functions or slots, use ** If you want to add, delete, or rename functions or slots, use
** Qt Designer to update this file, preserving your code. ** TQt Designer to update this file, preserving your code.
** **
** You should not define a constructor or destructor in this file. ** You should not define a constructor or destructor in this file.
** Instead, write your code in functions called init() and destroy(). ** Instead, write your code in functions called init() and destroy().

@ -1,10 +1,10 @@
<!DOCTYPE UI><UI version="3.3" stdsetdef="1"> <!DOCTYPE UI><UI version="3.3" stdsetdef="1">
<class>KbfxThemeInfo</class> <class>KbfxThemeInfo</class>
<widget class="QWidget"> <widget class="TQWidget">
<property name="name"> <property name="name">
<cstring>KbfxThemeInfo</cstring> <cstring>KbfxThemeInfo</cstring>
</property> </property>
<property name="geometry"> <property name="tqgeometry">
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
@ -42,9 +42,9 @@
<property name="resizeMode"> <property name="resizeMode">
<enum>Minimum</enum> <enum>Minimum</enum>
</property> </property>
<widget class="QLayoutWidget" row="3" column="0" rowspan="1" colspan="3"> <widget class="TQLayoutWidget" row="3" column="0" rowspan="1" colspan="3">
<property name="name"> <property name="name">
<cstring>layout10</cstring> <cstring>tqlayout10</cstring>
</property> </property>
<hbox> <hbox>
<property name="name"> <property name="name">
@ -63,14 +63,14 @@
<property name="sizeType"> <property name="sizeType">
<enum>MinimumExpanding</enum> <enum>MinimumExpanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>54</width> <width>54</width>
<height>6</height> <height>6</height>
</size> </size>
</property> </property>
</spacer> </spacer>
<widget class="QPushButton"> <widget class="TQPushButton">
<property name="name"> <property name="name">
<cstring>KbfxOk</cstring> <cstring>KbfxOk</cstring>
</property> </property>
@ -99,7 +99,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>MinimumExpanding</enum> <enum>MinimumExpanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>54</width> <width>54</width>
<height>6</height> <height>6</height>
@ -118,7 +118,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>MinimumExpanding</enum> <enum>MinimumExpanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>16</width> <width>16</width>
<height>16</height> <height>16</height>
@ -135,16 +135,16 @@
<property name="sizeType"> <property name="sizeType">
<enum>MinimumExpanding</enum> <enum>MinimumExpanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>16</width> <width>16</width>
<height>16</height> <height>16</height>
</size> </size>
</property> </property>
</spacer> </spacer>
<widget class="QLayoutWidget" row="1" column="1"> <widget class="TQLayoutWidget" row="1" column="1">
<property name="name"> <property name="name">
<cstring>layout7</cstring> <cstring>tqlayout7</cstring>
</property> </property>
<hbox> <hbox>
<property name="name"> <property name="name">
@ -156,9 +156,9 @@
<property name="spacing"> <property name="spacing">
<number>0</number> <number>0</number>
</property> </property>
<widget class="QLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>layout11</cstring> <cstring>tqlayout11</cstring>
</property> </property>
<vbox> <vbox>
<property name="name"> <property name="name">
@ -174,14 +174,14 @@
<property name="sizeType"> <property name="sizeType">
<enum>MinimumExpanding</enum> <enum>MinimumExpanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>10</width> <width>10</width>
<height>49</height> <height>49</height>
</size> </size>
</property> </property>
</spacer> </spacer>
<widget class="QLabel"> <widget class="TQLabel">
<property name="name"> <property name="name">
<cstring>KbfxThemeLogo</cstring> <cstring>KbfxThemeLogo</cstring>
</property> </property>
@ -193,13 +193,13 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="minimumSize"> <property name="tqminimumSize">
<size> <size>
<width>100</width> <width>100</width>
<height>100</height> <height>100</height>
</size> </size>
</property> </property>
<property name="maximumSize"> <property name="tqmaximumSize">
<size> <size>
<width>100</width> <width>100</width>
<height>100</height> <height>100</height>
@ -211,7 +211,7 @@
<property name="scaledContents"> <property name="scaledContents">
<bool>true</bool> <bool>true</bool>
</property> </property>
<property name="alignment"> <property name="tqalignment">
<set>AlignCenter</set> <set>AlignCenter</set>
</property> </property>
</widget> </widget>
@ -225,7 +225,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>MinimumExpanding</enum> <enum>MinimumExpanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>10</width> <width>10</width>
<height>49</height> <height>49</height>
@ -244,16 +244,16 @@
<property name="sizeType"> <property name="sizeType">
<enum>MinimumExpanding</enum> <enum>MinimumExpanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>16</width> <width>16</width>
<height>16</height> <height>16</height>
</size> </size>
</property> </property>
</spacer> </spacer>
<widget class="QLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>layout21</cstring> <cstring>tqlayout21</cstring>
</property> </property>
<hbox> <hbox>
<property name="name"> <property name="name">
@ -262,9 +262,9 @@
<property name="spacing"> <property name="spacing">
<number>15</number> <number>15</number>
</property> </property>
<widget class="QLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>layout19</cstring> <cstring>tqlayout19</cstring>
</property> </property>
<vbox> <vbox>
<property name="name"> <property name="name">
@ -352,9 +352,9 @@
</widget> </widget>
</vbox> </vbox>
</widget> </widget>
<widget class="QLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>layout20</cstring> <cstring>tqlayout20</cstring>
</property> </property>
<vbox> <vbox>
<property name="name"> <property name="name">
@ -534,7 +534,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>MinimumExpanding</enum> <enum>MinimumExpanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>16</width> <width>16</width>
<height>16</height> <height>16</height>
@ -551,7 +551,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>MinimumExpanding</enum> <enum>MinimumExpanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>16</width> <width>16</width>
<height>16</height> <height>16</height>
@ -581,13 +581,13 @@
<includes> <includes>
<include location="local" impldecl="in implementation">kbfxthemeinfo.ui.h</include> <include location="local" impldecl="in implementation">kbfxthemeinfo.ui.h</include>
</includes> </includes>
<slots> <Q_SLOTS>
<slot>hideSpacer()</slot> <slot>hideSpacer()</slot>
</slots> </Q_SLOTS>
<functions> <functions>
<function access="private" specifier="non virtual">init()</function> <function access="private" specifier="non virtual">init()</function>
</functions> </functions>
<layoutdefaults spacing="6" margin="11"/> <tqlayoutdefaults spacing="6" margin="11"/>
<includehints> <includehints>
<includehint>kactivelabel.h</includehint> <includehint>kactivelabel.h</includehint>
<includehint>kactivelabel.h</includehint> <includehint>kactivelabel.h</includehint>

@ -2,7 +2,7 @@
** ui.h extension file, included from the uic-generated form implementation. ** ui.h extension file, included from the uic-generated form implementation.
** **
** If you want to add, delete, or rename functions or slots, use ** If you want to add, delete, or rename functions or slots, use
** Qt Designer to update this file, preserving your code. ** TQt Designer to update this file, preserving your code.
** **
** You should not define a constructor or destructor in this file. ** You should not define a constructor or destructor in this file.
** Instead, write your code in functions called init() and destroy(). ** Instead, write your code in functions called init() and destroy().

@ -58,11 +58,11 @@ class KbfxConfigApplication : public KUniqueApplication
/* prepare kbfx theme cmdline option given */ /* prepare kbfx theme cmdline option given */
if ( KbfxArgs->isSet ( "prepare" ) ) if ( KbfxArgs->isSet ( "prepare" ) )
{ {
QString m_KbfxThemeFolderUrl = KbfxArgs->getOption ( "prepare" ); TQString m_KbfxThemeFolderUrl = KbfxArgs->getOption ( "prepare" );
if ( m_KbfxThemeFolderUrl.endsWith ( "/" ) ) m_KbfxThemeFolderUrl.truncate ( m_KbfxThemeFolderUrl.length()-1 ); if ( m_KbfxThemeFolderUrl.endsWith ( "/" ) ) m_KbfxThemeFolderUrl.truncate ( m_KbfxThemeFolderUrl.length()-1 );
QString theme_name = m_KbfxThemeFolderUrl.section ( '/', -1 ); TQString theme_name = m_KbfxThemeFolderUrl.section ( '/', -1 );
QString archive_dir = m_KbfxThemeFolderUrl.section ( '/', 0, -2 ); TQString archive_dir = m_KbfxThemeFolderUrl.section ( '/', 0, -2 );
QString archive_name = archive_dir+"/"+ theme_name+".kbfxtheme"; TQString archive_name = archive_dir+"/"+ theme_name+".kbfxtheme";
kdDebug() << "Prepare option arguments: " kdDebug() << "Prepare option arguments: "
<< theme_name << theme_name
<< endl << endl
@ -95,14 +95,14 @@ class KbfxConfigApplication : public KUniqueApplication
} }
kdDebug() << "KBFX theme prepared. Quitting..." << endl; kdDebug() << "KBFX theme prepared. Quitting..." << endl;
QTimer::singleShot ( 100, mainWin, SLOT ( deleteLater() ) ); TQTimer::singleShot ( 100, mainWin, TQT_SLOT ( deleteLater() ) );
} }
else else
{ {
/* install kbfx theme cmdline option given */ /* install kbfx theme cmdline option given */
if ( KbfxArgs->isSet ( "install" ) ) if ( KbfxArgs->isSet ( "install" ) )
{ {
QString m_KbfxThemeUrl = KbfxArgs->getOption ( "install" ); TQString m_KbfxThemeUrl = KbfxArgs->getOption ( "install" );
kdDebug() << "Install option argument: " kdDebug() << "Install option argument: "
<< m_KbfxThemeUrl << m_KbfxThemeUrl
<< endl; << endl;

@ -26,11 +26,11 @@ KbfxConfig::KbfxConfig()
/* set default configuration values */ /* set default configuration values */
/* KBFX internal settings */ /* KBFX internal settings */
KbfxThemeRcDestination = KGlobal::dirs()->saveLocation ( "data", QString ( "kbfx/themerc/" ), TRUE ); KbfxThemeRcDestination = KGlobal::dirs()->saveLocation ( "data", TQString ( "kbfx/themerc/" ), TRUE );
KbfxRcPath = KGlobal::dirs()->findResource ( "config", "kbfxrc" ); KbfxRcPath = KGlobal::dirs()->findResource ( "config", "kbfxrc" );
m_KbfxDeleteOldConf = FALSE; m_KbfxDeleteOldConf = FALSE;
QString _unspecified = tr2i18n ( "Not Specified" ); TQString _unspecified = tr2i18n ( "Not Specified" );
QString path = locate ( "data", "kbfx/skins/default/bg.png" ); TQString path = locate ( "data", "kbfx/skins/default/bg.png" );
path.remove ( "default/bg.png" ); path.remove ( "default/bg.png" );
kdDebug() << "Configuration path skins: " + path << endl; kdDebug() << "Configuration path skins: " + path << endl;
@ -63,7 +63,7 @@ KbfxConfig::KbfxConfig()
m_ToolTipTextDefault = "Application menu"; m_ToolTipTextDefault = "Application menu";
m_ToolTipAvatarDefault = path + "default/butterfly.png"; m_ToolTipAvatarDefault = path + "default/butterfly.png";
m_SpinxTooltipDudeboxDefault = path + "default/tooltip_dudebox.png"; m_SpinxTooltipDudeboxDefault = path + "default/tooltip_dudebox.png";
m_SpinxTooltipMaskDefault = path + "default/tooltip_mask.png"; m_SpinxTooltipMaskDefault = path + "default/tooltip_tqmask.png";
m_SpinxTooltipWindowDefault = path + "default/tooltip_window.png"; m_SpinxTooltipWindowDefault = path + "default/tooltip_window.png";
m_SpinxTooltipLogoDefault = path + "default/tooltip_logo.png"; m_SpinxTooltipLogoDefault = path + "default/tooltip_logo.png";
@ -140,21 +140,21 @@ KbfxConfig::KbfxConfig()
m_iconSizeDefault = 32; m_iconSizeDefault = 32;
/* set default fonts values */ /* set default fonts values */
m_fontTooltipColorDefault = QColor ( 0,0,0 ); m_fontTooltipColorDefault = TQColor ( 0,0,0 );
m_fontTooltipFontDefault = QFont ( "Arial", 8, QFont::Normal ); m_fontTooltipFontDefault = TQFont ( "Arial", 8, TQFont::Normal );
m_fontAppNameColorDefault = QColor ( 0,0,0 ); m_fontAppNameColorDefault = TQColor ( 0,0,0 );
m_fontAppNameFontDefault = QFont ( "Arial", 8, QFont::Normal ); m_fontAppNameFontDefault = TQFont ( "Arial", 8, TQFont::Normal );
m_fontAppCommentColorDefault = QColor ( 128,125,0 ); m_fontAppCommentColorDefault = TQColor ( 128,125,0 );
m_fontAppCommentFontDefault = QFont ( "Arial", 8, QFont::Normal ); m_fontAppCommentFontDefault = TQFont ( "Arial", 8, TQFont::Normal );
m_fontIndexColorDefault = QColor ( 0,0,0 ); m_fontIndexColorDefault = TQColor ( 0,0,0 );
m_fontIndexFontDefault = QFont ( "Arial", 8, QFont::Normal ); m_fontIndexFontDefault = TQFont ( "Arial", 8, TQFont::Normal );
m_userNameColorDefault = QColor ( 255,255,255 ); m_userNameColorDefault = TQColor ( 255,255,255 );
m_userNameFontDefault = QFont ( "Arial", 10, QFont::Bold ); m_userNameFontDefault = TQFont ( "Arial", 10, TQFont::Bold );
m_sepNameColorDefault = QColor ( 0,0,0 ); m_sepNameColorDefault = TQColor ( 0,0,0 );
m_sepNameFontDefault = QFont ( "Arial", 8, QFont::Bold ); m_sepNameFontDefault = TQFont ( "Arial", 8, TQFont::Bold );
m_pluginNameColorDefault = QColor ( 0,0,0 ); m_pluginNameColorDefault = TQColor ( 0,0,0 );
m_pluginNameFontDefault = QFont ( "Arial", 8, QFont::Normal ); m_pluginNameFontDefault = TQFont ( "Arial", 8, TQFont::Normal );
m_lineColorDefault = QColor ( 255,220,125 ); m_lineColorDefault = TQColor ( 255,220,125 );
m_fontHoverBoldDefault = FALSE; m_fontHoverBoldDefault = FALSE;
/* set default theme info values */ /* set default theme info values */
@ -208,7 +208,7 @@ void KbfxConfig::setThemeInfoDefault()
void KbfxConfig::setThemeDefault() void KbfxConfig::setThemeDefault()
{ {
/* set default theme layout configuration */ /* set default theme tqlayout configuration */
m_KbfxNormalButtonPath = m_KbfxNormalButtonPathDefault; m_KbfxNormalButtonPath = m_KbfxNormalButtonPathDefault;
m_KbfxHoverButtonPath = m_KbfxHoverButtonPathDefault; m_KbfxHoverButtonPath = m_KbfxHoverButtonPathDefault;
m_KbfxPressedButtonPath = m_KbfxPressedButtonPathDefault; m_KbfxPressedButtonPath = m_KbfxPressedButtonPathDefault;
@ -293,11 +293,11 @@ void KbfxConfig::setFontsDefault()
m_fontHoverBold = m_fontHoverBoldDefault; m_fontHoverBold = m_fontHoverBoldDefault;
} }
void KbfxConfig::readThemeInfo ( QString &themePath, QString &themeName ) void KbfxConfig::readThemeInfo ( TQString &themePath, TQString &themeName )
{ {
setThemeInfoDefault(); setThemeInfoDefault();
QFileInfo * info_theme = new QFileInfo ( themePath + themeName + "/" + m_KbfxThemesVersion ); TQFileInfo * info_theme = new TQFileInfo ( themePath + themeName + "/" + m_KbfxThemesVersion );
KConfig * infoconfig = 0; KConfig * infoconfig = 0;
if ( info_theme->exists() == TRUE ) if ( info_theme->exists() == TRUE )
@ -325,11 +325,11 @@ void KbfxConfig::readThemeInfo ( QString &themePath, QString &themeName )
void KbfxConfig::read() void KbfxConfig::read()
{ {
/* read general configuration */ /* read general configuration */
KConfigSkeleton *confskel = new KConfigSkeleton ( QString::fromLatin1 ( "kbfxrc" ) ); KConfigSkeleton *confskel = new KConfigSkeleton ( TQString::tqfromLatin1 ( "kbfxrc" ) );
KConfig *conf = confskel->config(); KConfig *conf = confskel->config();
QString __default = KGlobal::iconLoader()->iconPath ( "kbfx", ( int ) KIcon::Desktop, FALSE ); TQString __default = KGlobal::iconLoader()->iconPath ( "kbfx", ( int ) KIcon::Desktop, FALSE );
conf->setGroup ( "KbfxGeneral" ); conf->setGroup ( "KbfxGeneral" );
m_KbfxGeneralVersion = conf->readNumEntry ( "Version", 0 ); m_KbfxGeneralVersion = conf->readNumEntry ( "Version", 0 );
@ -400,7 +400,7 @@ void KbfxConfig::read()
} }
} }
void KbfxConfig::readFontrc ( QString & themePath, QString & themeName, bool user_rc ) void KbfxConfig::readFontrc ( TQString & themePath, TQString & themeName, bool user_rc )
{ {
setFontsDefault(); setFontsDefault();
@ -411,9 +411,9 @@ void KbfxConfig::readFontrc ( QString & themePath, QString & themeName, bool use
themeName = m_SpinxThemeNameDefault; themeName = m_SpinxThemeNameDefault;
} }
/* get some font settings from theme file or from theme section */ /* get some font settings from theme file or from theme section */
QString _abs_path = ""; TQString _abs_path = "";
QFileInfo * info = new QFileInfo ( themePath + themeName + "/kbfxfontrc" ); TQFileInfo * info = new TQFileInfo ( themePath + themeName + "/kbfxfontrc" );
QFileInfo * info_theme = new QFileInfo ( KbfxThemeRcDestination + "/" + themeName + "_fontrc" ); TQFileInfo * info_theme = new TQFileInfo ( KbfxThemeRcDestination + "/" + themeName + "_fontrc" );
KConfig * fontconfig = 0; KConfig * fontconfig = 0;
/* if theme kbfxfontrc exists, make its configuration as default values - prefer users' configuration */ /* if theme kbfxfontrc exists, make its configuration as default values - prefer users' configuration */
@ -485,9 +485,9 @@ void KbfxConfig::readFontrc ( QString & themePath, QString & themeName, bool use
delete fontconfig; delete fontconfig;
} }
void KbfxConfig::readThemerc ( QString &themePath, QString &themeName, bool user_rc ) void KbfxConfig::readThemerc ( TQString &themePath, TQString &themeName, bool user_rc )
{ {
/* if a new version use default theme layout */ /* if a new version use default theme tqlayout */
if ( m_KbfxGeneralVersion < m_KbfxGeneralVersionDefault ) if ( m_KbfxGeneralVersion < m_KbfxGeneralVersionDefault )
{ {
themePath = m_SpinxThemeBasePathDefault; themePath = m_SpinxThemeBasePathDefault;
@ -495,15 +495,15 @@ void KbfxConfig::readThemerc ( QString &themePath, QString &themeName, bool user
} }
/* load theme's on and off buttons if any */ /* load theme's on and off buttons if any */
KbfxOnImg = QPixmap::QPixmap ( KbfxPlasmaPixmapProvider::PixmapPath ( "on", themePath, themeName ) ); KbfxOnImg = TQPixmap::TQPixmap ( KbfxPlasmaPixmapProvider::PixmapPath ( "on", themePath, themeName ) );
KbfxOffImg = QPixmap::QPixmap ( KbfxPlasmaPixmapProvider::PixmapPath ( "off", themePath, themeName ) ); KbfxOffImg = TQPixmap::TQPixmap ( KbfxPlasmaPixmapProvider::PixmapPath ( "off", themePath, themeName ) );
/* use theme's default dude image if any */ /* use theme's default dude image if any */
KConfigSkeleton *confskel = new KConfigSkeleton ( QString::fromLatin1 ( "kbfxrc" ) ); KConfigSkeleton *confskel = new KConfigSkeleton ( TQString::tqfromLatin1 ( "kbfxrc" ) );
KConfig *conf = confskel->config(); KConfig *conf = confskel->config();
QString __default = KGlobal::iconLoader()->iconPath ( "kbfx", ( int ) KIcon::Desktop, FALSE ); TQString __default = KGlobal::iconLoader()->iconPath ( "kbfx", ( int ) KIcon::Desktop, FALSE );
if ( m_SpinxDudeImageDefault == QString::null || !KStandardDirs::exists ( m_SpinxDudeImageDefault ) ) if ( m_SpinxDudeImageDefault == TQString() || !KStandardDirs::exists ( m_SpinxDudeImageDefault ) )
{ {
m_SpinxDudeImageDefault = KbfxPlasmaPixmapProvider::PixmapPath ( "menu_top_image_person", themePath, themeName ); m_SpinxDudeImageDefault = KbfxPlasmaPixmapProvider::PixmapPath ( "menu_top_image_person", themePath, themeName );
} }
@ -519,19 +519,19 @@ void KbfxConfig::readThemerc ( QString &themePath, QString &themeName, bool user
/* load theme's default tooltip images if any */ /* load theme's default tooltip images if any */
m_ToolTipAvatarDefault = KbfxPlasmaPixmapProvider::PixmapPath ( "butterfly", themePath, themeName ); m_ToolTipAvatarDefault = KbfxPlasmaPixmapProvider::PixmapPath ( "butterfly", themePath, themeName );
m_SpinxTooltipDudeboxDefault = KbfxPlasmaPixmapProvider::PixmapPath ( "tooltip_dudebox", themePath, themeName ); m_SpinxTooltipDudeboxDefault = KbfxPlasmaPixmapProvider::PixmapPath ( "tooltip_dudebox", themePath, themeName );
m_SpinxTooltipMaskDefault = KbfxPlasmaPixmapProvider::PixmapPath ( "tooltip_mask", themePath, themeName ); m_SpinxTooltipMaskDefault = KbfxPlasmaPixmapProvider::PixmapPath ( "tooltip_tqmask", themePath, themeName );
m_SpinxTooltipWindowDefault = KbfxPlasmaPixmapProvider::PixmapPath ( "tooltip_window", themePath, themeName ); m_SpinxTooltipWindowDefault = KbfxPlasmaPixmapProvider::PixmapPath ( "tooltip_window", themePath, themeName );
m_SpinxTooltipLogoDefault = KbfxPlasmaPixmapProvider::PixmapPath ( "tooltip_logo", themePath, themeName ); m_SpinxTooltipLogoDefault = KbfxPlasmaPixmapProvider::PixmapPath ( "tooltip_logo", themePath, themeName );
setThemeDefault(); setThemeDefault();
/* get some theme layout settings from theme file or from theme section */ /* get some theme tqlayout settings from theme file or from theme section */
QString _abs_path = ""; TQString _abs_path = "";
QFileInfo * info = new QFileInfo ( themePath + themeName + "/kbfxlayoutrc" ); TQFileInfo * info = new TQFileInfo ( themePath + themeName + "/kbfxtqlayoutrc" );
QFileInfo * info_theme = new QFileInfo ( KbfxThemeRcDestination + "/" + themeName + "_layoutrc" ); TQFileInfo * info_theme = new TQFileInfo ( KbfxThemeRcDestination + "/" + themeName + "_layoutrc" );
KConfig *layoutconfig = 0; KConfig *tqlayoutconfig = 0;
/* if theme kbfxlayoutrc exists, make its configuration as default values - prefer users' configuration */ /* if theme kbfxtqlayoutrc exists, make its configuration as default values - prefer users' configuration */
if ( info_theme->exists() == TRUE || info->exists() == TRUE ) if ( info_theme->exists() == TRUE || info->exists() == TRUE )
{ {
if ( info_theme->exists() == TRUE && m_KbfxGeneralVersion >= m_KbfxGeneralVersionDefault && user_rc ) if ( info_theme->exists() == TRUE && m_KbfxGeneralVersion >= m_KbfxGeneralVersionDefault && user_rc )
@ -543,82 +543,82 @@ void KbfxConfig::readThemerc ( QString &themePath, QString &themeName, bool user
_abs_path = info->absFilePath(); _abs_path = info->absFilePath();
} }
layoutconfig = new KConfig ( _abs_path ); tqlayoutconfig = new KConfig ( _abs_path );
layoutconfig->setGroup ( "KbfxButton" ); tqlayoutconfig->setGroup ( "KbfxButton" );
m_KbfxNormalButtonPath = layoutconfig->readEntry ( "Normal", m_KbfxNormalButtonPathDefault ); m_KbfxNormalButtonPath = tqlayoutconfig->readEntry ( "Normal", m_KbfxNormalButtonPathDefault );
m_KbfxHoverButtonPath = layoutconfig->readEntry ( "Hover", m_KbfxHoverButtonPathDefault ); m_KbfxHoverButtonPath = tqlayoutconfig->readEntry ( "Hover", m_KbfxHoverButtonPathDefault );
m_KbfxPressedButtonPath = layoutconfig->readEntry ( "Press", m_KbfxPressedButtonPathDefault ); m_KbfxPressedButtonPath = tqlayoutconfig->readEntry ( "Press", m_KbfxPressedButtonPathDefault );
m_fadeTime = layoutconfig->readNumEntry ( "FadeTime", m_fadeTimeDefault ); m_fadeTime = tqlayoutconfig->readNumEntry ( "FadeTime", m_fadeTimeDefault );
layoutconfig->setGroup ( "ToolTip" ); tqlayoutconfig->setGroup ( "ToolTip" );
m_ToolTipAvatar = layoutconfig->readEntry ( "Avatar", m_ToolTipAvatarDefault ); m_ToolTipAvatar = tqlayoutconfig->readEntry ( "Avatar", m_ToolTipAvatarDefault );
m_SpinxTooltipDudebox = layoutconfig->readEntry ( "Dudebox", m_SpinxTooltipDudeboxDefault ); m_SpinxTooltipDudebox = tqlayoutconfig->readEntry ( "Dudebox", m_SpinxTooltipDudeboxDefault );
m_SpinxTooltipMask = layoutconfig->readEntry ( "Mask", m_SpinxTooltipMaskDefault ); m_SpinxTooltipMask = tqlayoutconfig->readEntry ( "Mask", m_SpinxTooltipMaskDefault );
m_SpinxTooltipWindow = layoutconfig->readEntry ( "Window", m_SpinxTooltipWindowDefault ); m_SpinxTooltipWindow = tqlayoutconfig->readEntry ( "Window", m_SpinxTooltipWindowDefault );
m_SpinxTooltipLogo = layoutconfig->readEntry ( "Logo", m_SpinxTooltipLogoDefault ); m_SpinxTooltipLogo = tqlayoutconfig->readEntry ( "Logo", m_SpinxTooltipLogoDefault );
layoutconfig->setGroup ( "TopBar" ); tqlayoutconfig->setGroup ( "TopBar" );
m_facePos_x = layoutconfig->readNumEntry ( "DudeX", m_facePos_xDefault ); m_facePos_x = tqlayoutconfig->readNumEntry ( "DudeX", m_facePos_xDefault );
m_facePos_y = layoutconfig->readNumEntry ( "DudeY", m_facePos_yDefault ); m_facePos_y = tqlayoutconfig->readNumEntry ( "DudeY", m_facePos_yDefault );
m_faceIconX = layoutconfig->readNumEntry ( "FaceX",m_faceIconXDefault ); m_faceIconX = tqlayoutconfig->readNumEntry ( "FaceX",m_faceIconXDefault );
m_faceIconY = layoutconfig->readNumEntry ( "FaceY",m_faceIconYDefault ); m_faceIconY = tqlayoutconfig->readNumEntry ( "FaceY",m_faceIconYDefault );
m_faceIconH = layoutconfig->readNumEntry ( "FaceH",m_faceIconHDefault ); m_faceIconH = tqlayoutconfig->readNumEntry ( "FaceH",m_faceIconHDefault );
m_faceIconW = layoutconfig->readNumEntry ( "FaceW",m_faceIconWDefault ); m_faceIconW = tqlayoutconfig->readNumEntry ( "FaceW",m_faceIconWDefault );
m_userNamePos_x = layoutconfig->readNumEntry ( "UserNameX", m_userNamePos_xDefault ); m_userNamePos_x = tqlayoutconfig->readNumEntry ( "UserNameX", m_userNamePos_xDefault );
m_userNamePos_y = layoutconfig->readNumEntry ( "UserNameY", m_userNamePos_yDefault ); m_userNamePos_y = tqlayoutconfig->readNumEntry ( "UserNameY", m_userNamePos_yDefault );
m_faceBoxHideText= layoutconfig->readBoolEntry ( "DisableUserName", m_faceBoxHideTextDefault ); m_faceBoxHideText= tqlayoutconfig->readBoolEntry ( "DisableUserName", m_faceBoxHideTextDefault );
m_topBar_h = layoutconfig->readNumEntry ( "Height", m_topBar_hDefault ); m_topBar_h = tqlayoutconfig->readNumEntry ( "Height", m_topBar_hDefault );
m_topBar_w = layoutconfig->readNumEntry ( "Width", m_topBar_wDefault ); m_topBar_w = tqlayoutconfig->readNumEntry ( "Width", m_topBar_wDefault );
m_topBar_x = layoutconfig->readNumEntry ( "X", m_topBar_xDefault ); m_topBar_x = tqlayoutconfig->readNumEntry ( "X", m_topBar_xDefault );
m_topBar_y = layoutconfig->readNumEntry ( "Y", m_topBar_yDefault ); m_topBar_y = tqlayoutconfig->readNumEntry ( "Y", m_topBar_yDefault );
layoutconfig->setGroup ( "BottomBar" ); tqlayoutconfig->setGroup ( "BottomBar" );
m_botBar_h = layoutconfig->readNumEntry ( "Height", m_botBar_hDefault ); m_botBar_h = tqlayoutconfig->readNumEntry ( "Height", m_botBar_hDefault );
m_botBar_w = layoutconfig->readNumEntry ( "Width", m_botBar_wDefault ); m_botBar_w = tqlayoutconfig->readNumEntry ( "Width", m_botBar_wDefault );
m_botBar_x = layoutconfig->readNumEntry ( "X", m_botBar_xDefault ); m_botBar_x = tqlayoutconfig->readNumEntry ( "X", m_botBar_xDefault );
m_botBar_y = layoutconfig->readNumEntry ( "Y", m_botBar_yDefault ); m_botBar_y = tqlayoutconfig->readNumEntry ( "Y", m_botBar_yDefault );
layoutconfig->setGroup ( "Scrollbars" ); tqlayoutconfig->setGroup ( "Scrollbars" );
m_scrollBarBotX = layoutconfig->readNumEntry ( "ScrollBarBotX", m_scrollBarBotXDefault ); m_scrollBarBotX = tqlayoutconfig->readNumEntry ( "ScrollBarBotX", m_scrollBarBotXDefault );
m_scrollBarBotY = layoutconfig->readNumEntry ( "ScrollBarBotY", m_scrollBarBotYDefault ); m_scrollBarBotY = tqlayoutconfig->readNumEntry ( "ScrollBarBotY", m_scrollBarBotYDefault );
m_scrollBarTopX = layoutconfig->readNumEntry ( "ScrollBarTopX", m_scrollBarTopXDefault ); m_scrollBarTopX = tqlayoutconfig->readNumEntry ( "ScrollBarTopX", m_scrollBarTopXDefault );
m_scrollBarTopY = layoutconfig->readNumEntry ( "ScrollBarTopY", m_scrollBarTopYDefault ); m_scrollBarTopY = tqlayoutconfig->readNumEntry ( "ScrollBarTopY", m_scrollBarTopYDefault );
layoutconfig->setGroup ( "ListBox" ); tqlayoutconfig->setGroup ( "ListBox" );
m_listBox_h = layoutconfig->readNumEntry ( "Height", m_listBox_hDefault ); m_listBox_h = tqlayoutconfig->readNumEntry ( "Height", m_listBox_hDefault );
m_listBox_w = layoutconfig->readNumEntry ( "Width", m_listBox_wDefault ); m_listBox_w = tqlayoutconfig->readNumEntry ( "Width", m_listBox_wDefault );
m_listBox_x = layoutconfig->readNumEntry ( "X", m_listBox_xDefault ); m_listBox_x = tqlayoutconfig->readNumEntry ( "X", m_listBox_xDefault );
m_listBox_y = layoutconfig->readNumEntry ( "Y", m_listBox_yDefault ); m_listBox_y = tqlayoutconfig->readNumEntry ( "Y", m_listBox_yDefault );
layoutconfig->setGroup ( "SearchBox" ); tqlayoutconfig->setGroup ( "SearchBox" );
m_searchBox_h = layoutconfig->readNumEntry ( "Height", m_searchBox_hDefault ); m_searchBox_h = tqlayoutconfig->readNumEntry ( "Height", m_searchBox_hDefault );
m_searchBox_w = layoutconfig->readNumEntry ( "Width", m_searchBox_wDefault ); m_searchBox_w = tqlayoutconfig->readNumEntry ( "Width", m_searchBox_wDefault );
m_searchBox_x = layoutconfig->readNumEntry ( "X", m_searchBox_xDefault ); m_searchBox_x = tqlayoutconfig->readNumEntry ( "X", m_searchBox_xDefault );
m_searchBox_y = layoutconfig->readNumEntry ( "Y", m_searchBox_yDefault ); m_searchBox_y = tqlayoutconfig->readNumEntry ( "Y", m_searchBox_yDefault );
m_searchBox_static = layoutconfig->readBoolEntry ( "FixedPos", m_searchBox_staticDefault ); m_searchBox_static = tqlayoutconfig->readBoolEntry ( "FixedPos", m_searchBox_staticDefault );
layoutconfig->setGroup ( "ItemView" ); tqlayoutconfig->setGroup ( "ItemView" );
m_itemView_h = layoutconfig->readNumEntry ( "Height", m_itemView_hDefault ); m_itemView_h = tqlayoutconfig->readNumEntry ( "Height", m_itemView_hDefault );
m_itemView_w = layoutconfig->readNumEntry ( "Width", m_itemView_wDefault ); m_itemView_w = tqlayoutconfig->readNumEntry ( "Width", m_itemView_wDefault );
m_itemView_x = layoutconfig->readNumEntry ( "X", m_itemView_xDefault ); m_itemView_x = tqlayoutconfig->readNumEntry ( "X", m_itemView_xDefault );
m_itemView_y = layoutconfig->readNumEntry ( "Y", m_itemView_yDefault ); m_itemView_y = tqlayoutconfig->readNumEntry ( "Y", m_itemView_yDefault );
layoutconfig->setGroup ( "ToolBar" ); tqlayoutconfig->setGroup ( "ToolBar" );
m_toolBarButtonNormalSize = layoutconfig->readNumEntry ( "ButtonNormalSize", m_toolBarButtonNormalSizeDefault ); m_toolBarButtonNormalSize = tqlayoutconfig->readNumEntry ( "ButtonNormalSize", m_toolBarButtonNormalSizeDefault );
m_toolBarButtonExpandSize = layoutconfig->readNumEntry ( "ButtonPressedSize", m_toolBarButtonExpandSizeDefault ); m_toolBarButtonExpandSize = tqlayoutconfig->readNumEntry ( "ButtonPressedSize", m_toolBarButtonExpandSizeDefault );
layoutconfig->setGroup ( "MainMenu" ); tqlayoutconfig->setGroup ( "MainMenu" );
m_userMenuHeight = layoutconfig->readNumEntry ( "UserMenuHeight",m_userMenuHeightDefault ); m_userMenuHeight = tqlayoutconfig->readNumEntry ( "UserMenuHeight",m_userMenuHeightDefault );
m_userMenuWidth = layoutconfig->readNumEntry ( "UserMenuWidth",m_userMenuWidthDefault ); m_userMenuWidth = tqlayoutconfig->readNumEntry ( "UserMenuWidth",m_userMenuWidthDefault );
m_startHidden = layoutconfig->readBoolEntry ( "ContractedMenu", m_startHiddenDefault ); m_startHidden = tqlayoutconfig->readBoolEntry ( "ContractedMenu", m_startHiddenDefault );
layoutconfig->setGroup ( "ItemProperties" ); tqlayoutconfig->setGroup ( "ItemProperties" );
m_noComments = layoutconfig->readBoolEntry ( "NoComments",m_noCommentsDefault ); m_noComments = tqlayoutconfig->readBoolEntry ( "NoComments",m_noCommentsDefault );
m_commentMargine = layoutconfig->readNumEntry ( "CommentMargin",m_commentMargineDefault ); m_commentMargine = tqlayoutconfig->readNumEntry ( "CommentMargin",m_commentMargineDefault );
m_iconSize = layoutconfig->readNumEntry ( "IconSize",m_iconSizeDefault ); m_iconSize = tqlayoutconfig->readNumEntry ( "IconSize",m_iconSizeDefault );
kdDebug() << "Read default layout settings for theme: " kdDebug() << "Read default tqlayout settings for theme: "
<< themeName << themeName
<< " from file: " << " from file: "
<< _abs_path << _abs_path
@ -691,18 +691,18 @@ void KbfxConfig::readThemerc ( QString &themePath, QString &themeName, bool user
delete info; delete info;
delete info_theme; delete info_theme;
delete layoutconfig; delete tqlayoutconfig;
} }
void KbfxConfig::write() void KbfxConfig::write()
{ {
if ( m_KbfxDeleteOldConf && KbfxRcPath != QString::null ) if ( m_KbfxDeleteOldConf && KbfxRcPath != TQString() )
{ {
QFile::remove ( KbfxRcPath ); TQFile::remove ( KbfxRcPath );
kdDebug() << "Deleting general RC file: " << KbfxRcPath << endl; kdDebug() << "Deleting general RC file: " << KbfxRcPath << endl;
} }
KConfigSkeleton *confskel = new KConfigSkeleton ( QString::fromLatin1 ( "kbfxrc" ) ); KConfigSkeleton *confskel = new KConfigSkeleton ( TQString::tqfromLatin1 ( "kbfxrc" ) );
/* write general KBFX configuration options */ /* write general KBFX configuration options */
KConfig *conf = confskel->config(); KConfig *conf = confskel->config();
@ -743,7 +743,7 @@ void KbfxConfig::write()
delete confskel; delete confskel;
} }
void KbfxConfig::writeFontrc ( QString & themeName ) void KbfxConfig::writeFontrc ( TQString & themeName )
{ {
/* write fonts KBFX configuration from theme name */ /* write fonts KBFX configuration from theme name */
KConfig *fontconfig = new KConfig ( KbfxThemeRcDestination + "/" + themeName + "_fontrc" ); KConfig *fontconfig = new KConfig ( KbfxThemeRcDestination + "/" + themeName + "_fontrc" );
@ -770,89 +770,89 @@ void KbfxConfig::writeFontrc ( QString & themeName )
delete fontconfig; delete fontconfig;
} }
void KbfxConfig::writeThemerc ( QString & themeName ) void KbfxConfig::writeThemerc ( TQString & themeName )
{ {
checkValues(); checkValues();
/* write layout theme configuration from theme name */ /* write tqlayout theme configuration from theme name */
KConfig *layoutconfig = new KConfig ( KbfxThemeRcDestination + "/" + themeName + "_layoutrc" ); KConfig *tqlayoutconfig = new KConfig ( KbfxThemeRcDestination + "/" + themeName + "_layoutrc" );
layoutconfig->setGroup ( "KbfxButton" ); tqlayoutconfig->setGroup ( "KbfxButton" );
layoutconfig->writeEntry ( "Normal", m_KbfxNormalButtonPath ); tqlayoutconfig->writeEntry ( "Normal", m_KbfxNormalButtonPath );
layoutconfig->writeEntry ( "Hover", m_KbfxHoverButtonPath ); tqlayoutconfig->writeEntry ( "Hover", m_KbfxHoverButtonPath );
layoutconfig->writeEntry ( "Press", m_KbfxPressedButtonPath ); tqlayoutconfig->writeEntry ( "Press", m_KbfxPressedButtonPath );
layoutconfig->writeEntry ( "FadeTime", m_fadeTime ); tqlayoutconfig->writeEntry ( "FadeTime", m_fadeTime );
layoutconfig->setGroup ( "ToolTip" ); tqlayoutconfig->setGroup ( "ToolTip" );
layoutconfig->writeEntry ( "Avatar", m_ToolTipAvatar ); tqlayoutconfig->writeEntry ( "Avatar", m_ToolTipAvatar );
layoutconfig->writeEntry ( "Dudebox", m_SpinxTooltipDudebox ); tqlayoutconfig->writeEntry ( "Dudebox", m_SpinxTooltipDudebox );
layoutconfig->writeEntry ( "Mask", m_SpinxTooltipMask ); tqlayoutconfig->writeEntry ( "Mask", m_SpinxTooltipMask );
layoutconfig->writeEntry ( "Window", m_SpinxTooltipWindow ); tqlayoutconfig->writeEntry ( "Window", m_SpinxTooltipWindow );
layoutconfig->writeEntry ( "Logo", m_SpinxTooltipLogo ); tqlayoutconfig->writeEntry ( "Logo", m_SpinxTooltipLogo );
layoutconfig->setGroup ( "TopBar" ); tqlayoutconfig->setGroup ( "TopBar" );
layoutconfig->writeEntry ( "DudeX", m_facePos_x ); tqlayoutconfig->writeEntry ( "DudeX", m_facePos_x );
layoutconfig->writeEntry ( "DudeY", m_facePos_y ); tqlayoutconfig->writeEntry ( "DudeY", m_facePos_y );
layoutconfig->writeEntry ( "FaceX",m_faceIconX ); tqlayoutconfig->writeEntry ( "FaceX",m_faceIconX );
layoutconfig->writeEntry ( "FaceY",m_faceIconY ); tqlayoutconfig->writeEntry ( "FaceY",m_faceIconY );
layoutconfig->writeEntry ( "FaceH",m_faceIconH ); tqlayoutconfig->writeEntry ( "FaceH",m_faceIconH );
layoutconfig->writeEntry ( "FaceW",m_faceIconW ); tqlayoutconfig->writeEntry ( "FaceW",m_faceIconW );
layoutconfig->writeEntry ( "UserNameX", m_userNamePos_x ); tqlayoutconfig->writeEntry ( "UserNameX", m_userNamePos_x );
layoutconfig->writeEntry ( "UserNameY", m_userNamePos_y ); tqlayoutconfig->writeEntry ( "UserNameY", m_userNamePos_y );
layoutconfig->writeEntry ( "DisableUserName", m_faceBoxHideText ); tqlayoutconfig->writeEntry ( "DisableUserName", m_faceBoxHideText );
layoutconfig->writeEntry ( "Height", m_topBar_h ); tqlayoutconfig->writeEntry ( "Height", m_topBar_h );
layoutconfig->writeEntry ( "Width", m_topBar_w ); tqlayoutconfig->writeEntry ( "Width", m_topBar_w );
layoutconfig->writeEntry ( "X", m_topBar_x ); tqlayoutconfig->writeEntry ( "X", m_topBar_x );
layoutconfig->writeEntry ( "Y", m_topBar_y ); tqlayoutconfig->writeEntry ( "Y", m_topBar_y );
layoutconfig->setGroup ( "BottomBar" ); tqlayoutconfig->setGroup ( "BottomBar" );
layoutconfig->writeEntry ( "Height", m_botBar_h ); tqlayoutconfig->writeEntry ( "Height", m_botBar_h );
layoutconfig->writeEntry ( "Width", m_botBar_w ); tqlayoutconfig->writeEntry ( "Width", m_botBar_w );
layoutconfig->writeEntry ( "X", m_botBar_x ); tqlayoutconfig->writeEntry ( "X", m_botBar_x );
layoutconfig->writeEntry ( "Y", m_botBar_y ); tqlayoutconfig->writeEntry ( "Y", m_botBar_y );
layoutconfig->setGroup ( "Scrollbars" ); tqlayoutconfig->setGroup ( "Scrollbars" );
layoutconfig->writeEntry ( "ScrollBarBotX", m_scrollBarBotX ); tqlayoutconfig->writeEntry ( "ScrollBarBotX", m_scrollBarBotX );
layoutconfig->writeEntry ( "ScrollBarBotY", m_scrollBarBotY ); tqlayoutconfig->writeEntry ( "ScrollBarBotY", m_scrollBarBotY );
layoutconfig->writeEntry ( "ScrollBarTopX", m_scrollBarTopX ); tqlayoutconfig->writeEntry ( "ScrollBarTopX", m_scrollBarTopX );
layoutconfig->writeEntry ( "ScrollBarTopY", m_scrollBarTopY ); tqlayoutconfig->writeEntry ( "ScrollBarTopY", m_scrollBarTopY );
layoutconfig->setGroup ( "ListBox" ); tqlayoutconfig->setGroup ( "ListBox" );
layoutconfig->writeEntry ( "Height", m_listBox_h ); tqlayoutconfig->writeEntry ( "Height", m_listBox_h );
layoutconfig->writeEntry ( "Width", m_listBox_w ); tqlayoutconfig->writeEntry ( "Width", m_listBox_w );
layoutconfig->writeEntry ( "X", m_listBox_x ); tqlayoutconfig->writeEntry ( "X", m_listBox_x );
layoutconfig->writeEntry ( "Y", m_listBox_y ); tqlayoutconfig->writeEntry ( "Y", m_listBox_y );
layoutconfig->setGroup ( "SearchBox" ); tqlayoutconfig->setGroup ( "SearchBox" );
layoutconfig->writeEntry ( "Height", m_searchBox_h ); tqlayoutconfig->writeEntry ( "Height", m_searchBox_h );
layoutconfig->writeEntry ( "Width", m_searchBox_w ); tqlayoutconfig->writeEntry ( "Width", m_searchBox_w );
layoutconfig->writeEntry ( "X", m_searchBox_x ); tqlayoutconfig->writeEntry ( "X", m_searchBox_x );
layoutconfig->writeEntry ( "Y", m_searchBox_y ); tqlayoutconfig->writeEntry ( "Y", m_searchBox_y );
layoutconfig->writeEntry ( "FixedPos", m_searchBox_static ); tqlayoutconfig->writeEntry ( "FixedPos", m_searchBox_static );
layoutconfig->setGroup ( "ItemView" ); tqlayoutconfig->setGroup ( "ItemView" );
layoutconfig->writeEntry ( "Height", m_itemView_h ); tqlayoutconfig->writeEntry ( "Height", m_itemView_h );
layoutconfig->writeEntry ( "Width", m_itemView_w ); tqlayoutconfig->writeEntry ( "Width", m_itemView_w );
layoutconfig->writeEntry ( "X", m_itemView_x ); tqlayoutconfig->writeEntry ( "X", m_itemView_x );
layoutconfig->writeEntry ( "Y", m_itemView_y ); tqlayoutconfig->writeEntry ( "Y", m_itemView_y );
layoutconfig->setGroup ( "ToolBar" ); tqlayoutconfig->setGroup ( "ToolBar" );
layoutconfig->writeEntry ( "ButtonNormalSize", m_toolBarButtonNormalSize ); tqlayoutconfig->writeEntry ( "ButtonNormalSize", m_toolBarButtonNormalSize );
layoutconfig->writeEntry ( "ButtonPressedSize", m_toolBarButtonExpandSize ); tqlayoutconfig->writeEntry ( "ButtonPressedSize", m_toolBarButtonExpandSize );
layoutconfig->setGroup ( "MainMenu" ); tqlayoutconfig->setGroup ( "MainMenu" );
layoutconfig->writeEntry ( "UserMenuHeight",m_userMenuHeight ); tqlayoutconfig->writeEntry ( "UserMenuHeight",m_userMenuHeight );
layoutconfig->writeEntry ( "UserMenuWidth",m_userMenuWidth ); tqlayoutconfig->writeEntry ( "UserMenuWidth",m_userMenuWidth );
layoutconfig->writeEntry ( "ContractedMenu", m_startHidden ); tqlayoutconfig->writeEntry ( "ContractedMenu", m_startHidden );
layoutconfig->setGroup ( "ItemProperties" ); tqlayoutconfig->setGroup ( "ItemProperties" );
layoutconfig->writeEntry ( "NoComments",m_noComments ); tqlayoutconfig->writeEntry ( "NoComments",m_noComments );
layoutconfig->writeEntry ( "CommentMargin",m_commentMargine ); tqlayoutconfig->writeEntry ( "CommentMargin",m_commentMargine );
layoutconfig->writeEntry ( "IconSize",m_iconSize ); tqlayoutconfig->writeEntry ( "IconSize",m_iconSize );
layoutconfig->sync(); tqlayoutconfig->sync();
delete layoutconfig; delete tqlayoutconfig;
} }
void KbfxConfig::checkValues() void KbfxConfig::checkValues()

@ -24,12 +24,12 @@
#include <config.h> #include <config.h>
#include <qcolor.h> #include <tqcolor.h>
#include <qfile.h> #include <tqfile.h>
#include <qfileinfo.h> #include <tqfileinfo.h>
#include <qfont.h> #include <tqfont.h>
#include <qpixmap.h> #include <tqpixmap.h>
#include <qstring.h> #include <tqstring.h>
#include <kapplication.h> #include <kapplication.h>
#include <kconfig.h> #include <kconfig.h>
@ -47,66 +47,66 @@ class KbfxConfig
{ {
public: public:
void read(); void read();
void readFontrc ( QString &themePath, QString &themeName, bool user_rc=TRUE ); void readFontrc ( TQString &themePath, TQString &themeName, bool user_rc=TRUE );
void readThemerc ( QString &themePath, QString &themeName, bool user_rc=TRUE ); void readThemerc ( TQString &themePath, TQString &themeName, bool user_rc=TRUE );
void readThemeInfo ( QString &themePath, QString &themeName ); void readThemeInfo ( TQString &themePath, TQString &themeName );
void setDefault(); void setDefault();
void setThemeDefault(); void setThemeDefault();
void setFontsDefault(); void setFontsDefault();
void setThemeInfoDefault(); void setThemeInfoDefault();
void write(); void write();
void writeFontrc ( QString &themeName ); void writeFontrc ( TQString &themeName );
void writeThemerc ( QString &themeName ); void writeThemerc ( TQString &themeName );
void checkValues(); void checkValues();
/* Theme info resources */ /* Theme info resources */
QString m_InfoVersion; TQString m_InfoVersion;
QString m_InfoVersionDefault; TQString m_InfoVersionDefault;
QString m_InfoAuthor; TQString m_InfoAuthor;
QString m_InfoAuthorDefault; TQString m_InfoAuthorDefault;
QString m_InfoEmail; TQString m_InfoEmail;
QString m_InfoEmailDefault; TQString m_InfoEmailDefault;
QString m_InfoUrl; TQString m_InfoUrl;
QString m_InfoUrlDefault; TQString m_InfoUrlDefault;
/* kbfx_menu_button config items list */ /* kbfx_menu_button config items list */
QString m_KbfxThemesVersion; TQString m_KbfxThemesVersion;
QString KbfxThemeRcDestination; TQString KbfxThemeRcDestination;
QString KbfxRcPath; TQString KbfxRcPath;
QPixmap KbfxOnImg; TQPixmap KbfxOnImg;
QPixmap KbfxOffImg; TQPixmap KbfxOffImg;
int m_KbfxGeneralVersion; int m_KbfxGeneralVersion;
int m_KbfxGeneralVersionDefault; int m_KbfxGeneralVersionDefault;
QString m_KbfxNormalButtonPath; TQString m_KbfxNormalButtonPath;
QString m_KbfxNormalButtonPathDefault; TQString m_KbfxNormalButtonPathDefault;
QString m_KbfxHoverButtonPath; TQString m_KbfxHoverButtonPath;
QString m_KbfxHoverButtonPathDefault; TQString m_KbfxHoverButtonPathDefault;
QString m_KbfxPressedButtonPath; TQString m_KbfxPressedButtonPath;
QString m_KbfxPressedButtonPathDefault; TQString m_KbfxPressedButtonPathDefault;
QString m_KbfxMouseOverAnimationPath; TQString m_KbfxMouseOverAnimationPath;
QString m_KbfxMouseOverAnimationPathDefault; TQString m_KbfxMouseOverAnimationPathDefault;
QColor m_KbfxButtonColor; TQColor m_KbfxButtonColor;
QColor m_KbfxButtonColorDefault; TQColor m_KbfxButtonColorDefault;
int m_KbfxButtonSize; int m_KbfxButtonSize;
int m_KbfxButtonSizeDefault; int m_KbfxButtonSizeDefault;
bool m_KbfxButtonGlow; bool m_KbfxButtonGlow;
bool m_KbfxButtonGlowDefault; bool m_KbfxButtonGlowDefault;
bool m_KbfxButtonKikerResize; bool m_KbfxButtonKikerResize;
bool m_KbfxButtonKikerResizeDefault; bool m_KbfxButtonKikerResizeDefault;
QString m_KbfxMenuType; TQString m_KbfxMenuType;
QString m_KbfxMenuTypeDefault; TQString m_KbfxMenuTypeDefault;
/* spinx config items list */ /* spinx config items list */
QString m_SpinxThemeBasePath; TQString m_SpinxThemeBasePath;
QString m_SpinxThemeBasePathDefault; TQString m_SpinxThemeBasePathDefault;
QString m_UserSpinxThemeBasePath; TQString m_UserSpinxThemeBasePath;
QString m_UserSpinxThemeBasePathDefault; TQString m_UserSpinxThemeBasePathDefault;
bool m_SpinxDudeBlink; bool m_SpinxDudeBlink;
bool m_SpinxDudeBlinkDefault; bool m_SpinxDudeBlinkDefault;
QString m_SpinxDudeImage; TQString m_SpinxDudeImage;
QString m_SpinxDudeImageDefault; TQString m_SpinxDudeImageDefault;
QString m_SpinxThemeName; TQString m_SpinxThemeName;
QString m_SpinxThemeNameDefault; TQString m_SpinxThemeNameDefault;
bool m_ToolBarResize; bool m_ToolBarResize;
bool m_ToolBarResizeDefault; bool m_ToolBarResizeDefault;
bool m_KbfxWatcher; bool m_KbfxWatcher;
@ -120,65 +120,65 @@ class KbfxConfig
bool m_ToolTipAnimationDefault; bool m_ToolTipAnimationDefault;
bool m_ToolTip; bool m_ToolTip;
bool m_ToolTipDefault; bool m_ToolTipDefault;
QString m_ToolTipText; TQString m_ToolTipText;
QString m_ToolTipTextDefault; TQString m_ToolTipTextDefault;
QString m_ToolTipAvatar; TQString m_ToolTipAvatar;
QString m_ToolTipAvatarDefault; TQString m_ToolTipAvatarDefault;
QString m_SpinxTooltipDudebox; TQString m_SpinxTooltipDudebox;
QString m_SpinxTooltipDudeboxDefault; TQString m_SpinxTooltipDudeboxDefault;
QString m_SpinxTooltipMask; TQString m_SpinxTooltipMask;
QString m_SpinxTooltipMaskDefault; TQString m_SpinxTooltipMaskDefault;
QString m_SpinxTooltipWindow; TQString m_SpinxTooltipWindow;
QString m_SpinxTooltipWindowDefault; TQString m_SpinxTooltipWindowDefault;
QString m_SpinxTooltipLogo; TQString m_SpinxTooltipLogo;
QString m_SpinxTooltipLogoDefault; TQString m_SpinxTooltipLogoDefault;
QString m_KbfxHistory; TQString m_KbfxHistory;
QString m_KbfxHistoryDefault; TQString m_KbfxHistoryDefault;
/* font settings */ /* font settings */
QColor m_fontTooltipColor; TQColor m_fontTooltipColor;
QColor m_fontTooltipColorDefault; TQColor m_fontTooltipColorDefault;
QFont m_fontTooltipFont; TQFont m_fontTooltipFont;
QFont m_fontTooltipFontDefault; TQFont m_fontTooltipFontDefault;
QColor m_fontAppNameColor; TQColor m_fontAppNameColor;
QColor m_fontAppNameColorDefault; TQColor m_fontAppNameColorDefault;
QFont m_fontAppNameFont; TQFont m_fontAppNameFont;
QFont m_fontAppNameFontDefault; TQFont m_fontAppNameFontDefault;
QColor m_fontAppCommentColor; TQColor m_fontAppCommentColor;
QColor m_fontAppCommentColorDefault; TQColor m_fontAppCommentColorDefault;
QFont m_fontAppCommentFont; TQFont m_fontAppCommentFont;
QFont m_fontAppCommentFontDefault; TQFont m_fontAppCommentFontDefault;
QColor m_lineColor; TQColor m_lineColor;
QColor m_lineColorDefault; TQColor m_lineColorDefault;
QColor m_fontIndexColor; TQColor m_fontIndexColor;
QColor m_fontIndexColorDefault; TQColor m_fontIndexColorDefault;
QFont m_fontIndexFont; TQFont m_fontIndexFont;
QFont m_fontIndexFontDefault; TQFont m_fontIndexFontDefault;
QColor m_userImageColor; TQColor m_userImageColor;
QColor m_userImageColorDefault; TQColor m_userImageColorDefault;
QColor m_userNameColor; TQColor m_userNameColor;
QColor m_userNameColorDefault; TQColor m_userNameColorDefault;
QFont m_userNameFont; TQFont m_userNameFont;
QFont m_userNameFontDefault; TQFont m_userNameFontDefault;
QColor m_sepNameColor; TQColor m_sepNameColor;
QColor m_sepNameColorDefault; TQColor m_sepNameColorDefault;
QFont m_sepNameFont; TQFont m_sepNameFont;
QFont m_sepNameFontDefault; TQFont m_sepNameFontDefault;
QColor m_pluginNameColor; TQColor m_pluginNameColor;
QColor m_pluginNameColorDefault; TQColor m_pluginNameColorDefault;
QFont m_pluginNameFont; TQFont m_pluginNameFont;
QFont m_pluginNameFontDefault; TQFont m_pluginNameFontDefault;
bool m_fontHoverBold; bool m_fontHoverBold;
bool m_fontHoverBoldDefault; bool m_fontHoverBoldDefault;
/* history */ /* history */
QStringList m_pluginsLeft; TQStringList m_pluginsLeft;
QStringList m_pluginsLeftDefault; TQStringList m_pluginsLeftDefault;
QStringList m_pluginsRight; TQStringList m_pluginsRight;
QStringList m_pluginsRightDefault; TQStringList m_pluginsRightDefault;
/* layout */ /* tqlayout */
int m_facePos_x; int m_facePos_x;
int m_facePos_xDefault; int m_facePos_xDefault;
int m_facePos_y; int m_facePos_y;

@ -20,32 +20,32 @@
#include "kbfxfontchooser.h" #include "kbfxfontchooser.h"
KBFXFontChooser::KBFXFontChooser ( QWidget *parent, const char *name ) KBFXFontChooser::KBFXFontChooser ( TQWidget *tqparent, const char *name )
: QWidget ( parent, name ) : TQWidget ( tqparent, name )
{ {
QHBoxLayout* layout = new QHBoxLayout ( this, 0, KDialog::spacingHint() ); TQHBoxLayout* tqlayout = new TQHBoxLayout ( this, 0, KDialog::spacingHint() );
m_label = new QLabel ( this, "fontLabel" ); m_label = new TQLabel ( this, "fontLabel" );
m_label->setSizePolicy ( QSizePolicy::Expanding, QSizePolicy::Fixed, TRUE); m_label->tqsetSizePolicy ( TQSizePolicy::Expanding, TQSizePolicy::Fixed, TRUE);
// m_label->setFrameShape ( QFrame::StyledPanel ); // m_label->setFrameShape ( TQFrame::StyledPanel );
// m_label->setFrameShadow ( QFrame::Sunken ); // m_label->setFrameShadow ( TQFrame::Sunken );
layout->addWidget ( m_label ); tqlayout->addWidget ( m_label );
m_button = new QPushButton ( this, "fontButton" ); m_button = new TQPushButton ( this, "fontButton" );
m_label->setMaximumHeight ( m_button -> height() ); m_label->setMaximumHeight ( m_button -> height() );
m_label->setMinimumHeight ( m_button -> height() ); m_label->setMinimumHeight ( m_button -> height() );
QString fontText = i18n ( "Font..." ); TQString fontText = i18n ( "Font..." );
// m_button->setSizePolicy ( QSizePolicy::Minimum, QSizePolicy::Minimum, TRUE); // m_button->tqsetSizePolicy ( TQSizePolicy::Minimum, TQSizePolicy::Minimum, TRUE);
m_button->setText ( fontText ); m_button->setText ( fontText );
QIconSet iconSet = SmallIconSet ( QString::fromLatin1 ( "fonts" ) ); TQIconSet iconSet = SmallIconSet ( TQString::tqfromLatin1 ( "fonts" ) );
QPixmap pixmap = iconSet.pixmap ( QIconSet::Small, QIconSet::Normal ); TQPixmap pixmap = iconSet.pixmap ( TQIconSet::Small, TQIconSet::Normal );
m_button->setIconSet ( iconSet ); m_button->setIconSet ( iconSet );
m_button->setFixedWidth ( m_button->fontMetrics().width ( fontText ) + m_button->setFixedWidth ( m_button->fontMetrics().width ( fontText ) +
3 * KDialog::spacingHint() + pixmap.width() ); 3 * KDialog::spacingHint() + pixmap.width() );
layout->addWidget ( m_button ); tqlayout->addWidget ( m_button );
connect ( m_button, SIGNAL ( clicked() ), this, SLOT ( buttonClicked() ) ); connect ( m_button, TQT_SIGNAL ( clicked() ), this, TQT_SLOT ( buttonClicked() ) );
updateFontLabel(); updateFontLabel();
@ -55,7 +55,7 @@ KBFXFontChooser::KBFXFontChooser ( QWidget *parent, const char *name )
KBFXFontChooser::~KBFXFontChooser() KBFXFontChooser::~KBFXFontChooser()
{} {}
void KBFXFontChooser::setFont ( const QFont& font ) void KBFXFontChooser::setFont ( const TQFont& font )
{ {
m_font = font; m_font = font;
updateFontLabel(); updateFontLabel();
@ -63,10 +63,10 @@ void KBFXFontChooser::setFont ( const QFont& font )
void KBFXFontChooser::updateFontLabel() void KBFXFontChooser::updateFontLabel()
{ {
QString s = QString ( "%1 (%2pt) " ).arg ( m_font.family() ).arg ( m_font.pointSize() ); TQString s = TQString ( "%1 (%2pt) " ).arg ( m_font.family() ).arg ( m_font.pointSize() );
m_label->setFont ( m_font ); m_label->setFont ( m_font );
m_label->setText ( s ); m_label->setText ( s );
m_label->setAlignment ( Qt::AlignLeft | Qt::AlignVCenter ); m_label->tqsetAlignment ( TQt::AlignLeft | TQt::AlignVCenter );
emit FontChanged(); emit FontChanged();
} }

@ -24,33 +24,34 @@
#include <kfontdialog.h> #include <kfontdialog.h>
#include <klocale.h> #include <klocale.h>
#include <kiconloader.h> #include <kiconloader.h>
#include <qwidget.h> #include <tqwidget.h>
#include <qlabel.h> #include <tqlabel.h>
#include <qpushbutton.h> #include <tqpushbutton.h>
#include <qlayout.h> #include <tqlayout.h>
#include <qfont.h> #include <tqfont.h>
#include <qsizepolicy.h> #include <tqsizepolicy.h>
class QLabel; class TQLabel;
class QPushButton; class TQPushButton;
class QFont; class TQFont;
/** /**
@author Petri Damsten <petri.damsten@iki.fi> @author Petri Damsten <petri.damsten@iki.fi>
*/ */
class KBFXFontChooser : public QWidget class KBFXFontChooser : public TQWidget
{ {
Q_OBJECT Q_OBJECT
Q_PROPERTY ( QFont font READ font WRITE setFont ) TQ_OBJECT
TQ_PROPERTY ( TQFont font READ font WRITE setFont )
public: public:
KBFXFontChooser ( QWidget *parent = 0, const char *name = 0 ); KBFXFontChooser ( TQWidget *tqparent = 0, const char *name = 0 );
~KBFXFontChooser(); ~KBFXFontChooser();
QFont font() const { return m_font; }; TQFont font() const { return m_font; };
public slots: public slots:
void setFont ( const QFont& font ); void setFont ( const TQFont& font );
protected: protected:
void updateFontLabel(); void updateFontLabel();
@ -59,9 +60,9 @@ class KBFXFontChooser : public QWidget
void buttonClicked(); void buttonClicked();
private: private:
QFont m_font; TQFont m_font;
QLabel* m_label; TQLabel* m_label;
QPushButton* m_button; TQPushButton* m_button;
signals: signals:
void FontChanged(); void FontChanged();

@ -21,8 +21,8 @@
#include "kbfxkiodownload.h" #include "kbfxkiodownload.h"
KbfxKioDownload::KbfxKioDownload ( QObject *parent, const char *name ) KbfxKioDownload::KbfxKioDownload ( TQObject *tqparent, const char *name )
: QObject ( parent, name ) : TQObject ( tqparent, name )
{ {
m_KbfxBrowserError = 0; m_KbfxBrowserError = 0;
m_KbfxBrowserErrorText = "No error"; m_KbfxBrowserErrorText = "No error";
@ -36,14 +36,14 @@ KbfxKioDownload::KbfxKioDownload ( QObject *parent, const char *name )
KbfxKioDownload::~KbfxKioDownload() KbfxKioDownload::~KbfxKioDownload()
{} {}
void KbfxKioDownload::KbfxKioDownloadStart ( QString &url ) void KbfxKioDownload::KbfxKioDownloadStart ( TQString &url )
{ {
KIO::Job *download_job = KIO::file_copy ( KURL ( url ), KIO::Job *download_job = KIO::file_copy ( KURL ( url ),
KURL ( m_KbfxBrowserTmpFile ), KURL ( m_KbfxBrowserTmpFile ),
-1, -1,
TRUE ); TRUE );
connect ( download_job, SIGNAL ( result ( KIO::Job* ) ), connect ( download_job, TQT_SIGNAL ( result ( KIO::Job* ) ),
this, SLOT ( KbfxBrowserResult ( KIO::Job * ) ) ); this, TQT_SLOT ( KbfxBrowserResult ( KIO::Job * ) ) );
} }
void KbfxKioDownload::KbfxBrowserResult ( KIO::Job *download_job ) void KbfxKioDownload::KbfxBrowserResult ( KIO::Job *download_job )

@ -29,19 +29,20 @@
/** /**
* @author PhobosK <phobosk@mail.kbfx.org> * @author PhobosK <phobosk@mail.kbfx.org>
*/ */
class KbfxKioDownload : public QObject class KbfxKioDownload : public TQObject
{ {
Q_OBJECT Q_OBJECT
TQ_OBJECT
public: public:
KbfxKioDownload ( QObject * parent = 0, const char * name = 0 ); KbfxKioDownload ( TQObject * tqparent = 0, const char * name = 0 );
~KbfxKioDownload(); ~KbfxKioDownload();
/* KbfxKioDownload invocation - pass an url as QString */ /* KbfxKioDownload invocation - pass an url as TQString */
void KbfxKioDownloadStart ( QString &url ); void KbfxKioDownloadStart ( TQString &url );
/* return temp file name for the download */ /* return temp file name for the download */
QString KbfxBrowserTmpFile() {return m_KbfxBrowserTmpFile;} TQString KbfxBrowserTmpFile() {return m_KbfxBrowserTmpFile;}
/* return error number occured during download /* return error number occured during download
* see definition in global.h * see definition in global.h
@ -49,12 +50,12 @@ class KbfxKioDownload : public QObject
int KbfxBrowserError() {return m_KbfxBrowserError;} int KbfxBrowserError() {return m_KbfxBrowserError;}
/* return error text occured during download */ /* return error text occured during download */
QString KbfxBrowserErrorText() {return m_KbfxBrowserErrorText;} TQString KbfxBrowserErrorText() {return m_KbfxBrowserErrorText;}
protected: protected:
QString m_KbfxBrowserTmpFile; TQString m_KbfxBrowserTmpFile;
int m_KbfxBrowserError; int m_KbfxBrowserError;
QString m_KbfxBrowserErrorText; TQString m_KbfxBrowserErrorText;
private: private:
KTempFile tmpF; KTempFile tmpF;

@ -21,15 +21,15 @@
#include "kbfxpixmaplabel.h" #include "kbfxpixmaplabel.h"
KbfxPixmapLabel::KbfxPixmapLabel ( QWidget *parent, const char *name, WFlags fl ) KbfxPixmapLabel::KbfxPixmapLabel ( TQWidget *tqparent, const char *name, WFlags fl )
: QLabel ( parent, name, fl ) : TQLabel ( tqparent, name, fl )
{ {
// setFrameShape(QLabel::WinPanel); // setFrameShape(TQLabel::WinPanel);
// setFrameShadow(QLabel::Sunken); // setFrameShadow(TQLabel::Sunken);
setFrameShape ( QLabel::LineEditPanel ); setFrameShape ( TQLabel::LineEditPanel );
setFrameShadow ( QLabel::Plain ); setFrameShadow ( TQLabel::Plain );
setScaledContents ( FALSE ); setScaledContents ( FALSE );
setAlignment ( int ( QLabel::WordBreak | QLabel::AlignCenter ) ); tqsetAlignment ( int ( TQLabel::WordBreak | TQLabel::AlignCenter ) );
setMouseTracking ( TRUE ); setMouseTracking ( TRUE );
} }
@ -40,25 +40,25 @@ KbfxPixmapLabel::~KbfxPixmapLabel()
/* normalize label */ /* normalize label */
void KbfxPixmapLabel::normalize () void KbfxPixmapLabel::normalize ()
{ {
setFrameShape ( QLabel::NoFrame ); setFrameShape ( TQLabel::NoFrame );
setFrameShadow ( QLabel::Plain ); setFrameShadow ( TQLabel::Plain );
setScaledContents ( FALSE ); setScaledContents ( FALSE );
setAlignment ( int ( QLabel::WordBreak | QLabel::AlignCenter ) ); tqsetAlignment ( int ( TQLabel::WordBreak | TQLabel::AlignCenter ) );
} }
/* processing drag events over label */ /* processing drag events over label */
void KbfxPixmapLabel::dragEnterEvent ( QDragEnterEvent *mouseDragEnterEvent ) void KbfxPixmapLabel::dragEnterEvent ( TQDragEnterEvent *mouseDragEnterEvent )
{ {
kdDebug() << "Accepting drag..." << endl; kdDebug() << "Accepting drag..." << endl;
mouseDragEnterEvent->accept ( QTextDrag::canDecode ( mouseDragEnterEvent ) ); mouseDragEnterEvent->accept ( TQTextDrag::canDecode ( mouseDragEnterEvent ) );
} }
/* processing drop events over label */ /* processing drop events over label */
void KbfxPixmapLabel::dropEvent ( QDropEvent *mouseDropEvent ) void KbfxPixmapLabel::dropEvent ( TQDropEvent *mouseDropEvent )
{ {
QString text; TQString text;
if ( QTextDrag::decode ( mouseDropEvent,text ) ) if ( TQTextDrag::decode ( mouseDropEvent,text ) )
{ {
if ( text.startsWith ( "file://" ) ) text.remove ( "file://" ); if ( text.startsWith ( "file://" ) ) text.remove ( "file://" );
@ -69,7 +69,7 @@ void KbfxPixmapLabel::dropEvent ( QDropEvent *mouseDropEvent )
} }
/* processing mouse click events over label */ /* processing mouse click events over label */
void KbfxPixmapLabel::mousePressEvent ( QMouseEvent * e ) void KbfxPixmapLabel::mousePressEvent ( TQMouseEvent * e )
{ {
e->accept(); e->accept();
ButtonState _btn = e->button(); ButtonState _btn = e->button();
@ -80,7 +80,7 @@ void KbfxPixmapLabel::mousePressEvent ( QMouseEvent * e )
} }
/* processing mouse double click events over label */ /* processing mouse double click events over label */
void KbfxPixmapLabel::mouseDoubleClickEvent ( QMouseEvent * e ) void KbfxPixmapLabel::mouseDoubleClickEvent ( TQMouseEvent * e )
{ {
e->accept(); e->accept();
ButtonState _btn = e->button(); ButtonState _btn = e->button();

@ -22,27 +22,28 @@
#ifndef KBFX_PIXMAP_LABEL_H #ifndef KBFX_PIXMAP_LABEL_H
#define KBFX_PIXMAP_LABEL_H #define KBFX_PIXMAP_LABEL_H
#include <qlabel.h> #include <tqlabel.h>
#include <kdebug.h> #include <kdebug.h>
#include <qdragobject.h> #include <tqdragobject.h>
#include <qtooltip.h> #include <tqtooltip.h>
class KbfxPixmapLabel : public QLabel class KbfxPixmapLabel : public TQLabel
{ {
Q_OBJECT Q_OBJECT
TQ_OBJECT
public: public:
KbfxPixmapLabel ( QWidget *parent = 0, const char *name = 0, WFlags f = 0 ); KbfxPixmapLabel ( TQWidget *tqparent = 0, const char *name = 0, WFlags f = 0 );
~KbfxPixmapLabel (); ~KbfxPixmapLabel ();
void dragEnterEvent ( QDragEnterEvent *mouseDragEnterEvent ); void dragEnterEvent ( TQDragEnterEvent *mouseDragEnterEvent );
void dropEvent ( QDropEvent *mouseDropEvent ); void dropEvent ( TQDropEvent *mouseDropEvent );
void mousePressEvent ( QMouseEvent * e ); void mousePressEvent ( TQMouseEvent * e );
void mouseDoubleClickEvent ( QMouseEvent * e ); void mouseDoubleClickEvent ( TQMouseEvent * e );
void normalize (); void normalize ();
signals: signals:
void targetDrop ( const QString & ); void targetDrop ( const TQString & );
void clicked(); void clicked();
void mouseClicked (); void mouseClicked ();
void mouseClicked ( const ButtonState & ); void mouseClicked ( const ButtonState & );

@ -22,76 +22,76 @@
#include "kbfxplasmapixmapprovider.h" #include "kbfxplasmapixmapprovider.h"
int int
KbfxPlasmaPixmapProvider::addPixmap ( QString pixmapname ) KbfxPlasmaPixmapProvider::addPixmap ( TQString pixmapname )
{ {
QString lFileName = PixmapPath( pixmapname ); TQString lFileName = PixmapPath( pixmapname );
QPixmap * lPixmapPtr = 0; TQPixmap * lPixmapPtr = 0;
if ( ( lPixmapPtr = QPixmapCache::find ( pixmapname ) ) == NULL ) if ( ( lPixmapPtr = TQPixmapCache::tqfind ( pixmapname ) ) == NULL )
{ {
lPixmapPtr = new QPixmap ( lFileName ); lPixmapPtr = new TQPixmap ( lFileName );
QPixmapCache::insert ( pixmapname,lPixmapPtr ); TQPixmapCache::insert ( pixmapname,lPixmapPtr );
return ( lPixmapPtr->height() *lPixmapPtr->width() *lPixmapPtr->depth() ) /8; return ( lPixmapPtr->height() *lPixmapPtr->width() *lPixmapPtr->depth() ) /8;
} }
return 0; return 0;
} }
QString TQString
KbfxPlasmaPixmapProvider::PixmapPath ( QString pixmapName ) KbfxPlasmaPixmapProvider::PixmapPath ( TQString pixmapName )
{ {
QString lFileName = ConfigInit ().m_SpinxThemeBasePath + ConfigInit ().m_SpinxThemeName + "/" + pixmapName + ".png"; TQString lFileName = ConfigInit ().m_SpinxThemeBasePath + ConfigInit ().m_SpinxThemeName + "/" + pixmapName + ".png";
if ( QPixmap::QPixmap ( lFileName ).isNull() ) if ( TQPixmap::TQPixmap ( lFileName ).isNull() )
lFileName = locate ( "data", "kbfx/skins/default/" + pixmapName + ".png" ); lFileName = locate ( "data", "kbfx/skins/default/" + pixmapName + ".png" );
return lFileName; return lFileName;
} }
QString TQString
KbfxPlasmaPixmapProvider::PixmapPath ( QString pixmapName, QString themePath, QString themeName ) KbfxPlasmaPixmapProvider::PixmapPath ( TQString pixmapName, TQString themePath, TQString themeName )
{ {
QString lFileName = themePath + themeName + "/" + pixmapName + ".png"; TQString lFileName = themePath + themeName + "/" + pixmapName + ".png";
if ( QPixmap::QPixmap ( lFileName ).isNull() ) if ( TQPixmap::TQPixmap ( lFileName ).isNull() )
lFileName = locate ( "data", "kbfx/skins/default/" + pixmapName + ".png" ); lFileName = locate ( "data", "kbfx/skins/default/" + pixmapName + ".png" );
return lFileName; return lFileName;
} }
bool bool
KbfxPlasmaPixmapProvider::PixmapPathCheck ( QString pixmapPath ) KbfxPlasmaPixmapProvider::PixmapPathCheck ( TQString pixmapPath )
{ {
if ( QPixmap::QPixmap ( pixmapPath ).isNull() ) if ( TQPixmap::TQPixmap ( pixmapPath ).isNull() )
return FALSE; return FALSE;
return TRUE; return TRUE;
} }
void void
KbfxPlasmaPixmapProvider::deletePixmap ( const QString & key ) KbfxPlasmaPixmapProvider::deletePixmap ( const TQString & key )
{ {
QPixmapCache::remove ( key ); TQPixmapCache::remove ( key );
} }
void void
KbfxPlasmaPixmapProvider::rebuildCache() KbfxPlasmaPixmapProvider::rebuildCache()
{ {
QPixmapCache::clear (); TQPixmapCache::clear ();
buildCache(); buildCache();
} }
void KbfxPlasmaPixmapProvider::buildCache() void KbfxPlasmaPixmapProvider::buildCache()
{ {
//m_skinElements.append("topbg"); //m_skinElements.append("topbg");
QPixmapCache::setCacheLimit ( 1024*5 ); TQPixmapCache::setCacheLimit ( 1024*5 );
static QStringList m_skinElements; static TQStringList m_skinElements;
m_skinElements m_skinElements
<<"appfind" <<"apptqfind"
<<"bg" <<"bg"
<<"botbg" <<"botbg"
<<"butterfly" <<"butterfly"
<<"dudebox" <<"dudebox"
<<"find" <<"tqfind"
<<"hover" <<"hover"
<<"indexseparator" <<"indexseparator"
<<"listboxbg" <<"listboxbg"
@ -99,7 +99,7 @@ void KbfxPlasmaPixmapProvider::buildCache()
<<"lockhover" <<"lockhover"
<<"logout" <<"logout"
<<"logouthover" <<"logouthover"
<<"mask" <<"tqmask"
<<"menu_top" <<"menu_top"
<<"menu_top_image_person" <<"menu_top_image_person"
<<"middleboxbg" <<"middleboxbg"
@ -119,20 +119,20 @@ void KbfxPlasmaPixmapProvider::buildCache()
<<"appviewbg" <<"appviewbg"
; ;
for ( QStringList::Iterator it = m_skinElements.begin(); it != m_skinElements.end(); ++it ) for ( TQStringList::Iterator it = m_skinElements.begin(); it != m_skinElements.end(); ++it )
{ {
QPixmapCache::setCacheLimit ( KbfxPlasmaPixmapProvider::addPixmap ( *it ) +QPixmapCache::cacheLimit() ); TQPixmapCache::setCacheLimit ( KbfxPlasmaPixmapProvider::addPixmap ( *it ) +TQPixmapCache::cacheLimit() );
} }
} }
QPixmap * TQPixmap *
KbfxPlasmaPixmapProvider::pixmap ( const QString & key ) KbfxPlasmaPixmapProvider::pixmap ( const TQString & key )
{ {
QPixmap* pp; TQPixmap* pp;
QPixmap p; TQPixmap p;
if ( ( pp=QPixmapCache::find ( key ) ) ) if ( ( pp=TQPixmapCache::tqfind ( key ) ) )
{ {
return pp; return pp;
} }

@ -23,11 +23,11 @@
#define KBFX_PLASMA_PIXMAP_PROVIDER_H #define KBFX_PLASMA_PIXMAP_PROVIDER_H
#include <qfileinfo.h> #include <tqfileinfo.h>
#include <qpixmapcache.h> #include <tqpixmapcache.h>
#include <qpixmap.h> #include <tqpixmap.h>
#include <qstring.h> #include <tqstring.h>
#include <qstringlist.h> #include <tqstringlist.h>
#include <kbfxconfig.h> #include <kbfxconfig.h>
@ -40,14 +40,14 @@ class KbfxPlasmaPixmapProvider
{} {}
~KbfxPlasmaPixmapProvider() {} ~KbfxPlasmaPixmapProvider() {}
static int addPixmap ( QString ); static int addPixmap ( TQString );
static void deletePixmap ( const QString & ); static void deletePixmap ( const TQString & );
static void rebuildCache(); static void rebuildCache();
static void buildCache(); static void buildCache();
static QPixmap* pixmap ( const QString & ); static TQPixmap* pixmap ( const TQString & );
static QString PixmapPath ( QString, QString, QString ); static TQString PixmapPath ( TQString, TQString, TQString );
static QString PixmapPath ( QString ); static TQString PixmapPath ( TQString );
static bool PixmapPathCheck ( QString ); static bool PixmapPathCheck ( TQString );
}; };
#endif #endif

@ -21,12 +21,12 @@
#include "kbfxpushbutton.h" #include "kbfxpushbutton.h"
KbfxPushButton::KbfxPushButton ( QWidget *parent, const char *name ) KbfxPushButton::KbfxPushButton ( TQWidget *tqparent, const char *name )
: KPushButton ( parent, name ) : KPushButton ( tqparent, name )
{ {
setText ( "P R E V I E W" ); setText ( "P R E V I E W" );
setToggleButton ( TRUE ); setToggleButton ( TRUE );
setFocusPolicy ( QWidget::NoFocus ); setFocusPolicy ( TQ_NoFocus );
} }
KbfxPushButton::~KbfxPushButton() KbfxPushButton::~KbfxPushButton()
@ -34,12 +34,12 @@ KbfxPushButton::~KbfxPushButton()
} }
/* process hover events */ /* process hover events */
void KbfxPushButton::enterEvent ( QEvent * ) void KbfxPushButton::enterEvent ( TQEvent * )
{ {
if ( this->state() == 0 ) this->setPixmap ( ConfigInit().m_KbfxHoverButtonPath ); if ( this->state() == 0 ) this->setPixmap ( ConfigInit().m_KbfxHoverButtonPath );
} }
void KbfxPushButton::leaveEvent ( QEvent * ) void KbfxPushButton::leaveEvent ( TQEvent * )
{ {
if ( this->state() == 2 ) this->setPixmap ( ConfigInit().m_KbfxPressedButtonPath ); if ( this->state() == 2 ) this->setPixmap ( ConfigInit().m_KbfxPressedButtonPath );
if ( this->state() == 0 ) this->setPixmap ( ConfigInit().m_KbfxNormalButtonPath ); if ( this->state() == 0 ) this->setPixmap ( ConfigInit().m_KbfxNormalButtonPath );

@ -29,13 +29,14 @@
class KbfxPushButton: public KPushButton class KbfxPushButton: public KPushButton
{ {
Q_OBJECT Q_OBJECT
TQ_OBJECT
public: public:
KbfxPushButton ( QWidget *parent = 0, const char *name = 0 ); KbfxPushButton ( TQWidget *tqparent = 0, const char *name = 0 );
~KbfxPushButton(); ~KbfxPushButton();
void enterEvent ( QEvent * ); void enterEvent ( TQEvent * );
void leaveEvent ( QEvent * ); void leaveEvent ( TQEvent * );
}; };
#endif // KBFX_PUSH_BUTTON_H #endif // KBFX_PUSH_BUTTON_H

@ -29,18 +29,18 @@ KbfxThemesData::~KbfxThemesData()
m_themesMap.clear(); m_themesMap.clear();
} }
ThemesMap KbfxThemesData::setThemeList ( QString path ) ThemesMap KbfxThemesData::setThemeList ( TQString path )
{ {
QString m_KbfxThemesVersion = ConfigInit().m_KbfxThemesVersion; TQString m_KbfxThemesVersion = ConfigInit().m_KbfxThemesVersion;
bool m_KbfxShowOldThemes = ConfigInit().m_KbfxShowOldThemes; bool m_KbfxShowOldThemes = ConfigInit().m_KbfxShowOldThemes;
QFileInfo *fi=0, *f=0; TQFileInfo *fi=0, *f=0;
m_themesMap.clear(); m_themesMap.clear();
KStandardDirs *tmp = new KStandardDirs(); KStandardDirs *tmp = new KStandardDirs();
/* search themes in KDE Resource Folders and append user selected folder */ /* search themes in KDE Resource Folders and append user selected folder */
QStringList skinsFolders = tmp->findDirs ( "data", "kbfx/skins" ); TQStringList skinsFolders = tmp->findDirs ( "data", "kbfx/skins" );
if ( tmp->exists ( path ) ) if ( tmp->exists ( path ) )
{ {
skinsFolders.append ( path ); skinsFolders.append ( path );
@ -50,19 +50,19 @@ ThemesMap KbfxThemesData::setThemeList ( QString path )
kdDebug() << "KbfxThemesData: Path doesn't exist! :" << path << endl; kdDebug() << "KbfxThemesData: Path doesn't exist! :" << path << endl;
} }
for ( QStringList::Iterator skinsIt = skinsFolders.begin(); skinsIt != skinsFolders.end(); ++skinsIt ) for ( TQStringList::Iterator skinsIt = skinsFolders.begin(); skinsIt != skinsFolders.end(); ++skinsIt )
{ {
QDir d ( *skinsIt ); TQDir d ( *skinsIt );
d.setFilter ( QDir::Dirs ); d.setFilter ( TQDir::Dirs );
const QFileInfoList *list = d.entryInfoList(); const TQFileInfoList *list = d.entryInfoList();
QFileInfoListIterator it ( *list ); TQFileInfoListIterator it ( *list );
while ( ( fi = it.current() ) != 0 ) while ( ( fi = it.current() ) != 0 )
{ {
if ( !fi->fileName().startsWith ( "." ) ) if ( !fi->fileName().startsWith ( "." ) )
{ {
f = new QFileInfo ( d, fi->fileName() + "/" + m_KbfxThemesVersion ); f = new TQFileInfo ( d, fi->fileName() + "/" + m_KbfxThemesVersion );
if ( m_KbfxShowOldThemes ) if ( m_KbfxShowOldThemes )
{ {
m_themesMap[fi->fileName() ] = ( fi->dirPath ( TRUE ) ).append ( "/" ); m_themesMap[fi->fileName() ] = ( fi->dirPath ( TRUE ) ).append ( "/" );

@ -23,16 +23,16 @@
#define KBFX_THEMES_DATA_H #define KBFX_THEMES_DATA_H
#include <kdebug.h> #include <kdebug.h>
#include <qstringlist.h> #include <tqstringlist.h>
#include <kio/netaccess.h> #include <kio/netaccess.h>
#include <kstandarddirs.h> #include <kstandarddirs.h>
#include <qmap.h> #include <tqmap.h>
#include <qdir.h> #include <tqdir.h>
#include <qfileinfo.h> #include <tqfileinfo.h>
#include "kbfxconfig.h" #include "kbfxconfig.h"
typedef QMap<QString, QString> ThemesMap; typedef TQMap<TQString, TQString> ThemesMap;
/** /**
* @author PhobosK <phobosk@mail.kbfx.org> * @author PhobosK <phobosk@mail.kbfx.org>
@ -43,7 +43,7 @@ class KbfxThemesData
KbfxThemesData(); KbfxThemesData();
~KbfxThemesData(); ~KbfxThemesData();
ThemesMap setThemeList ( QString path ); ThemesMap setThemeList ( TQString path );
private: private:
ThemesMap m_themesMap; ThemesMap m_themesMap;

@ -40,7 +40,7 @@ KbfxDataGroup::~KbfxDataGroup()
} }
KbfxDataSource::DataSourceList KbfxDataSource::DataSourceList
KbfxDataGroup::lookup ( QString str ) KbfxDataGroup::lookup ( TQString str )
{ {
//static KbfxDataGroup * _matching = new KbfxDataGroup(); //static KbfxDataGroup * _matching = new KbfxDataGroup();
KbfxDataSource::DataSourceList _matching; KbfxDataSource::DataSourceList _matching;
@ -79,7 +79,7 @@ KbfxDataGroup::itemAt(int index)
KbfxDataSource * KbfxDataSource *
KbfxDataGroup::getItem ( QString name ) KbfxDataGroup::getItem ( TQString name )
{ {
return m_data[name]; return m_data[name];
} }

@ -22,16 +22,16 @@
#ifndef KBFX_DATA_GROUP_H #ifndef KBFX_DATA_GROUP_H
#define KBFX_DATA_GROUP_H #define KBFX_DATA_GROUP_H
#include <qmap.h> #include <tqmap.h>
#include <qstringlist.h> #include <tqstringlist.h>
#include "kbfxdatasource.h" #include "kbfxdatasource.h"
class KbfxDataGroup class KbfxDataGroup
{ {
public: public:
typedef QMap<QString,KbfxDataSource*> Data; typedef TQMap<TQString,KbfxDataSource*> Data;
typedef QMap<int,KbfxDataSource*> Index; typedef TQMap<int,KbfxDataSource*> Index;
/** /**
* Construts a new data group and initialzes the group * Construts a new data group and initialzes the group
@ -55,16 +55,16 @@ class KbfxDataGroup
* "Unknown Group" . it is recomended that a name is always set * "Unknown Group" . it is recomended that a name is always set
* @param name The name that should be give to the group * @param name The name that should be give to the group
*/ */
void setName ( QString name ) {m_name = name;} void setName ( TQString name ) {m_name = name;}
/** /**
* To access a datasource give the name of the datasource * To access a datasource give the name of the datasource
* @param The name othe datasource * @param The name othe datasource
* @return pointer to a valid datasource * @return pointer to a valid datasource
*/ */
KbfxDataSource * getItem ( QString ); KbfxDataSource * getItem ( TQString );
/** /**
* use this to get all the items inside the datagroup * use this to get all the items inside the datagroup
* @return a copy of the data Map (QMap<QString,KbfxDataSource*>) * @return a copy of the data Map (TQMap<TQString,KbfxDataSource*>)
*/ */
Data getData(); Data getData();
/** /**
@ -72,12 +72,12 @@ class KbfxDataGroup
* @param keyword to search for * @param keyword to search for
* @return list of matching datasources * @return list of matching datasources
*/ */
KbfxDataSource::DataSourceList lookup ( QString ); KbfxDataSource::DataSourceList lookup ( TQString );
/** /**
* The name of the group * The name of the group
* @return Name of the group * @return Name of the group
*/ */
QString name() {return m_name;} TQString name() {return m_name;}
/** /**
* The number of datasources inside the datagroup * The number of datasources inside the datagroup
* @return number of datasources * @return number of datasources
@ -92,7 +92,7 @@ class KbfxDataGroup
private: private:
Data m_data; Data m_data;
QString m_name; TQString m_name;
int m_count; int m_count;
Index m_index; Index m_index;
}; };

@ -22,29 +22,29 @@
#ifndef KBFX_DATA_GROUP_LIST_H #ifndef KBFX_DATA_GROUP_LIST_H
#define KBFX_DATA_GROUP_LIST_H #define KBFX_DATA_GROUP_LIST_H
#include <qptrlist.h> #include <tqptrlist.h>
#include "kbfxdatagroup.h" #include "kbfxdatagroup.h"
class KbfxDataGroupList class KbfxDataGroupList
{ {
public: public:
typedef QPtrList<KbfxDataGroup> GroupList; typedef TQPtrList<KbfxDataGroup> GroupList;
KbfxDataGroupList(); KbfxDataGroupList();
~KbfxDataGroupList(); ~KbfxDataGroupList();
//in //in
void addGroup ( KbfxDataGroup * group ); void addGroup ( KbfxDataGroup * group );
void setName ( QString name ) { m_name = name;} void setName ( TQString name ) { m_name = name;}
void setIcon ( QString path ) { m_iconPath = path;} void setIcon ( TQString path ) { m_iconPath = path;}
//out //out
QString name() {return m_name;} TQString name() {return m_name;}
GroupList getGroup() { return m_groupList;} GroupList getGroup() { return m_groupList;}
QString iconPath() { return m_iconPath;} TQString iconPath() { return m_iconPath;}
int count() {return m_count;} int count() {return m_count;}
private: private:
QString m_name; TQString m_name;
QString m_iconPath; TQString m_iconPath;
GroupList m_groupList; GroupList m_groupList;
int m_count; int m_count;
}; };

@ -38,15 +38,15 @@ KbfxDataSource::~KbfxDataSource()
} }
bool bool
KbfxDataSource::lookup ( QString str ) KbfxDataSource::lookup ( TQString str )
{ {
if ( str.isNull() ) if ( str.isNull() )
return false; return false;
QString _searchStr = m_text+m_comment+m_description+m_keyWords; TQString _searchStr = m_text+m_comment+m_description+m_keyWords;
if ( _searchStr.contains ( str,false ) > 0 ) if ( _searchStr.tqcontains ( str,false ) > 0 )
return true; return true;
return false; return false;
@ -74,11 +74,11 @@ KbfxDataSource::exec()
if ( type() == KbfxDataSource::DESKTOP ) if ( type() == KbfxDataSource::DESKTOP )
{ {
QCString dcop; TQCString dcop;
int pid; int pid;
QString m_error; TQString m_error;
KApplication::startServiceByDesktopPath ( desktopFile(), KApplication::startServiceByDesktopPath ( desktopFile(),
QString::null, &m_error,&dcop,&pid,"",true ); TQString(), &m_error,&dcop,&pid,"",true );
} }
else else

@ -22,8 +22,8 @@
#ifndef KBFX_DATA_SOURCE_H #ifndef KBFX_DATA_SOURCE_H
#define KBFX_DATA_SOURCE_H #define KBFX_DATA_SOURCE_H
#include <qvaluelist.h> #include <tqvaluelist.h>
#include <qstring.h> #include <tqstring.h>
class KbfxDataSource class KbfxDataSource
{ {
@ -32,7 +32,7 @@ class KbfxDataSource
public: public:
typedef enum typedef enum
{ DESKTOP = 0, NONDESKTOP } Type; { DESKTOP = 0, NONDESKTOP } Type;
typedef QValueList < KbfxDataSource > DataSourceList; typedef TQValueList < KbfxDataSource > DataSourceList;
/** /**
* Constructs a new DataSource. Data source is a simple class that holds * Constructs a new DataSource. Data source is a simple class that holds
* a .desktop file and also you can include a custom commmand that can be * a .desktop file and also you can include a custom commmand that can be
@ -47,7 +47,7 @@ class KbfxDataSource
* a desktop file use KbfxDataSource::setDesktopPath() functions instead * a desktop file use KbfxDataSource::setDesktopPath() functions instead
* @param name should be the name of the data source * @param name should be the name of the data source
*/ */
void setName ( QString name ) void setName ( TQString name )
{ {
m_text = name; m_text = name;
} }
@ -57,24 +57,24 @@ class KbfxDataSource
* abstracts such functions. * abstracts such functions.
* @param path should be the absolute path of a valid desktop file * @param path should be the absolute path of a valid desktop file
*/ */
void setDesktopPath ( QString path ) void setDesktopPath ( TQString path )
{ {
m_desktopPath = path; m_desktopPath = path;
m_type = DESKTOP; m_type = DESKTOP;
loadDesktopFile (); loadDesktopFile ();
} }
virtual void setCommand ( QString cmd ) virtual void setCommand ( TQString cmd )
{ {
m_command = cmd; m_command = cmd;
} }
void setContentPath ( QString path ) void setContentPath ( TQString path )
{ {
m_contentPath = path; m_contentPath = path;
} }
QString contentPath () TQString contentPath ()
{ {
return m_contentPath; return m_contentPath;
} }
@ -86,35 +86,35 @@ class KbfxDataSource
virtual void exec (); virtual void exec ();
void setComment ( QString comment ) void setComment ( TQString comment )
{ {
m_comment = comment; m_comment = comment;
}; };
void setDescription ( QString desc ) void setDescription ( TQString desc )
{ {
m_description = desc; m_description = desc;
} }
void setIconPath ( QString path ) void setIconPath ( TQString path )
{ {
m_iconPath = path; m_iconPath = path;
} }
QString desktopFile () TQString desktopFile ()
{ {
return m_desktopPath; return m_desktopPath;
} }
//out //out
QString name () TQString name ()
{ {
return m_text; return m_text;
} }
QString icon () TQString icon ()
{ {
return m_iconPath; return m_iconPath;
}; };
QString command () TQString command ()
{ {
return m_command; return m_command;
} }
@ -127,24 +127,24 @@ class KbfxDataSource
* functio will NOT return NULL so no checking needed * functio will NOT return NULL so no checking needed
* @return the comment of the data source or empty string * @return the comment of the data source or empty string
*/ */
QString comment () TQString comment ()
{ {
return m_comment; return m_comment;
} }
bool lookup ( QString str ); bool lookup ( TQString str );
private: private:
//TODO //TODO
//MOve to private D //MOve to private D
void loadDesktopFile (); void loadDesktopFile ();
QString m_text; TQString m_text;
QString m_desktopPath; TQString m_desktopPath;
QString m_command; TQString m_command;
QString m_iconPath; TQString m_iconPath;
QString m_comment; TQString m_comment;
QString m_description; TQString m_description;
QString m_keyWords; TQString m_keyWords;
Type m_type; Type m_type;
QString m_contentPath; TQString m_contentPath;
}; };

@ -48,18 +48,18 @@ KbfxDataStack::addGroupList ( KbfxDataGroupList * list )
m_count++; m_count++;
} }
QStringList TQStringList
KbfxDataStack::getStackIndex() KbfxDataStack::getStackIndex()
{ {
return m_nameList; return m_nameList;
} }
KbfxDataGroupList * KbfxDataGroupList *
KbfxDataStack::getStack ( QString name ) KbfxDataStack::getStack ( TQString name )
{ {
if ( m_nameList.contains ( name ) >0 ) if ( m_nameList.tqcontains ( name ) >0 )
return m_stack[name]; return m_stack[name];
else else
{ {
@ -68,7 +68,7 @@ KbfxDataStack::getStack ( QString name )
} }
QString TQString
KbfxDataStack::getSubGroupName ( uint id ) KbfxDataStack::getSubGroupName ( uint id )
{ {
@ -79,6 +79,6 @@ KbfxDataStack::getSubGroupName ( uint id )
return it.key(); return it.key();
} }
return QString ( "Empty" ); return TQString ( "Empty" );
} }

@ -22,9 +22,9 @@
#ifndef KBFX_DATA_STACK_H #ifndef KBFX_DATA_STACK_H
#define KBFX_DATA_STACK_H #define KBFX_DATA_STACK_H
#include <qmap.h> #include <tqmap.h>
#include <qstring.h> #include <tqstring.h>
#include <qstringlist.h> #include <tqstringlist.h>
#include "kbfxdatagrouplist.h" #include "kbfxdatagrouplist.h"
#include "kbfxplasmacanvasstackdata.h" //TODO:change the name here #include "kbfxplasmacanvasstackdata.h" //TODO:change the name here
@ -32,29 +32,29 @@ class KbfxDataStack
{ {
public: public:
typedef QMap<QString,KbfxDataGroupList*> StackMap; typedef TQMap<TQString,KbfxDataGroupList*> StackMap;
typedef QMap<QString,uint> Dict; typedef TQMap<TQString,uint> Dict;
typedef QMap<int,KbfxPlasmaCanvasStackData> DataDict; typedef TQMap<int,KbfxPlasmaCanvasStackData> DataDict;
KbfxDataStack(); KbfxDataStack();
~KbfxDataStack(); ~KbfxDataStack();
void setName ( QString name ) { m_name=name;} void setName ( TQString name ) { m_name=name;}
void addGroupList ( KbfxDataGroupList * list ); void addGroupList ( KbfxDataGroupList * list );
//out //out
KbfxDataGroupList * getGroupList ( QString name ); KbfxDataGroupList * getGroupList ( TQString name );
QStringList getStackIndex(); TQStringList getStackIndex();
KbfxDataGroupList * getStack ( QString name ); KbfxDataGroupList * getStack ( TQString name );
Dict getDict() {return m_dict;} Dict getDict() {return m_dict;}
DataDict getDataDict() { return m_dataDict;} DataDict getDataDict() { return m_dataDict;}
QString name() {return m_name;} TQString name() {return m_name;}
uint getIndex ( QString name ) { return m_dict[name];} uint getIndex ( TQString name ) { return m_dict[name];}
QString getSubGroupName ( uint id ); TQString getSubGroupName ( uint id );
int count() {return m_count;} int count() {return m_count;}
private: private:
StackMap m_stack; StackMap m_stack;
QStringList m_nameList; TQStringList m_nameList;
QString m_name; TQString m_name;
Dict m_dict; Dict m_dict;
DataDict m_dataDict; DataDict m_dataDict;
uint m_count; uint m_count;

@ -22,8 +22,8 @@
#include <config.h> #include <config.h>
#include "kbfxplasmapluginloader.h" #include "kbfxplasmapluginloader.h"
#include <qdir.h> #include <tqdir.h>
#include <qfileinfo.h> #include <tqfileinfo.h>
#include <kstandarddirs.h> #include <kstandarddirs.h>
#include <kdebug.h> #include <kdebug.h>
@ -39,31 +39,31 @@ void
KbfxPlasmaPluginLoader::init() KbfxPlasmaPluginLoader::init()
{ {
QString libprefix = locate ( "lib","libkbfxdata.so" ); TQString libprefix = locate ( "lib","libkbfxdata.so" );
libprefix.remove ( "libkbfxdata.so" ); libprefix.remove ( "libkbfxdata.so" );
// QString libprefix = KBFX_LIB_INSTALL_DIR ; // TQString libprefix = KBFX_LIB_INSTALL_DIR ;
kdDebug() << "KBFX plugins lib is: " << libprefix << endl; kdDebug() << "KBFX plugins lib is: " << libprefix << endl;
QDir * _dir = new QDir ( libprefix+"/kbfx/plugins/" ); TQDir * _dir = new TQDir ( libprefix+"/kbfx/plugins/" );
QStringList plugins; TQStringList plugins;
_dir->setFilter ( QDir::Files ); _dir->setFilter ( TQDir::Files );
_dir->setNameFilter ( "*.so" ); _dir->setNameFilter ( "*.so" );
if ( !_dir->exists() ) if ( !_dir->exists() )
{ {
kdDebug() << "Invalid Plugin Prefix: " << libprefix << "/kbfx/plugins/" << endl; kdDebug() << "Invalid Plugin Prefix: " << libprefix << "/kbfx/plugins/" << endl;
delete _dir; delete _dir;
return ;//QStringList("No Plugins found: Error in default Paths.Contact Package Manager"); return ;//TQStringList("No Plugins found: Error in default Paths.Contact Package Manager");
} }
const QFileInfoList *list = _dir->entryInfoList(); const TQFileInfoList *list = _dir->entryInfoList();
QFileInfoListIterator it ( *list ); TQFileInfoListIterator it ( *list );
QFileInfo *fi=0; TQFileInfo *fi=0;
int _index =0; int _index =0;
while ( ( fi = it.current() ) != 0 ) while ( ( fi = it.current() ) != 0 )
{ {
QString * path = new QString ( libprefix+"/kbfx/plugins/"+fi->fileName() ); TQString * path = new TQString ( libprefix+"/kbfx/plugins/"+fi->fileName() );
QLibrary * _l = new QLibrary ( *path ); TQLibrary * _l = new TQLibrary ( *path );
typedef QString ( *getName ) (); typedef TQString ( *getName ) ();
getName nameFunc; getName nameFunc;
nameFunc = ( getName ) _l->resolve ( "name" ); nameFunc = ( getName ) _l->resolve ( "name" );
if ( nameFunc ) if ( nameFunc )
@ -95,7 +95,7 @@ KbfxPlasmaPluginLoader::~KbfxPlasmaPluginLoader()
} }
KbfxDataStack * KbfxDataStack *
KbfxPlasmaPluginLoader::getView ( QString name ) KbfxPlasmaPluginLoader::getView ( TQString name )
{ {
PluginMap::Iterator it; PluginMap::Iterator it;
for ( it = pluginMap().begin(); it != pluginMap().end(); ++it ) for ( it = pluginMap().begin(); it != pluginMap().end(); ++it )
@ -113,7 +113,7 @@ KbfxPlasmaPluginLoader::getView ( QString name )
} }
KbfxDataGroup * KbfxDataGroup *
KbfxPlasmaPluginLoader::search ( QString pname,QString keyword ) KbfxPlasmaPluginLoader::search ( TQString pname,TQString keyword )
{ {
if ( pname == NULL ) if ( pname == NULL )
return NULL; return NULL;
@ -142,12 +142,12 @@ KbfxPlasmaPluginLoader::pluginMap()
QStringList TQStringList
KbfxPlasmaPluginLoader::scanPlugins() KbfxPlasmaPluginLoader::scanPlugins()
{ {
init(); init();
QStringList plugins; TQStringList plugins;
PluginMap::Iterator it; PluginMap::Iterator it;
for ( it = pluginMap().begin(); it != pluginMap().end();++it ) for ( it = pluginMap().begin(); it != pluginMap().end();++it )

@ -22,18 +22,19 @@
#ifndef KBFX_PLASMA_PLUGIN_LOADER_H #ifndef KBFX_PLASMA_PLUGIN_LOADER_H
#define KBFX_PLASMA_PLUGIN_LOADER_H #define KBFX_PLASMA_PLUGIN_LOADER_H
#include <qlibrary.h> #include <tqlibrary.h>
#include "kbfxplasmacanvasstack.h" #include "kbfxplasmacanvasstack.h"
#include "kbfxdatastack.h" #include "kbfxdatastack.h"
#include "kbfxplugin.h" #include "kbfxplugin.h"
#include <qcanvas.h> #include <tqcanvas.h>
class KbfxPlasmaPluginLoader:public QObject class KbfxPlasmaPluginLoader:public TQObject
{ {
Q_OBJECT Q_OBJECT
TQ_OBJECT
public: public:
typedef QMap<QString,KbfxPlugin*> PluginMap; typedef TQMap<TQString,KbfxPlugin*> PluginMap;
/** /**
* *
@ -50,11 +51,11 @@ class KbfxPlasmaPluginLoader:public QObject
* @param name * @param name
* @return * @return
*/ */
KbfxDataStack * getView ( QString name ); KbfxDataStack * getView ( TQString name );
/* /*
look for all installed Plugins. returns a list of installed plugins look for all installed Plugins. returns a list of installed plugins
*/ */
static QStringList scanPlugins(); static TQStringList scanPlugins();
/** /**
* Calls the search function of a given plugin and returns the result * Calls the search function of a given plugin and returns the result
@ -62,16 +63,16 @@ class KbfxPlasmaPluginLoader:public QObject
* @param keyword the keyword to pass to the plugin * @param keyword the keyword to pass to the plugin
* @return a valid KbfxDataGroup or -1 * @return a valid KbfxDataGroup or -1
*/ */
static KbfxDataGroup * search ( QString pluginName,QString keyword ); static KbfxDataGroup * search ( TQString pluginName,TQString keyword );
protected: protected:
static void init(); static void init();
private: private:
QLibrary * m_plugin; TQLibrary * m_plugin;
static PluginMap& pluginMap(); static PluginMap& pluginMap();
QString m_prefix; TQString m_prefix;
}; };

@ -21,7 +21,7 @@
#include "kbfxplugin.h" #include "kbfxplugin.h"
KbfxPlugin::KbfxPlugin ( QString name,QString lib,uint id ) KbfxPlugin::KbfxPlugin ( TQString name,TQString lib,uint id )
{ {
m_name = name; m_name = name;
m_libName = lib; m_libName = lib;
@ -39,13 +39,13 @@ KbfxPlugin::~KbfxPlugin()
// delete [] m_libName; // delete [] m_libName;
} }
QString TQString
KbfxPlugin::name() KbfxPlugin::name()
{ {
return m_name; return m_name;
} }
QString TQString
KbfxPlugin::libName() KbfxPlugin::libName()
{ {
return m_libName; return m_libName;
@ -69,7 +69,7 @@ KbfxPlugin::data()
typedef KbfxDataStack * ( *KbfxPluginView ) (); typedef KbfxDataStack * ( *KbfxPluginView ) ();
KbfxDataStack * m_stack =0; KbfxDataStack * m_stack =0;
KbfxPluginView m_hook; KbfxPluginView m_hook;
QLibrary * m_plugin = new QLibrary ( m_libName ); TQLibrary * m_plugin = new TQLibrary ( m_libName );
if ( m_plugin == NULL ) if ( m_plugin == NULL )
return new KbfxDataStack(); return new KbfxDataStack();
@ -86,7 +86,7 @@ KbfxPlugin::data()
} }
KbfxDataGroup * KbfxDataGroup *
KbfxPlugin::search ( QString keyword ) KbfxPlugin::search ( TQString keyword )
{ {
if ( keyword == 0 ) if ( keyword == 0 )
return NULL;//new KbfxDataGroup(); return NULL;//new KbfxDataGroup();
@ -95,10 +95,10 @@ KbfxPlugin::search ( QString keyword )
return NULL;//KbfxDataGroup(); return NULL;//KbfxDataGroup();
typedef KbfxDataGroup * ( *KbfxPluginSearch ) ( QString key ); typedef KbfxDataGroup * ( *KbfxPluginSearch ) ( TQString key );
KbfxDataGroup * m_group =0; KbfxDataGroup * m_group =0;
KbfxPluginSearch m_hook; KbfxPluginSearch m_hook;
QLibrary * m_plugin = new QLibrary ( m_libName ); TQLibrary * m_plugin = new TQLibrary ( m_libName );
m_hook = ( KbfxPluginSearch ) m_plugin->resolve ( "search" ); m_hook = ( KbfxPluginSearch ) m_plugin->resolve ( "search" );
m_group = m_hook ( keyword ); m_group = m_hook ( keyword );
m_plugin->unload(); m_plugin->unload();

@ -23,9 +23,9 @@
#define KBFX_PLUGIN_H #define KBFX_PLUGIN_H
//#include "kbfxplasmacanvasstack.h" //#include "kbfxplasmacanvasstack.h"
#include "kbfxdatastack.h" #include "kbfxdatastack.h"
#include <qobject.h> #include <tqobject.h>
#include <qstring.h> #include <tqstring.h>
#include <qlibrary.h> #include <tqlibrary.h>
/** /**
This class reprecentes a plugin This class reprecentes a plugin
written for kbfx menu this written for kbfx menu this
@ -34,25 +34,26 @@ of the menu
**/ **/
class KbfxPlugin:public QObject class KbfxPlugin:public TQObject
{ {
Q_OBJECT Q_OBJECT
TQ_OBJECT
public: public:
KbfxPlugin(); KbfxPlugin();
KbfxPlugin ( QString Name,QString lib,uint id ); KbfxPlugin ( TQString Name,TQString lib,uint id );
~KbfxPlugin(); ~KbfxPlugin();
void setStatus ( bool ); void settqStatus ( bool );
QString name(); TQString name();
QString libName(); TQString libName();
uint id(); uint id();
bool status(); bool status();
// KbfxPlasmaCanvasStack * data(); // KbfxPlasmaCanvasStack * data();
KbfxDataStack * data(); KbfxDataStack * data();
KbfxDataGroup * search ( QString keyword ); KbfxDataGroup * search ( TQString keyword );
// KbfxDataStack * data(); // KbfxDataStack * data();
@ -62,12 +63,12 @@ class KbfxPlugin:public QObject
void loadComplete(); void loadComplete();
private: private:
QString m_name; TQString m_name;
QString m_libName; TQString m_libName;
uint m_id; uint m_id;
// KbfxPlasmaCanvasStack * m_data; // KbfxPlasmaCanvasStack * m_data;
KbfxDataStack m_data_R; KbfxDataStack m_data_R;
// QCanvas * m_canvas; // TQCanvas * m_canvas;
bool m_loaded; bool m_loaded;
}; };

@ -158,16 +158,16 @@ view ()
} }
QString TQString
name () name ()
{ {
return QString ( "Applications" ); return TQString ( "Applications" );
} }
QString TQString
type () type ()
{ {
return QString ( "Stub Type" ); return TQString ( "Stub Type" );
} }
@ -180,7 +180,7 @@ id ()
#include <ktrader.h> #include <ktrader.h>
KbfxDataGroup * KbfxDataGroup *
search ( QString _keyword ) search ( TQString _keyword )
{ {
@ -192,7 +192,7 @@ search ( QString _keyword )
int *count = new int; int *count = new int;
*count = 0; *count = 0;
QValueListIterator < KService::Ptr > s = offers.begin (); TQValueListIterator < KService::Ptr > s = offers.begin ();
for ( ; s != offers.end (); ++s ) for ( ; s != offers.end (); ++s )
{ {
@ -201,10 +201,10 @@ search ( QString _keyword )
if ( (*s)->noDisplay () == true ) if ( (*s)->noDisplay () == true )
continue; continue;
QString *sPtr = new QString (); TQString *sPtr = new TQString ();
( *sPtr ) = ( *s )->name () + ( *s )->genericName () + ( *s )->comment (); ( *sPtr ) = ( *s )->name () + ( *s )->genericName () + ( *s )->comment ();
if ( ( !sPtr->isNull () ) && sPtr->contains ( _keyword, false ) > 0 ) if ( ( !sPtr->isNull () ) && sPtr->tqcontains ( _keyword, false ) > 0 )
{ {
KbfxDataSource *data = new KbfxDataSource (); KbfxDataSource *data = new KbfxDataSource ();
data->setName ( ( *s )->name () ); data->setName ( ( *s )->name () );

@ -26,12 +26,12 @@
extern "C" extern "C"
{ {
// static QString check = "Static Check for Plugin"; // static TQString check = "Static Check for Plugin";
KbfxDataStack * view(); KbfxDataStack * view();
QString name(); //Name of the Plugin My Music .if TOM Create..Configure .. TQString name(); //Name of the Plugin My Music .if TOM Create..Configure ..
QString type(); //Type of the plugin ex: Application : Amork : kio ..etc TQString type(); //Type of the plugin ex: Application : Amork : kio ..etc
uint id(); //A id for menus uint id(); //A id for menus
KbfxDataGroup * search ( QString str ); KbfxDataGroup * search ( TQString str );
} }
#endif #endif

@ -24,8 +24,8 @@
#include <kservicegroup.h> #include <kservicegroup.h>
#include <kdebug.h> #include <kdebug.h>
#include <kstandarddirs.h> #include <kstandarddirs.h>
#include <qdir.h> #include <tqdir.h>
#include <qfileinfo.h> #include <tqfileinfo.h>
#include <kbfxplasmadataplugin-common.h> #include <kbfxplasmadataplugin-common.h>
@ -47,19 +47,19 @@ view ()
glist->setIcon ( "plasmagik" ); glist->setIcon ( "plasmagik" );
appGroup->setName ( "Plasmoids" ); appGroup->setName ( "Plasmoids" );
QString path = locate ( "data", "kicker/applets/lockout.desktop" ); TQString path = locate ( "data", "kicker/applets/lockout.desktop" );
path.remove ( "lockout.desktop" ); path.remove ( "lockout.desktop" );
QDir d ( path ); TQDir d ( path );
d.setFilter ( QDir::Files | QDir::Hidden | QDir::NoSymLinks ); d.setFilter ( TQDir::Files | TQDir::Hidden | TQDir::NoSymLinks );
d.setSorting ( QDir::Size | QDir::Reversed ); d.setSorting ( TQDir::Size | TQDir::Reversed );
d.setNameFilter ( "*.desktop" ); d.setNameFilter ( "*.desktop" );
const QFileInfoList *list = d.entryInfoList (); const TQFileInfoList *list = d.entryInfoList ();
QFileInfoListIterator it ( *list ); TQFileInfoListIterator it ( *list );
QFileInfo *fi; TQFileInfo *fi;
while ( ( fi = it.current () ) != 0 ) while ( ( fi = it.current () ) != 0 )
{ {
@ -87,16 +87,16 @@ view ()
} }
QString TQString
name () name ()
{ {
return QString ( "Plasmoids" ); return TQString ( "Plasmoids" );
} }
QString TQString
type () type ()
{ {
return QString ( "Stub Type" ); return TQString ( "Stub Type" );
} }
@ -110,28 +110,28 @@ id ()
#include <ktrader.h> #include <ktrader.h>
KbfxDataGroup * KbfxDataGroup *
search ( QString _keyword ) search ( TQString _keyword )
{ {
KbfxDataGroup *appGroup = new KbfxDataGroup (); KbfxDataGroup *appGroup = new KbfxDataGroup ();
QString path = locate ( "data", "kicker/applets/lockout.desktop" ); TQString path = locate ( "data", "kicker/applets/lockout.desktop" );
path.remove ( "lockout.desktop" ); path.remove ( "lockout.desktop" );
QDir d ( path ); TQDir d ( path );
d.setFilter ( QDir::Files | QDir::Hidden | QDir::NoSymLinks ); d.setFilter ( TQDir::Files | TQDir::Hidden | TQDir::NoSymLinks );
d.setSorting ( QDir::Size | QDir::Reversed ); d.setSorting ( TQDir::Size | TQDir::Reversed );
d.setNameFilter ( "*.desktop" ); d.setNameFilter ( "*.desktop" );
const QFileInfoList *list = d.entryInfoList (); const TQFileInfoList *list = d.entryInfoList ();
QFileInfoListIterator it ( *list ); TQFileInfoListIterator it ( *list );
QFileInfo *fi; TQFileInfo *fi;
while ( ( fi = it.current () ) != 0 ) while ( ( fi = it.current () ) != 0 )
{ {
if ( fi->fileName ().contains ( _keyword ) > 0 ) if ( fi->fileName ().tqcontains ( _keyword ) > 0 )
{ {
KDesktopFile *desktop = new KDesktopFile ( fi->filePath () ); KDesktopFile *desktop = new KDesktopFile ( fi->filePath () );

@ -24,8 +24,8 @@
#include <kservicegroup.h> #include <kservicegroup.h>
#include <kdebug.h> #include <kdebug.h>
#include <kstandarddirs.h> #include <kstandarddirs.h>
#include <qdir.h> #include <tqdir.h>
#include <qfileinfo.h> #include <tqfileinfo.h>
#include <kbfxplasmadataplugin-common.h> #include <kbfxplasmadataplugin-common.h>
#include <kstandarddirs.h> #include <kstandarddirs.h>
@ -42,19 +42,19 @@ view ()
glist->setIcon ( "newstuff" ); glist->setIcon ( "newstuff" );
appGroup->setName ( "RecentStuff" ); appGroup->setName ( "RecentStuff" );
QString path = TQString path =
KStandardDirs ().localkdedir () + "/share/apps/RecentDocuments/"; KStandardDirs ().localkdedir () + "/share/apps/RecentDocuments/";
QDir d ( path ); TQDir d ( path );
d.setFilter ( QDir::Files | QDir::Hidden | QDir::NoSymLinks ); d.setFilter ( TQDir::Files | TQDir::Hidden | TQDir::NoSymLinks );
d.setSorting ( QDir::Size | QDir::Reversed ); d.setSorting ( TQDir::Size | TQDir::Reversed );
d.setNameFilter ( "*.desktop" ); d.setNameFilter ( "*.desktop" );
const QFileInfoList *list = d.entryInfoList (); const TQFileInfoList *list = d.entryInfoList ();
QFileInfoListIterator it ( *list ); TQFileInfoListIterator it ( *list );
QFileInfo *fi; TQFileInfo *fi;
while ( ( fi = it.current () ) != 0 ) while ( ( fi = it.current () ) != 0 )
{ {
@ -84,16 +84,16 @@ view ()
} }
QString TQString
name () name ()
{ {
return QString ( "RecentStuff" ); return TQString ( "RecentStuff" );
} }
QString TQString
type () type ()
{ {
return QString ( "Stub Type" ); return TQString ( "Stub Type" );
} }
@ -107,7 +107,7 @@ id ()
#include <ktrader.h> #include <ktrader.h>
KbfxDataGroup * KbfxDataGroup *
search ( QString _keyword ) search ( TQString _keyword )
{ {
KbfxDataGroup *appGroup = new KbfxDataGroup (); KbfxDataGroup *appGroup = new KbfxDataGroup ();
// KbfxDataGroupList *glist = new KbfxDataGroupList (); // KbfxDataGroupList *glist = new KbfxDataGroupList ();
@ -115,21 +115,21 @@ search ( QString _keyword )
QString path = TQString path =
KStandardDirs ().localkdedir () + "/share/apps/RecentDocuments/"; KStandardDirs ().localkdedir () + "/share/apps/RecentDocuments/";
QDir d ( path ); TQDir d ( path );
d.setFilter ( QDir::Files | QDir::Hidden | QDir::NoSymLinks ); d.setFilter ( TQDir::Files | TQDir::Hidden | TQDir::NoSymLinks );
d.setSorting ( QDir::Size | QDir::Reversed ); d.setSorting ( TQDir::Size | TQDir::Reversed );
d.setNameFilter ( "*.desktop" ); d.setNameFilter ( "*.desktop" );
const QFileInfoList *list = d.entryInfoList (); const TQFileInfoList *list = d.entryInfoList ();
QFileInfoListIterator it ( *list ); TQFileInfoListIterator it ( *list );
QFileInfo *fi; TQFileInfo *fi;
while ( ( fi = it.current () ) != 0 ) while ( ( fi = it.current () ) != 0 )
{ {
if ( fi->fileName ().contains ( _keyword ) > 0 ) if ( fi->fileName ().tqcontains ( _keyword ) > 0 )
{ {
KDesktopFile *desktop = new KDesktopFile ( fi->filePath () ); KDesktopFile *desktop = new KDesktopFile ( fi->filePath () );

@ -159,16 +159,16 @@ view ()
} }
QString TQString
name () name ()
{ {
return QString ( "Settings" ); return TQString ( "Settings" );
} }
QString TQString
type () type ()
{ {
return QString ( "Stub Type" ); return TQString ( "Stub Type" );
} }
uint uint
@ -180,7 +180,7 @@ id ()
KbfxDataGroup * KbfxDataGroup *
search ( QString _keyword ) search ( TQString _keyword )
{ {
_keyword = _keyword; _keyword = _keyword;
return new KbfxDataGroup(); return new KbfxDataGroup();

@ -23,8 +23,8 @@
#include <kservice.h> #include <kservice.h>
#include <kservicegroup.h> #include <kservicegroup.h>
#include <kdebug.h> #include <kdebug.h>
#include <qdir.h> #include <tqdir.h>
#include <qfileinfo.h> #include <tqfileinfo.h>
#include <kurl.h> #include <kurl.h>
#include "kbfxstrigiplugin.h" #include "kbfxstrigiplugin.h"
@ -107,16 +107,16 @@ view ()
} }
QString TQString
name () name ()
{ {
return QString ( "Strigi" ); return TQString ( "Strigi" );
} }
QString TQString
type () type ()
{ {
return QString ( "Stub Type" ); return TQString ( "Stub Type" );
} }
@ -129,13 +129,13 @@ id ()
KbfxDataGroup * KbfxDataGroup *
search ( QString _keyword ) search ( TQString _keyword )
{ {
KbfxDataGroup *datagroup = new KbfxDataGroup (); KbfxDataGroup *datagroup = new KbfxDataGroup ();
datagroup->setName ( "Strigi" ); datagroup->setName ( "Strigi" );
QString socketpath = QDir::homeDirPath () + "/.strigi/socket"; TQString socketpath = TQDir::homeDirPath () + "/.strigi/socket";
startDaemon (); startDaemon ();
kdDebug() << socketpath << endl; kdDebug() << socketpath << endl;
AsyncSocketClient socket; AsyncSocketClient socket;
@ -165,13 +165,13 @@ search ( QString _keyword )
jstreams::IndexedDocument hit = hits.hits[i]; jstreams::IndexedDocument hit = hits.hits[i];
KbfxDataSource *data = new KbfxDataSource (); KbfxDataSource *data = new KbfxDataSource ();
QString name; TQString name;
std::map < std::string, std::string >::const_iterator it = std::map < std::string, std::string >::const_iterator it =
hits.hits[i].properties.find ( "title" ); hits.hits[i].properties.tqfind ( "title" );
QString filename ( hits.hits[i].uri.c_str () ); TQString filename ( hits.hits[i].uri.c_str () );
if ( filename.contains ( ".tar." ) > 0 ) if ( filename.tqcontains ( ".tar." ) > 0 )
{ {
filename = "tar:" + filename; filename = "tar:" + filename;
kdDebug() << filename << endl; kdDebug() << filename << endl;
@ -183,7 +183,7 @@ search ( QString _keyword )
} }
else else
{ {
uint pos = hits.hits[i].uri.rfind ( '/' ); uint pos = hits.hits[i].uri.rtqfind ( '/' );
if ( pos == std::string::npos ) if ( pos == std::string::npos )
{ {
name = hits.hits[i].uri; name = hits.hits[i].uri;
@ -203,9 +203,9 @@ search ( QString _keyword )
QString iconname = TQString iconname =
KMimeType::mimeType ( hits.hits[i].mimetype.c_str () )-> KMimeType::mimeType ( hits.hits[i].mimetype.c_str () )->
icon ( QString::null, 0 ); icon ( TQString(), 0 );
data->setIconPath ( iconname ); data->setIconPath ( iconname );
datagroup->addItem ( data ); datagroup->addItem ( data );

@ -32,11 +32,11 @@
extern "C" extern "C"
{ {
KbfxDataStack * view(); KbfxDataStack * view();
QString name(); //Name of the Plugin My Music .if TOM Create..Configure .. TQString name(); //Name of the Plugin My Music .if TOM Create..Configure ..
QString type(); //Type of the plugin ex: Application : Amork : kio ..etc TQString type(); //Type of the plugin ex: Application : Amork : kio ..etc
uint id(); //A id for menus uint id(); //A id for menus
KbfxDataGroup * search ( QString str ); KbfxDataGroup * search ( TQString str );
// KbfxPlasmaCanvasGroup * search(QString _keyword,QCanvas * canvas); //search and return a group // KbfxPlasmaCanvasGroup * search(TQString _keyword,TQCanvas * canvas); //search and return a group
} }
#endif #endif

@ -27,8 +27,8 @@
bool KbfxButton::m_sizeHeight = TRUE; bool KbfxButton::m_sizeHeight = TRUE;
int KbfxButton::m_size = 0; int KbfxButton::m_size = 0;
KbfxButton::KbfxButton ( QWidget * parent, const char *name) : KbfxButton::KbfxButton ( TQWidget * tqparent, const char *name) :
QLabel ( parent,name,Qt::WStaticContents | Qt::WNoAutoErase |Qt::WPaintDesktop ) TQLabel ( tqparent,name,TQt::WStaticContents | TQt::WNoAutoErase |TQt::WPaintDesktop )
{ {
setLineWidth ( 0 ); setLineWidth ( 0 );
setScaledContents ( false ); setScaledContents ( false );
@ -43,12 +43,12 @@ KbfxButton::KbfxButton ( QWidget * parent, const char *name) :
m_kicker_auto_adjust = ConfigInit().m_ToolBarResize; m_kicker_auto_adjust = ConfigInit().m_ToolBarResize;
m_toggle = false; m_toggle = false;
QTimer * timer = new QTimer ( this,"Update Timer" ); TQTimer * timer = new TQTimer ( this,"Update Timer" );
connect ( timer,SIGNAL ( timeout() ),this,SLOT ( update() ) ); connect ( timer,TQT_SIGNAL ( timeout() ),this,TQT_SLOT ( update() ) );
timer->start ( 25,false ); timer->start ( 25,false );
fade_timer = new QTimer ( this,"Fade Timer" ); fade_timer = new TQTimer ( this,"Fade Timer" );
connect ( fade_timer,SIGNAL ( timeout() ),this,SLOT ( fade() ) ); connect ( fade_timer,TQT_SIGNAL ( timeout() ),this,TQT_SLOT ( fade() ) );
} }
KbfxButton::~KbfxButton() KbfxButton::~KbfxButton()
@ -57,64 +57,64 @@ KbfxButton::~KbfxButton()
void KbfxButton::loadSkins() void KbfxButton::loadSkins()
{ {
QImage _tmpHover, _tmpPressed, _tmpNormal; TQImage _tmpHover, _tmpPressed, _tmpNormal;
_tmpHover = ( KbfxPlasmaPixmapProvider::PixmapPathCheck ( ConfigInit ().m_KbfxHoverButtonPath ) ) ? _tmpHover = ( KbfxPlasmaPixmapProvider::PixmapPathCheck ( ConfigInit ().m_KbfxHoverButtonPath ) ) ?
QImage ( ConfigInit ().m_KbfxHoverButtonPath ) TQImage ( ConfigInit ().m_KbfxHoverButtonPath )
: QImage ( ConfigInit ().m_KbfxHoverButtonPathDefault ); : TQImage ( ConfigInit ().m_KbfxHoverButtonPathDefault );
_tmpPressed = ( KbfxPlasmaPixmapProvider::PixmapPathCheck ( ConfigInit ().m_KbfxPressedButtonPath ) ) ? _tmpPressed = ( KbfxPlasmaPixmapProvider::PixmapPathCheck ( ConfigInit ().m_KbfxPressedButtonPath ) ) ?
QImage ( ConfigInit ().m_KbfxPressedButtonPath ) TQImage ( ConfigInit ().m_KbfxPressedButtonPath )
: QImage ( ConfigInit ().m_KbfxPressedButtonPathDefault ); : TQImage ( ConfigInit ().m_KbfxPressedButtonPathDefault );
_tmpNormal = ( KbfxPlasmaPixmapProvider::PixmapPathCheck ( ConfigInit ().m_KbfxNormalButtonPath ) ) ? _tmpNormal = ( KbfxPlasmaPixmapProvider::PixmapPathCheck ( ConfigInit ().m_KbfxNormalButtonPath ) ) ?
QImage ( ConfigInit ().m_KbfxNormalButtonPath ) TQImage ( ConfigInit ().m_KbfxNormalButtonPath )
: QImage ( ConfigInit ().m_KbfxNormalButtonPathDefault ); : TQImage ( ConfigInit ().m_KbfxNormalButtonPathDefault );
QSize _sizeNormal = _tmpNormal.size(); TQSize _sizeNormal = _tmpNormal.size();
_tmpHover = _tmpHover.smoothScale ( _sizeNormal, QImage::ScaleFree ); _tmpHover = _tmpHover.smoothScale ( _sizeNormal, TQ_ScaleFree );
_tmpPressed = _tmpPressed.smoothScale ( _sizeNormal, QImage::ScaleFree ); _tmpPressed = _tmpPressed.smoothScale ( _sizeNormal, TQ_ScaleFree );
if ( !m_kicker_auto_adjust ) if ( !m_kicker_auto_adjust )
{ {
if ( m_sizeHeight ) if ( m_sizeHeight )
{ {
_tmpHover = _tmpHover.smoothScale ( _tmpHover.width(), m_size, QImage::ScaleMin ); _tmpHover = _tmpHover.smoothScale ( _tmpHover.width(), m_size, TQ_ScaleMin );
_tmpPressed = _tmpPressed.smoothScale ( _tmpPressed.width(), m_size, QImage::ScaleMin ); _tmpPressed = _tmpPressed.smoothScale ( _tmpPressed.width(), m_size, TQ_ScaleMin );
_tmpNormal = _tmpNormal.smoothScale ( _tmpNormal.width(), m_size, QImage::ScaleMin ); _tmpNormal = _tmpNormal.smoothScale ( _tmpNormal.width(), m_size, TQ_ScaleMin );
} }
else else
{ {
_tmpHover = _tmpHover.smoothScale ( m_size, _tmpHover.height(), QImage::ScaleMin ); _tmpHover = _tmpHover.smoothScale ( m_size, _tmpHover.height(), TQ_ScaleMin );
_tmpPressed = _tmpPressed.smoothScale ( m_size, _tmpPressed.height(), QImage::ScaleMin ); _tmpPressed = _tmpPressed.smoothScale ( m_size, _tmpPressed.height(), TQ_ScaleMin );
_tmpNormal = _tmpNormal.smoothScale ( m_size, _tmpNormal.height(), QImage::ScaleMin ); _tmpNormal = _tmpNormal.smoothScale ( m_size, _tmpNormal.height(), TQ_ScaleMin );
} }
} }
m_over_skin = QPixmap ( _tmpHover ); m_over_skin = TQPixmap ( _tmpHover );
m_normal_skin = QPixmap ( _tmpNormal ); m_normal_skin = TQPixmap ( _tmpNormal );
m_pressed_skin = QPixmap ( _tmpPressed ); m_pressed_skin = TQPixmap ( _tmpPressed );
m_current_skin = m_normal_skin; m_current_skin = m_normal_skin;
this->resize ( m_current_skin.width(),m_current_skin.height() ); this->resize ( m_current_skin.width(),m_current_skin.height() );
this->repaint(); this->tqrepaint();
} }
QCString KbfxButton::findPanel() TQCString KbfxButton::findPanel()
{ {
QCString m_AppletPanel = QCString ("kicker"); TQCString m_AppletPanel = TQCString ("kicker");
QCStringList objects=m_dcopClient->remoteObjects("kicker"); QCStringList objects=m_dcopClient->remoteObjects("kicker");
for( QCStringList::ConstIterator it = objects.begin(); for( QCStringList::ConstIterator it = objects.begin();
it != objects.end(); it != objects.end();
++it) ++it)
{ {
if ( (*it).contains ( "Panel" ) > 0 ) if ( (*it).tqcontains ( "Panel" ) > 0 )
{ {
DCOPRef _dcop_obj ( "kicker", (*it) ); DCOPRef _dcop_obj ( "kicker", (*it) );
QStringList _dcop_obj_applets =_dcop_obj.call ( "listApplets()" ); TQStringList _dcop_obj_applets =_dcop_obj.call ( "listApplets()" );
for ( QStringList::Iterator _it = _dcop_obj_applets.begin(); for ( TQStringList::Iterator _it = _dcop_obj_applets.begin();
_it != _dcop_obj_applets.end(); _it != _dcop_obj_applets.end();
_it++ ) _it++ )
{ {
if ( ( *_it ).contains ( "kbfx" ) ) if ( ( *_it ).tqcontains ( "kbfx" ) )
{ {
m_AppletPanel = (*it); m_AppletPanel = (*it);
break; break;
@ -129,7 +129,7 @@ QCString KbfxButton::findPanel()
void KbfxButton::readjust( bool _how ) void KbfxButton::readjust( bool _how )
{ {
/* _how = TRUE is for height, _how = FALSE is for width readjust */ /* _how = TRUE is for height, _how = FALSE is for width readjust */
QCString _panel = findPanel(); TQCString _panel = findPanel();
int _tmp_size; int _tmp_size;
if ( _how ) if ( _how )
{ {
@ -141,8 +141,8 @@ void KbfxButton::readjust( bool _how )
_tmp_size = this->width (); _tmp_size = this->width ();
kdDebug () << "Readjusting " << _panel << " to width: " << _tmp_size << endl; kdDebug () << "Readjusting " << _panel << " to width: " << _tmp_size << endl;
} }
QByteArray data; TQByteArray data;
QDataStream arg ( data, IO_WriteOnly ); TQDataStream arg ( data, IO_WriteOnly );
arg << _tmp_size ; arg << _tmp_size ;
if ( !m_dcopClient->send ( "kicker", _panel, "setPanelSize(int)", data ) ) if ( !m_dcopClient->send ( "kicker", _panel, "setPanelSize(int)", data ) )
kdWarning () kdWarning ()
@ -151,7 +151,7 @@ void KbfxButton::readjust( bool _how )
<< endl; << endl;
} }
void KbfxButton::enterEvent ( QEvent * e ) void KbfxButton::enterEvent ( TQEvent * e )
{ {
e = e; e = e;
if ( m_toggle == true ) if ( m_toggle == true )
@ -177,8 +177,8 @@ void KbfxButton::fade ( )
} }
else else
{ {
QImage _final = m_fadePix.convertToImage (); TQImage _final = m_fadePix.convertToImage ();
QImage _current = m_current_skin.convertToImage (); TQImage _current = m_current_skin.convertToImage ();
if ( !fade_timer->isActive ()) if ( !fade_timer->isActive ())
{ {
@ -190,13 +190,13 @@ void KbfxButton::fade ( )
m_opacity += 0.1; m_opacity += 0.1;
KImageEffect::blend ( _final, _current, m_opacity); KImageEffect::blend ( _final, _current, m_opacity);
m_current_skin = QPixmap ( _current ); m_current_skin = TQPixmap ( _current );
} }
this->resize ( m_current_skin.size() ); this->resize ( m_current_skin.size() );
this->update(); this->update();
} }
void KbfxButton::leaveEvent ( QEvent * e ) void KbfxButton::leaveEvent ( TQEvent * e )
{ {
e = e; e = e;
@ -234,10 +234,10 @@ void KbfxButton::toggleKMenu()
m_toggle = false; m_toggle = false;
} }
void KbfxButton::mousePressEvent ( QMouseEvent * e ) void KbfxButton::mousePressEvent ( TQMouseEvent * e )
{ {
e->accept(); e->accept();
if ( e->button() == QMouseEvent::LeftButton ) if ( e->button() == Qt::LeftButton )
{ {
if ( m_toggle == false ) if ( m_toggle == false )
{ {
@ -264,23 +264,23 @@ void KbfxButton::mousePressEvent ( QMouseEvent * e )
emit clicked (); emit clicked ();
} }
if ( e->button() == QMouseEvent::RightButton ) if ( e->button() == Qt::RightButton )
{ {
m_fadePix = m_normal_skin; m_fadePix = m_normal_skin;
fade(); fade();
m_toggle = false; m_toggle = false;
QPopupMenu *popup = new QPopupMenu(); TQPopupMenu *popup = new TQPopupMenu();
popup->insertItem ( SmallIcon ( "remove" ), i18n ( "Remove KBFX from Pannel" ), popup->insertItem ( SmallIcon ( "remove" ), i18n ( "Remove KBFX from Pannel" ),
this, SLOT ( selfDeleter() ) ); this, TQT_SLOT ( selfDeleter() ) );
popup->insertItem ( SmallIcon ( "reload" ),i18n ( "Reload KBFX" ), popup->insertItem ( SmallIcon ( "reload" ),i18n ( "Reload KBFX" ),
this, SLOT ( reloadConfig() ) ); this, TQT_SLOT ( reloadConfig() ) );
popup->insertSeparator(); popup->insertSeparator();
popup->insertItem ( SmallIcon ( "kbfxconfigapp" ), i18n ( "Configure KBFX" ), popup->insertItem ( SmallIcon ( "kbfxconfigapp" ), i18n ( "Configure KBFX" ),
this, SLOT ( openConfigDialog() ) ); this, TQT_SLOT ( openConfigDialog() ) );
popup->insertItem ( SmallIcon ( "kmenuedit" ),i18n ( "Edit Applications Menu" ), popup->insertItem ( SmallIcon ( "kmenuedit" ),i18n ( "Edit Applications Menu" ),
this, SLOT ( openKmenuEdit() ) ); this, TQT_SLOT ( openKmenuEdit() ) );
popup->exec ( e->globalPos() ); popup->exec ( e->globalPos() );
delete popup; delete popup;
} }
@ -301,14 +301,14 @@ void KbfxButton::reloadConfig()
void KbfxButton::selfDeleter() void KbfxButton::selfDeleter()
{ {
DCOPRef m_kickerPanel ( "kicker", findPanel() ); DCOPRef m_kickerPanel ( "kicker", findPanel() );
QStringList returnQStringList =m_kickerPanel.call ( "listApplets()" ); TQStringList returnTQStringList =m_kickerPanel.call ( "listApplets()" );
int _myIndex = 0; int _myIndex = 0;
QStringList::Iterator it; TQStringList::Iterator it;
for ( it = returnQStringList.begin();it != returnQStringList.end();it++ ) for ( it = returnTQStringList.begin();it != returnTQStringList.end();it++ )
{ {
if ( ( *it ).contains ( "kbfx" ) ) if ( ( *it ).tqcontains ( "kbfx" ) )
{ {
break; break;
} }
@ -333,18 +333,18 @@ void KbfxButton::openConfigDialog()
KRun::runCommand ( "kbfxconfigapp" ); KRun::runCommand ( "kbfxconfigapp" );
} }
void KbfxButton::paintEvent ( QPaintEvent * pe ) void KbfxButton::paintEvent ( TQPaintEvent * pe )
{ {
QPainter p; TQPainter p;
if ( !m_current_skin.isNull () ) if ( !m_current_skin.isNull () )
{ {
QRect r = QRect ( pe->rect().x(),pe->rect().y(),m_current_skin.width(),m_current_skin.height() ); TQRect r = TQRect ( pe->rect().x(),pe->rect().y(),m_current_skin.width(),m_current_skin.height() );
m_buffer = new QPixmap(); m_buffer = new TQPixmap();
m_buffer->resize ( r.size() ); m_buffer->resize ( r.size() );
m_buffer->fill ( this, r.topLeft() ); m_buffer->fill ( this, r.topLeft() );
p.begin ( m_buffer,this ); p.tqbegin ( m_buffer,this );
p.translate ( -r.x(), -r.y() ); p.translate ( -r.x(), -r.y() );
p.drawPixmap ( r,m_current_skin ); p.drawPixmap ( r,m_current_skin );
p.end (); p.end ();
@ -354,37 +354,37 @@ void KbfxButton::paintEvent ( QPaintEvent * pe )
} }
void KbfxButton::dragEnterEvent ( QDragEnterEvent * e ) void KbfxButton::dragEnterEvent ( TQDragEnterEvent * e )
{ {
e->accept ( QUriDrag::canDecode ( e ) ); e->accept ( TQUriDrag::canDecode ( e ) );
kdDebug() << "Accepting KBFX button drag..." << endl; kdDebug() << "Accepting KBFX button drag..." << endl;
} }
void KbfxButton::dropEvent ( QDropEvent * e ) void KbfxButton::dropEvent ( TQDropEvent * e )
{ {
QStringList filelist; TQStringList filelist;
QString _hover, _normal, _pressed, _tmp; TQString _hover, _normal, _pressed, _tmp;
QImage _hover_pix, _normal_pix, _pressed_pix; TQImage _hover_pix, _normal_pix, _pressed_pix;
QUriDrag::decodeLocalFiles ( e, filelist ); TQUriDrag::decodeLocalFiles ( e, filelist );
for ( QStringList::Iterator it = filelist.begin(); it != filelist.end(); ++it ) for ( TQStringList::Iterator it = filelist.begin(); it != filelist.end(); ++it )
{ {
_tmp = ( *it ); _tmp = ( *it );
kdDebug() << "KBFX button dropped file: " << _tmp << endl; kdDebug() << "KBFX button dropped file: " << _tmp << endl;
if ( _tmp.contains ( "hover", FALSE ) > 0 ) if ( _tmp.tqcontains ( "hover", FALSE ) > 0 )
{ {
_hover = _tmp; _hover = _tmp;
_hover_pix = QImage ( _tmp ); _hover_pix = TQImage ( _tmp );
} }
if ( _tmp.contains ( "normal", FALSE ) > 0 ) if ( _tmp.tqcontains ( "normal", FALSE ) > 0 )
{ {
_normal = _tmp; _normal = _tmp;
_normal_pix = QImage ( _tmp ); _normal_pix = TQImage ( _tmp );
} }
if ( _tmp.contains ( "pressed", FALSE ) > 0 ) if ( _tmp.tqcontains ( "pressed", FALSE ) > 0 )
{ {
_pressed = _tmp; _pressed = _tmp;
_pressed_pix = QImage ( _tmp ); _pressed_pix = TQImage ( _tmp );
} }
} }

@ -22,12 +22,12 @@
#ifndef KBFX_BUTTON_H #ifndef KBFX_BUTTON_H
#define KBFX_BUTTON_H #define KBFX_BUTTON_H
#include <qdragobject.h> #include <tqdragobject.h>
#include <qimage.h> #include <tqimage.h>
#include <qlabel.h> #include <tqlabel.h>
#include <qpainter.h> #include <tqpainter.h>
#include <qpixmap.h> #include <tqpixmap.h>
#include <qtimer.h> #include <tqtimer.h>
#include <dcopclient.h> #include <dcopclient.h>
#include <dcopref.h> #include <dcopref.h>
@ -42,26 +42,27 @@
#include <kbfxplasmapixmapprovider.h> #include <kbfxplasmapixmapprovider.h>
class QPixmap; class TQPixmap;
class QLabel; class TQLabel;
class KbfxButton:public QLabel class KbfxButton:public TQLabel
{ {
Q_OBJECT Q_OBJECT
TQ_OBJECT
public: public:
KbfxButton ( QWidget * parent, const char * name = 0 ); KbfxButton ( TQWidget * tqparent, const char * name = 0 );
~KbfxButton(); ~KbfxButton();
void kbfx_vista_button_setFx ( bool choice ); void kbfx_vista_button_setFx ( bool choice );
virtual void paintEvent ( QPaintEvent *pe ); virtual void paintEvent ( TQPaintEvent *pe );
virtual void enterEvent ( QEvent * e ) ; virtual void enterEvent ( TQEvent * e ) ;
virtual void leaveEvent ( QEvent * e ); virtual void leaveEvent ( TQEvent * e );
virtual void mousePressEvent ( QMouseEvent * e ); virtual void mousePressEvent ( TQMouseEvent * e );
virtual void dropEvent ( QDropEvent *e ); virtual void dropEvent ( TQDropEvent *e );
virtual void dragEnterEvent ( QDragEnterEvent *e ); virtual void dragEnterEvent ( TQDragEnterEvent *e );
static bool m_sizeHeight; static bool m_sizeHeight;
static int m_size; static int m_size;
QCString findPanel(); TQCString findPanel();
void readjust( bool ); void readjust( bool );
public slots: public slots:
@ -82,31 +83,31 @@ class KbfxButton:public QLabel
void showToolTip (); void showToolTip ();
protected: protected:
QPixmap m_over_skin; TQPixmap m_over_skin;
QPixmap m_pressed_skin; TQPixmap m_pressed_skin;
QPixmap m_release_skin; TQPixmap m_release_skin;
QPixmap m_normal_skin; TQPixmap m_normal_skin;
QPixmap m_current_skin; TQPixmap m_current_skin;
// mng support ??? // mng support ???
QPixmap * m_buffer; TQPixmap * m_buffer;
QTimer * m_anime_timer; TQTimer * m_anime_timer;
QMovie * m_normal_anime; TQMovie * m_normal_anime;
QMovie * m_pressed_anime; TQMovie * m_pressed_anime;
QMovie * m_hover_anime; TQMovie * m_hover_anime;
QMovie * m_current_anime; TQMovie * m_current_anime;
QString m_normal_path; TQString m_normal_path;
QString m_over_path; TQString m_over_path;
QString m_pressed_path; TQString m_pressed_path;
bool m_anime_on; bool m_anime_on;
bool m_kicker_auto_adjust; bool m_kicker_auto_adjust;
DCOPClient * m_dcopClient; DCOPClient * m_dcopClient;
/* state of the button */ /* state of the button */
bool m_toggle; bool m_toggle;
QTimer * fade_timer; TQTimer * fade_timer;
float m_opacity; float m_opacity;
QPixmap m_fadePix; TQPixmap m_fadePix;
int m_fadeTime; int m_fadeTime;
}; };

@ -35,8 +35,8 @@
#include "kbfxplasmacanvasabstractitem.h" #include "kbfxplasmacanvasabstractitem.h"
KbfxPlasmaCanvasAbstractItem::KbfxPlasmaCanvasAbstractItem ( QCanvasPixmapArray * a, QCanvas * canvas ) KbfxPlasmaCanvasAbstractItem::KbfxPlasmaCanvasAbstractItem ( TQCanvasPixmapArray * a, TQCanvas * canvas )
: QCanvasSprite ( a,canvas ) : TQCanvasSprite ( a,canvas )
{ {
m_source=0; m_source=0;
@ -65,24 +65,24 @@ KbfxPlasmaCanvasAbstractItem::isCurrent()
} }
void void
KbfxPlasmaCanvasAbstractItem::mousePressEvent ( QMouseEvent * e ) KbfxPlasmaCanvasAbstractItem::mousePressEvent ( TQMouseEvent * e )
{ {
e = e; e = e;
} }
void void
KbfxPlasmaCanvasAbstractItem::mouseMoveEvent ( QMouseEvent * e ) KbfxPlasmaCanvasAbstractItem::mouseMoveEvent ( TQMouseEvent * e )
{ {
e = e; e = e;
} }
void void
KbfxPlasmaCanvasAbstractItem::enterEvent ( QEvent * e ) KbfxPlasmaCanvasAbstractItem::enterEvent ( TQEvent * e )
{ {
e =e ; e =e ;
} }
void KbfxPlasmaCanvasAbstractItem::mouseReleaseEvent ( QMouseEvent * e ) void KbfxPlasmaCanvasAbstractItem::mouseReleaseEvent ( TQMouseEvent * e )
{ {
e =e ; e =e ;
emit clicked(); emit clicked();
@ -104,25 +104,25 @@ void KbfxPlasmaCanvasAbstractItem::hideit()
} }
void void
KbfxPlasmaCanvasAbstractItem::draw ( QPainter& pe ) KbfxPlasmaCanvasAbstractItem::draw ( TQPainter& pe )
{ {
this->drawContent ( &pe ); this->drawContent ( &pe );
} }
void KbfxPlasmaCanvasAbstractItem::setLabelText ( QString s ) void KbfxPlasmaCanvasAbstractItem::setLabelText ( TQString s )
{ {
s = s; s = s;
} }
QPixmap TQPixmap
KbfxPlasmaCanvasAbstractItem::dragPixmap() KbfxPlasmaCanvasAbstractItem::dragPixmap()
{ {
return QPixmap(); return TQPixmap();
} }
void void
KbfxPlasmaCanvasAbstractItem::drawContent ( QPainter * p ) KbfxPlasmaCanvasAbstractItem::drawContent ( TQPainter * p )
{ {
p = p ; p = p ;
} }

@ -22,33 +22,34 @@
#ifndef KBFX_PLASMA_CANVAS_ABSTRACT_ITEM_H #ifndef KBFX_PLASMA_CANVAS_ABSTRACT_ITEM_H
#define KBFX_PLASMA_CANVAS_ABSTRACT_ITEM_H #define KBFX_PLASMA_CANVAS_ABSTRACT_ITEM_H
#include <qcanvas.h> #include <tqcanvas.h>
#include <qpainter.h> #include <tqpainter.h>
#include "kbfxplasmacanvasrtti.h" #include "kbfxplasmacanvasrtti.h"
#include <qtimer.h> #include <tqtimer.h>
#include <kdesktopfile.h> #include <kdesktopfile.h>
#include <kstandarddirs.h> #include <kstandarddirs.h>
#include <kiconloader.h> #include <kiconloader.h>
#include "kbfxdatasource.h" #include "kbfxdatasource.h"
#include <krun.h> #include <krun.h>
class KbfxPlasmaCanvasAbstractItem:public QObject,public QCanvasSprite class KbfxPlasmaCanvasAbstractItem:public TQObject,public TQCanvasSprite
{ {
Q_OBJECT Q_OBJECT
TQ_OBJECT
public: public:
typedef enum {EXECUTABLE=0,SEPARATOR,INDEX,OTHER} Type; typedef enum {EXECUTABLE=0,SEPARATOR,INDEX,OTHER} Type;
// typedef enum {RASTER=0,VECTOR,NATIVE} SkinMode; // typedef enum {RASTER=0,VECTOR,NATIVE} SkinMode;
KbfxPlasmaCanvasAbstractItem ( QCanvasPixmapArray * a, QCanvas * canvas ); KbfxPlasmaCanvasAbstractItem ( TQCanvasPixmapArray * a, TQCanvas * canvas );
virtual ~KbfxPlasmaCanvasAbstractItem (); virtual ~KbfxPlasmaCanvasAbstractItem ();
void setCurrent ( bool ); void setCurrent ( bool );
virtual Type type() { return m_type; } virtual Type type() { return m_type; }
virtual void setType ( Type t ) { m_type = t;} virtual void setType ( Type t ) { m_type = t;}
QString name() { if ( m_source != 0 ) return m_source->name(); else return QString ( "Not Set" );}; TQString name() { if ( m_source != 0 ) return m_source->name(); else return TQString ( "Not Set" );};
void setSource ( KbfxDataSource src ); void setSource ( KbfxDataSource src );
bool isCurrent(); bool isCurrent();
@ -56,25 +57,25 @@ class KbfxPlasmaCanvasAbstractItem:public QObject,public QCanvasSprite
virtual int width() { return m_width;} virtual int width() { return m_width;}
virtual bool lookup ( QString str ) {str = str ; return false;} virtual bool lookup ( TQString str ) {str = str ; return false;}
virtual int rtti() const { return CANVASITEM;} virtual int rtti() const { return CANVASITEM;}
virtual void draw ( QPainter & pe ); virtual void draw ( TQPainter & pe );
virtual void drawContent ( QPainter * pe ); virtual void drawContent ( TQPainter * pe );
virtual QPixmap dragPixmap(); virtual TQPixmap dragPixmap();
//Event Handling //Event Handling
virtual void mousePressEvent ( QMouseEvent * e ); virtual void mousePressEvent ( TQMouseEvent * e );
virtual void mouseMoveEvent ( QMouseEvent * e ); virtual void mouseMoveEvent ( TQMouseEvent * e );
virtual void enterEvent ( QEvent * e ); virtual void enterEvent ( TQEvent * e );
virtual void mouseReleaseEvent ( QMouseEvent * e ); virtual void mouseReleaseEvent ( TQMouseEvent * e );
virtual void setLabelText ( QString s ); virtual void setLabelText ( TQString s );
public slots: public slots:
virtual void hideit(); virtual void hideit();

@ -27,7 +27,7 @@ KbfxPlasmaCanvasGroup::KbfxPlasmaCanvasGroup ()
m_height = 0; m_height = 0;
m_id = 0; m_id = 0;
// m_count = 0; // m_count = 0;
m_name = QString ( "Unknown" ); m_name = TQString ( "Unknown" );
// bool m_visible = true; // bool m_visible = true;
m_shaded = false; m_shaded = false;
} }
@ -96,7 +96,7 @@ KbfxPlasmaCanvasGroup::addItem ( KbfxPlasmaCanvasAbstractItem * it )
qDebug ( "Adding Failed bcos Name Missing" ); qDebug ( "Adding Failed bcos Name Missing" );
return false; return false;
} }
ItemListMap::ConstIterator itn = itemListMap ().find ( it ); ItemListMap::ConstIterator itn = itemListMap ().tqfind ( it );
if ( itn != itemListMap ().end () ) if ( itn != itemListMap ().end () )
{ {
qDebug ( "Adding Failed Due to Item not end" ); qDebug ( "Adding Failed Due to Item not end" );
@ -173,13 +173,13 @@ KbfxPlasmaCanvasGroup::hide()
} }
void void
KbfxPlasmaCanvasGroup::setGroupName ( QString name ) KbfxPlasmaCanvasGroup::setGroupName ( TQString name )
{ {
m_name = name; m_name = name;
delete [] name; delete [] name;
} }
QString TQString
KbfxPlasmaCanvasGroup::name() KbfxPlasmaCanvasGroup::name()
{ {
return m_name; return m_name;
@ -271,13 +271,13 @@ KbfxPlasmaCanvasGroup::moveDown ( int y )
} }
} }
QRect TQRect
KbfxPlasmaCanvasGroup::boundingRect () KbfxPlasmaCanvasGroup::boundingRect ()
{ {
if ( this->count () == 0 ) if ( this->count () == 0 )
return QRect ( 0, 0, 0, 0 ); return TQRect ( 0, 0, 0, 0 );
QRect r; TQRect r;
for ( ItemListIter it ( m_itemList ); *it; ++it ) for ( ItemListIter it ( m_itemList ); *it; ++it )
r |= ( *it )->boundingRect (); r |= ( *it )->boundingRect ();
return r; return r;
@ -308,7 +308,7 @@ KbfxPlasmaCanvasGroup::width ()
KbfxPlasmaCanvasGroup * KbfxPlasmaCanvasGroup *
KbfxPlasmaCanvasGroup::groupContaining ( KbfxPlasmaCanvasAbstractItem * item ) KbfxPlasmaCanvasGroup::groupContaining ( KbfxPlasmaCanvasAbstractItem * item )
{ {
ItemListMap::ConstIterator it = itemListMap ().find ( item ); ItemListMap::ConstIterator it = itemListMap ().tqfind ( item );
if ( it == itemListMap ().end () ) if ( it == itemListMap ().end () )
return 0; return 0;
else else

@ -22,22 +22,23 @@
#ifndef KBFX_PLASMA_CANVAS_GROUP_H #ifndef KBFX_PLASMA_CANVAS_GROUP_H
#define KBFX_PLASMA_CANVAS_GROUP_H #define KBFX_PLASMA_CANVAS_GROUP_H
#include <qmap.h> #include <tqmap.h>
#include <qptrlist.h> #include <tqptrlist.h>
#include "kbfxplasmacanvasabstractitem.h" #include "kbfxplasmacanvasabstractitem.h"
#include <qobject.h> #include <tqobject.h>
class QCanvasItem; class TQCanvasItem;
class QRect; class TQRect;
class KbfxPlasmaCanvasGroup:public QObject class KbfxPlasmaCanvasGroup:public TQObject
{ {
Q_OBJECT Q_OBJECT
TQ_OBJECT
public: public:
typedef QPtrList<KbfxPlasmaCanvasAbstractItem> ItemList; typedef TQPtrList<KbfxPlasmaCanvasAbstractItem> ItemList;
typedef QPtrListIterator<KbfxPlasmaCanvasAbstractItem> ItemListIter; typedef TQPtrListIterator<KbfxPlasmaCanvasAbstractItem> ItemListIter;
//a Global mapof Groups //a Global mapof Groups
typedef QMap<KbfxPlasmaCanvasAbstractItem*,KbfxPlasmaCanvasGroup*> ItemListMap; typedef TQMap<KbfxPlasmaCanvasAbstractItem*,KbfxPlasmaCanvasGroup*> ItemListMap;
KbfxPlasmaCanvasGroup(); KbfxPlasmaCanvasGroup();
virtual ~KbfxPlasmaCanvasGroup(); virtual ~KbfxPlasmaCanvasGroup();
@ -46,15 +47,15 @@ class KbfxPlasmaCanvasGroup:public QObject
bool deleteItem ( KbfxPlasmaCanvasAbstractItem * ); bool deleteItem ( KbfxPlasmaCanvasAbstractItem * );
void move ( int x,int y ); void move ( int x,int y );
void moveBy ( int x,int y ); void moveBy ( int x,int y );
QString name(); TQString name();
QRect boundingRect(); TQRect boundingRect();
int count(); int count();
int height(); int height();
int width(); int width();
static KbfxPlasmaCanvasGroup * groupContaining ( KbfxPlasmaCanvasAbstractItem * ); static KbfxPlasmaCanvasGroup * groupContaining ( KbfxPlasmaCanvasAbstractItem * );
QString groupName(); TQString groupName();
uint groupID(); uint groupID();
void setGroupName ( QString name ); void setGroupName ( TQString name );
void setGroupID ( uint ); void setGroupID ( uint );
bool isShaded() {return m_shaded;}; bool isShaded() {return m_shaded;};
virtual int rtti() { return 1005;} virtual int rtti() { return 1005;}
@ -82,7 +83,7 @@ class KbfxPlasmaCanvasGroup:public QObject
//state variables //state variables
bool m_shaded; bool m_shaded;
bool m_visible; bool m_visible;
QString m_name; TQString m_name;
uint m_id; uint m_id;
int m_sepheight; int m_sepheight;
int m_count; int m_count;

@ -27,7 +27,7 @@ KbfxPlasmaCanvasGroupView::KbfxPlasmaCanvasGroupView ()
m_count = 0; m_count = 0;
m_height = 0; m_height = 0;
m_width = 0; m_width = 0;
m_name = QString ( "Unkown" ); m_name = TQString ( "Unkown" );
m_fullExpand = false; m_fullExpand = false;
} }
@ -62,10 +62,10 @@ KbfxPlasmaCanvasGroupView::addGroup ( KbfxPlasmaCanvasGroup * gPtr )
// gPtr->show(); // gPtr->show();
// qDebug("adding Groupy"); // qDebug("adding Groupy");
m_count++; m_count++;
connect ( gPtr, SIGNAL ( groupShade ( uint ) ), this, connect ( gPtr, TQT_SIGNAL ( groupShade ( uint ) ), this,
SLOT ( foldGroup ( uint ) ) ); TQT_SLOT ( foldGroup ( uint ) ) );
connect ( gPtr, SIGNAL ( groupUnShade ( uint ) ), this, connect ( gPtr, TQT_SIGNAL ( groupUnShade ( uint ) ), this,
SLOT ( unFoldGroup ( uint ) ) ); TQT_SLOT ( unFoldGroup ( uint ) ) );
} }
@ -74,7 +74,7 @@ KbfxPlasmaCanvasGroupView::addGroup ( KbfxPlasmaCanvasGroup * gPtr )
} }
KbfxPlasmaCanvasGroupView * KbfxPlasmaCanvasGroupView *
KbfxPlasmaCanvasGroupView::contains ( KbfxPlasmaCanvasGroup * ) KbfxPlasmaCanvasGroupView::tqcontains ( KbfxPlasmaCanvasGroup * )
{ {
//maybe I don't need this //maybe I don't need this
return 0; return 0;
@ -82,13 +82,13 @@ KbfxPlasmaCanvasGroupView::contains ( KbfxPlasmaCanvasGroup * )
} }
void void
KbfxPlasmaCanvasGroupView::setName ( QString name ) KbfxPlasmaCanvasGroupView::setName ( TQString name )
{ {
m_name = name; m_name = name;
//delete [] name; //delete [] name;
} }
QString TQString
KbfxPlasmaCanvasGroupView::name() KbfxPlasmaCanvasGroupView::name()
{ {
return m_name; return m_name;

@ -22,8 +22,8 @@
#ifndef KBFX_PLASMA_CANVAS_GROUP_VIEW_H #ifndef KBFX_PLASMA_CANVAS_GROUP_VIEW_H
#define KBFX_PLASMA_CANVAS_GROUP_VIEW_H #define KBFX_PLASMA_CANVAS_GROUP_VIEW_H
#include <qobject.h> #include <tqobject.h>
#include <qptrlist.h> #include <tqptrlist.h>
#include "kbfxplasmacanvasgroup.h" #include "kbfxplasmacanvasgroup.h"
/** /**
@ -31,20 +31,21 @@ This class will manager a list of Groups.
**/ **/
class KbfxPlasmaCanvasGroupView:public QObject class KbfxPlasmaCanvasGroupView:public TQObject
{ {
Q_OBJECT Q_OBJECT
TQ_OBJECT
public: public:
typedef QPtrList<KbfxPlasmaCanvasGroup> groupPtrList; typedef TQPtrList<KbfxPlasmaCanvasGroup> groupPtrList;
KbfxPlasmaCanvasGroupView(); KbfxPlasmaCanvasGroupView();
virtual ~KbfxPlasmaCanvasGroupView(); virtual ~KbfxPlasmaCanvasGroupView();
void addGroup ( KbfxPlasmaCanvasGroup* ); void addGroup ( KbfxPlasmaCanvasGroup* );
void deleteGroup ( KbfxPlasmaCanvasGroup* ); void deleteGroup ( KbfxPlasmaCanvasGroup* );
KbfxPlasmaCanvasGroupView* contains ( KbfxPlasmaCanvasGroup* ); KbfxPlasmaCanvasGroupView* tqcontains ( KbfxPlasmaCanvasGroup* );
virtual int rtti() {return 1006;} virtual int rtti() {return 1006;}
void predend ( KbfxPlasmaCanvasGroup* ); void predend ( KbfxPlasmaCanvasGroup* );
void append ( KbfxPlasmaCanvasGroup * ); void append ( KbfxPlasmaCanvasGroup * );
@ -56,8 +57,8 @@ class KbfxPlasmaCanvasGroupView:public QObject
{ {
return m_width; return m_width;
} }
void setName ( QString name ); void setName ( TQString name );
QString name(); TQString name();
bool expanded() { return m_fullExpand;} bool expanded() { return m_fullExpand;}
public slots: public slots:
void foldGroupAll(); void foldGroupAll();
@ -75,8 +76,8 @@ class KbfxPlasmaCanvasGroupView:public QObject
int m_height; int m_height;
int m_width; int m_width;
bool m_fullExpand; bool m_fullExpand;
QString m_name; TQString m_name;
QString m_iconPath; TQString m_iconPath;
KbfxPlasmaCanvasGroup * m_current; KbfxPlasmaCanvasGroup * m_current;
groupPtrList m_groupChain; groupPtrList m_groupChain;
//state variables //state variables

@ -21,18 +21,18 @@
#include "kbfxplasmacanvasitem.h" #include "kbfxplasmacanvasitem.h"
KbfxPlasmaCanvasItem::KbfxPlasmaCanvasItem ( QCanvasPixmapArray * a , QCanvas * canvas ) :KbfxPlasmaCanvasAbstractItem ( a, canvas ) KbfxPlasmaCanvasItem::KbfxPlasmaCanvasItem ( TQCanvasPixmapArray * a , TQCanvas * canvas ) :KbfxPlasmaCanvasAbstractItem ( a, canvas )
{ {
this->setItemMode ( 1 ); this->setItemMode ( 1 );
setAnimated ( false ); setAnimated ( false );
m_desktopFile = 0L; m_desktopFile = 0L;
m_isCurrent = false; m_isCurrent = false;
// m_pixmapArray = a; // m_pixmapArray = a;
QPixmap * _img = this->image ( 0 ); TQPixmap * _img = this->image ( 0 );
m_commentText ="No Comment Set By Plugin"; m_commentText ="No Comment Set By Plugin";
m_height =_img->height(); m_height =_img->height();
m_width =_img->width(); m_width =_img->width();
connect ( this,SIGNAL ( clicked() ),this,SLOT ( exec() ) ); connect ( this,TQT_SIGNAL ( clicked() ),this,TQT_SLOT ( exec() ) );
m_type = OTHER; m_type = OTHER;
// ConfigInit().read(); // ConfigInit().read();
m_noComments = ConfigInit().m_noComments; m_noComments = ConfigInit().m_noComments;
@ -54,19 +54,19 @@ KbfxPlasmaCanvasItem::~KbfxPlasmaCanvasItem()
setCanvas ( 0L ); setCanvas ( 0L );
} }
/* /*
QCanvasPixmapArray * KbfxPlasmaCanvasItem::getPixmapArray() TQCanvasPixmapArray * KbfxPlasmaCanvasItem::getPixmapArray()
{ {
return m_pixmapArray; return m_pixmapArray;
} }
*/ */
void void
KbfxPlasmaCanvasItem::setLabelText ( QString str ) KbfxPlasmaCanvasItem::setLabelText ( TQString str )
{ {
QFont * _font = new QFont ( m_fontAppNameFont ); TQFont * _font = new TQFont ( m_fontAppNameFont );
QFontMetrics fm ( *_font ); TQFontMetrics fm ( *_font );
int _commentWidth = fm.width ( str+"..." ); int _commentWidth = fm.width ( str+"..." );
int _strLen = str.length(); int _strLen = str.length();
@ -88,7 +88,7 @@ KbfxPlasmaCanvasItem::setLabelText ( QString str )
bool bool
KbfxPlasmaCanvasItem::lookup ( QString str ) KbfxPlasmaCanvasItem::lookup ( TQString str )
{ {
if ( str.isNull() ) if ( str.isNull() )
@ -97,11 +97,11 @@ KbfxPlasmaCanvasItem::lookup ( QString str )
if ( m_type == SEPARATOR || m_type == INDEX ) if ( m_type == SEPARATOR || m_type == INDEX )
return false; return false;
if ( m_labelText.contains ( str,false ) > 0 ) if ( m_labelText.tqcontains ( str,false ) > 0 )
return true; return true;
if ( m_commentText.contains ( str,false ) > 0 ) if ( m_commentText.tqcontains ( str,false ) > 0 )
return true; return true;
if ( m_exec.contains ( str,false ) >0 ) if ( m_exec.tqcontains ( str,false ) >0 )
return true; return true;
@ -109,7 +109,7 @@ KbfxPlasmaCanvasItem::lookup ( QString str )
} }
void void
KbfxPlasmaCanvasItem::setExec ( QString desktopfile ) KbfxPlasmaCanvasItem::setExec ( TQString desktopfile )
{ {
m_desktopFile = new KDesktopFile ( desktopfile ); m_desktopFile = new KDesktopFile ( desktopfile );
m_desktopFilePath = desktopfile; m_desktopFilePath = desktopfile;
@ -130,12 +130,12 @@ KbfxPlasmaCanvasItem::setExec ( QString desktopfile )
} }
void void
KbfxPlasmaCanvasItem::setIconPath ( QString str ) KbfxPlasmaCanvasItem::setIconPath ( TQString str )
{ {
KIconLoader *iconload = KGlobal::iconLoader (); KIconLoader *iconload = KGlobal::iconLoader ();
m_iconPath = iconload->iconPath ( str, KIcon::Desktop, false ); m_iconPath = iconload->iconPath ( str, KIcon::Desktop, false );
// m_icon.load(m_iconPath); // m_icon.load(m_iconPath);
QImage _img ( m_iconPath ); TQImage _img ( m_iconPath );
if ( _img.height() > 128 ) if ( _img.height() > 128 )
{ {
@ -148,7 +148,7 @@ KbfxPlasmaCanvasItem::setIconPath ( QString str )
} }
void void
KbfxPlasmaCanvasItem::setIcon ( QPixmap pixmap ) KbfxPlasmaCanvasItem::setIcon ( TQPixmap pixmap )
{ {
m_icon = pixmap; m_icon = pixmap;
@ -206,7 +206,7 @@ KbfxPlasmaCanvasItem::setItemMode ( bool mode )
void void
KbfxPlasmaCanvasItem::drawBackDrop ( QPainter * pe,QRect & r ) KbfxPlasmaCanvasItem::drawBackDrop ( TQPainter * pe,TQRect & r )
{ {
r = r ; r = r ;
if ( pe == NULL ) if ( pe == NULL )
@ -218,7 +218,7 @@ KbfxPlasmaCanvasItem::drawBackDrop ( QPainter * pe,QRect & r )
/* /*
void void
KbfxPlasmaCanvasItem::drawText(QPainter * pe,QString str) KbfxPlasmaCanvasItem::drawText(TQPainter * pe,TQString str)
{ {
@ -226,21 +226,21 @@ KbfxPlasmaCanvasItem::drawText(QPainter * pe,QString str)
*/ */
void void
KbfxPlasmaCanvasItem::draw ( QPainter & pe ) KbfxPlasmaCanvasItem::draw ( TQPainter & pe )
{ {
drawContent ( &pe ); drawContent ( &pe );
} }
QPixmap TQPixmap
KbfxPlasmaCanvasItem::dragPixmap() KbfxPlasmaCanvasItem::dragPixmap()
{ {
double _x = x(); double _x = x();
double _y = y(); double _y = y();
setX ( 0.0 ); setX ( 0.0 );
setY ( 0.0 ); setY ( 0.0 );
QPixmap dragpixmap ( this->width(),this->height() ); TQPixmap dragpixmap ( this->width(),this->height() );
dragpixmap.fill ( QColor ( 255,255,255 ) ); dragpixmap.fill ( TQColor ( 255,255,255 ) );
QPainter p; TQPainter p;
p.begin ( &dragpixmap ); p.begin ( &dragpixmap );
this->drawContent ( &p ); this->drawContent ( &p );
p.end(); p.end();
@ -251,7 +251,7 @@ KbfxPlasmaCanvasItem::dragPixmap()
} }
void void
KbfxPlasmaCanvasItem::drawContent ( QPainter * pe ) KbfxPlasmaCanvasItem::drawContent ( TQPainter * pe )
{ {
if ( m_isCurrent ) if ( m_isCurrent )
{ {
@ -262,7 +262,7 @@ KbfxPlasmaCanvasItem::drawContent ( QPainter * pe )
this->setFrame ( 0 ); this->setFrame ( 0 );
} }
//int _currentFrame = //int _currentFrame =
QCanvasPixmap *cp = this->image ( this->frame () ); TQCanvasPixmap *cp = this->image ( this->frame () );
m_height = cp->height(); m_height = cp->height();
m_width = cp->width(); m_width = cp->width();
//Draw the Background //Draw the Background
@ -274,9 +274,9 @@ KbfxPlasmaCanvasItem::drawContent ( QPainter * pe )
} }
else else
{ {
pe->setPen ( QColor ( 91,178,62 ) ); pe->setPen ( TQColor ( 91,178,62 ) );
pe->drawRect ( this->boundingRect() ); pe->drawRect ( this->boundingRect() );
pe->setPen ( QColor ( 0,10,0 ) ); pe->setPen ( TQColor ( 0,10,0 ) );
} }
@ -284,15 +284,15 @@ KbfxPlasmaCanvasItem::drawContent ( QPainter * pe )
We will split the Item box into two We will split the Item box into two
**/ **/
QRect tmp ( 0,0,0,0 ); TQRect tmp ( 0,0,0,0 );
//TODO: Should be read from kbfxconfig.cpp //TODO: Should be read from kbfxconfig.cpp
// //
QRect * rectTop = new QRect ( m_margin, ( int ) y(), cp->width() - m_margin, cp->height() /2 ); TQRect * rectTop = new TQRect ( m_margin, ( int ) y(), cp->width() - m_margin, cp->height() /2 );
QRect * rectBot = new QRect ( m_margin, ( int ) y() + rectTop->height(), cp->width() - m_margin, cp->height() /2 ); TQRect * rectBot = new TQRect ( m_margin, ( int ) y() + rectTop->height(), cp->width() - m_margin, cp->height() /2 );
///Draw Icon ///Draw Icon
@ -300,15 +300,15 @@ KbfxPlasmaCanvasItem::drawContent ( QPainter * pe )
//TODO::remover hard coded icon size : read from config //TODO::remover hard coded icon size : read from config
if ( !m_isCurrent ) if ( !m_isCurrent )
pe->drawPixmap ( QRect ( ( m_margin-m_iconSize ) /2, ( int ) y() + ( cp->height()-m_iconSize ) /2,m_iconSize,m_iconSize ),m_icon ); pe->drawPixmap ( TQRect ( ( m_margin-m_iconSize ) /2, ( int ) y() + ( cp->height()-m_iconSize ) /2,m_iconSize,m_iconSize ),m_icon );
else else
pe->drawPixmap ( QRect ( ( m_margin-m_iconSize ) /2, ( int ) y() + ( cp->height()-m_iconSize ) /2,m_iconSize+2,m_iconSize+2 ),m_icon ); pe->drawPixmap ( TQRect ( ( m_margin-m_iconSize ) /2, ( int ) y() + ( cp->height()-m_iconSize ) /2,m_iconSize+2,m_iconSize+2 ),m_icon );
//End of DrawIcon //End of DrawIcon
QFont * _font = new QFont ( m_fontAppNameFont ); TQFont * _font = new TQFont ( m_fontAppNameFont );
QFont * _font_comment = new QFont ( m_commentFont ); TQFont * _font_comment = new TQFont ( m_commentFont );
QFont * _font_separator = new QFont ( m_sepNameFont ); TQFont * _font_separator = new TQFont ( m_sepNameFont );
pe->setFont ( *_font ); pe->setFont ( *_font );
if ( this->type() == EXECUTABLE ) if ( this->type() == EXECUTABLE )
@ -317,17 +317,17 @@ KbfxPlasmaCanvasItem::drawContent ( QPainter * pe )
if ( m_noComments == false ) if ( m_noComments == false )
{ {
if ( m_isCurrent && m_boldFonts == true ) { _font->setBold ( true );pe->setFont ( *_font ); } if ( m_isCurrent && m_boldFonts == true ) { _font->setBold ( true );pe->setFont ( *_font ); }
pe->drawText ( *rectTop, Qt::AlignLeft| Qt::AlignBottom ,QString ( m_labelText ), -1, &tmp,0 ); pe->drawText ( *rectTop, TQt::AlignLeft| TQt::AlignBottom ,TQString ( m_labelText ), -1, &tmp );
pe->setPen ( m_lineColor ); pe->setPen ( m_lineColor );
pe->drawLine ( m_margin, ( int ) y() + rectTop->height(), ( int ) cp->width() - 2, ( int ) y() + rectTop->height() ); pe->drawLine ( m_margin, ( int ) y() + rectTop->height(), ( int ) cp->width() - 2, ( int ) y() + rectTop->height() );
pe->setFont ( *_font_comment ); pe->setFont ( *_font_comment );
pe->setPen ( m_commentColor ); pe->setPen ( m_commentColor );
pe->drawText ( *rectBot, Qt::AlignLeft| Qt::AlignTop ,QString ( m_commentText ), -1, &tmp,0 ); pe->drawText ( *rectBot, TQt::AlignLeft| TQt::AlignTop ,TQString ( m_commentText ), -1, &tmp );
} }
else else
{ {
pe->drawText ( QRect ( m_margin+1, ( int ) y()+1,cp->width(),cp->height() ), Qt::AlignLeft | Qt::AlignVCenter ,QString ( m_labelText ), -1, &tmp,0 ); pe->drawText ( TQRect ( m_margin+1, ( int ) y()+1,cp->width(),cp->height() ), TQt::AlignLeft | TQt::AlignVCenter ,TQString ( m_labelText ), -1, &tmp );
// pe->drawText ( QRect ( m_margin, ( int ) y(),cp->width(),cp->height() ), Qt::AlignLeft | Qt::AlignVCenter ,QString ( m_labelText ), -1, &tmp,0 ); // pe->drawText ( TQRect ( m_margin, ( int ) y(),cp->width(),cp->height() ), TQt::AlignLeft | TQt::AlignVCenter ,TQString ( m_labelText ), -1, &tmp );
} }
} }
else else
@ -341,7 +341,7 @@ KbfxPlasmaCanvasItem::drawContent ( QPainter * pe )
{ {
pe->setPen ( m_fontAppNameColor ); pe->setPen ( m_fontAppNameColor );
} }
pe->drawText ( QRect ( ( int ) x(), ( int ) y(),cp->width(),cp->height() ), Qt::AlignCenter ,QString ( m_labelText ), -1, &tmp,0 ); pe->drawText ( TQRect ( ( int ) x(), ( int ) y(),cp->width(),cp->height() ), TQt::AlignCenter ,TQString ( m_labelText ), -1, &tmp );
} }
@ -356,13 +356,13 @@ KbfxPlasmaCanvasItem::drawContent ( QPainter * pe )
} }
void::KbfxPlasmaCanvasItem::setComment ( QString str ) void::KbfxPlasmaCanvasItem::setComment ( TQString str )
{ {
QFont * _font = new QFont ( m_commentFont ); TQFont * _font = new TQFont ( m_commentFont );
QFontMetrics fm ( *_font ); TQFontMetrics fm ( *_font );
int _commentWidth = fm.width ( str+"..." ); int _commentWidth = fm.width ( str+"..." );
int _strLen = str.length(); int _strLen = str.length();

@ -22,10 +22,10 @@
#ifndef KBFX_PLASMA_CANVAS_ITEM_H #ifndef KBFX_PLASMA_CANVAS_ITEM_H
#define KBFX_PLASMA_CANVAS_ITEM_H #define KBFX_PLASMA_CANVAS_ITEM_H
#include <qcanvas.h> #include <tqcanvas.h>
#include <qfont.h> #include <tqfont.h>
#include <qfontinfo.h> #include <tqfontinfo.h>
#include <qimage.h> #include <tqimage.h>
#include <kapplication.h> #include <kapplication.h>
#include <kdebug.h> #include <kdebug.h>
@ -41,6 +41,7 @@ class KbfxPlasmaCanvasItem:public KbfxPlasmaCanvasAbstractItem
{ {
Q_OBJECT Q_OBJECT
TQ_OBJECT
public: public:
@ -48,7 +49,7 @@ class KbfxPlasmaCanvasItem:public KbfxPlasmaCanvasAbstractItem
typedef enum {RASTER=0,VECTOR,NATIVE} SkinMode; typedef enum {RASTER=0,VECTOR,NATIVE} SkinMode;
KbfxPlasmaCanvasItem ( QCanvasPixmapArray * a, QCanvas * canvas ); KbfxPlasmaCanvasItem ( TQCanvasPixmapArray * a, TQCanvas * canvas );
KbfxPlasmaCanvasItem ( const KbfxPlasmaCanvasItem &t ); KbfxPlasmaCanvasItem ( const KbfxPlasmaCanvasItem &t );
KbfxPlasmaCanvasItem &operator = ( const KbfxPlasmaCanvasItem &t ); KbfxPlasmaCanvasItem &operator = ( const KbfxPlasmaCanvasItem &t );
virtual ~KbfxPlasmaCanvasItem (); virtual ~KbfxPlasmaCanvasItem ();
@ -57,39 +58,39 @@ class KbfxPlasmaCanvasItem:public KbfxPlasmaCanvasAbstractItem
void setItemMode ( bool mode=true ); void setItemMode ( bool mode=true );
void setType ( Type ); void setType ( Type );
void setCurrent ( bool ); void setCurrent ( bool );
void setExec ( QString desktopfile ); void setExec ( TQString desktopfile );
QString name() {return m_labelText;}; TQString name() {return m_labelText;};
QString desktopFile() { return m_desktopFilePath;} TQString desktopFile() { return m_desktopFilePath;}
KbfxDataSource * source() { return m_source;} KbfxDataSource * source() { return m_source;}
void setSource ( KbfxDataSource src ); void setSource ( KbfxDataSource src );
void setCommand ( QString cmd ); void setCommand ( TQString cmd );
void setComment ( QString comment ); void setComment ( TQString comment );
void setIcon ( QPixmap pixmap ); void setIcon ( TQPixmap pixmap );
void setIconPath ( QString path ); void setIconPath ( TQString path );
bool isCurrent(); bool isCurrent();
int height() { return m_height;} int height() { return m_height;}
int width() { return m_width;} int width() { return m_width;}
Type type() { return m_type;} Type type() { return m_type;}
bool lookup ( QString str ); bool lookup ( TQString str );
virtual void advance ( int phase ); virtual void advance ( int phase );
virtual int rtti() const { return CANVASITEM;} virtual int rtti() const { return CANVASITEM;}
virtual void draw ( QPainter & pe ); virtual void draw ( TQPainter & pe );
virtual void drawContent ( QPainter * pe ); virtual void drawContent ( TQPainter * pe );
virtual QPixmap dragPixmap(); virtual TQPixmap dragPixmap();
// virtual void drawText(QPainter *pe,QString str); // virtual void drawText(TQPainter *pe,TQString str);
virtual void drawBackDrop ( QPainter * pe,QRect & rect ); virtual void drawBackDrop ( TQPainter * pe,TQRect & rect );
/* Event Handling */ /* Event Handling */
virtual void mousePressEvent ( QMouseEvent * e ); virtual void mousePressEvent ( TQMouseEvent * e );
virtual void mouseMoveEvent ( QMouseEvent * e ); virtual void mouseMoveEvent ( TQMouseEvent * e );
virtual void enterEvent ( QEvent * e ); virtual void enterEvent ( TQEvent * e );
virtual void mouseReleaseEvent ( QMouseEvent * e ); virtual void mouseReleaseEvent ( TQMouseEvent * e );
void setLabelText ( QString s ); void setLabelText ( TQString s );
public slots: public slots:
void updateAngle() {} void updateAngle() {}
@ -102,32 +103,32 @@ class KbfxPlasmaCanvasItem:public KbfxPlasmaCanvasAbstractItem
private: private:
void drawStar ( QPainter * pe ); void drawStar ( TQPainter * pe );
int m_frameCount; int m_frameCount;
int m_textWidth; int m_textWidth;
QString m_exec; TQString m_exec;
QString m_desktopFilePath; TQString m_desktopFilePath;
QString m_labelText; TQString m_labelText;
QString m_commentText; TQString m_commentText;
QPixmap m_icon; TQPixmap m_icon;
QString m_iconPath; TQString m_iconPath;
KDesktopFile * m_desktopFile; KDesktopFile * m_desktopFile;
KbfxDataSource * m_source; KbfxDataSource * m_source;
/* Theming stuff */ /* Theming stuff */
QColor m_fontAppNameColor; TQColor m_fontAppNameColor;
QFont m_fontAppNameFont; TQFont m_fontAppNameFont;
QColor m_commentColor; TQColor m_commentColor;
QFont m_commentFont; TQFont m_commentFont;
QColor m_lineColor; TQColor m_lineColor;
QFont m_sepNameFont; TQFont m_sepNameFont;
bool m_boldFonts; bool m_boldFonts;
bool m_skined; bool m_skined;
bool m_restricted ; //KDE kiosk bool m_restricted ; //KDE kiosk
Type m_type; Type m_type;
bool m_hidden; bool m_hidden;
QString m_error; TQString m_error;
bool m_isCurrent; bool m_isCurrent;
bool m_noComments; bool m_noComments;
int m_margin; int m_margin;

@ -24,7 +24,7 @@
#include <kdesktopfile.h> #include <kdesktopfile.h>
#include <kiconeffect.h> #include <kiconeffect.h>
void KbfxPlasmaCanvasItem::mousePressEvent ( QMouseEvent * e ) void KbfxPlasmaCanvasItem::mousePressEvent ( TQMouseEvent * e )
{ {
e = e; e = e;
//TODO: //TODO:
@ -34,21 +34,21 @@ void KbfxPlasmaCanvasItem::mousePressEvent ( QMouseEvent * e )
} }
void void
KbfxPlasmaCanvasItem::mouseReleaseEvent ( QMouseEvent * e ) KbfxPlasmaCanvasItem::mouseReleaseEvent ( TQMouseEvent * e )
{ {
e = e; e = e;
// QPixmap pix = labelIcon(); // TQPixmap pix = labelIcon();
emit clicked(); emit clicked();
} }
void KbfxPlasmaCanvasItem::mouseMoveEvent ( QMouseEvent * e ) void KbfxPlasmaCanvasItem::mouseMoveEvent ( TQMouseEvent * e )
{ {
e=e; e=e;
//qDebug("Item revices Mouse Event"); //qDebug("Item revices Mouse Event");
} }
void KbfxPlasmaCanvasItem::enterEvent ( QEvent * e ) void KbfxPlasmaCanvasItem::enterEvent ( TQEvent * e )
{ {
e=e; e=e;
//qDebug("Mouse Enters"); //qDebug("Mouse Enters");
@ -62,7 +62,7 @@ KbfxPlasmaCanvasItem::exec()
return; return;
// KIconEffect::visualActivate(new QWidget(), this->boundingRect()); // KIconEffect::visualActivate(new TQWidget(), this->boundingRect());
m_source->exec(); m_source->exec();
} }

@ -20,10 +20,10 @@
*/ */
#include "kbfxplasmacanvasitemwrapper.h" #include "kbfxplasmacanvasitemwrapper.h"
#include <qptrlist.h> #include <tqptrlist.h>
#include <kbfxplasmapixmapprovider.h> #include <kbfxplasmapixmapprovider.h>
KbfxPlasmaCanvasItemWrapper::KbfxPlasmaCanvasItemWrapper ( QCanvas * canvas ) KbfxPlasmaCanvasItemWrapper::KbfxPlasmaCanvasItemWrapper ( TQCanvas * canvas )
{ {
m_canvas = canvas; m_canvas = canvas;
} }
@ -31,48 +31,48 @@ KbfxPlasmaCanvasItemWrapper::KbfxPlasmaCanvasItemWrapper ( QCanvas * canvas )
KbfxPlasmaCanvasItemWrapper::~KbfxPlasmaCanvasItemWrapper () KbfxPlasmaCanvasItemWrapper::~KbfxPlasmaCanvasItemWrapper ()
{} {}
QCanvasItem * TQCanvasItem *
KbfxPlasmaCanvasItemWrapper::item ( KbfxPlasmaCanvasItem::Type __type ) KbfxPlasmaCanvasItemWrapper::item ( KbfxPlasmaCanvasItem::Type __type )
{ {
QPixmap _img_sep = ( *KbfxPlasmaPixmapProvider::pixmap ( "separator" ) ); TQPixmap _img_sep = ( *KbfxPlasmaPixmapProvider::pixmap ( "separator" ) );
QImage _tmp_img = _img_sep.convertToImage(); TQImage _tmp_img = _img_sep.convertToImage();
_tmp_img = _tmp_img.smoothScale ( ConfigInit().m_itemView_w, _img_sep.height (),QImage::ScaleFree ); _tmp_img = _tmp_img.smoothScale ( ConfigInit().m_itemView_w, _img_sep.height (),TQ_ScaleFree );
_img_sep = QPixmap ( _tmp_img ); _img_sep = TQPixmap ( _tmp_img );
QPixmap _img_tnorm = ( *KbfxPlasmaPixmapProvider::pixmap ( "tilenormal" ) ); TQPixmap _img_tnorm = ( *KbfxPlasmaPixmapProvider::pixmap ( "tilenormal" ) );
_tmp_img = _img_tnorm.convertToImage(); _tmp_img = _img_tnorm.convertToImage();
_tmp_img = _tmp_img.smoothScale ( ConfigInit().m_itemView_w, _img_tnorm.height (),QImage::ScaleFree ); _tmp_img = _tmp_img.smoothScale ( ConfigInit().m_itemView_w, _img_tnorm.height (),TQ_ScaleFree );
_img_tnorm = QPixmap ( _tmp_img ); _img_tnorm = TQPixmap ( _tmp_img );
QPixmap _img_thov = ( *KbfxPlasmaPixmapProvider::pixmap ( "tilehover" ) ); TQPixmap _img_thov = ( *KbfxPlasmaPixmapProvider::pixmap ( "tilehover" ) );
_tmp_img = _img_thov.convertToImage(); _tmp_img = _img_thov.convertToImage();
_tmp_img = _tmp_img.smoothScale ( ConfigInit().m_itemView_w, _img_thov.height (),QImage::ScaleFree ); _tmp_img = _tmp_img.smoothScale ( ConfigInit().m_itemView_w, _img_thov.height (),TQ_ScaleFree );
_img_thov = QPixmap ( _tmp_img ); _img_thov = TQPixmap ( _tmp_img );
if ( __type == KbfxPlasmaCanvasItem::SEPARATOR ) if ( __type == KbfxPlasmaCanvasItem::SEPARATOR )
{ {
QValueList<QPixmap> list; TQValueList<TQPixmap> list;
list.append ( _img_sep ); list.append ( _img_sep );
KbfxPlasmaCanvasItem *_ret = KbfxPlasmaCanvasItem *_ret =
new KbfxPlasmaCanvasItem ( new QCanvasPixmapArray ( list ),m_canvas ); new KbfxPlasmaCanvasItem ( new TQCanvasPixmapArray ( list ),m_canvas );
_ret->setType ( __type ); _ret->setType ( __type );
return ( QCanvasItem * ) _ret; return ( TQCanvasItem * ) _ret;
} }
if ( __type == KbfxPlasmaCanvasItem::EXECUTABLE ) if ( __type == KbfxPlasmaCanvasItem::EXECUTABLE )
{ {
QValueList<QPixmap> list; TQValueList<TQPixmap> list;
list.append ( _img_tnorm ); list.append ( _img_tnorm );
list.append ( _img_thov ); list.append ( _img_thov );
QCanvasPixmapArray * _pArray = new QCanvasPixmapArray ( list ); TQCanvasPixmapArray * _pArray = new TQCanvasPixmapArray ( list );
KbfxPlasmaCanvasItem *_ret = new KbfxPlasmaCanvasItem ( _pArray, KbfxPlasmaCanvasItem *_ret = new KbfxPlasmaCanvasItem ( _pArray,
m_canvas ); m_canvas );
_ret->setType ( __type ); _ret->setType ( __type );
return ( QCanvasItem * ) _ret; return ( TQCanvasItem * ) _ret;
} }
@ -80,43 +80,43 @@ KbfxPlasmaCanvasItemWrapper::item ( KbfxPlasmaCanvasItem::Type __type )
} }
QCanvasItem * TQCanvasItem *
KbfxPlasmaCanvasItemWrapper::itemIndex ( KbfxPlasmaCanvasItem::Type __type ) KbfxPlasmaCanvasItemWrapper::itemIndex ( KbfxPlasmaCanvasItem::Type __type )
{ {
QPixmap _img_isep = ( *KbfxPlasmaPixmapProvider::pixmap ( "indexseparator" ) ); TQPixmap _img_isep = ( *KbfxPlasmaPixmapProvider::pixmap ( "indexseparator" ) );
QImage _tmp_img = _img_isep.convertToImage(); TQImage _tmp_img = _img_isep.convertToImage();
_tmp_img = _tmp_img.smoothScale ( ConfigInit().m_listBox_w, _img_isep.height (),QImage::ScaleFree ); _tmp_img = _tmp_img.smoothScale ( ConfigInit().m_listBox_w, _img_isep.height (),TQ_ScaleFree );
_img_isep = QPixmap ( _tmp_img ); _img_isep = TQPixmap ( _tmp_img );
QPixmap _img_r = ( *KbfxPlasmaPixmapProvider::pixmap ( "rhstile" ) ); TQPixmap _img_r = ( *KbfxPlasmaPixmapProvider::pixmap ( "rhstile" ) );
_tmp_img = _img_r.convertToImage(); _tmp_img = _img_r.convertToImage();
_tmp_img = _tmp_img.smoothScale ( ConfigInit().m_listBox_w, _img_r.height (),QImage::ScaleFree ); _tmp_img = _tmp_img.smoothScale ( ConfigInit().m_listBox_w, _img_r.height (),TQ_ScaleFree );
_img_r = QPixmap ( _tmp_img ); _img_r = TQPixmap ( _tmp_img );
QPixmap _img_rhov = ( *KbfxPlasmaPixmapProvider::pixmap ( "rhshovertile" ) ); TQPixmap _img_rhov = ( *KbfxPlasmaPixmapProvider::pixmap ( "rhshovertile" ) );
_tmp_img = _img_rhov.convertToImage(); _tmp_img = _img_rhov.convertToImage();
_tmp_img = _tmp_img.smoothScale ( ConfigInit().m_listBox_w, _img_rhov.height (),QImage::ScaleFree ); _tmp_img = _tmp_img.smoothScale ( ConfigInit().m_listBox_w, _img_rhov.height (),TQ_ScaleFree );
_img_rhov = QPixmap ( _tmp_img ); _img_rhov = TQPixmap ( _tmp_img );
if ( __type == KbfxPlasmaCanvasItem::SEPARATOR ) if ( __type == KbfxPlasmaCanvasItem::SEPARATOR )
{ {
QValueList<QPixmap> list; TQValueList<TQPixmap> list;
list.append ( _img_isep ); list.append ( _img_isep );
KbfxPlasmaIndexItem *_ret = KbfxPlasmaIndexItem *_ret =
new KbfxPlasmaIndexItem ( new QCanvasPixmapArray ( list ),m_canvas ); new KbfxPlasmaIndexItem ( new TQCanvasPixmapArray ( list ),m_canvas );
_ret->setType ( __type ); _ret->setType ( __type );
return ( QCanvasItem * ) _ret; return ( TQCanvasItem * ) _ret;
} }
if ( __type == KbfxPlasmaCanvasItem::INDEX ) if ( __type == KbfxPlasmaCanvasItem::INDEX )
{ {
QValueList<QPixmap> list2; TQValueList<TQPixmap> list2;
list2.append ( _img_r ); list2.append ( _img_r );
list2.append ( _img_rhov ); list2.append ( _img_rhov );
KbfxPlasmaIndexItem *_ret = new KbfxPlasmaIndexItem ( new QCanvasPixmapArray ( list2 ), KbfxPlasmaIndexItem *_ret = new KbfxPlasmaIndexItem ( new TQCanvasPixmapArray ( list2 ),
m_canvas ); m_canvas );
_ret->setType ( __type ); _ret->setType ( __type );
return ( QCanvasItem * ) _ret; return ( TQCanvasItem * ) _ret;
} }
return 0; return 0;

@ -24,23 +24,24 @@
#include "kbfxplasmacanvasitem.h" #include "kbfxplasmacanvasitem.h"
#include "kbfxplasmaindexitem.h" #include "kbfxplasmaindexitem.h"
#include <qcanvas.h> #include <tqcanvas.h>
class KbfxPlasmaCanvasItemWrapper:public QObject class KbfxPlasmaCanvasItemWrapper:public TQObject
{ {
Q_OBJECT Q_OBJECT
TQ_OBJECT
public: public:
KbfxPlasmaCanvasItemWrapper ( QCanvas * canvas ); KbfxPlasmaCanvasItemWrapper ( TQCanvas * canvas );
~KbfxPlasmaCanvasItemWrapper(); ~KbfxPlasmaCanvasItemWrapper();
QCanvasItem* item ( KbfxPlasmaCanvasItem::Type __type ); TQCanvasItem* item ( KbfxPlasmaCanvasItem::Type __type );
QCanvasItem* itemIndex ( KbfxPlasmaCanvasItem::Type __type ); TQCanvasItem* itemIndex ( KbfxPlasmaCanvasItem::Type __type );
private: private:
QCanvas * m_canvas; TQCanvas * m_canvas;
//none //none

@ -81,10 +81,10 @@ KbfxPlasmaCanvasStack::raise ( uint id )
bool bool
KbfxPlasmaCanvasStack::contains ( QString name ) KbfxPlasmaCanvasStack::tqcontains ( TQString name )
{ {
//FIXME:Depricated Data Structure Needs fixing //FIXME:Depricated Data Structure Needs fixing
if ( m_dict.contains ( name ) == true ) if ( m_dict.tqcontains ( name ) == true )
return true; return true;
else else
return false; return false;
@ -131,7 +131,7 @@ KbfxPlasmaCanvasStack::hide()
void void
KbfxPlasmaCanvasStack::raiseByName ( QString name ) KbfxPlasmaCanvasStack::raiseByName ( TQString name )
{ {
for ( uint i = 0; i < m_groupChain.count (); ++i ) for ( uint i = 0; i < m_groupChain.count (); ++i )
{ {
@ -154,7 +154,7 @@ KbfxPlasmaCanvasStack::raiseByName ( QString name )
KbfxPlasmaCanvasGroupView * KbfxPlasmaCanvasGroupView *
KbfxPlasmaCanvasStack::activeViewByName ( QString name ) KbfxPlasmaCanvasStack::activeViewByName ( TQString name )
{ {
@ -170,7 +170,7 @@ KbfxPlasmaCanvasStack::activeViewByName ( QString name )
} }
QString TQString
KbfxPlasmaCanvasStack::getItemName ( int id ) KbfxPlasmaCanvasStack::getItemName ( int id )
{ {
return m_groupChain.at ( id )->name(); return m_groupChain.at ( id )->name();

@ -22,8 +22,8 @@
#ifndef KBFX_PLASMA_CANVAS_STACK_H #ifndef KBFX_PLASMA_CANVAS_STACK_H
#define KBFX_PLASMA_CANVAS_STACK_H #define KBFX_PLASMA_CANVAS_STACK_H
#include <qobject.h> #include <tqobject.h>
#include <qptrlist.h> #include <tqptrlist.h>
#include <kbfxplasmacanvasstackdata.h> #include <kbfxplasmacanvasstackdata.h>
//#include "kbfxplasmacanvasgroup.h" //#include "kbfxplasmacanvasgroup.h"
#include "kbfxplasmacanvasgroupview.h" #include "kbfxplasmacanvasgroupview.h"
@ -33,22 +33,23 @@ This class will manager a list of Grouplists.
**/ **/
class KbfxPlasmaCanvasStack:public QObject class KbfxPlasmaCanvasStack:public TQObject
{ {
Q_OBJECT Q_OBJECT
TQ_OBJECT
public: public:
typedef QPtrList<KbfxPlasmaCanvasGroupView> groupPtrList; typedef TQPtrList<KbfxPlasmaCanvasGroupView> groupPtrList;
typedef QMap<QString,uint> Dict;//DEPRECATED typedef TQMap<TQString,uint> Dict;//DEPRECATED
typedef QMap<KbfxPlasmaCanvasStackData,uint> DataDict; typedef TQMap<KbfxPlasmaCanvasStackData,uint> DataDict;
KbfxPlasmaCanvasStack(); KbfxPlasmaCanvasStack();
virtual ~KbfxPlasmaCanvasStack(); virtual ~KbfxPlasmaCanvasStack();
void addGroup ( KbfxPlasmaCanvasGroupView* ); void addGroup ( KbfxPlasmaCanvasGroupView* );
void deleteGroup ( KbfxPlasmaCanvasGroupView* ); void deleteGroup ( KbfxPlasmaCanvasGroupView* );
KbfxPlasmaCanvasStack* contains ( KbfxPlasmaCanvasGroupView* ); KbfxPlasmaCanvasStack* tqcontains ( KbfxPlasmaCanvasGroupView* );
QString getItemName ( int ); TQString getItemName ( int );
virtual int rtti() {return 1006;} virtual int rtti() {return 1006;}
void predend ( KbfxPlasmaCanvasGroupView* ); void predend ( KbfxPlasmaCanvasGroupView* );
void append ( KbfxPlasmaCanvasGroupView* ); void append ( KbfxPlasmaCanvasGroupView* );
@ -63,13 +64,13 @@ class KbfxPlasmaCanvasStack:public QObject
{ {
return m_width; return m_width;
} }
QString name() {return m_name;} TQString name() {return m_name;}
void setName ( QString name ) { m_name = name;} void setName ( TQString name ) { m_name = name;}
bool contains ( QString ); bool tqcontains ( TQString );
KbfxPlasmaCanvasGroupView * activeViewByName ( QString name ); KbfxPlasmaCanvasGroupView * activeViewByName ( TQString name );
public slots: public slots:
void raise ( uint id ); void raise ( uint id );
void raiseByName ( QString name ); void raiseByName ( TQString name );
private: private:
int m_x; int m_x;
int m_y; int m_y;
@ -81,7 +82,7 @@ class KbfxPlasmaCanvasStack:public QObject
groupPtrList m_groupChain; groupPtrList m_groupChain;
Dict m_dict; Dict m_dict;
DataDict m_dataDict; DataDict m_dataDict;
QString m_name; TQString m_name;
//state variables //state variables
}; };

@ -29,8 +29,8 @@ class KbfxPlasmaCanvasStackData
public: public:
KbfxPlasmaCanvasStackData() {} KbfxPlasmaCanvasStackData() {}
~KbfxPlasmaCanvasStackData() {} ~KbfxPlasmaCanvasStackData() {}
QString name; TQString name;
QString icon; TQString icon;
int id; int id;
}; };

@ -21,16 +21,16 @@
#include "kbfxplasmacanvasview.h" #include "kbfxplasmacanvasview.h"
KbfxPlasmaCanvasView::KbfxPlasmaCanvasView ( QWidget * parent, KbfxPlasmaCanvasView::KbfxPlasmaCanvasView ( TQWidget * tqparent,
const char *name, WFlags fl ) : const char *name, WFlags fl ) :
QCanvasView ( parent, name,fl ) TQCanvasView ( tqparent, name,fl )
{ {
viewport ()->setMouseTracking ( TRUE ); viewport ()->setMouseTracking ( TRUE );
viewport ()->setAcceptDrops ( true ); viewport ()->setAcceptDrops ( true );
this->setVScrollBarMode ( QScrollView::AlwaysOff ); this->setVScrollBarMode ( TQScrollView::AlwaysOff );
this->setHScrollBarMode ( QScrollView::AlwaysOff ); this->setHScrollBarMode ( TQScrollView::AlwaysOff );
setFrameShape ( QFrame::NoFrame ); setFrameShape ( TQFrame::NoFrame );
m_currentItem = 0L; m_currentItem = 0L;
m_stack = 0; m_stack = 0;
m_currentView = new KbfxPlasmaCanvasGroupView (); m_currentView = new KbfxPlasmaCanvasGroupView ();
@ -39,17 +39,17 @@ KbfxPlasmaCanvasView::KbfxPlasmaCanvasView ( QWidget * parent,
m_exeCandidate = 0; m_exeCandidate = 0;
m_findDone = true; m_findDone = true;
m_selectedItem = 0L; m_selectedItem = 0L;
m_search = new QCanvas ( this->width (), this->height () ); m_search = new TQCanvas ( this->width (), this->height () );
m_scrollbar_top = new KbfxSpinxScrollBar ( this ); m_scrollbar_top = new KbfxSpinxScrollBar ( this );
m_scrollbar_bot = new KbfxSpinxScrollBar ( this,"bottom",1); m_scrollbar_bot = new KbfxSpinxScrollBar ( this,"bottom",1);
m_scrollbar_top->setType ( KbfxSpinxScrollBar::UP ); m_scrollbar_top->setType ( KbfxSpinxScrollBar::UP );
m_scrollbar_bot->setType ( KbfxSpinxScrollBar::DOWN ); m_scrollbar_bot->setType ( KbfxSpinxScrollBar::DOWN );
connect ( m_scrollbar_top, SIGNAL ( scroll ( int, int ) ), this, connect ( m_scrollbar_top, TQT_SIGNAL ( scroll ( int, int ) ), this,
SLOT ( scrollBy ( int, int ) ) ); TQT_SLOT ( scrollBy ( int, int ) ) );
connect ( m_scrollbar_bot, SIGNAL ( scroll ( int, int ) ), this, connect ( m_scrollbar_bot, TQT_SIGNAL ( scroll ( int, int ) ), this,
SLOT ( scrollBy ( int, int ) ) ); TQT_SLOT ( scrollBy ( int, int ) ) );
placeScrollBars (); placeScrollBars ();
} }
@ -66,9 +66,9 @@ KbfxPlasmaCanvasView::~KbfxPlasmaCanvasView ()
} }
void void
KbfxPlasmaCanvasView::keyPressEvent ( QKeyEvent * ke ) KbfxPlasmaCanvasView::keyPressEvent ( TQKeyEvent * ke )
{ {
qDebug ( "QCanvasView got Key events" ); qDebug ( "TQCanvasView got Key events" );
ke->ignore(); ke->ignore();
} }
@ -89,9 +89,9 @@ KbfxPlasmaCanvasView::clearAllButOne ( KbfxPlasmaCanvasItem * i )
{ {
i = i; i = i;
QCanvasItemList list = canvas ()->allItems (); TQCanvasItemList list = canvas ()->allItems ();
QCanvasItemList::Iterator it = list.begin (); TQCanvasItemList::Iterator it = list.begin ();
for ( ; it != list.end (); ++it ) for ( ; it != list.end (); ++it )
{ {
if ( *it ) if ( *it )
@ -127,29 +127,29 @@ KbfxPlasmaCanvasView::execAt ( int i )
} }
void void
KbfxPlasmaCanvasView::leaveEvent ( QEvent * e ) KbfxPlasmaCanvasView::leaveEvent ( TQEvent * e )
{ {
e = e; e = e;
clearAllButOne ( m_currentItem ); clearAllButOne ( m_currentItem );
} }
void void
KbfxPlasmaCanvasView::enterEvent ( QEvent * e ) KbfxPlasmaCanvasView::enterEvent ( TQEvent * e )
{ {
e = e; e = e;
clearAllButOne ( m_currentItem ); clearAllButOne ( m_currentItem );
} }
void void
KbfxPlasmaCanvasView::mouseMoveEvent ( QMouseEvent * me ) KbfxPlasmaCanvasView::mouseMoveEvent ( TQMouseEvent * me )
{ {
QPoint p = inverseWorldMatrix ().map ( viewportToContents ( me->pos () ) ); TQPoint p = inverseWorldMatrix ().map ( viewportToContents ( me->pos () ) );
if ( canvas () == NULL ) if ( canvas () == NULL )
return; return;
// KbfxPlasmaCanvasGroup *tmp = 0; // KbfxPlasmaCanvasGroup *tmp = 0;
QCanvasItemList l = canvas ()->collisions ( p ); TQCanvasItemList l = canvas ()->collisions ( p );
for ( QCanvasItemList::Iterator it = l.begin (); it != l.end (); ++it ) for ( TQCanvasItemList::Iterator it = l.begin (); it != l.end (); ++it )
{ {
if ( *it == 0 ) if ( *it == 0 )
return; return;
@ -169,25 +169,25 @@ KbfxPlasmaCanvasView::mouseMoveEvent ( QMouseEvent * me )
} }
void void
KbfxPlasmaCanvasView::contentsMouseMoveEvent ( QMouseEvent * me ) KbfxPlasmaCanvasView::contentsMouseMoveEvent ( TQMouseEvent * me )
{ {
if ( canvas () == NULL ) if ( canvas () == NULL )
return; return;
if ( me->state () & LeftButton ) if ( me->state () & Qt::LeftButton )
{ {
int distance = ( me->pos () - m_dragPos ).manhattanLength (); int distance = ( me->pos () - m_dragPos ).manhattanLength ();
if ( distance > QApplication::startDragDistance () ) if ( distance > TQApplication::startDragDistance () )
this->startDrag (); this->startDrag ();
} }
QScrollView::contentsMouseMoveEvent ( me ); TQScrollView::contentsMouseMoveEvent ( me );
QCanvasItemList l = canvas ()->collisions ( me->pos () ); TQCanvasItemList l = canvas ()->collisions ( me->pos () );
if ( l.count () <= 0 ) if ( l.count () <= 0 )
return; return;
for ( QCanvasItemList::Iterator it = l.begin (); it != l.end (); ++it ) for ( TQCanvasItemList::Iterator it = l.begin (); it != l.end (); ++it )
{ {
if ( *it == 0 ) if ( *it == 0 )
return; return;
@ -201,7 +201,7 @@ KbfxPlasmaCanvasView::contentsMouseMoveEvent ( QMouseEvent * me )
} }
m_currentItem = t; m_currentItem = t;
t->setCurrent ( true ); t->setCurrent ( true );
this->setCursor ( QCursor ( Qt::PointingHandCursor ) ); this->setCursor ( TQCursor ( TQt::PointingHandCursor ) );
} }
} }
canvas ()->update (); canvas ()->update ();
@ -209,11 +209,11 @@ KbfxPlasmaCanvasView::contentsMouseMoveEvent ( QMouseEvent * me )
void void
KbfxPlasmaCanvasView::contentsMousePressEvent ( QMouseEvent * me ) KbfxPlasmaCanvasView::contentsMousePressEvent ( TQMouseEvent * me )
{ {
KbfxPlasmaCanvasGroup *tmp = 0; KbfxPlasmaCanvasGroup *tmp = 0;
QCanvasItemList l = canvas ()->collisions ( me->pos () ); TQCanvasItemList l = canvas ()->collisions ( me->pos () );
for ( QCanvasItemList::Iterator it = l.begin (); it != l.end (); ++it ) for ( TQCanvasItemList::Iterator it = l.begin (); it != l.end (); ++it )
{ {
if ( ( *it )->rtti () == CANVASITEM ) if ( ( *it )->rtti () == CANVASITEM )
{ {
@ -227,9 +227,9 @@ KbfxPlasmaCanvasView::contentsMousePressEvent ( QMouseEvent * me )
tmp->shade (); tmp->shade ();
m_clickPos = me->pos (); m_clickPos = me->pos ();
if ( me->button () == LeftButton ) if ( me->button () == Qt::LeftButton )
m_dragPos = me->pos (); m_dragPos = me->pos ();
QScrollView::contentsMousePressEvent ( me ); TQScrollView::contentsMousePressEvent ( me );
canvas ()->update (); canvas ()->update ();
} }
@ -245,10 +245,10 @@ KbfxPlasmaCanvasView::startDrag ()
qDebug ( "null source" ); qDebug ( "null source" );
return; return;
} }
QUriDrag *drag = TQUriDrag *drag =
new QUriDrag ( QStrList ( src->contentPath () ), this, new TQUriDrag ( TQStrList ( src->contentPath () ), this,
src->name ().ascii () ); src->name ().ascii () );
drag->setFileNames ( QStringList ( src->contentPath () ) ); drag->setFileNames ( TQStringList ( src->contentPath () ) );
drag->setPixmap ( m_currentItem->dragPixmap () ); drag->setPixmap ( m_currentItem->dragPixmap () );
drag->drag (); drag->drag ();
emit clicked (); emit clicked ();
@ -256,24 +256,24 @@ KbfxPlasmaCanvasView::startDrag ()
} }
void void
KbfxPlasmaCanvasView::resizeEvent ( QResizeEvent * ) KbfxPlasmaCanvasView::resizeEvent ( TQResizeEvent * )
{ {
placeScrollBars (); placeScrollBars ();
} }
/* /*
void void
KbfxPlasmaCanvasView::enterEvent ( QEvent * e ) KbfxPlasmaCanvasView::enterEvent ( TQEvent * e )
{ {
e = e; e = e;
if ( canvas () == 0 ) if ( canvas () == 0 )
return; return;
// KbfxPlasmaCanvasGroup *tmp = 0; // KbfxPlasmaCanvasGroup *tmp = 0;
QPoint _mPos = QCursor::pos (); TQPoint _mPos = TQCursor::pos ();
QCanvasItemList l = canvas ()->collisions ( this->mapFromGlobal ( _mPos ) ); TQCanvasItemList l = canvas ()->collisions ( this->mapFromGlobal ( _mPos ) );
for ( QCanvasItemList::Iterator it = l.begin (); it != l.end (); ++it ) for ( TQCanvasItemList::Iterator it = l.begin (); it != l.end (); ++it )
{ {
if ( *it == 0 ) if ( *it == 0 )
break; break;
@ -301,9 +301,9 @@ KbfxPlasmaCanvasView::clearAll ()
if ( canvas() != m_search ) if ( canvas() != m_search )
return ; return ;
QCanvasItemList list = canvas ()->allItems (); TQCanvasItemList list = canvas ()->allItems ();
QCanvasItemList::Iterator it = list.begin (); TQCanvasItemList::Iterator it = list.begin ();
for ( ; it != list.end (); ++it ) for ( ; it != list.end (); ++it )
{ {
if ( *it ) if ( *it )
@ -318,18 +318,18 @@ KbfxPlasmaCanvasView::clearAll ()
} }
void void
KbfxPlasmaCanvasView::setKbfxCanvas ( QCanvas * cnv ) KbfxPlasmaCanvasView::setKbfxCanvas ( TQCanvas * cnv )
{ {
m_default = cnv; m_default = cnv;
setCanvas ( m_default ); setCanvas ( m_default );
// canvas ()->setBackgroundPixmap ( ( *KbfxPlasmaPixmapProvider::pixmap ( "appviewbg" )) ); // canvas ()->setBackgroundPixmap ( ( *KbfxPlasmaPixmapProvider::pixmap ( "appviewbg" )) );
QPixmap * pixmap = KbfxPlasmaPixmapProvider::pixmap ( "middleboxbg" ); TQPixmap * pixmap = KbfxPlasmaPixmapProvider::pixmap ( "middleboxbg" );
if ( pixmap != NULL ) if ( pixmap != NULL )
{ {
QImage img = pixmap->convertToImage(); TQImage img = pixmap->convertToImage();
img = img.smoothScale ( this->width(),pixmap->height(),QImage::ScaleFree ); img = img.smoothScale ( this->width(),pixmap->height(),TQ_ScaleFree );
pixmap->convertFromImage ( img ); pixmap->convertFromImage ( img );
this->canvas ()->setBackgroundPixmap ( *pixmap ); this->canvas ()->tqsetBackgroundPixmap ( *pixmap );
} }
} }
@ -347,7 +347,7 @@ KbfxPlasmaCanvasView::expandAll ()
void void
KbfxPlasmaCanvasView::handleLoadRequest ( KbfxSignal signal ) KbfxPlasmaCanvasView::handleLoadRequest ( KbfxSignal signal )
{ {
QString tm = signal.name (); TQString tm = signal.name ();
KbfxDataStack *_stack = m_dataStack[signal.name () ]; KbfxDataStack *_stack = m_dataStack[signal.name () ];
if ( _stack == 0 ) if ( _stack == 0 )
@ -356,7 +356,7 @@ KbfxPlasmaCanvasView::handleLoadRequest ( KbfxSignal signal )
return; return;
} }
QString _activateGroup = _stack->getSubGroupName ( signal.id () ); TQString _activateGroup = _stack->getSubGroupName ( signal.id () );
KbfxDataGroupList *_dataList = _stack->getStack ( _activateGroup ); KbfxDataGroupList *_dataList = _stack->getStack ( _activateGroup );
KbfxPlasmaCanvasGroupView *gview = new KbfxPlasmaCanvasGroupView (); KbfxPlasmaCanvasGroupView *gview = new KbfxPlasmaCanvasGroupView ();
@ -376,7 +376,7 @@ KbfxPlasmaCanvasView::handleLoadRequest ( KbfxSignal signal )
( *it )->hide (); ( *it )->hide ();
} }
if ( m_appletMap[signal.name () ]->contains ( _activateGroup ) != true ) if ( m_appletMap[signal.name () ]->tqcontains ( _activateGroup ) != true )
{ {
loadGroup ( _dataList, gview ); loadGroup ( _dataList, gview );
m_currentView = gview; m_currentView = gview;
@ -391,7 +391,7 @@ KbfxPlasmaCanvasView::handleLoadRequest ( KbfxSignal signal )
else else
canvas ()->resize ( v_stack->width (), this->visibleHeight () ); canvas ()->resize ( v_stack->width (), this->visibleHeight () );
canvas()->update(); canvas()->update();
repaint(); tqrepaint();
// return; // return;
} }
else else
@ -408,18 +408,18 @@ KbfxPlasmaCanvasView::handleLoadRequest ( KbfxSignal signal )
canvas ()->resize ( m_appletMap[signal.name () ]->width (), canvas ()->resize ( m_appletMap[signal.name () ]->width (),
this->visibleHeight () ); this->visibleHeight () );
canvas()->update(); canvas()->update();
repaint(); tqrepaint();
} }
} }
void void
KbfxPlasmaCanvasView::contentsMouseReleaseEvent ( QMouseEvent * me ) KbfxPlasmaCanvasView::contentsMouseReleaseEvent ( TQMouseEvent * me )
{ {
// KbfxPlasmaCanvasGroup *tmp = 0; // KbfxPlasmaCanvasGroup *tmp = 0;
QCanvasItemList l = canvas ()->collisions ( me->pos () ); TQCanvasItemList l = canvas ()->collisions ( me->pos () );
for ( QCanvasItemList::Iterator it = l.begin (); it != l.end (); ++it ) for ( TQCanvasItemList::Iterator it = l.begin (); it != l.end (); ++it )
{ {
if ( ( *it )->rtti () == CANVASITEM ) if ( ( *it )->rtti () == CANVASITEM )
{ {
@ -445,7 +445,7 @@ KbfxPlasmaCanvasView::clearSearch ()
void void
KbfxPlasmaCanvasView::search_R ( const QString name ) KbfxPlasmaCanvasView::search_R ( const TQString name )
{ {
gstack = new KbfxPlasmaCanvasStack (); gstack = new KbfxPlasmaCanvasStack ();
KbfxPlasmaCanvasGroup *visualGroup = new KbfxPlasmaCanvasGroup (); KbfxPlasmaCanvasGroup *visualGroup = new KbfxPlasmaCanvasGroup ();
@ -457,16 +457,16 @@ KbfxPlasmaCanvasView::search_R ( const QString name )
this->setCanvas ( m_search ); this->setCanvas ( m_search );
QPixmap * pixmap = KbfxPlasmaPixmapProvider::pixmap ( "middleboxbg" ); TQPixmap * pixmap = KbfxPlasmaPixmapProvider::pixmap ( "middleboxbg" );
if ( pixmap != NULL ) if ( pixmap != NULL )
{ {
QImage img = pixmap->convertToImage(); TQImage img = pixmap->convertToImage();
img = img.smoothScale ( this->width(),pixmap->height(),QImage::ScaleFree ); img = img.smoothScale ( this->width(),pixmap->height(),TQ_ScaleFree );
pixmap->convertFromImage ( img ); pixmap->convertFromImage ( img );
this->canvas ()->setBackgroundPixmap ( *pixmap ); this->canvas ()->tqsetBackgroundPixmap ( *pixmap );
} }
this->setCursor ( QCursor ( Qt::BusyCursor ) ); this->setCursor ( TQCursor ( TQt::BusyCursor ) );
clearAll (); clearAll ();
dataStack::Iterator sit; dataStack::Iterator sit;
@ -516,7 +516,7 @@ KbfxPlasmaCanvasView::search_R ( const QString name )
for ( it = dat.begin(); it != dat.end (); it++ ) for ( it = dat.begin(); it != dat.end (); it++ )
{ {
qApp->processEvents (); tqApp->processEvents ();
boxwrapper = new KbfxPlasmaCanvasItemWrapper ( m_search ); boxwrapper = new KbfxPlasmaCanvasItemWrapper ( m_search );
box = box =
( KbfxPlasmaCanvasItem * ) boxwrapper-> ( KbfxPlasmaCanvasItem * ) boxwrapper->
@ -541,12 +541,12 @@ KbfxPlasmaCanvasView::search_R ( const QString name )
m_scrollbar_bot->height () ); m_scrollbar_bot->height () );
m_search->update (); m_search->update ();
this->setCursor ( QCursor ( Qt::ArrowCursor ) ); this->setCursor ( TQCursor ( TQt::ArrowCursor ) );
} }
void void
KbfxPlasmaCanvasView::search ( const QString & str ) KbfxPlasmaCanvasView::search ( const TQString & str )
{ {
if ( str.isEmpty () ) if ( str.isEmpty () )
return; return;
@ -560,9 +560,9 @@ KbfxPlasmaCanvasView::search ( const QString & str )
void void
KbfxPlasmaCanvasView::addStack ( KbfxPlasmaCanvasStack * stak, QString name ) KbfxPlasmaCanvasView::addStack ( KbfxPlasmaCanvasStack * stak, TQString name )
{ {
if ( m_appletMap.contains ( name ) ) if ( m_appletMap.tqcontains ( name ) )
{ {
return; return;
} }
@ -570,9 +570,9 @@ KbfxPlasmaCanvasView::addStack ( KbfxPlasmaCanvasStack * stak, QString name )
} }
void void
KbfxPlasmaCanvasView::addStack ( KbfxDataStack * stak, QString name ) KbfxPlasmaCanvasView::addStack ( KbfxDataStack * stak, TQString name )
{ {
if ( m_dataStack.contains ( name ) ) if ( m_dataStack.tqcontains ( name ) )
{ {
return; return;
} }
@ -592,7 +592,7 @@ KbfxPlasmaCanvasView::loadGroup ( KbfxDataGroupList * src,
KbfxPlasmaCanvasItem *box = 0; KbfxPlasmaCanvasItem *box = 0;
KbfxPlasmaCanvasItemWrapper *boxwrapper = 0; KbfxPlasmaCanvasItemWrapper *boxwrapper = 0;
KbfxPlasmaCanvasGroup *appGroup = 0; //new KbfxPlasmaCanvasGroup (); KbfxPlasmaCanvasGroup *appGroup = 0; //new KbfxPlasmaCanvasGroup ();
QString l_lastAdd = ""; TQString l_lastAdd = "";
for ( int i = 0; i < src->count (); i++ ) for ( int i = 0; i < src->count (); i++ )
{ {
if ( list.at ( i ) != 0 ) if ( list.at ( i ) != 0 )
@ -651,13 +651,13 @@ KbfxPlasmaCanvasView::loadGroup ( KbfxDataGroupList * src,
void void
KbfxPlasmaCanvasView::contentsDragLeaveEvent ( QDragEnterEvent * event ) KbfxPlasmaCanvasView::contentsDragLeaveEvent ( TQDragEnterEvent * event )
{ {
event->accept ( true ); event->accept ( true );
} }
void void
KbfxPlasmaCanvasView::contentsDragEnterEvent ( QDragEnterEvent * event ) KbfxPlasmaCanvasView::contentsDragEnterEvent ( TQDragEnterEvent * event )
{ {
event->accept ( true ); event->accept ( true );
} }

@ -22,10 +22,10 @@
#ifndef KBFX_PLASMA_CANVAS_VIEW_H #ifndef KBFX_PLASMA_CANVAS_VIEW_H
#define KBFX_PLASMA_CANVAS_VIEW_H #define KBFX_PLASMA_CANVAS_VIEW_H
#include <qcanvas.h> #include <tqcanvas.h>
#include <qcursor.h> #include <tqcursor.h>
#include <qdragobject.h> #include <tqdragobject.h>
#include <qpainter.h> #include <tqpainter.h>
#include <kimageeffect.h> #include <kimageeffect.h>
@ -46,45 +46,46 @@
#include "kbfxspinxscrollbar.h" #include "kbfxspinxscrollbar.h"
class QCanvasView; class TQCanvasView;
class KbfxPlasmaCanvasView : public QCanvasView class KbfxPlasmaCanvasView : public TQCanvasView
{ {
Q_OBJECT Q_OBJECT
TQ_OBJECT
public: public:
typedef QMap<QString,KbfxPlasmaCanvasStack*> stackMap; typedef TQMap<TQString,KbfxPlasmaCanvasStack*> stackMap;
typedef QMap<QString,KbfxDataStack*> dataStack; typedef TQMap<TQString,KbfxDataStack*> dataStack;
typedef QMap<int,KbfxPlasmaCanvasItem*> searchMap; typedef TQMap<int,KbfxPlasmaCanvasItem*> searchMap;
KbfxPlasmaCanvasView ( QWidget * parent = 0, const char * name = 0, WFlags f = 0 ); KbfxPlasmaCanvasView ( TQWidget * tqparent = 0, const char * name = 0, WFlags f = 0 );
virtual ~KbfxPlasmaCanvasView(); virtual ~KbfxPlasmaCanvasView();
void addStack ( KbfxPlasmaCanvasStack*stk,QString name ); void addStack ( KbfxPlasmaCanvasStack*stk,TQString name );
void addStack ( KbfxDataStack*stk,QString name ); void addStack ( KbfxDataStack*stk,TQString name );
void setKbfxCanvas ( QCanvas*cnv ); void setKbfxCanvas ( TQCanvas*cnv );
void loadGroup ( KbfxDataGroupList * src,KbfxPlasmaCanvasGroupView * dest ); void loadGroup ( KbfxDataGroupList * src,KbfxPlasmaCanvasGroupView * dest );
void contentsDragLeaveEvent ( QDragEnterEvent *event ); void contentsDragLeaveEvent ( TQDragEnterEvent *event );
void contentsDragEnterEvent ( QDragEnterEvent *event ); void contentsDragEnterEvent ( TQDragEnterEvent *event );
public slots: public slots:
void clearAll(); void clearAll();
virtual void contentsMousePressEvent ( QMouseEvent * me ); virtual void contentsMousePressEvent ( TQMouseEvent * me );
virtual void contentsMouseMoveEvent ( QMouseEvent * e ); virtual void contentsMouseMoveEvent ( TQMouseEvent * e );
virtual void contentsMouseReleaseEvent ( QMouseEvent * e ); virtual void contentsMouseReleaseEvent ( TQMouseEvent * e );
virtual void mouseMoveEvent ( QMouseEvent * me ); virtual void mouseMoveEvent ( TQMouseEvent * me );
virtual void enterEvent ( QEvent * e ); virtual void enterEvent ( TQEvent * e );
virtual void keyPressEvent ( QKeyEvent * ke ); virtual void keyPressEvent ( TQKeyEvent * ke );
virtual void emulatedKeyPress ( QKeyEvent * k ) {keyPressEvent ( k );} virtual void emulatedKeyPress ( TQKeyEvent * k ) {keyPressEvent ( k );}
virtual void resizeEvent ( QResizeEvent * ) ; virtual void resizeEvent ( TQResizeEvent * ) ;
virtual void leaveEvent ( QEvent * e ); virtual void leaveEvent ( TQEvent * e );
// virtual void leaveEvent(QEvent e ); // virtual void leaveEvent(TQEvent e );
void handleLoadRequest ( KbfxSignal ); void handleLoadRequest ( KbfxSignal );
void search ( const QString & ); void search ( const TQString & );
void search_R ( const QString key ); void search_R ( const TQString key );
void execFirst(); void execFirst();
void execAt ( int i ); void execAt ( int i );
void expandAll(); void expandAll();
@ -99,24 +100,24 @@ class KbfxPlasmaCanvasView : public QCanvasView
void startDrag(); void startDrag();
void placeScrollBars(); void placeScrollBars();
QPoint m_clickPos; TQPoint m_clickPos;
KbfxPlasmaCanvasItem * m_currentItem; KbfxPlasmaCanvasItem * m_currentItem;
KbfxPlasmaCanvasStack * m_currentStack; KbfxPlasmaCanvasStack * m_currentStack;
KbfxPlasmaCanvasStack * m_stack; KbfxPlasmaCanvasStack * m_stack;
QString m_lastSignalData; TQString m_lastSignalData;
stackMap m_appletMap; stackMap m_appletMap;
dataStack m_dataStack; dataStack m_dataStack;
searchMap m_searchMap; searchMap m_searchMap;
KbfxPlasmaCanvasStack * gstack ; KbfxPlasmaCanvasStack * gstack ;
KbfxPlasmaCanvasItem * m_exeCandidate; KbfxPlasmaCanvasItem * m_exeCandidate;
QCanvas * m_default; TQCanvas * m_default;
QCanvas * m_search; TQCanvas * m_search;
bool m_findDone; bool m_findDone;
KbfxSpinxScrollBar * m_scrollbar_top; KbfxSpinxScrollBar * m_scrollbar_top;
KbfxSpinxScrollBar * m_scrollbar_bot; KbfxSpinxScrollBar * m_scrollbar_bot;
QPoint m_dragPos; TQPoint m_dragPos;
KbfxPlasmaCanvasGroupView * m_currentView; KbfxPlasmaCanvasGroupView * m_currentView;
QString m_currentViewName; TQString m_currentViewName;
KbfxPlasmaCanvasItem * m_selectedItem; KbfxPlasmaCanvasItem * m_selectedItem;
}; };

@ -24,13 +24,13 @@
#include <kapplication.h> #include <kapplication.h>
#include <kbfxconfig.h> #include <kbfxconfig.h>
KbfxPlasmaIndexItem::KbfxPlasmaIndexItem ( QCanvasPixmapArray * a, QCanvas * canvas ) :KbfxPlasmaCanvasAbstractItem ( a,canvas ) KbfxPlasmaIndexItem::KbfxPlasmaIndexItem ( TQCanvasPixmapArray * a, TQCanvas * canvas ) :KbfxPlasmaCanvasAbstractItem ( a,canvas )
{ {
//this->setItemMode (1); //this->setItemMode (1);
setAnimated ( false ); setAnimated ( false );
setCurrent ( false ); setCurrent ( false );
m_isSelected = false; m_isSelected = false;
QPixmap * _img = this->image ( 0 ); TQPixmap * _img = this->image ( 0 );
m_height =_img->height(); m_height =_img->height();
m_width= _img->width(); m_width= _img->width();
@ -42,7 +42,7 @@ KbfxPlasmaIndexItem::~KbfxPlasmaIndexItem()
{} {}
void void
KbfxPlasmaIndexItem::setIcon ( QString str ) KbfxPlasmaIndexItem::setIcon ( TQString str )
{ {
KIconLoader *iconload = KGlobal::iconLoader (); KIconLoader *iconload = KGlobal::iconLoader ();
m_iconPath = iconload->iconPath ( str, KIcon::Desktop, false ); m_iconPath = iconload->iconPath ( str, KIcon::Desktop, false );
@ -51,7 +51,7 @@ KbfxPlasmaIndexItem::setIcon ( QString str )
} }
void void
KbfxPlasmaIndexItem::setText ( QString text ) KbfxPlasmaIndexItem::setText ( TQString text )
{ {
m_text = text; m_text = text;
} }
@ -71,7 +71,7 @@ KbfxPlasmaIndexItem::selected()
void void
KbfxPlasmaIndexItem::drawContent ( QPainter * pe ) KbfxPlasmaIndexItem::drawContent ( TQPainter * pe )
{ {
if ( this->isCurrent() || m_isSelected ) if ( this->isCurrent() || m_isSelected )
@ -83,17 +83,17 @@ KbfxPlasmaIndexItem::drawContent ( QPainter * pe )
this->setFrame ( 0 ); this->setFrame ( 0 );
} }
QCanvasPixmap *cp = this->image ( this->frame () ); TQCanvasPixmap *cp = this->image ( this->frame () );
m_height = cp->height(); m_height = cp->height();
m_width = cp->width(); m_width = cp->width();
pe->drawPixmap ( this->boundingRect (), *cp ); pe->drawPixmap ( this->boundingRect (), *cp );
QRect r ( ( int ) x(), ( int ) y(), m_width, m_height ); TQRect r ( ( int ) x(), ( int ) y(), m_width, m_height );
QRect textRect ( m_height+1, ( int ) y(), m_width,m_height ); TQRect textRect ( m_height+1, ( int ) y(), m_width,m_height );
QFont * _font_plugin = new QFont ( ConfigInit().m_pluginNameFont ); TQFont * _font_plugin = new TQFont ( ConfigInit().m_pluginNameFont );
QFont * _font_index = new QFont ( ConfigInit().m_fontIndexFont ); TQFont * _font_index = new TQFont ( ConfigInit().m_fontIndexFont );
if ( this->type() != KbfxPlasmaIndexItem::SEPARATOR ) if ( this->type() != KbfxPlasmaIndexItem::SEPARATOR )
{ {
@ -106,8 +106,8 @@ KbfxPlasmaIndexItem::drawContent ( QPainter * pe )
pe->setPen ( ConfigInit().m_pluginNameColor); pe->setPen ( ConfigInit().m_pluginNameColor);
} }
pe->drawText ( textRect, Qt::AlignVCenter | Qt::AlignLeft ,QString ( m_text ), -1, &r,0 ); pe->drawText ( textRect, TQt::AlignVCenter | TQt::AlignLeft ,TQString ( m_text ), -1, &r );
pe->drawPixmap ( QRect ( ( int ) x() +5 , ( int ) y() +6,m_height-12,m_height-12 ),m_icon ); pe->drawPixmap ( TQRect ( ( int ) x() +5 , ( int ) y() +6,m_height-12,m_height-12 ),m_icon );
delete _font_plugin; delete _font_plugin;
delete _font_index; delete _font_index;
@ -128,17 +128,17 @@ KbfxPlasmaIndexItem::setId ( int id )
void void
KbfxPlasmaIndexItem::draw ( QPainter & p ) KbfxPlasmaIndexItem::draw ( TQPainter & p )
{ {
drawContent ( &p ); drawContent ( &p );
} }
void void
KbfxPlasmaIndexItem::setLabelText ( QString str ) KbfxPlasmaIndexItem::setLabelText ( TQString str )
{ {
QFont * _font = new QFont(ConfigInit().m_fontIndexFont); TQFont * _font = new TQFont(ConfigInit().m_fontIndexFont);
QFontMetrics fm ( *_font ); TQFontMetrics fm ( *_font );
int _commentWidth = fm.width ( str+"..." ); int _commentWidth = fm.width ( str+"..." );
int _strLen = str.length(); int _strLen = str.length();
@ -160,7 +160,7 @@ KbfxPlasmaIndexItem::setLabelText ( QString str )
} }
QString TQString
KbfxPlasmaIndexItem::belongsTo() KbfxPlasmaIndexItem::belongsTo()
{ {
@ -168,13 +168,13 @@ KbfxPlasmaIndexItem::belongsTo()
} }
void void
KbfxPlasmaIndexItem::setBelongsTo ( QString parent ) KbfxPlasmaIndexItem::setBelongsTo ( TQString tqparent )
{ {
m_parent = parent; m_parent = tqparent;
} }
void KbfxPlasmaIndexItem::mousePressEvent ( QMouseEvent * e ) void KbfxPlasmaIndexItem::mousePressEvent ( TQMouseEvent * e )
{ {
e = e; e = e;
} }

@ -27,35 +27,36 @@
class KbfxPlasmaIndexItem : public KbfxPlasmaCanvasAbstractItem class KbfxPlasmaIndexItem : public KbfxPlasmaCanvasAbstractItem
{ {
Q_OBJECT Q_OBJECT
TQ_OBJECT
public: public:
KbfxPlasmaIndexItem ( QCanvasPixmapArray * a, QCanvas * canvas ); KbfxPlasmaIndexItem ( TQCanvasPixmapArray * a, TQCanvas * canvas );
virtual ~KbfxPlasmaIndexItem(); virtual ~KbfxPlasmaIndexItem();
void setIcon ( QString path ); void setIcon ( TQString path );
void setText ( QString text ); void setText ( TQString text );
void setId ( int id ); void setId ( int id );
//void setName(QString name); //void setName(TQString name);
void setLabelText ( QString text ); void setLabelText ( TQString text );
void setBelongsTo ( QString parent ); void setBelongsTo ( TQString tqparent );
QString belongsTo(); TQString belongsTo();
int height(); int height();
void setSelected ( bool select ); void setSelected ( bool select );
bool selected(); bool selected();
int Id() { return m_id;} int Id() { return m_id;}
virtual void drawContent ( QPainter * pe ); virtual void drawContent ( TQPainter * pe );
virtual void draw ( QPainter & pe ); virtual void draw ( TQPainter & pe );
virtual void mousePressEvent ( QMouseEvent * e ); virtual void mousePressEvent ( TQMouseEvent * e );
private: private:
int m_id; int m_id;
QString m_name; TQString m_name;
QString m_text; TQString m_text;
QString m_iconPath; TQString m_iconPath;
QPixmap m_icon; TQPixmap m_icon;
QString m_parent; TQString m_parent;
bool m_isCurrent; bool m_isCurrent;
int m_height; int m_height;
int m_width; int m_width;

@ -21,9 +21,9 @@
#include "kbfxplasmaindexview.h" #include "kbfxplasmaindexview.h"
KbfxPlasmaIndexView::KbfxPlasmaIndexView ( QWidget * parent, const char *name, KbfxPlasmaIndexView::KbfxPlasmaIndexView ( TQWidget * tqparent, const char *name,
WFlags l ) : WFlags l ) :
QCanvasView ( parent, name, l ) TQCanvasView ( tqparent, name, l )
{ {
m_itemGroup = new KbfxPlasmaCanvasGroup (); m_itemGroup = new KbfxPlasmaCanvasGroup ();
m_itemGroupList = new KbfxPlasmaCanvasGroupView (); m_itemGroupList = new KbfxPlasmaCanvasGroupView ();
@ -32,19 +32,19 @@ KbfxPlasmaIndexView::KbfxPlasmaIndexView ( QWidget * parent, const char *name,
m_itemStack->addGroup ( m_itemGroupList ); m_itemStack->addGroup ( m_itemGroupList );
viewport ()->setMouseTracking ( TRUE ); viewport ()->setMouseTracking ( TRUE );
m_currentPos = QPoint ( 0, 0 ); m_currentPos = TQPoint ( 0, 0 );
m_mousePollTimer = new QTimer ( this ); m_mousePollTimer = new TQTimer ( this );
m_pluginList = KbfxPlasmaPluginLoader::scanPlugins (); m_pluginList = KbfxPlasmaPluginLoader::scanPlugins ();
viewport ()->setAcceptDrops ( true ); viewport ()->setAcceptDrops ( true );
this->setVScrollBarMode ( QScrollView::AlwaysOff ); this->setVScrollBarMode ( TQScrollView::AlwaysOff );
this->setHScrollBarMode ( QScrollView::AlwaysOff ); this->setHScrollBarMode ( TQScrollView::AlwaysOff );
setFrameShape ( QFrame::NoFrame ); setFrameShape ( TQFrame::NoFrame );
m_currentItem = 0L; m_currentItem = 0L;
m_selectedItem = 0L; m_selectedItem = 0L;
// m_pluginList = ""; // m_pluginList = "";
connect ( this, SIGNAL ( clicked ( KbfxPlasmaIndexItem * ) ), this, connect ( this, TQT_SIGNAL ( clicked ( KbfxPlasmaIndexItem * ) ), this,
SLOT ( slotClicked ( KbfxPlasmaIndexItem * ) ) ); TQT_SLOT ( slotClicked ( KbfxPlasmaIndexItem * ) ) );
m_currentView = 0; m_currentView = 0;
setDragAutoScroll ( true ); setDragAutoScroll ( true );
} }
@ -58,16 +58,16 @@ void
KbfxPlasmaIndexView::checkMousePos () KbfxPlasmaIndexView::checkMousePos ()
{ {
KbfxPlasmaCanvasGroup *tmp = 0; KbfxPlasmaCanvasGroup *tmp = 0;
if ( QCursor::pos () == mapToGlobal ( contentsToViewport ( m_currentPos ) ) ) if ( TQCursor::pos () == mapToGlobal ( contentsToViewport ( m_currentPos ) ) )
{ {
QMouseEvent me ( QEvent::MouseButtonPress, TQMouseEvent me ( TQEvent::MouseButtonPress,
this->mapToGlobal ( m_currentPos ), Qt::LeftButton, this->mapToGlobal ( m_currentPos ), Qt::LeftButton,
Qt::LeftButton ); Qt::LeftButton );
clearAll (); clearAll ();
QCanvasItemList l = canvas ()->collisions ( m_currentPos ); TQCanvasItemList l = canvas ()->collisions ( m_currentPos );
for ( QCanvasItemList::Iterator it = l.begin (); it != l.end (); ++it ) for ( TQCanvasItemList::Iterator it = l.begin (); it != l.end (); ++it )
{ {
if ( ( *it )->rtti () == CANVASITEM ) if ( ( *it )->rtti () == CANVASITEM )
{ {
@ -107,9 +107,9 @@ KbfxPlasmaIndexView::clearAllButOne ( KbfxPlasmaIndexItem * i )
{ {
i = i; i = i;
QCanvasItemList list = canvas ()->allItems (); TQCanvasItemList list = canvas ()->allItems ();
QCanvasItemList::Iterator it = list.begin (); TQCanvasItemList::Iterator it = list.begin ();
for ( ; it != list.end (); ++it ) for ( ; it != list.end (); ++it )
{ {
if ( *it ) if ( *it )
@ -127,9 +127,9 @@ KbfxPlasmaIndexView::clearAllButOne ( KbfxPlasmaIndexItem * i )
void void
KbfxPlasmaIndexView::clearSelection () KbfxPlasmaIndexView::clearSelection ()
{ {
QCanvasItemList list = canvas ()->allItems (); TQCanvasItemList list = canvas ()->allItems ();
QCanvasItemList::Iterator it = list.begin (); TQCanvasItemList::Iterator it = list.begin ();
for ( ; it != list.end (); ++it ) for ( ; it != list.end (); ++it )
{ {
if ( *it ) if ( *it )
@ -143,7 +143,7 @@ KbfxPlasmaIndexView::clearSelection ()
} }
void void
KbfxPlasmaIndexView::leaveEvent ( QEvent * e ) KbfxPlasmaIndexView::leaveEvent ( TQEvent * e )
{ {
e = e; e = e;
clearAllButOne ( m_currentItem ); clearAllButOne ( m_currentItem );
@ -162,18 +162,18 @@ KbfxPlasmaIndexView::contextMenuSlot ( int id )
} }
void void
KbfxPlasmaIndexView::contentsContextMenuEvent ( QContextMenuEvent * event ) KbfxPlasmaIndexView::contentsContextMenuEvent ( TQContextMenuEvent * event )
{ {
event = event; event = event;
/* /*
m_pluginMenu = new KPopupMenu ( this );; m_pluginMenu = new KPopupMenu ( this );;
connect ( m_pluginMenu, SIGNAL ( activated ( int ) ), this, connect ( m_pluginMenu, TQT_SIGNAL ( activated ( int ) ), this,
SLOT ( contextMenuSlot ( int ) ) ); TQT_SLOT ( contextMenuSlot ( int ) ) );
m_pluginMenu->insertTitle ( "Insert Plugin", 0, 0 ); m_pluginMenu->insertTitle ( "Insert Plugin", 0, 0 );
int _index = 1; int _index = 1;
for ( QStringList::Iterator it = m_pluginList.begin (); for ( TQStringList::Iterator it = m_pluginList.begin ();
it != m_pluginList.end (); ++it ) it != m_pluginList.end (); ++it )
{ {
@ -246,7 +246,7 @@ KbfxPlasmaIndexView::loadList ( KbfxDataStack * stkPtr )
m_itemStack->raise ( 0 ); m_itemStack->raise ( 0 );
for ( QStringList::Iterator it = m_pluginList.begin (); for ( TQStringList::Iterator it = m_pluginList.begin ();
it != m_pluginList.end (); ++it ) it != m_pluginList.end (); ++it )
{ {
if ( *it == stkPtr->name() ) if ( *it == stkPtr->name() )
@ -258,20 +258,20 @@ KbfxPlasmaIndexView::loadList ( KbfxDataStack * stkPtr )
} }
void void
KbfxPlasmaIndexView::setKbfxCanvas ( QCanvas * cnv ) KbfxPlasmaIndexView::setKbfxCanvas ( TQCanvas * cnv )
{ {
setCanvas ( cnv ); setCanvas ( cnv );
canvas ()->setBackgroundPixmap ( ( *KbfxPlasmaPixmapProvider::pixmap ( "listboxbg" )) ); canvas ()->tqsetBackgroundPixmap ( ( *KbfxPlasmaPixmapProvider::pixmap ( "listboxbg" )) );
canvas ()->update (); canvas ()->update ();
} }
void void
KbfxPlasmaIndexView::loadPlugin ( QString name, KbfxPlasmaCanvasView * view ) KbfxPlasmaIndexView::loadPlugin ( TQString name, KbfxPlasmaCanvasView * view )
{ {
if ( m_pluginList.contains ( name ) <= 0 ) if ( m_pluginList.tqcontains ( name ) <= 0 )
{ {
KbfxPlasmaPluginLoader *m_loader = new KbfxPlasmaPluginLoader (); KbfxPlasmaPluginLoader *m_loader = new KbfxPlasmaPluginLoader ();
KbfxDataStack *m_stack_R = m_loader->getView ( name ); KbfxDataStack *m_stack_R = m_loader->getView ( name );
@ -298,7 +298,7 @@ KbfxPlasmaIndexView::loadPlugin ( QString name, KbfxPlasmaCanvasView * view )
void void
KbfxPlasmaIndexView::mouseMoveEvent ( QMouseEvent * me ) KbfxPlasmaIndexView::mouseMoveEvent ( TQMouseEvent * me )
{ {
me = me; me = me;
} }
@ -306,7 +306,7 @@ KbfxPlasmaIndexView::mouseMoveEvent ( QMouseEvent * me )
void void
KbfxPlasmaIndexView::contentsMouseMoveEvent ( QMouseEvent * me ) KbfxPlasmaIndexView::contentsMouseMoveEvent ( TQMouseEvent * me )
{ {
if ( canvas () == NULL ) if ( canvas () == NULL )
return; return;
@ -315,9 +315,9 @@ KbfxPlasmaIndexView::contentsMouseMoveEvent ( QMouseEvent * me )
// TODO: Get wait time from config // TODO: Get wait time from config
this->setCursor ( QCursor ( Qt::PointingHandCursor ) ); this->setCursor ( TQCursor ( TQt::PointingHandCursor ) );
QTimer::singleShot ( 800, this, SLOT ( checkMousePos () ) ); TQTimer::singleShot ( 800, this, TQT_SLOT ( checkMousePos () ) );
if ( contentsToViewport ( me->pos () ).y () < this->height () / 5 ) if ( contentsToViewport ( me->pos () ).y () < this->height () / 5 )
{ {
@ -328,16 +328,16 @@ KbfxPlasmaIndexView::contentsMouseMoveEvent ( QMouseEvent * me )
scrollBy ( 10, 10 ); scrollBy ( 10, 10 );
} }
QScrollView::contentsMouseMoveEvent ( me ); TQScrollView::contentsMouseMoveEvent ( me );
// KbfxPlasmaCanvasGroup *tmp = 0; // KbfxPlasmaCanvasGroup *tmp = 0;
QCanvasItemList l = canvas ()->collisions ( me->pos () ); TQCanvasItemList l = canvas ()->collisions ( me->pos () );
if ( l.count () <= 0 ) if ( l.count () <= 0 )
return; return;
for ( QCanvasItemList::Iterator it = l.begin (); it != l.end (); ++it ) for ( TQCanvasItemList::Iterator it = l.begin (); it != l.end (); ++it )
{ {
if ( *it == 0 ) if ( *it == 0 )
return; return;
@ -358,18 +358,18 @@ KbfxPlasmaIndexView::contentsMouseMoveEvent ( QMouseEvent * me )
} }
void void
KbfxPlasmaIndexView::contentsMousePressEvent ( QMouseEvent * me ) KbfxPlasmaIndexView::contentsMousePressEvent ( TQMouseEvent * me )
{ {
if ( me->button () == RightButton ) if ( me->button () == Qt::RightButton )
return; return;
clearAll (); clearAll ();
this->setCursor ( QCursor ( Qt::WaitCursor ) ); this->setCursor ( TQCursor ( TQt::WaitCursor ) );
KbfxPlasmaCanvasGroup *tmp = 0; KbfxPlasmaCanvasGroup *tmp = 0;
QCanvasItemList l = canvas ()->collisions ( me->pos () ); TQCanvasItemList l = canvas ()->collisions ( me->pos () );
for ( QCanvasItemList::Iterator it = l.begin (); it != l.end (); ++it ) for ( TQCanvasItemList::Iterator it = l.begin (); it != l.end (); ++it )
{ {
if ( ( *it )->rtti () == CANVASITEM ) if ( ( *it )->rtti () == CANVASITEM )
{ {
@ -393,10 +393,10 @@ KbfxPlasmaIndexView::contentsMousePressEvent ( QMouseEvent * me )
// m_clickPos = me->pos (); // m_clickPos = me->pos ();
QScrollView::contentsMousePressEvent ( me ); TQScrollView::contentsMousePressEvent ( me );
canvas ()->update (); canvas ()->update ();
this->setCursor ( QCursor ( Qt::PointingHandCursor ) ); this->setCursor ( TQCursor ( TQt::PointingHandCursor ) );
} }
void void
@ -409,17 +409,17 @@ KbfxPlasmaIndexView::slotClicked ( KbfxPlasmaIndexItem * it )
KbfxSignal signal ( _it->belongsTo (), _it->Id () ); KbfxSignal signal ( _it->belongsTo (), _it->Id () );
this->setCursor ( QCursor ( Qt::WaitCursor ) ); this->setCursor ( TQCursor ( TQt::WaitCursor ) );
emit loadRequest ( signal ); emit loadRequest ( signal );
this->setCursor ( QCursor ( Qt::PointingHandCursor ) ); this->setCursor ( TQCursor ( TQt::PointingHandCursor ) );
} }
void void
KbfxPlasmaIndexView::clearAll () KbfxPlasmaIndexView::clearAll ()
{ {
QCanvasItemList list = canvas ()->allItems (); TQCanvasItemList list = canvas ()->allItems ();
QCanvasItemList::Iterator it = list.begin (); TQCanvasItemList::Iterator it = list.begin ();
for ( ; it != list.end (); ++it ) for ( ; it != list.end (); ++it )
{ {
if ( *it ) if ( *it )

@ -22,7 +22,7 @@
#ifndef KBFX_PLASMA_INDEX_VIEW_H #ifndef KBFX_PLASMA_INDEX_VIEW_H
#define KBFX_PLASMA_INDEX_VIEW_H #define KBFX_PLASMA_INDEX_VIEW_H
#include <qcanvas.h> #include <tqcanvas.h>
#include <kdebug.h> #include <kdebug.h>
#include <kpopupmenu.h> #include <kpopupmenu.h>
@ -39,36 +39,37 @@
class KbfxPlasmaIndexView : public QCanvasView class KbfxPlasmaIndexView : public TQCanvasView
{ {
Q_OBJECT Q_OBJECT
TQ_OBJECT
public: public:
KbfxPlasmaIndexView ( QWidget * parent = 0, const char * name = 0, WFlags l = 0 ); KbfxPlasmaIndexView ( TQWidget * tqparent = 0, const char * name = 0, WFlags l = 0 );
virtual ~KbfxPlasmaIndexView(); virtual ~KbfxPlasmaIndexView();
void loadList ( KbfxDataStack * stkPtr ); void loadList ( KbfxDataStack * stkPtr );
int count() { return m_itemGroup->count() ; } int count() { return m_itemGroup->count() ; }
void setView ( KbfxPlasmaCanvasView * view ); void setView ( KbfxPlasmaCanvasView * view );
virtual void contentsMouseMoveEvent ( QMouseEvent * e ); virtual void contentsMouseMoveEvent ( TQMouseEvent * e );
virtual void contentsMousePressEvent ( QMouseEvent * me ); virtual void contentsMousePressEvent ( TQMouseEvent * me );
virtual void contentsContextMenuEvent ( QContextMenuEvent * e ) ; virtual void contentsContextMenuEvent ( TQContextMenuEvent * e ) ;
virtual void mouseMoveEvent ( QMouseEvent * e ); virtual void mouseMoveEvent ( TQMouseEvent * e );
virtual void leaveEvent ( QEvent * e ); virtual void leaveEvent ( TQEvent * e );
void setKbfxCanvas ( QCanvas * cnv ); void setKbfxCanvas ( TQCanvas * cnv );
void clearAll(); void clearAll();
public slots: public slots:
void slotClicked ( KbfxPlasmaIndexItem * ); void slotClicked ( KbfxPlasmaIndexItem * );
void contextMenuSlot ( int id ); void contextMenuSlot ( int id );
void loadPlugin ( QString name,KbfxPlasmaCanvasView * ); void loadPlugin ( TQString name,KbfxPlasmaCanvasView * );
void checkMousePos(); void checkMousePos();
void clearSelection(); void clearSelection();
signals: signals:
void loadRequest ( KbfxSignal signal ); void loadRequest ( KbfxSignal signal );
void pluginRequest ( QString pluginName,KbfxPlasmaCanvasView * ); void pluginRequest ( TQString pluginName,KbfxPlasmaCanvasView * );
void clicked ( KbfxPlasmaIndexItem * item ); void clicked ( KbfxPlasmaIndexItem * item );
void expand(); void expand();
void clearSelected(); void clearSelected();
@ -83,12 +84,12 @@ class KbfxPlasmaIndexView : public QCanvasView
KbfxPlasmaCanvasStack * m_itemStack; KbfxPlasmaCanvasStack * m_itemStack;
KbfxPlasmaIndexItem * m_currentItem; KbfxPlasmaIndexItem * m_currentItem;
KbfxPlasmaIndexItem * m_selectedItem; KbfxPlasmaIndexItem * m_selectedItem;
QStringList m_pluginList; TQStringList m_pluginList;
QStringList m_pluginLoaded; TQStringList m_pluginLoaded;
KPopupMenu * m_pluginMenu; KPopupMenu * m_pluginMenu;
KbfxPlasmaCanvasView * m_currentView; KbfxPlasmaCanvasView * m_currentView;
QPoint m_currentPos; TQPoint m_currentPos;
QTimer * m_mousePollTimer; TQTimer * m_mousePollTimer;
}; };
#endif #endif

@ -26,12 +26,12 @@ class KbfxSignal
{ {
public: public:
KbfxSignal() {m_name="";} KbfxSignal() {m_name="";}
KbfxSignal ( QString name,uint id ) { m_name = name;m_id = id;} KbfxSignal ( TQString name,uint id ) { m_name = name;m_id = id;}
~KbfxSignal() {} ~KbfxSignal() {}
QString name() {return m_name;} TQString name() {return m_name;}
uint id() {return m_id;} uint id() {return m_id;}
private: private:
QString m_name; TQString m_name;
uint m_id; uint m_id;
}; };

@ -25,10 +25,10 @@
bool KbfxSpinx::m_horizontal_position = TRUE; bool KbfxSpinx::m_horizontal_position = TRUE;
KbfxSpinx::KbfxSpinx ( const QString& configFile, Type type, int actions, QWidget *parent, const char *name ) KbfxSpinx::KbfxSpinx ( const TQString& configFile, Type type, int actions, TQWidget *tqparent, const char *name )
: KPanelApplet ( configFile, type, actions, parent, name ),DCOPObject ( "KBFXInterface" ) : KPanelApplet ( configFile, type, actions, tqparent, name ),DCOPObject ( "KBFXInterface" )
{ {
m_parent = parent; m_parent = tqparent;
createKbfx(); createKbfx();
} }
@ -36,9 +36,9 @@ KbfxSpinx::~KbfxSpinx()
{ {
} }
void KbfxSpinx::dirtyReaload(const QString & dir) void KbfxSpinx::dirtyReaload(const TQString & dir)
{ {
QString _dir=dir; TQString _dir=dir;
notifyConfigChange(); notifyConfigChange();
} }
@ -55,19 +55,19 @@ void KbfxSpinx::createKbfx()
if ( ConfigInit ().m_KbfxMenuType == "kmenu" ) if ( ConfigInit ().m_KbfxMenuType == "kmenu" )
{ {
kbfxBtn->show(); kbfxBtn->show();
kbfxBtn->repaint(); kbfxBtn->tqrepaint();
} }
else else
{ {
createRMenu(); createRMenu();
connect ( m_menu,SIGNAL ( aboutToHide () ),kbfxBtn,SLOT ( toggle() ) ); connect ( m_menu,TQT_SIGNAL ( aboutToHide () ),kbfxBtn,TQT_SLOT ( toggle() ) );
} }
kmenu_timer = new QTimer ( this,"Fade Timer" ); kmenu_timer = new TQTimer ( this,"Fade Timer" );
connect ( kmenu_timer, SIGNAL ( timeout() ), kbfxBtn, SLOT ( toggleKMenu () ) ); connect ( kmenu_timer, TQT_SIGNAL ( timeout() ), kbfxBtn, TQT_SLOT ( toggleKMenu () ) );
connect ( kbfxBtn , SIGNAL ( pressed() ),this,SLOT ( showKbfxMenu() ) ); connect ( kbfxBtn , TQT_SIGNAL ( pressed() ),this,TQT_SLOT ( showKbfxMenu() ) );
connect ( kbfxBtn , SIGNAL ( showToolTip() ),this,SLOT ( ToolTip() ) ); connect ( kbfxBtn , TQT_SIGNAL ( showToolTip() ),this,TQT_SLOT ( ToolTip() ) );
if ( m_kicker_auto_adjust ) if ( m_kicker_auto_adjust )
m_parent->resize ( m_parent->width(),kbfxBtn->height() ); m_parent->resize ( m_parent->width(),kbfxBtn->height() );
@ -75,15 +75,15 @@ void KbfxSpinx::createKbfx()
if (m_KbfxWatcher) if (m_KbfxWatcher)
{ {
l_watch = new KDirWatch(this,"SyscocaWatch"); l_watch = new KDirWatch(TQT_TQOBJECT(this),"SyscocaWatch");
KUser * l_user = new KUser(); KUser * l_user = new KUser();
QString l_path("/var/tmp/kdecache-"); TQString l_path("/var/tmp/kdecache-");
l_path.append(l_user->loginName()); l_path.append(l_user->loginName());
l_path.append("/"); l_path.append("/");
l_watch->addDir(l_path); l_watch->addDir(l_path);
l_watch->startScan( TRUE, FALSE); l_watch->startScan( TRUE, FALSE);
connect ( l_watch, SIGNAL ( dirty(const QString&) ), connect ( l_watch, TQT_SIGNAL ( dirty(const TQString&) ),
this, SLOT ( dirtyReaload(const QString&) ) ); this, TQT_SLOT ( dirtyReaload(const TQString&) ) );
delete l_user; delete l_user;
} }
} }
@ -95,7 +95,7 @@ void KbfxSpinx::notifyConfigChange()
/* /*
FIXME FIXME
The delete here does not reload everything. The delete here does not reload everything.
Only the button and the parent menu. Only the button and the tqparent menu.
Carefull memory de-allocation is needed before deleteing further :-( Carefull memory de-allocation is needed before deleteing further :-(
Else be ready for a nice backtrace. Else be ready for a nice backtrace.
Memleak is obvious. Memleak is obvious.
@ -128,7 +128,7 @@ void KbfxSpinx::createRMenu()
m_menuWidget = new KbfxSpinxMenuWidget ( m_menu,"KbfxSpinxMenu" ); m_menuWidget = new KbfxSpinxMenuWidget ( m_menu,"KbfxSpinxMenu" );
m_menu->addItem ( m_menuWidget,0 ); m_menu->addItem ( m_menuWidget,0 );
kbfxBtn->show(); kbfxBtn->show();
kbfxBtn->repaint(); kbfxBtn->tqrepaint();
menuPosition(); menuPosition();
} }
@ -151,7 +151,7 @@ void KbfxSpinx::ToolTip ()
KbfxToolTip *tooltip = new KbfxToolTip (); KbfxToolTip *tooltip = new KbfxToolTip ();
QPoint xpoint = ( this->mapToGlobal ( QPoint ( 0, 0 ) ) ); TQPoint xpoint = ( this->mapToGlobal ( TQPoint ( 0, 0 ) ) );
int popx = xpoint.x (); int popx = xpoint.x ();
int popy = xpoint.y (); int popy = xpoint.y ();
@ -172,8 +172,8 @@ void KbfxSpinx::ToolTip ()
popx -= tooltip->width(); popx -= tooltip->width();
} }
connect ( kbfxBtn, SIGNAL ( leave () ), tooltip, SLOT ( hideToolTip () ) ); connect ( kbfxBtn, TQT_SIGNAL ( leave () ), tooltip, TQT_SLOT ( hideToolTip () ) );
connect ( kbfxBtn, SIGNAL ( clicked () ), tooltip, SLOT ( hideToolTip () ) ); connect ( kbfxBtn, TQT_SIGNAL ( clicked () ), tooltip, TQT_SLOT ( hideToolTip () ) );
tooltip->setStartPos ( popx, popy ); tooltip->setStartPos ( popx, popy );
tooltip->show (); tooltip->show ();
} }
@ -186,40 +186,40 @@ void KbfxSpinx::showKmenu()
height of the K-menu height of the K-menu
**/ **/
this->setCursor ( Qt::BlankCursor ); this->setCursor ( TQt::BlankCursor );
QByteArray data, rdata; TQByteArray data, rdata;
QDataStream arg ( data, IO_WriteOnly ); TQDataStream arg ( data, IO_WriteOnly );
QCString replytype; TQCString replytype;
QPoint _tmp ( QCursor::pos () ); TQPoint _tmp ( TQCursor::pos () );
if ( position () == pTop || position () == pBottom ) if ( position () == pTop || position () == pBottom )
{ {
if ( _tmp.y () > 128 ) if ( _tmp.y () > 128 )
{ {
QCursor::setPos ( this->mapToGlobal ( QPoint ( 0, 0 ) ) ); TQCursor::setPos ( this->mapToGlobal ( TQPoint ( 0, 0 ) ) );
} }
else else
{ {
QCursor::setPos ( this->mapToGlobal ( this->geometry ().bottomLeft () ) ); TQCursor::setPos ( this->mapToGlobal ( this->tqgeometry ().bottomLeft () ) );
} }
} }
else else
{ {
if ( _tmp.x () > 128 ) if ( _tmp.x () > 128 )
{ {
QCursor::setPos ( this->mapToGlobal ( QPoint ( 0, 0 ) ) ); TQCursor::setPos ( this->mapToGlobal ( TQPoint ( 0, 0 ) ) );
} }
else else
{ {
QCursor::setPos ( this->mapToGlobal ( this->geometry ().topRight () ) ); TQCursor::setPos ( this->mapToGlobal ( this->tqgeometry ().topRight () ) );
} }
} }
arg << QPoint ( QCursor::pos () ); arg << TQPoint ( TQCursor::pos () );
if ( !m_dcopClient-> if ( !m_dcopClient->
call ( "kicker", "kicker", "popupKMenu(QPoint)", data, replytype, rdata, call ( "kicker", "kicker", "popupKMenu(TQPoint)", data, replytype, rdata,
FALSE, -1 ) ) FALSE, -1 ) )
{ {
kdWarning () kdWarning ()
@ -227,8 +227,8 @@ void KbfxSpinx::showKmenu()
<< endl; << endl;
} }
this->setCursor ( Qt::ArrowCursor ); this->setCursor ( TQt::ArrowCursor );
QCursor::setPos ( _tmp ); TQCursor::setPos ( _tmp );
if ( !kmenu_timer->isActive ()) if ( !kmenu_timer->isActive ())
kmenu_timer->start(5000,true); kmenu_timer->start(5000,true);
kdDebug () << "Kmenu Called" << endl; kdDebug () << "Kmenu Called" << endl;
@ -287,27 +287,27 @@ int KbfxSpinx::heightForWidth ( int width ) const
return kbfxBtn->height(); return kbfxBtn->height();
} }
QPoint KbfxSpinx::menuPosition() TQPoint KbfxSpinx::menuPosition()
{ {
QPoint xpoint = ( this->mapToGlobal ( QPoint ( 0, 0 ) ) ); TQPoint xpoint = ( this->mapToGlobal ( TQPoint ( 0, 0 ) ) );
int popx = xpoint.x (); int popx = xpoint.x ();
int popy = xpoint.y (); int popy = xpoint.y ();
if ( position () == pTop ) if ( position () == pTop )
{ {
return QPoint ( popx, ( popy + this->height() ) ); return TQPoint ( popx, ( popy + this->height() ) );
} }
if ( position () == pBottom ) if ( position () == pBottom )
{ {
return QPoint ( popx, ( popy - m_menuWidget->height() ) ); return TQPoint ( popx, ( popy - m_menuWidget->height() ) );
} }
if ( position () == pLeft ) if ( position () == pLeft )
{ {
return QPoint ( ( popx + this->width() ), popy ); return TQPoint ( ( popx + this->width() ), popy );
} }
if ( position () == pRight ) if ( position () == pRight )
{ {
return QPoint ( ( popx - m_menuWidget->width() ), popy ); return TQPoint ( ( popx - m_menuWidget->width() ), popy );
} }
return xpoint; // Should never be reached? return xpoint; // Should never be reached?
@ -315,12 +315,12 @@ QPoint KbfxSpinx::menuPosition()
extern "C" extern "C"
{ {
KPanelApplet* init ( QWidget *parent, const QString& configFile ) KPanelApplet* init ( TQWidget *tqparent, const TQString& configFile )
{ {
KGlobal::locale()->insertCatalogue ( "KbfxSpinx" ); KGlobal::locale()->insertCatalogue ( "KbfxSpinx" );
return new KbfxSpinx ( configFile, KPanelApplet::Normal, return new KbfxSpinx ( configFile, KPanelApplet::Normal,
KPanelApplet::About | KPanelApplet::Help | KPanelApplet::Preferences, KPanelApplet::About | KPanelApplet::Help | KPanelApplet::Preferences,
parent, "KbfxSpinx" ); tqparent, "KbfxSpinx" );
} }
} }

@ -26,13 +26,13 @@
#include <config.h> #include <config.h>
#include <qbitmap.h> #include <tqbitmap.h>
#include <qlabel.h> #include <tqlabel.h>
#include <qlcdnumber.h> #include <tqlcdnumber.h>
#include <qpoint.h> #include <tqpoint.h>
#include <qpopupmenu.h> #include <tqpopupmenu.h>
#include <qstring.h> #include <tqstring.h>
#include <qtimer.h> #include <tqtimer.h>
#include <dcopclient.h> #include <dcopclient.h>
#include <dcopobject.h> #include <dcopobject.h>
@ -63,10 +63,11 @@ class KbfxSpinx : public KPanelApplet,public DCOPObject
{ {
K_DCOP K_DCOP
Q_OBJECT Q_OBJECT
// TQ_OBJECT
public: public:
KbfxSpinx ( const QString& configFile, Type t = Normal, int actions = 0, KbfxSpinx ( const TQString& configFile, Type t = Normal, int actions = 0,
QWidget *parent = 0, const char *name = 0 ); TQWidget *tqparent = 0, const char *name = 0 );
~KbfxSpinx(); ~KbfxSpinx();
virtual int widthForHeight ( int height ) const; virtual int widthForHeight ( int height ) const;
@ -74,7 +75,7 @@ class KbfxSpinx : public KPanelApplet,public DCOPObject
virtual void about(); virtual void about();
virtual void help(); virtual void help();
virtual void preferences(); virtual void preferences();
QPoint menuPosition(); TQPoint menuPosition();
void resizeRequest() { emit(updateLayout()); } void resizeRequest() { emit(updateLayout()); }
k_dcop: k_dcop:
ASYNC showMenu(); ASYNC showMenu();
@ -84,7 +85,7 @@ class KbfxSpinx : public KPanelApplet,public DCOPObject
void showKbfxMenu(); void showKbfxMenu();
void showKmenu(); void showKmenu();
void ToolTip(); void ToolTip();
void dirtyReaload(const QString&); void dirtyReaload(const TQString&);
protected: protected:
void createRMenu(); void createRMenu();
@ -96,12 +97,12 @@ class KbfxSpinx : public KPanelApplet,public DCOPObject
KbfxButton * kbfxBtn; KbfxButton * kbfxBtn;
KbfxSpinxMenuWidget * m_menuWidget; KbfxSpinxMenuWidget * m_menuWidget;
KbfxSpinxPopUp * m_menu; KbfxSpinxPopUp * m_menu;
QWidget * m_parent; TQWidget * m_parent;
bool m_kicker_auto_adjust; bool m_kicker_auto_adjust;
bool m_KbfxWatcher; bool m_KbfxWatcher;
static bool m_horizontal_position; static bool m_horizontal_position;
DCOPClient * m_dcopClient; DCOPClient * m_dcopClient;
QTimer * kmenu_timer; TQTimer * kmenu_timer;
KDirWatch * l_watch; KDirWatch * l_watch;
}; };

@ -21,13 +21,13 @@
#include "kbfxspinxmenu.h" #include "kbfxspinxmenu.h"
KbfxSpinxMenuWidget::KbfxSpinxMenuWidget ( QWidget * parent, const char *name, KbfxSpinxMenuWidget::KbfxSpinxMenuWidget ( TQWidget * tqparent, const char *name,
WFlags fl ) : WFlags fl ) :
QWidget ( parent, "MenuWidget", TQWidget ( tqparent, "MenuWidget",
fl | Qt::WStyle_Customize | Qt::WStyle_NoBorder | Qt::WStyle_StaysOnTop ) fl | TQt::WStyle_Customize | TQt::WStyle_NoBorder | TQt::WStyle_StaysOnTop )
{ {
m_parent = parent; m_parent = tqparent;
QString _name=name; TQString _name=name;
init(); init();
} }
@ -45,7 +45,7 @@ KbfxSpinxMenuWidget::init()
{ {
createMask (); createMask ();
QWidget *main = new QWidget ( this ); TQWidget *main = new TQWidget ( this );
m_kbfxSpinxTop = new KbfxSpinxTop ( main ); m_kbfxSpinxTop = new KbfxSpinxTop ( main );
m_toolBarBot = new KbfxSpinxToolBar ( main ); m_toolBarBot = new KbfxSpinxToolBar ( main );
@ -54,11 +54,11 @@ KbfxSpinxMenuWidget::init()
m_kbfxSpinxTop->setMaximumHeight ( ConfigInit ().m_topBar_h ); m_kbfxSpinxTop->setMaximumHeight ( ConfigInit ().m_topBar_h );
m_kbfxSpinxTop->setMinimumHeight ( ConfigInit ().m_topBar_h ); m_kbfxSpinxTop->setMinimumHeight ( ConfigInit ().m_topBar_h );
QWidget *middle = new QWidget ( main ); TQWidget *middle = new TQWidget ( main );
middle->setPalette ( QPalette ( QColor ( 24, 233, 233 ) ) ); middle->setPalette ( TQPalette ( TQColor ( 24, 233, 233 ) ) );
// m_middleFrame = new QHBoxLayout(middle); // m_middleFrame = new TQHBoxLayout(middle);
m_canvasView = new KbfxPlasmaCanvasView ( this ); m_canvasView = new KbfxPlasmaCanvasView ( this );
m_indexView = new KbfxPlasmaIndexView ( this ); m_indexView = new KbfxPlasmaIndexView ( this );
@ -66,28 +66,28 @@ KbfxSpinxMenuWidget::init()
/* Search Box */ /* Search Box */
m_searchTag = new KbfxPixmapLabel ( this, "Search:" ); m_searchTag = new KbfxPixmapLabel ( this, "Search:" );
QToolTip::add( m_searchTag, tr2i18n( "Double click to clear..." ) ); TQToolTip::add( m_searchTag, tr2i18n( "Double click to clear..." ) );
m_searchTag->normalize (); m_searchTag->normalize ();
m_searchTag->move ( ConfigInit ().m_searchBox_x, m_searchTag->move ( ConfigInit ().m_searchBox_x,
ConfigInit ().m_searchBox_y ); ConfigInit ().m_searchBox_y );
QPixmap m_searchPixmap = ( *KbfxPlasmaPixmapProvider::pixmap ( "find" ) ); TQPixmap m_searchPixmap = ( *KbfxPlasmaPixmapProvider::pixmap ( "tqfind" ) );
m_searchTag->setPixmap ( m_searchPixmap ); m_searchTag->setPixmap ( m_searchPixmap );
m_searchTag->resize ( m_searchPixmap.width (), ConfigInit ().m_searchBox_h ); m_searchTag->resize ( m_searchPixmap.width (), ConfigInit ().m_searchBox_h );
m_search = new QLineEdit ( this, "Search BOX" ); m_search = new TQLineEdit ( this, "Search BOX" );
QToolTip::add( m_search, tr2i18n( "Type here to search..." ) ); TQToolTip::add( m_search, tr2i18n( "Type here to search..." ) );
m_search->setFrameShape ( QFrame::NoFrame ); m_search->setFrameShape ( TQFrame::NoFrame );
m_search->setFocusPolicy ( QWidget::StrongFocus ); m_search->setFocusPolicy ( TQ_StrongFocus );
m_search->move ( ConfigInit ().m_searchBox_x + m_searchTag->width (), m_search->move ( ConfigInit ().m_searchBox_x + m_searchTag->width (),
ConfigInit ().m_searchBox_y ); ConfigInit ().m_searchBox_y );
m_search->resize ( ConfigInit ().m_searchBox_w - m_searchTag->width (), m_search->resize ( ConfigInit ().m_searchBox_w - m_searchTag->width (),
ConfigInit ().m_searchBox_h ); ConfigInit ().m_searchBox_h );
connect (m_searchTag, SIGNAL (mouseDoubleClicked ( const ButtonState & )), this, connect (m_searchTag, TQT_SIGNAL (mouseDoubleClicked ( const ButtonState & )), this,
SLOT (search_clear ( const ButtonState & ))); TQT_SLOT (search_clear ( const ButtonState & )));
int frameHeight = ConfigInit().m_listBox_h; int frameHeight = ConfigInit().m_listBox_h;
@ -101,7 +101,7 @@ KbfxSpinxMenuWidget::init()
m_canvasView->setMinimumHeight ( ConfigInit().m_itemView_h ); m_canvasView->setMinimumHeight ( ConfigInit().m_itemView_h );
m_canvasView->setMaximumWidth ( ConfigInit ().m_itemView_w ); m_canvasView->setMaximumWidth ( ConfigInit ().m_itemView_w );
m_canvasView->setMinimumWidth ( ConfigInit ().m_itemView_w ); m_canvasView->setMinimumWidth ( ConfigInit ().m_itemView_w );
m_appCanvas = new QCanvas ( m_canvasView->width (), m_canvasView->height () ); m_appCanvas = new TQCanvas ( m_canvasView->width (), m_canvasView->height () );
m_canvasView->setKbfxCanvas ( m_appCanvas ); m_canvasView->setKbfxCanvas ( m_appCanvas );
m_appCanvas->setDoubleBuffering ( true ); m_appCanvas->setDoubleBuffering ( true );
@ -109,7 +109,7 @@ KbfxSpinxMenuWidget::init()
m_indexView->setMinimumHeight ( frameHeight ); m_indexView->setMinimumHeight ( frameHeight );
m_indexView->setMaximumWidth ( ConfigInit ().m_listBox_w ); m_indexView->setMaximumWidth ( ConfigInit ().m_listBox_w );
m_indexView->setMinimumWidth ( ConfigInit ().m_listBox_w ); m_indexView->setMinimumWidth ( ConfigInit ().m_listBox_w );
m_indexCanvas = new QCanvas ( m_indexView->width (), m_indexView->height () ); m_indexCanvas = new TQCanvas ( m_indexView->width (), m_indexView->height () );
m_indexView->setKbfxCanvas ( m_indexCanvas ); m_indexView->setKbfxCanvas ( m_indexCanvas );
m_indexCanvas->setDoubleBuffering ( true ); m_indexCanvas->setDoubleBuffering ( true );
m_indexView->setView ( m_canvasView ); m_indexView->setView ( m_canvasView );
@ -119,7 +119,7 @@ KbfxSpinxMenuWidget::init()
m_indexLeftView->setMaximumWidth ( ConfigInit ().m_listBox_w ); m_indexLeftView->setMaximumWidth ( ConfigInit ().m_listBox_w );
m_indexLeftView->setMinimumWidth ( ConfigInit ().m_listBox_w ); m_indexLeftView->setMinimumWidth ( ConfigInit ().m_listBox_w );
m_indexLeftCanvas = m_indexLeftCanvas =
new QCanvas ( m_indexLeftView->width (), m_indexLeftView->height () ); new TQCanvas ( m_indexLeftView->width (), m_indexLeftView->height () );
m_indexLeftView->setKbfxCanvas ( m_indexLeftCanvas ); m_indexLeftView->setKbfxCanvas ( m_indexLeftCanvas );
m_indexLeftCanvas->setDoubleBuffering ( true ); m_indexLeftCanvas->setDoubleBuffering ( true );
m_indexLeftView->setView ( m_canvasView ); m_indexLeftView->setView ( m_canvasView );
@ -130,8 +130,8 @@ KbfxSpinxMenuWidget::init()
m_indexLeftView->move ( ConfigInit ().m_listBox_w + ConfigInit ().m_itemView_w, m_indexLeftView->move ( ConfigInit ().m_listBox_w + ConfigInit ().m_itemView_w,
ConfigInit ().m_listBox_y ); ConfigInit ().m_listBox_y );
m_fixedFrame = new QVBoxLayout ( main ); m_fixedFrame = new TQVBoxLayout ( main );
m_fixedFrame->setResizeMode ( QLayout::Minimum ); m_fixedFrame->setResizeMode ( TQLayout::Minimum );
m_fixedFrame->addWidget ( m_kbfxSpinxTop ); m_fixedFrame->addWidget ( m_kbfxSpinxTop );
m_fixedFrame->addWidget ( middle ); m_fixedFrame->addWidget ( middle );
m_fixedFrame->addWidget ( m_toolBarBot ); m_fixedFrame->addWidget ( m_toolBarBot );
@ -143,37 +143,37 @@ KbfxSpinxMenuWidget::init()
loadHistory (); loadHistory ();
connect ( m_indexView, SIGNAL ( loadRequest ( KbfxSignal ) ), m_canvasView, connect ( m_indexView, TQT_SIGNAL ( loadRequest ( KbfxSignal ) ), m_canvasView,
SLOT ( handleLoadRequest ( KbfxSignal ) ) ); TQT_SLOT ( handleLoadRequest ( KbfxSignal ) ) );
connect ( m_indexLeftView, SIGNAL ( loadRequest ( KbfxSignal ) ), m_canvasView, connect ( m_indexLeftView, TQT_SIGNAL ( loadRequest ( KbfxSignal ) ), m_canvasView,
SLOT ( handleLoadRequest ( KbfxSignal ) ) ); TQT_SLOT ( handleLoadRequest ( KbfxSignal ) ) );
connect ( m_canvasView, SIGNAL ( clicked () ), this, SLOT ( hideMenu () ) ); connect ( m_canvasView, TQT_SIGNAL ( clicked () ), this, TQT_SLOT ( hideMenu () ) );
connect ( m_search, SIGNAL ( textChanged ( const QString & ) ), m_canvasView, connect ( m_search, TQT_SIGNAL ( textChanged ( const TQString & ) ), m_canvasView,
SLOT ( search ( const QString & ) ) ); TQT_SLOT ( search ( const TQString & ) ) );
connect ( m_indexView, connect ( m_indexView,
SIGNAL ( pluginRequest ( QString, KbfxPlasmaCanvasView * ) ), TQT_SIGNAL ( pluginRequest ( TQString, KbfxPlasmaCanvasView * ) ),
m_indexView, SLOT ( loadPlugin ( QString, KbfxPlasmaCanvasView * ) ) ); m_indexView, TQT_SLOT ( loadPlugin ( TQString, KbfxPlasmaCanvasView * ) ) );
connect ( m_indexLeftView, connect ( m_indexLeftView,
SIGNAL ( pluginRequest ( QString, KbfxPlasmaCanvasView * ) ), TQT_SIGNAL ( pluginRequest ( TQString, KbfxPlasmaCanvasView * ) ),
m_indexLeftView, m_indexLeftView,
SLOT ( loadPlugin ( QString, KbfxPlasmaCanvasView * ) ) ); TQT_SLOT ( loadPlugin ( TQString, KbfxPlasmaCanvasView * ) ) );
connect ( m_indexView, connect ( m_indexView,
SIGNAL ( clearSelected() ), TQT_SIGNAL ( clearSelected() ),
m_indexLeftView, SLOT ( clearSelection() ) ); m_indexLeftView, TQT_SLOT ( clearSelection() ) );
connect ( m_indexLeftView, connect ( m_indexLeftView,
SIGNAL ( clearSelected() ), TQT_SIGNAL ( clearSelected() ),
m_indexView, m_indexView,
SLOT ( clearSelection() ) ); TQT_SLOT ( clearSelection() ) );
connect (this,SIGNAL(refresh()),m_canvasView,SLOT(reload())); connect (this,TQT_SIGNAL(refresh()),m_canvasView,TQT_SLOT(reload()));
connect (this,SIGNAL(runItem()),m_canvasView,SLOT(execFirst())); connect (this,TQT_SIGNAL(runItem()),m_canvasView,TQT_SLOT(execFirst()));
KbfxSpinxToolButton *logout = new KbfxSpinxToolButton ( m_toolBarBot ); KbfxSpinxToolButton *logout = new KbfxSpinxToolButton ( m_toolBarBot );
KbfxSpinxToolButton *lock = new KbfxSpinxToolButton ( m_toolBarBot ); KbfxSpinxToolButton *lock = new KbfxSpinxToolButton ( m_toolBarBot );
@ -200,8 +200,8 @@ KbfxSpinxMenuWidget::init()
m_toolBarBot->addButton ( logout ); m_toolBarBot->addButton ( logout );
m_toolBarBot->addButton ( lock ); m_toolBarBot->addButton ( lock );
connect ( logout,SIGNAL ( clicked() ),this , SLOT ( hideMenu() ) ); connect ( logout,TQT_SIGNAL ( clicked() ),this , TQT_SLOT ( hideMenu() ) );
connect ( lock ,SIGNAL ( clicked() ),this , SLOT ( hideMenu() ) ); connect ( lock ,TQT_SIGNAL ( clicked() ),this , TQT_SLOT ( hideMenu() ) );
} }
@ -232,36 +232,36 @@ KbfxSpinxMenuWidget::changeHeight (int het)
void void
KbfxSpinxMenuWidget::createMask () KbfxSpinxMenuWidget::createMask ()
{ {
QPixmap maskpng = ( *KbfxPlasmaPixmapProvider::pixmap ( "mask" ) ); TQPixmap tqmaskpng = ( *KbfxPlasmaPixmapProvider::pixmap ( "tqmask" ) );
QImage rawimg = maskpng.convertToImage (); TQImage rawimg = tqmaskpng.convertToImage ();
rawimg = rawimg =
rawimg.smoothScale ( ConfigInit ().m_userMenuWidth, rawimg.smoothScale ( ConfigInit ().m_userMenuWidth,
ConfigInit ().m_userMenuHeight, ConfigInit ().m_userMenuHeight,
QImage::ScaleFree ); TQ_ScaleFree );
maskpng.convertFromImage ( rawimg ); tqmaskpng.convertFromImage ( rawimg );
setMinimumWidth ( maskpng.width () ); setMinimumWidth ( tqmaskpng.width () );
setMinimumHeight ( maskpng.height () ); setMinimumHeight ( tqmaskpng.height () );
// setMaximumWidth ( maskpng.width () ); // setMaximumWidth ( tqmaskpng.width () );
// setMaximumHeight ( maskpng.height () ); // setMaximumHeight ( tqmaskpng.height () );
if ( !maskpng.mask () ) if ( !tqmaskpng.tqmask () )
if ( rawimg.hasAlphaBuffer () ) if ( rawimg.hasAlphaBuffer () )
{ {
QBitmap bm; TQBitmap bm;
bm = rawimg.createAlphaMask (); bm.convertFromImage(rawimg.createAlphaMask ());
maskpng.setMask ( bm ); tqmaskpng.setMask ( bm );
} }
else else
{ {
QBitmap bm; TQBitmap bm;
bm = rawimg.createHeuristicMask (); bm.convertFromImage(rawimg.createHeuristicMask ());
// maskpng.setMask ( bm ); // tqmaskpng.setMask ( bm );
} }
if ( maskpng.mask () && m_parent ) if ( tqmaskpng.tqmask () && m_parent )
m_parent->setMask ( *maskpng.mask () ); m_parent->setMask ( *tqmaskpng.tqmask () );
} }
void void
@ -271,7 +271,7 @@ KbfxSpinxMenuWidget::resizeContent ()
void void
KbfxSpinxMenuWidget::loadHistory () KbfxSpinxMenuWidget::loadHistory ()
{ {
QStringList::Iterator it; TQStringList::Iterator it;
for ( it = ConfigInit ().m_pluginsLeft.begin (); for ( it = ConfigInit ().m_pluginsLeft.begin ();
it != ConfigInit ().m_pluginsLeft.end (); ++it ) it != ConfigInit ().m_pluginsLeft.end (); ++it )
{ {
@ -294,7 +294,7 @@ KbfxSpinxMenuWidget::enterPressed ()
/* /*
void void
KbfxSpinxMenuWidget::propergateMove (QMouseEvent * me) KbfxSpinxMenuWidget::propergateMove (TQMouseEvent * me)
{ {
} }
*/ */
@ -308,19 +308,19 @@ KbfxSpinxMenuWidget::hideMenu ()
/* /*
void void
KbfxSpinxMenuWidget::mouseMoveEvent (QMouseEvent * me) KbfxSpinxMenuWidget::mouseMoveEvent (TQMouseEvent * me)
{ {
// m_listBox->setFocus(); // m_listBox->setFocus();
} }
*/ */
void void
KbfxSpinxMenuWidget::loadPluginLeft ( QString name ) KbfxSpinxMenuWidget::loadPluginLeft ( TQString name )
{ {
if (name == NULL) { if (name == NULL) {
return; return;
} }
if ( m_loadedListLeft.contains ( name ) <= 0 ) if ( m_loadedListLeft.tqcontains ( name ) <= 0 )
{ {
m_loader = new KbfxPlasmaPluginLoader (); m_loader = new KbfxPlasmaPluginLoader ();
m_stack_R = m_loader->getView ( name ); m_stack_R = m_loader->getView ( name );
@ -342,9 +342,9 @@ KbfxSpinxMenuWidget::loadPluginLeft ( QString name )
} }
void void
KbfxSpinxMenuWidget::loadPluginRight ( QString name ) KbfxSpinxMenuWidget::loadPluginRight ( TQString name )
{ {
if ( m_loadedListRight.contains ( name ) <= 0 ) if ( m_loadedListRight.tqcontains ( name ) <= 0 )
{ {
m_loader = new KbfxPlasmaPluginLoader (); m_loader = new KbfxPlasmaPluginLoader ();
m_stack_R = m_loader->getView ( name ); m_stack_R = m_loader->getView ( name );
@ -367,28 +367,28 @@ if ( m_loadedListRight.contains ( name ) <= 0 )
/* /*
void void
KbfxSpinxMenuWidget::focusInEvent (QFocusEvent * te) KbfxSpinxMenuWidget::focusInEvent (TQFocusEvent * te)
{ {
kdDebug() << "TODO: Handle Focus Event" << endl; kdDebug() << "TODO: Handle Focus Event" << endl;
} }
*/ */
void void
KbfxSpinxMenuWidget::keyPressEvent ( QKeyEvent * e ) KbfxSpinxMenuWidget::keyPressEvent ( TQKeyEvent * e )
{ {
if ( e->key () == Qt::Key_Backspace ) if ( e->key () == TQt::Key_Backspace )
{ {
m_search->backspace (); m_search->backspace ();
return; return;
} }
else if ( e->key () == Qt::Key_Escape ) else if ( e->key () == TQt::Key_Escape )
{ {
hideMenu (); hideMenu ();
return; return;
} }
else if ( e->key() == Qt::Key_Return ) else if ( e->key() == TQt::Key_Return )
{ {
hideMenu (); hideMenu ();
m_canvasView->setFocus (); m_canvasView->setFocus ();
@ -396,77 +396,77 @@ KbfxSpinxMenuWidget::keyPressEvent ( QKeyEvent * e )
return; return;
} }
else if ( e->key () == Qt::Key_Up ) else if ( e->key () == TQt::Key_Up )
{ {
m_search->setFocus (); m_search->setFocus ();
return; return;
} }
else if ( e->key () == Qt::Key_Down ) else if ( e->key () == TQt::Key_Down )
{ {
m_canvasView->setFocus (); m_canvasView->setFocus ();
return; return;
} }
else if ( e->key () == Qt::Key_Control else if ( e->key () == TQt::Key_Control
|| e->key () == Qt::Key_Alt || e->key () == TQt::Key_Alt
|| e->key () == Qt::Key_Pause || e->key () == TQt::Key_Pause
|| e->key () == Qt::Key_Print || e->key () == TQt::Key_Print
|| e->key () == Qt::Key_SysReq || e->key () == TQt::Key_SysReq
|| e->key () == Qt::Key_Meta || e->key () == TQt::Key_Meta
|| e->key () == Qt::Key_CapsLock || e->key () == TQt::Key_CapsLock
|| e->key () == Qt::Key_NumLock || e->key () == TQt::Key_NumLock
|| e->key () == Qt::Key_ScrollLock || e->key () == TQt::Key_ScrollLock
|| e->key () == Qt::Key_F1 || e->key () == TQt::Key_F1
|| e->key () == Qt::Key_F2 || e->key () == TQt::Key_F2
|| e->key () == Qt::Key_F3 || e->key () == TQt::Key_F3
|| e->key () == Qt::Key_F4 || e->key () == TQt::Key_F4
|| e->key () == Qt::Key_F5 || e->key () == TQt::Key_F5
|| e->key () == Qt::Key_F6 || e->key () == TQt::Key_F6
|| e->key () == Qt::Key_F7 || e->key () == TQt::Key_F7
|| e->key () == Qt::Key_F8 || e->key () == TQt::Key_F8
|| e->key () == Qt::Key_F9 || e->key () == TQt::Key_F9
|| e->key () == Qt::Key_F10 || e->key () == TQt::Key_F10
|| e->key () == Qt::Key_F11 || e->key () == TQt::Key_F11
|| e->key () == Qt::Key_F12 || e->key () == TQt::Key_F12
|| e->key () == Qt::Key_F13 || e->key () == TQt::Key_F13
|| e->key () == Qt::Key_F14 || e->key () == TQt::Key_F14
|| e->key () == Qt::Key_F15 || e->key () == TQt::Key_F15
|| e->key () == Qt::Key_F16 || e->key () == TQt::Key_F16
|| e->key () == Qt::Key_F17 || e->key () == TQt::Key_F17
|| e->key () == Qt::Key_F18 || e->key () == TQt::Key_F18
|| e->key () == Qt::Key_F19 || e->key () == TQt::Key_F19
|| e->key () == Qt::Key_F20 || e->key () == TQt::Key_F20
|| e->key () == Qt::Key_Super_L || e->key () == TQt::Key_Super_L
|| e->key () == Qt::Key_Super_R || e->key () == TQt::Key_Super_R
|| e->key () == Qt::Key_Menu || e->key () == TQt::Key_Menu
|| e->key () == Qt::Key_Hyper_L || e->key () == TQt::Key_Hyper_L
|| e->key () == Qt::Key_Hyper_R || e->key () == TQt::Key_Hyper_R
|| e->key () == Qt::Key_Help || e->key () == TQt::Key_Help
|| e->key () == Qt::Key_Back || e->key () == TQt::Key_Back
|| e->key () == Qt::Key_Forward || e->key () == TQt::Key_Forward
|| e->key () == Qt::Key_Stop || e->key () == TQt::Key_Stop
|| e->key () == Qt::Key_Refresh || e->key () == TQt::Key_Refresh
|| e->key () == Qt::Key_VolumeDown || e->key () == TQt::Key_VolumeDown
|| e->key () == Qt::Key_VolumeMute || e->key () == TQt::Key_VolumeMute
|| e->key () == Qt::Key_VolumeUp || e->key () == TQt::Key_VolumeUp
|| e->key () == Qt::Key_BassBoost || e->key () == TQt::Key_BassBoost
|| e->key () == Qt::Key_BassUp || e->key () == TQt::Key_BassUp
|| e->key () == Qt::Key_BassDown || e->key () == TQt::Key_BassDown
|| e->key () == Qt::Key_TrebleUp || e->key () == TQt::Key_TrebleUp
|| e->key () == Qt::Key_TrebleDown || e->key () == TQt::Key_TrebleDown
|| e->key () == Qt::Key_MediaPlay || e->key () == TQt::Key_MediaPlay
|| e->key () == Qt::Key_MediaStop || e->key () == TQt::Key_MediaStop
|| e->key () == Qt::Key_MediaPrev || e->key () == TQt::Key_MediaPrev
|| e->key () == Qt::Key_MediaNext || e->key () == TQt::Key_MediaNext
|| e->key () == Qt::Key_MediaRecord || e->key () == TQt::Key_MediaRecord
|| e->key () == Qt::Key_HomePage || e->key () == TQt::Key_HomePage
|| e->key () == Qt::Key_Favorites || e->key () == TQt::Key_Favorites
|| e->key () == Qt::Key_Search || e->key () == TQt::Key_Search
|| e->key () == Qt::Key_Standby || e->key () == TQt::Key_Standby
|| e->key () == Qt::Key_OpenUrl || e->key () == TQt::Key_OpenUrl
|| e->key () == Qt::Key_LaunchMail || e->key () == TQt::Key_LaunchMail
|| e->key () == Qt::Key_LaunchMedia || e->key () == TQt::Key_LaunchMedia
) )
{ {
hideMenu (); hideMenu ();
@ -475,7 +475,7 @@ KbfxSpinxMenuWidget::keyPressEvent ( QKeyEvent * e )
} }
/* /*
else if ( e->key() == Qt::Key_Alt ) else if ( e->key() == TQt::Key_Alt )
{ {
hideMenu (); hideMenu ();
m_canvasView->setFocus (); m_canvasView->setFocus ();
@ -484,20 +484,20 @@ KbfxSpinxMenuWidget::keyPressEvent ( QKeyEvent * e )
} }
else if ( e->key () == Qt::Key_Tab ) else if ( e->key () == TQt::Key_Tab )
{ {
// m_listBox->setFocus (); // m_listBox->setFocus ();
return; return;
} }
else if ( e->key () >= Qt::Key_0 && e->key () <= Qt::Key_9 ) else if ( e->key () >= TQt::Key_0 && e->key () <= TQt::Key_9 )
{ {
printf ( "%d \n", e->key () ); printf ( "%d \n", e->key () );
emit runItemAt ( e->key () ); emit runItemAt ( e->key () );
return; return;
} }
else if ( e->key () == Qt::Key_Left ) else if ( e->key () == TQt::Key_Left )
{ {
m_canvasView->setFocus (); m_canvasView->setFocus ();
m_canvasView->emulatedKeyPress ( e ); m_canvasView->emulatedKeyPress ( e );

@ -22,19 +22,19 @@
#ifndef KBFX_SPINX_MENU_WIDGET_H #ifndef KBFX_SPINX_MENU_WIDGET_H
#define KBFX_SPINX_MENU_WIDGET_H #define KBFX_SPINX_MENU_WIDGET_H
#include <qapplication.h> #include <tqapplication.h>
#include <qbitmap.h> #include <tqbitmap.h>
#include <qcanvas.h> #include <tqcanvas.h>
#include <qframe.h> #include <tqframe.h>
#include <qhbox.h> #include <tqhbox.h>
#include <qimage.h> #include <tqimage.h>
#include <qlabel.h> #include <tqlabel.h>
#include <qlayout.h> #include <tqlayout.h>
#include <qlineedit.h> #include <tqlineedit.h>
#include <qpixmap.h> #include <tqpixmap.h>
#include <qstringlist.h> #include <tqstringlist.h>
#include <qvbox.h> #include <tqvbox.h>
#include <qwidget.h> #include <tqwidget.h>
#include <kdebug.h> #include <kdebug.h>
#include <klocale.h> #include <klocale.h>
@ -59,24 +59,25 @@
#include "kbfxspinxview.h" #include "kbfxspinxview.h"
class KbfxSpinxMenuWidget:public QWidget class KbfxSpinxMenuWidget:public TQWidget
{ {
Q_OBJECT Q_OBJECT
TQ_OBJECT
public : public :
KbfxSpinxMenuWidget ( QWidget * parent = 0, const char * name = 0,WFlags fl =0 ); KbfxSpinxMenuWidget ( TQWidget * tqparent = 0, const char * name = 0,WFlags fl =0 );
virtual ~KbfxSpinxMenuWidget(); virtual ~KbfxSpinxMenuWidget();
// virtual void mouseMoveEvent(QMouseEvent * me); // virtual void mouseMoveEvent(TQMouseEvent * me);
// virtual void focusInEvent ( QFocusEvent * ) ; // virtual void focusInEvent ( TQFocusEvent * ) ;
virtual void keyPressEvent ( QKeyEvent * e ) ; virtual void keyPressEvent ( TQKeyEvent * e ) ;
void grabEvent ( QKeyEvent * e ) { keyPressEvent ( e );} void grabEvent ( TQKeyEvent * e ) { keyPressEvent ( e );}
void loadHistory(); void loadHistory();
void resizeContent(); void resizeContent();
void reinit(); void reinit();
public slots: public slots:
void hideMenu(); void hideMenu();
// void propergateMove(QMouseEvent * me); // void propergateMove(TQMouseEvent * me);
void loadPluginLeft ( QString name ); void loadPluginLeft ( TQString name );
void loadPluginRight ( QString name ); void loadPluginRight ( TQString name );
void enterPressed(); void enterPressed();
void search_clear ( const ButtonState & ); void search_clear ( const ButtonState & );
// void changeHeight(int h); // void changeHeight(int h);
@ -89,21 +90,21 @@ class KbfxSpinxMenuWidget:public QWidget
private: private:
void init(); void init();
QPoint menuPosition(); TQPoint menuPosition();
void createMask(); void createMask();
KbfxPlasmaCanvasView * m_canvasView; KbfxPlasmaCanvasView * m_canvasView;
// KbfxPlasmaCanvasView * m_indexView; // KbfxPlasmaCanvasView * m_indexView;
QCanvas * m_canvas ; TQCanvas * m_canvas ;
// KbfxPlasmaListBox * m_listBox; // KbfxPlasmaListBox * m_listBox;
KbfxPlasmaPluginLoader * m_loader; KbfxPlasmaPluginLoader * m_loader;
KbfxSpinxTop * m_menuTop; KbfxSpinxTop * m_menuTop;
QString m_loadedListLeft; TQString m_loadedListLeft;
QString m_loadedListRight; TQString m_loadedListRight;
// FIXME: canvasstack is depricated Interface // FIXME: canvasstack is depricated Interface
KbfxPlasmaCanvasStack * m_stack; KbfxPlasmaCanvasStack * m_stack;
KbfxDataStack * m_stack_R; KbfxDataStack * m_stack_R;
QWidget * m_parent; TQWidget * m_parent;
QLineEdit * m_search; TQLineEdit * m_search;
KbfxPixmapLabel * m_searchTag; KbfxPixmapLabel * m_searchTag;
KbfxSpinxToolBar * m_toolBarBot; KbfxSpinxToolBar * m_toolBarBot;
KbfxSpinxToolBar * m_toolBarSide; KbfxSpinxToolBar * m_toolBarSide;
@ -111,11 +112,11 @@ class KbfxSpinxMenuWidget:public QWidget
/* SUPER NEW LAYOUT FIX HERE */ /* SUPER NEW LAYOUT FIX HERE */
QBoxLayout * m_fixedFrame; TQBoxLayout * m_fixedFrame;
QBoxLayout * m_middleFrame; TQBoxLayout * m_middleFrame;
QCanvas * m_appCanvas; TQCanvas * m_appCanvas;
QCanvas * m_indexCanvas; TQCanvas * m_indexCanvas;
QCanvas * m_indexLeftCanvas; TQCanvas * m_indexLeftCanvas;
KbfxPlasmaIndexView * m_indexView; KbfxPlasmaIndexView * m_indexView;

@ -32,7 +32,7 @@
// //
#include "kbfxspinxpopup.h" #include "kbfxspinxpopup.h"
KbfxSpinxPopUp::KbfxSpinxPopUp ( QWidget * parent, const char * name ) :QPopupMenu ( parent,name ) KbfxSpinxPopUp::KbfxSpinxPopUp ( TQWidget * tqparent, const char * name ) :TQPopupMenu ( tqparent,name )
{ {
m_mainItem = 0L; m_mainItem = 0L;
} }
@ -43,14 +43,14 @@ KbfxSpinxPopUp::~KbfxSpinxPopUp()
} }
void void
KbfxSpinxPopUp::keyPressEvent ( QKeyEvent * e ) KbfxSpinxPopUp::keyPressEvent ( TQKeyEvent * e )
{ {
/* /*
if ( e->key() == Qt::Key_Tab ) if ( e->key() == TQt::Key_Tab )
{ {
return ; return ;
} }
if ( e->key() == Qt::Key_Up ) if ( e->key() == TQt::Key_Up )
{ {
m_mainItem->grabEvent ( e ); m_mainItem->grabEvent ( e );
// e->ignore(); // e->ignore();
@ -61,7 +61,7 @@ KbfxSpinxPopUp::keyPressEvent ( QKeyEvent * e )
} }
void void
KbfxSpinxPopUp::addItem ( QWidget * item,int index ) KbfxSpinxPopUp::addItem ( TQWidget * item,int index )
{ {
m_mainItem = ( KbfxSpinxMenuWidget* ) item; m_mainItem = ( KbfxSpinxMenuWidget* ) item;
this->insertItem ( item,index ); this->insertItem ( item,index );

@ -33,7 +33,7 @@
#ifndef KBFX_SPINX_POP_UP_H #ifndef KBFX_SPINX_POP_UP_H
#define KBFX_SPINX_POP_UP_H #define KBFX_SPINX_POP_UP_H
#include <qpopupmenu.h> #include <tqpopupmenu.h>
#include "kbfxspinxmenu.h" #include "kbfxspinxmenu.h"
@ -41,16 +41,17 @@
/** /**
@author Siraj Razick <sirajr@gmail.com> @author Siraj Razick <sirajr@gmail.com>
*/ */
class KbfxSpinxPopUp : public QPopupMenu class KbfxSpinxPopUp : public TQPopupMenu
{ {
Q_OBJECT Q_OBJECT
TQ_OBJECT
public: public:
KbfxSpinxPopUp ( QWidget * parent = 0, const char * name = 0 ) ; KbfxSpinxPopUp ( TQWidget * tqparent = 0, const char * name = 0 ) ;
~KbfxSpinxPopUp(); ~KbfxSpinxPopUp();
virtual void keyPressEvent ( QKeyEvent * ke ); virtual void keyPressEvent ( TQKeyEvent * ke );
void addItem ( QWidget * item,int index ); void addItem ( TQWidget * item,int index );
private: private:
KbfxSpinxMenuWidget * m_mainItem; KbfxSpinxMenuWidget * m_mainItem;
}; };

@ -21,17 +21,17 @@
#include "kbfxspinxscrollbar.h" #include "kbfxspinxscrollbar.h"
KbfxSpinxScrollBar::KbfxSpinxScrollBar ( QWidget * parent, const char *name, int type ) : KbfxSpinxScrollBar::KbfxSpinxScrollBar ( TQWidget * tqparent, const char *name, int type ) :
QWidget ( parent, name ) TQWidget ( tqparent, name )
{ {
if (type == 0){ if (type == 0){
m_normal = ( *KbfxPlasmaPixmapProvider::pixmap ( "scrollnormal" ) ); m_normal = ( *KbfxPlasmaPixmapProvider::pixmap ( "scrollnormal" ) );
} else { } else {
m_normal = ( *KbfxPlasmaPixmapProvider::pixmap ( "scrollnormalbot" ) ); m_normal = ( *KbfxPlasmaPixmapProvider::pixmap ( "scrollnormalbot" ) );
} }
QImage _tmp_img = m_normal.convertToImage(); TQImage _tmp_img = m_normal.convertToImage();
_tmp_img = _tmp_img.smoothScale ( ConfigInit().m_itemView_w, m_normal.height (),QImage::ScaleFree ); _tmp_img = _tmp_img.smoothScale ( ConfigInit().m_itemView_w, m_normal.height (),TQ_ScaleFree );
m_normal = QPixmap ( _tmp_img ); m_normal = TQPixmap ( _tmp_img );
this->resize ( m_normal.width (), m_normal.height () ); this->resize ( m_normal.width (), m_normal.height () );
@ -41,10 +41,10 @@ KbfxSpinxScrollBar::KbfxSpinxScrollBar ( QWidget * parent, const char *name, int
h = this->height () / 2; h = this->height () / 2;
_x += ( this->width () - w ) / 2; _x += ( this->width () - w ) / 2;
_y += ( this->height () - h ) / 2; _y += ( this->height () - h ) / 2;
m_triAngle = QPointArray ( 3 ); m_triAngle = TQPointArray ( 3 );
m_dir = DOWN; m_dir = DOWN;
m_timer = new QTimer ( this,"ScrollTimer" ); m_timer = new TQTimer ( this,"ScrollTimer" );
connect ( m_timer,SIGNAL ( timeout() ),this,SLOT ( timeoutslot() ) ); connect ( m_timer,TQT_SIGNAL ( timeout() ),this,TQT_SLOT ( timeoutslot() ) );
m_pressed = false; m_pressed = false;
} }
@ -53,18 +53,18 @@ KbfxSpinxScrollBar::~KbfxSpinxScrollBar ()
{} {}
void void
KbfxSpinxScrollBar::paintEvent ( QPaintEvent * pe ) KbfxSpinxScrollBar::paintEvent ( TQPaintEvent * pe )
{ {
QRect r = pe->rect(); TQRect r = pe->rect();
QPainter p; TQPainter p;
p.begin ( this ); p.begin ( this );
p.drawPixmap ( QRect ( 0, 0, m_normal.width (), m_normal.height () ), p.drawPixmap ( TQRect ( 0, 0, m_normal.width (), m_normal.height () ),
m_normal ); m_normal );
p.setPen ( QColor ( 255,255,255 ) ); p.setPen ( TQColor ( 255,255,255 ) );
if ( m_pressed == false ) if ( m_pressed == false )
p.setBrush ( QColor ( 255,255,255 ) ); p.setBrush ( TQColor ( 255,255,255 ) );
else else
p.setBrush ( QColor ( 0,0,0 ) ); p.setBrush ( TQColor ( 0,0,0 ) );
p.drawPolygon ( m_triAngle ); p.drawPolygon ( m_triAngle );
p.end (); p.end ();
@ -92,7 +92,7 @@ KbfxSpinxScrollBar::setType ( Direction dir )
void void
KbfxSpinxScrollBar::mousePressEvent ( QMouseEvent * me ) KbfxSpinxScrollBar::mousePressEvent ( TQMouseEvent * me )
{ {
me = me; me = me;
m_pressed = true; m_pressed = true;
@ -101,7 +101,7 @@ KbfxSpinxScrollBar::mousePressEvent ( QMouseEvent * me )
} }
void void
KbfxSpinxScrollBar::mouseReleaseEvent ( QMouseEvent * me ) KbfxSpinxScrollBar::mouseReleaseEvent ( TQMouseEvent * me )
{ {
me = me; me = me;
m_pressed = false; m_pressed = false;
@ -111,7 +111,7 @@ KbfxSpinxScrollBar::mouseReleaseEvent ( QMouseEvent * me )
void void
KbfxSpinxScrollBar::enterEvent ( QEvent * e ) KbfxSpinxScrollBar::enterEvent ( TQEvent * e )
{ {
e = e; e = e;
m_pressed = true; m_pressed = true;
@ -120,7 +120,7 @@ KbfxSpinxScrollBar::enterEvent ( QEvent * e )
} }
void void
KbfxSpinxScrollBar::leaveEvent ( QEvent *e ) KbfxSpinxScrollBar::leaveEvent ( TQEvent *e )
{ {
e =e ; e =e ;
m_pressed = false; m_pressed = false;

@ -22,31 +22,32 @@
#ifndef KBFX_SPINX_SCROLL_BAR_H #ifndef KBFX_SPINX_SCROLL_BAR_H
#define KBFX_SPINX_SCROLL_BAR_H #define KBFX_SPINX_SCROLL_BAR_H
#include <qimage.h> #include <tqimage.h>
#include <qpainter.h> #include <tqpainter.h>
#include <qpixmap.h> #include <tqpixmap.h>
#include <qpointarray.h> #include <tqpointarray.h>
#include <qtimer.h> #include <tqtimer.h>
#include <qwidget.h> #include <tqwidget.h>
#include <kbfxplasmapixmapprovider.h> #include <kbfxplasmapixmapprovider.h>
class QWidget; class TQWidget;
class KbfxSpinxScrollBar:public QWidget class KbfxSpinxScrollBar:public TQWidget
{ {
Q_OBJECT Q_OBJECT
TQ_OBJECT
public: public:
typedef enum {UP,DOWN,LEFT,RIGHT} Direction; typedef enum {UP,DOWN,LEFT,RIGHT} Direction;
KbfxSpinxScrollBar ( QWidget * parent = 0,const char * name = 0,int type = 0 ); KbfxSpinxScrollBar ( TQWidget * tqparent = 0,const char * name = 0,int type = 0 );
~KbfxSpinxScrollBar(); ~KbfxSpinxScrollBar();
virtual void paintEvent ( QPaintEvent * ev ); virtual void paintEvent ( TQPaintEvent * ev );
virtual void mousePressEvent ( QMouseEvent * me ); virtual void mousePressEvent ( TQMouseEvent * me );
virtual void mouseReleaseEvent ( QMouseEvent * me ); virtual void mouseReleaseEvent ( TQMouseEvent * me );
virtual void enterEvent ( QEvent * e ); virtual void enterEvent ( TQEvent * e );
virtual void leaveEvent ( QEvent * e ); virtual void leaveEvent ( TQEvent * e );
void setType ( Direction dir ); void setType ( Direction dir );
public slots: public slots:
void timeoutslot(); void timeoutslot();
@ -57,12 +58,12 @@ class KbfxSpinxScrollBar:public QWidget
void scroll ( int , int ); void scroll ( int , int );
private: private:
QPixmap m_normal; TQPixmap m_normal;
QPixmap m_hover; TQPixmap m_hover;
QPixmap m_presseod; TQPixmap m_presseod;
QPointArray m_triAngle; TQPointArray m_triAngle;
Direction m_dir; Direction m_dir;
QTimer * m_timer; TQTimer * m_timer;
bool m_pressed; bool m_pressed;

@ -21,7 +21,7 @@
#include "kbfxspinxtoolbar.h" #include "kbfxspinxtoolbar.h"
KbfxSpinxToolBar::KbfxSpinxToolBar ( QWidget * parent , const char * name , WFlags l ) :QWidget ( parent,name,l ) KbfxSpinxToolBar::KbfxSpinxToolBar ( TQWidget * tqparent , const char * name , WFlags l ) :TQWidget ( tqparent,name,l )
{ {
_y = 0; _y = 0;
@ -35,7 +35,7 @@ KbfxSpinxToolBar::~KbfxSpinxToolBar()
{} {}
void void
KbfxSpinxToolBar::setSize ( QSize size ) KbfxSpinxToolBar::setSize ( TQSize size )
{ {
this->resize ( size ); this->resize ( size );
_x = size.width(); _x = size.width();
@ -54,12 +54,12 @@ void KbfxSpinxToolBar::addButton ( KbfxSpinxToolButton * btn )
btn->update(); btn->update();
} }
void KbfxSpinxToolBar::paintEvent ( QPaintEvent * pe ) void KbfxSpinxToolBar::paintEvent ( TQPaintEvent * pe )
{ {
pe = pe ; pe = pe ;
QPainter p; TQPainter p;
p.begin ( this ); p.begin ( this );
p.drawPixmap ( QRect ( 0,0,ConfigInit().m_botBar_w,ConfigInit().m_botBar_h ),m_bg ); p.drawPixmap ( TQRect ( 0,0,ConfigInit().m_botBar_w,ConfigInit().m_botBar_h ),m_bg );
p.end(); p.end();
} }

@ -22,34 +22,35 @@
#ifndef KBFX_SPINX_TOOL_BAR_H #ifndef KBFX_SPINX_TOOL_BAR_H
#define KBFX_SPINX_TOOL_BAR_H #define KBFX_SPINX_TOOL_BAR_H
#include <qpainter.h> #include <tqpainter.h>
#include <qpixmap.h> #include <tqpixmap.h>
#include <qstring.h> #include <tqstring.h>
#include <qwidget.h> #include <tqwidget.h>
#include <kbfxconfig.h> #include <kbfxconfig.h>
#include <kbfxplasmapixmapprovider.h> #include <kbfxplasmapixmapprovider.h>
#include "kbfxspinxtoolbutton.h" #include "kbfxspinxtoolbutton.h"
class KbfxSpinxToolBar:public QWidget class KbfxSpinxToolBar:public TQWidget
{ {
Q_OBJECT Q_OBJECT
TQ_OBJECT
public: public:
KbfxSpinxToolBar ( QWidget * parent = 0, const char * name = 0, WFlags f = 0 ); KbfxSpinxToolBar ( TQWidget * tqparent = 0, const char * name = 0, WFlags f = 0 );
virtual ~KbfxSpinxToolBar(); virtual ~KbfxSpinxToolBar();
virtual void paintEvent ( QPaintEvent * pe ); virtual void paintEvent ( TQPaintEvent * pe );
void addButton ( KbfxSpinxToolButton * btn ); void addButton ( KbfxSpinxToolButton * btn );
void setSize ( QSize s ); void setSize ( TQSize s );
private: private:
int _x; int _x;
int _y; int _y;
int m_buttonWidth; int m_buttonWidth;
int m_buttonHeight; int m_buttonHeight;
QPixmap m_bg; TQPixmap m_bg;
}; };

@ -21,14 +21,14 @@
#include "kbfxspinxtoolbutton.h" #include "kbfxspinxtoolbutton.h"
KbfxSpinxToolButton::KbfxSpinxToolButton ( QWidget * parent , const char * name ) :QLabel ( parent,name,Qt::WStaticContents | Qt::WNoAutoErase |Qt::WPaintDesktop ) KbfxSpinxToolButton::KbfxSpinxToolButton ( TQWidget * tqparent , const char * name ) :TQLabel ( tqparent,name,TQt::WStaticContents | TQt::WNoAutoErase |TQt::WPaintDesktop )
{ {
m_dataSource = 0; m_dataSource = 0;
m_dataGroup = 0; m_dataGroup = 0;
m_fadeTime = ConfigInit().m_fadeTime; m_fadeTime = ConfigInit().m_fadeTime;
fade_timer = new QTimer ( this,"Fade Timer" ); fade_timer = new TQTimer ( this,"Fade Timer" );
connect ( fade_timer,SIGNAL ( timeout() ),this,SLOT ( fade() ) ); connect ( fade_timer,TQT_SIGNAL ( timeout() ),this,TQT_SLOT ( fade() ) );
} }
@ -43,8 +43,8 @@ void KbfxSpinxToolButton::fade ( )
} }
else else
{ {
QImage _final = m_fadePix.convertToImage (); TQImage _final = m_fadePix.convertToImage ();
QImage _current = m_current.convertToImage (); TQImage _current = m_current.convertToImage ();
if ( !fade_timer->isActive ()) if ( !fade_timer->isActive ())
{ {
@ -56,43 +56,43 @@ void KbfxSpinxToolButton::fade ( )
m_opacity += 0.1; m_opacity += 0.1;
KImageEffect::blend ( _final, _current, m_opacity); KImageEffect::blend ( _final, _current, m_opacity);
m_current = QPixmap ( _current ); m_current = TQPixmap ( _current );
} }
this->resize ( m_current.size() ); this->resize ( m_current.size() );
this->update(); this->update();
} }
void void
KbfxSpinxToolButton::enterEvent ( QEvent * e ) KbfxSpinxToolButton::enterEvent ( TQEvent * e )
{ {
e = e; e = e;
m_fadePix = m_hover; m_fadePix = m_hover;
fade(); fade();
this->setCursor ( QCursor ( Qt::PointingHandCursor ) ); this->setCursor ( TQCursor ( TQt::PointingHandCursor ) );
} }
void void
KbfxSpinxToolButton::leaveEvent ( QEvent * e ) KbfxSpinxToolButton::leaveEvent ( TQEvent * e )
{ {
e = e; e = e;
m_fadePix = m_normal; m_fadePix = m_normal;
fade(); fade();
this->setCursor ( QCursor ( Qt::ArrowCursor ) ); this->setCursor ( TQCursor ( TQt::ArrowCursor ) );
} }
void void
KbfxSpinxToolButton::setPixmaps ( QPixmap normal, QPixmap hover ) KbfxSpinxToolButton::setPixmaps ( TQPixmap normal, TQPixmap hover )
{ {
QSize _sizeNormal = normal.size(); TQSize _sizeNormal = normal.size();
QImage _tmpHover = hover.convertToImage (); TQImage _tmpHover = hover.convertToImage ();
_tmpHover = _tmpHover.smoothScale ( _sizeNormal, QImage::ScaleFree ); _tmpHover = _tmpHover.smoothScale ( _sizeNormal, TQ_ScaleFree );
m_normal = normal; m_normal = normal;
m_hover = QPixmap ( _tmpHover ); m_hover = TQPixmap ( _tmpHover );
m_current = m_normal; m_current = m_normal;
resize ( m_current.size () ); resize ( m_current.size () );
this->repaint(); this->tqrepaint();
this->update(); this->update();
} }
@ -106,26 +106,26 @@ KbfxSpinxToolButton::setDataSource ( KbfxDataSource * src )
m_dataSource = new KbfxDataSource(); m_dataSource = new KbfxDataSource();
*m_dataSource = *src; // copy *m_dataSource = *src; // copy
KIconLoader *iconload = KGlobal::iconLoader (); KIconLoader *iconload = KGlobal::iconLoader ();
QString m_iconPath = iconload->iconPath ( m_icon, KIcon::Desktop, false ); TQString m_iconPath = iconload->iconPath ( m_icon, KIcon::Desktop, false );
m_iconPixmap = QPixmap ( m_iconPath ); m_iconPixmap = TQPixmap ( m_iconPath );
} }
void void
KbfxSpinxToolButton::paintEvent ( QPaintEvent * e ) KbfxSpinxToolButton::paintEvent ( TQPaintEvent * e )
{ {
QRect r = e->rect(); TQRect r = e->rect();
QPainter p; TQPainter p;
QPixmap buffer ( m_current.size() ); TQPixmap buffer ( m_current.size() );
buffer.fill(); buffer.fill();
p.begin ( this ); p.begin ( this );
p.setPen ( QColor ( 255,255,255 ) ); p.setPen ( TQColor ( 255,255,255 ) );
p.drawPixmap ( QRect ( 0, 0, m_current.width(), m_current.height() ), m_current ); p.drawPixmap ( TQRect ( 0, 0, m_current.width(), m_current.height() ), m_current );
p.end(); p.end();
} }
void void
KbfxSpinxToolButton::mouseReleaseEvent ( QMouseEvent * me ) KbfxSpinxToolButton::mouseReleaseEvent ( TQMouseEvent * me )
{ {
me = me; me = me;
if ( m_dataSource == 0 ) if ( m_dataSource == 0 )

@ -22,14 +22,14 @@
#ifndef KBFX_SPINX_TOOL_BUTTON_H #ifndef KBFX_SPINX_TOOL_BUTTON_H
#define KBFX_SPINX_TOOL_BUTTON_H #define KBFX_SPINX_TOOL_BUTTON_H
#include <qcursor.h> #include <tqcursor.h>
#include <qimage.h> #include <tqimage.h>
#include <qlabel.h> #include <tqlabel.h>
#include <qpainter.h> #include <tqpainter.h>
#include <qpixmap.h> #include <tqpixmap.h>
#include <qtimer.h> #include <tqtimer.h>
#include <qtoolbutton.h> #include <tqtoolbutton.h>
#include <qwidget.h> #include <tqwidget.h>
#include <kiconloader.h> #include <kiconloader.h>
#include <kimageeffect.h> #include <kimageeffect.h>
@ -40,30 +40,31 @@
#include <kbfxdatasource.h> #include <kbfxdatasource.h>
#include <kbfxplasmapixmapprovider.h> #include <kbfxplasmapixmapprovider.h>
class KbfxSpinxToolButton:public QLabel class KbfxSpinxToolButton:public TQLabel
{ {
Q_OBJECT Q_OBJECT
TQ_OBJECT
public: public:
typedef enum{SINGLE=0,EXPANDABLE} ButtonType; typedef enum{SINGLE=0,EXPANDABLE} ButtonType;
KbfxSpinxToolButton ( QWidget * parent = 0, const char * name = 0 ); KbfxSpinxToolButton ( TQWidget * tqparent = 0, const char * name = 0 );
virtual ~KbfxSpinxToolButton(); virtual ~KbfxSpinxToolButton();
virtual void paintEvent ( QPaintEvent * pe ); virtual void paintEvent ( TQPaintEvent * pe );
virtual void enterEvent ( QEvent * e ); virtual void enterEvent ( TQEvent * e );
virtual void leaveEvent ( QEvent * l ); virtual void leaveEvent ( TQEvent * l );
virtual void mouseReleaseEvent ( QMouseEvent * me ); virtual void mouseReleaseEvent ( TQMouseEvent * me );
/* /*
virtual void mousePressEvent(QMouseEvent * me); virtual void mousePressEvent(TQMouseEvent * me);
*/ */
void setDataSource ( KbfxDataSource * src ); void setDataSource ( KbfxDataSource * src );
// void setDataGroup(KbfxDataGroup * gsrc); // void setDataGroup(KbfxDataGroup * gsrc);
void setName ( QString name ) {m_name =name;} void setName ( TQString name ) {m_name =name;}
void setExec ( QString cmd ) { m_exe = cmd;} void setExec ( TQString cmd ) { m_exe = cmd;}
void setType ( KbfxSpinxToolButton::ButtonType type ) { m_type = type;} void setType ( KbfxSpinxToolButton::ButtonType type ) { m_type = type;}
void setIcon ( QString path ); void setIcon ( TQString path );
void setPixmaps ( QPixmap , QPixmap ); void setPixmaps ( TQPixmap , TQPixmap );
public slots: public slots:
void fade(); void fade();
@ -71,23 +72,23 @@ class KbfxSpinxToolButton:public QLabel
signals: signals:
void clicked(); void clicked();
private: private:
QString m_name; TQString m_name;
QString m_exe; TQString m_exe;
QString m_icon; TQString m_icon;
QString m_tooltip; TQString m_tooltip;
QPixmap m_normal; TQPixmap m_normal;
QPixmap m_pressed; TQPixmap m_pressed;
QPixmap m_hover; TQPixmap m_hover;
QPixmap m_current; TQPixmap m_current;
QPixmap m_iconPixmap; TQPixmap m_iconPixmap;
KbfxDataSource * m_dataSource; KbfxDataSource * m_dataSource;
KbfxDataGroup * m_dataGroup; KbfxDataGroup * m_dataGroup;
ButtonType m_type; ButtonType m_type;
bool m_statePressed; bool m_statePressed;
QTimer * fade_timer; TQTimer * fade_timer;
float m_opacity; float m_opacity;
QPixmap m_fadePix; TQPixmap m_fadePix;
int m_fadeTime; int m_fadeTime;
}; };

@ -21,7 +21,7 @@
#include "kbfxspinxtop.h" #include "kbfxspinxtop.h"
KbfxSpinxTop::KbfxSpinxTop ( QWidget * parent,const char * name ) :QWidget ( parent,name,Qt::WNoAutoErase | WStaticContents | Qt::WPaintClever | Qt::WNoAutoErase ) KbfxSpinxTop::KbfxSpinxTop ( TQWidget * tqparent,const char * name ) :TQWidget ( tqparent,name,TQt::WNoAutoErase | WStaticContents | TQt::WPaintClever | TQt::WNoAutoErase )
{ {
m_background = ( *KbfxPlasmaPixmapProvider::pixmap ( "topbg" ) ); m_background = ( *KbfxPlasmaPixmapProvider::pixmap ( "topbg" ) );
@ -39,7 +39,7 @@ KbfxSpinxTop::~KbfxSpinxTop()
{} {}
void void
KbfxSpinxTop::mousePressEvent ( QMouseEvent * e ) KbfxSpinxTop::mousePressEvent ( TQMouseEvent * e )
{ {
e = e; e = e;
emit sizeChange ( 10 ); emit sizeChange ( 10 );
@ -51,23 +51,23 @@ KbfxSpinxTop::createDudeBox()
m_dudeBox = ( *KbfxPlasmaPixmapProvider::pixmap ( "dudebox" ) ); m_dudeBox = ( *KbfxPlasmaPixmapProvider::pixmap ( "dudebox" ) );
// int padding = ((m_dudeBox.height()-m_faceIcon.height()))/2; // int padding = ((m_dudeBox.height()-m_faceIcon.height()))/2;
QPainter p; TQPainter p;
p.begin ( &m_dudeBox ); p.begin ( &m_dudeBox );
// p.drawPixmap(QRect(padding,padding,m_faceIcon.width(),m_faceIcon.height()),m_faceIcon); // p.drawPixmap(TQRect(padding,padding,m_faceIcon.width(),m_faceIcon.height()),m_faceIcon);
p.drawPixmap ( QRect ( ConfigInit().m_faceIconX,ConfigInit().m_faceIconY,ConfigInit().m_faceIconW,ConfigInit().m_faceIconH ),m_faceIcon ); p.drawPixmap ( TQRect ( ConfigInit().m_faceIconX,ConfigInit().m_faceIconY,ConfigInit().m_faceIconW,ConfigInit().m_faceIconH ),m_faceIcon );
p.end(); p.end();
} }
QString TQString
KbfxSpinxTop::getUserName () KbfxSpinxTop::getUserName ()
{ {
KUser *user = new KUser (); KUser *user = new KUser ();
QString logInName ( user->fullName () ); TQString logInName ( user->fullName () );
// Nookie says some might find it discriminating... We don't want that. // Nookie says some might find it discriminating... We don't want that.
if ( logInName == "root" ) if ( logInName == "root" )
logInName = QString ( "Administrator" ); logInName = TQString ( "Administrator" );
delete user; delete user;
return logInName.upper (); return logInName.upper ();
} }
@ -77,36 +77,36 @@ KbfxSpinxTop::getUserName ()
void void
KbfxSpinxTop::loadFaceIcon() KbfxSpinxTop::loadFaceIcon()
{ {
QImage UserImage ( ConfigInit().m_SpinxDudeImage ); TQImage UserImage ( ConfigInit().m_SpinxDudeImage );
UserImage = UserImage.smoothScale ( 48, 48 ); UserImage = UserImage.smoothScale ( 48, 48 );
m_faceIcon = QPixmap ( UserImage ); m_faceIcon = TQPixmap ( UserImage );
} }
void void
KbfxSpinxTop::paintEvent ( QPaintEvent * pe ) KbfxSpinxTop::paintEvent ( TQPaintEvent * pe )
{ {
pe = pe; pe = pe;
QRect * r = new QRect ( 0,0,ConfigInit().m_topBar_w,ConfigInit().m_topBar_h ); TQRect * r = new TQRect ( 0,0,ConfigInit().m_topBar_w,ConfigInit().m_topBar_h );
m_pixmapbuff = new QPixmap(); m_pixmapbuff = new TQPixmap();
m_pixmapbuff->resize ( r->size() ); m_pixmapbuff->resize ( r->size() );
m_pixmapbuff->fill ( this, r->topLeft() ); m_pixmapbuff->fill ( this, r->topLeft() );
QPainter p; TQPainter p;
p.begin ( m_pixmapbuff,this ); p.tqbegin ( m_pixmapbuff,this );
// Draw commands are here // Draw commands are here
p.drawPixmap ( *r,m_background ); p.drawPixmap ( *r,m_background );
p.setPen ( QColor ( ConfigInit().m_userNameColor ) ); p.setPen ( TQColor ( ConfigInit().m_userNameColor ) );
p.drawPixmap ( QRect ( ConfigInit().m_facePos_x,ConfigInit().m_facePos_y,m_dudeBox.width(),m_dudeBox.height() ),m_dudeBox ); p.drawPixmap ( TQRect ( ConfigInit().m_facePos_x,ConfigInit().m_facePos_y,m_dudeBox.width(),m_dudeBox.height() ),m_dudeBox );
if ( !ConfigInit().m_faceBoxHideText ) if ( !ConfigInit().m_faceBoxHideText )
{ {
QFont * _font = new QFont(ConfigInit().m_userNameFont); TQFont * _font = new TQFont(ConfigInit().m_userNameFont);
p.setFont ( *_font ); p.setFont ( *_font );
// p.setPen(QColor(199,187,206)); // p.setPen(TQColor(199,187,206));
// p.drawText(ConfigInit().m_userNamePos_x+1,ConfigInit().m_userNamePos_y+2,m_userName); // p.drawText(ConfigInit().m_userNamePos_x+1,ConfigInit().m_userNamePos_y+2,m_userName);
p.setPen ( QColor ( ConfigInit().m_userNameColor ) ); p.setPen ( TQColor ( ConfigInit().m_userNameColor ) );
p.drawText ( ConfigInit().m_userNamePos_x,ConfigInit().m_userNamePos_y,m_userName ); p.drawText ( ConfigInit().m_userNamePos_x,ConfigInit().m_userNamePos_y,m_userName );
delete _font; delete _font;
} }

@ -22,10 +22,10 @@
#ifndef KBFX_SPINX_TOP_H #ifndef KBFX_SPINX_TOP_H
#define KBFX_SPINX_TOP_H #define KBFX_SPINX_TOP_H
#include <qimage.h> #include <tqimage.h>
#include <qpainter.h> #include <tqpainter.h>
#include <qpixmap.h> #include <tqpixmap.h>
#include <qwidget.h> #include <tqwidget.h>
#include <kiconloader.h> #include <kiconloader.h>
#include <klineedit.h> #include <klineedit.h>
@ -34,36 +34,37 @@
#include <kbfxconfig.h> #include <kbfxconfig.h>
#include <kbfxplasmapixmapprovider.h> #include <kbfxplasmapixmapprovider.h>
class KbfxSpinxTop:public QWidget class KbfxSpinxTop:public TQWidget
{ {
Q_OBJECT Q_OBJECT
TQ_OBJECT
public: public:
KbfxSpinxTop ( QWidget * parent = 0,const char * name = 0 ); KbfxSpinxTop ( TQWidget * tqparent = 0,const char * name = 0 );
virtual ~KbfxSpinxTop(); virtual ~KbfxSpinxTop();
virtual void paintEvent ( QPaintEvent * ); virtual void paintEvent ( TQPaintEvent * );
virtual void mousePressEvent ( QMouseEvent * e ) ; virtual void mousePressEvent ( TQMouseEvent * e ) ;
public slots: public slots:
signals: signals:
void textChanged ( QString ); void textChanged ( TQString );
void sizeChange ( int ); void sizeChange ( int );
private: private:
void loadFaceIcon(); void loadFaceIcon();
void createDudeBox(); void createDudeBox();
QString getUserName(); TQString getUserName();
QPixmap m_background; TQPixmap m_background;
QPixmap * m_pixmapbuff; TQPixmap * m_pixmapbuff;
QPixmap m_faceIcon; TQPixmap m_faceIcon;
QPixmap m_dudeBox; TQPixmap m_dudeBox;
QString m_currentTextBuffer; TQString m_currentTextBuffer;
QString m_userName; TQString m_userName;
QPixmap m_iconPixmap; TQPixmap m_iconPixmap;
QTimer * m_fadeTimer; TQTimer * m_fadeTimer;
}; };

@ -21,7 +21,7 @@
#include "kbfxspinxview.h" #include "kbfxspinxview.h"
KbfxSpinxView::KbfxSpinxView ( QWidget * parent , const char * name,WFlags flag ) :QFrame ( parent,name,flag ) KbfxSpinxView::KbfxSpinxView ( TQWidget * tqparent , const char * name,WFlags flag ) :TQFrame ( tqparent,name,flag )
{ {
setMinimumWidth ( 300 ); setMinimumWidth ( 300 );
setMinimumHeight ( 365 ); setMinimumHeight ( 365 );

@ -22,15 +22,16 @@
#ifndef KBFX_SPINX_VIEW_H #ifndef KBFX_SPINX_VIEW_H
#define KBFX_SPINX_VIEW_H #define KBFX_SPINX_VIEW_H
#include <qframe.h> #include <tqframe.h>
class KbfxSpinxView:public QFrame class KbfxSpinxView:public TQFrame
{ {
Q_OBJECT Q_OBJECT
TQ_OBJECT
public: public:
KbfxSpinxView ( QWidget * parent = 0, const char * name = 0, WFlags f = 0 ); KbfxSpinxView ( TQWidget * tqparent = 0, const char * name = 0, WFlags f = 0 );
~KbfxSpinxView(); ~KbfxSpinxView();
public slots: public slots:

@ -23,51 +23,51 @@
#include "kbfxtooltip.h" #include "kbfxtooltip.h"
KbfxToolTip::KbfxToolTip ( QWidget * parent, const char *name, WFlags fl ) : KbfxToolTip::KbfxToolTip ( TQWidget * tqparent, const char *name, WFlags fl ) :
QWidget ( parent, name, TQWidget ( tqparent, name,
fl | WStyle_Customize | WRepaintNoErase | WStyle_NoBorder | fl | WStyle_Customize | WRepaintNoErase | WStyle_NoBorder |
WDestructiveClose | Qt::WPaintDesktop | Qt::WType_Popup | Qt:: WDestructiveClose | TQt::WPaintDesktop | TQt::WType_Popup | TQt::
WPaintClever | Qt::WNoAutoErase | Qt::WResizeNoErase | Qt:: WPaintClever | TQt::WNoAutoErase | TQt::WResizeNoErase | TQt::
WStaticContents | Qt::WNoAutoErase ) WStaticContents | TQt::WNoAutoErase )
{ {
_animate = ConfigInit ().m_ToolTipAnimation; _animate = ConfigInit ().m_ToolTipAnimation;
m_fontTooltipFont = ConfigInit ().m_fontTooltipFont; m_fontTooltipFont = ConfigInit ().m_fontTooltipFont;
logo = ( KbfxPlasmaPixmapProvider::PixmapPathCheck ( ConfigInit().m_SpinxTooltipLogo ) ) ? logo = ( KbfxPlasmaPixmapProvider::PixmapPathCheck ( ConfigInit().m_SpinxTooltipLogo ) ) ?
QImage ( ConfigInit().m_SpinxTooltipLogo ) TQImage ( ConfigInit().m_SpinxTooltipLogo )
: QImage ( ConfigInit().m_SpinxTooltipLogoDefault ); : TQImage ( ConfigInit().m_SpinxTooltipLogoDefault );
tooltip_win = ( KbfxPlasmaPixmapProvider::PixmapPathCheck ( ConfigInit ().m_SpinxTooltipWindow ) ) ? tooltip_win = ( KbfxPlasmaPixmapProvider::PixmapPathCheck ( ConfigInit ().m_SpinxTooltipWindow ) ) ?
QImage ( ConfigInit ().m_SpinxTooltipWindow ) TQImage ( ConfigInit ().m_SpinxTooltipWindow )
: QImage ( ConfigInit ().m_SpinxTooltipWindowDefault ); : TQImage ( ConfigInit ().m_SpinxTooltipWindowDefault );
tooltip_mask = ( KbfxPlasmaPixmapProvider::PixmapPathCheck ( ConfigInit().m_SpinxTooltipMask ) ) ? tooltip_tqmask = ( KbfxPlasmaPixmapProvider::PixmapPathCheck ( ConfigInit().m_SpinxTooltipMask ) ) ?
QImage ( ConfigInit().m_SpinxTooltipMask ) TQImage ( ConfigInit().m_SpinxTooltipMask )
: QImage ( ConfigInit().m_SpinxTooltipMaskDefault ); : TQImage ( ConfigInit().m_SpinxTooltipMaskDefault );
dude_img = ( KbfxPlasmaPixmapProvider::PixmapPathCheck ( ConfigInit ().m_SpinxDudeImage ) ) ? dude_img = ( KbfxPlasmaPixmapProvider::PixmapPathCheck ( ConfigInit ().m_SpinxDudeImage ) ) ?
QImage ( ConfigInit ().m_SpinxDudeImage ) TQImage ( ConfigInit ().m_SpinxDudeImage )
: QImage ( ConfigInit ().m_SpinxDudeImageDefault ); : TQImage ( ConfigInit ().m_SpinxDudeImageDefault );
setUserImage (); setUserImage ();
setBoundBox (); setBoundBox ();
setBackground ( QPixmap () ); setBackground ( TQPixmap () );
setWindow ( QPixmap () ); setWindow ( TQPixmap () );
KbfxPlasmaPixmapProvider::PixmapPathCheck ( ConfigInit ().m_ToolTipAvatar ) ? KbfxPlasmaPixmapProvider::PixmapPathCheck ( ConfigInit ().m_ToolTipAvatar ) ?
setAnimationImage ( ConfigInit ().m_ToolTipAvatar ) setAnimationImage ( ConfigInit ().m_ToolTipAvatar )
: setAnimationImage ( ConfigInit ().m_ToolTipAvatarDefault ); : setAnimationImage ( ConfigInit ().m_ToolTipAvatarDefault );
_hide_timer = new QTimer ( this ); _hide_timer = new TQTimer ( this );
_update_timer = new QTimer ( this ); _update_timer = new TQTimer ( this );
_move_timer = new QTimer ( this ); _move_timer = new TQTimer ( this );
connect ( _hide_timer, SIGNAL ( timeout () ), this, SLOT ( hide () ) ); connect ( _hide_timer, TQT_SIGNAL ( timeout () ), this, TQT_SLOT ( hide () ) );
connect ( _hide_timer, SIGNAL ( timeout () ), _agent, SLOT ( hide () ) ); connect ( _hide_timer, TQT_SIGNAL ( timeout () ), _agent, TQT_SLOT ( hide () ) );
connect ( _update_timer, SIGNAL ( timeout () ), this, SLOT ( logoMove () ) ); connect ( _update_timer, TQT_SIGNAL ( timeout () ), this, TQT_SLOT ( logoMove () ) );
QCursor kbfxCursor; TQCursor kbfxCursor;
kbfxCursor.setShape ( Qt::PointingHandCursor ); kbfxCursor.setShape ( Qt::PointingHandCursor );
this->setCursor ( ( const QCursor ) kbfxCursor ); this->setCursor ( ( const TQCursor ) kbfxCursor );
} }
KbfxToolTip::~KbfxToolTip () KbfxToolTip::~KbfxToolTip ()
@ -81,19 +81,21 @@ KbfxToolTip::~KbfxToolTip ()
} }
void void
KbfxToolTip::setWindow ( QPixmap win ) KbfxToolTip::setWindow ( TQPixmap win )
{ {
QImage m_win_img; TQImage m_win_img;
( win.isNull () ) ? ( win.isNull () ) ?
m_win_img = tooltip_win m_win_img = tooltip_win
: m_win_img = win.convertToImage (); : m_win_img = win.convertToImage ();
m_win_img = m_win_img.smoothScale ( _bg.width (), 13 ); m_win_img = m_win_img.smoothScale ( _bg.width (), 13 );
// _window = new QLabel (this, "", Qt::WStaticContents | Qt::WNoAutoErase); // _window = new TQLabel (this, "", TQt::WStaticContents | TQt::WNoAutoErase);
_window = new QLabel ( this, "" ); _window = new TQLabel ( this, "" );
_window->resize ( _bg.width (), 13 ); _window->resize ( _bg.width (), 13 );
_window->setBackgroundPixmap ( m_win_img ); TQPixmap pm;
pm.convertFromImage(m_win_img);
_window->setBackgroundPixmap ( pm );
if ( _animate ) if ( _animate )
_window->show (); _window->show ();
else else
@ -101,22 +103,22 @@ KbfxToolTip::setWindow ( QPixmap win )
} }
void void
KbfxToolTip::setAnimationImage ( QString path ) KbfxToolTip::setAnimationImage ( TQString path )
{ {
/* /*
_agent = new QLabel (this, "", _agent = new TQLabel (this, "",
Qt::WStaticContents | TQt::WStaticContents |
Qt::WNoAutoErase | Qt::WPaintDesktop); TQt::WNoAutoErase | TQt::WPaintDesktop);
*/ */
_agent = new QLabel ( this,"" ); _agent = new TQLabel ( this,"" );
_agent->resize ( 100, 100 ); _agent->resize ( 100, 100 );
_agent_anim = new QMovie ( path ); _agent_anim = new TQMovie ( path );
QPixmap agent_mask = _agent_anim->framePixmap (); TQPixmap agent_tqmask = _agent_anim->framePixmap ();
_agent->setBackgroundPixmap ( agent_mask ); _agent->setBackgroundPixmap ( agent_tqmask );
if ( agent_mask.mask () ) if ( agent_tqmask.tqmask () )
_agent->setMask ( *agent_mask.mask () ); _agent->setMask ( *agent_tqmask.tqmask () );
_agent->repaint (); _agent->tqrepaint ();
/*FIXME:Need to remove Hard Coded Values */ /*FIXME:Need to remove Hard Coded Values */
_agent->move ( 200, 0 ); _agent->move ( 200, 0 );
@ -129,25 +131,27 @@ KbfxToolTip::setAnimationImage ( QString path )
void void
KbfxToolTip::setBackground ( QPixmap bg ) KbfxToolTip::setBackground ( TQPixmap bg )
{ {
( bg.isNull () ) ? ( bg.isNull () ) ?
_bg = tooltip_mask _bg = tooltip_tqmask
: _bg = bg.convertToImage (); : _bg = bg.convertToImage ();
/* animation check : Auto streatch */ /* animation check : Auto streatch */
if ( _animate ) if ( _animate )
{ {
QImage m_tmp = _bg; TQImage m_tmp = _bg;
_bg = m_tmp.smoothScale ( _bg.width () + 100, _bg.height () ); _bg = m_tmp.smoothScale ( _bg.width () + 100, _bg.height () );
} }
this->setBackgroundPixmap ( _bg ); TQPixmap pm;
pm.convertFromImage(_bg);
this->setBackgroundPixmap ( pm );
QPixmap m_tmp ( _bg ); TQPixmap m_tmp ( _bg );
if ( m_tmp.mask () ) if ( m_tmp.tqmask () )
this->setMask ( ( *m_tmp.mask () ) ); this->setMask ( ( *m_tmp.tqmask () ) );
this->resize ( _bg.width (), _bg.height () ); this->resize ( _bg.width (), _bg.height () );
_maxW = _bg.width (); _maxW = _bg.width ();
} }
@ -172,31 +176,31 @@ KbfxToolTip::setStartPos ( int _x_, int _y_ )
void void
KbfxToolTip::logoMove () KbfxToolTip::logoMove ()
{ {
QPainter p; TQPainter p;
if ( _logo_move_x < _bg.width () - 68 ) if ( _logo_move_x < _bg.width () - 68 )
{ {
_logo_move_x += 1; _logo_move_x += 1;
_window->repaint (); _window->tqrepaint ();
p.begin ( _window ); p.begin ( _window );
p.drawPixmap ( QRect ( _logo_move_x, 0, logo.width (), logo.height () ), p.drawPixmap ( TQRect ( _logo_move_x, 0, logo.width (), logo.height () ),
QPixmap ( logo ) ); TQPixmap ( logo ) );
p.end (); p.end ();
} }
else else
{ {
p.begin ( _window ); p.begin ( _window );
p.drawPixmap ( QRect ( _bg.width () - 68, 0, logo.width (), logo.height () ), p.drawPixmap ( TQRect ( _bg.width () - 68, 0, logo.width (), logo.height () ),
QPixmap ( logo ) ); TQPixmap ( logo ) );
p.end (); p.end ();
} }
QPixmap agent_mask = _agent_anim->framePixmap (); TQPixmap agent_tqmask = _agent_anim->framePixmap ();
_agent->setBackgroundPixmap ( agent_mask ); _agent->setBackgroundPixmap ( agent_tqmask );
if ( agent_mask.mask () ) if ( agent_tqmask.tqmask () )
_agent->setMask ( *agent_mask.mask () ); _agent->setMask ( *agent_tqmask.tqmask () );
_agent->repaint (); _agent->tqrepaint ();
} }
void void
@ -207,19 +211,19 @@ KbfxToolTip::setAnimated ( bool b )
void void
KbfxToolTip::setLabelText ( QString str ) KbfxToolTip::setLabelText ( TQString str )
{ {
_label_text = str; _label_text = str;
} }
void void
KbfxToolTip::setHeadingText ( QString str ) KbfxToolTip::setHeadingText ( TQString str )
{ {
_heading_text = str; _heading_text = str;
} }
void void
KbfxToolTip::setVersionText ( QString str ) KbfxToolTip::setVersionText ( TQString str )
{ {
_version_text = str; _version_text = str;
} }
@ -239,34 +243,34 @@ KbfxToolTip::hideToolTip ()
void void
KbfxToolTip::setUserImage () KbfxToolTip::setUserImage ()
{ {
QImage userimage = dude_img; TQImage userimage = dude_img;
userimage = userimage.smoothScale ( 48, 48 ); userimage = userimage.smoothScale ( 48, 48 );
_dude = QPixmap ( userimage ); _dude = TQPixmap ( userimage );
} }
void void
KbfxToolTip::setBoundBox () KbfxToolTip::setBoundBox ()
{ {
_dude_box = ( KbfxPlasmaPixmapProvider::PixmapPathCheck ( ConfigInit ().m_SpinxTooltipDudebox ) ) ? _dude_box = ( KbfxPlasmaPixmapProvider::PixmapPathCheck ( ConfigInit ().m_SpinxTooltipDudebox ) ) ?
QPixmap ( ConfigInit ().m_SpinxTooltipDudebox ) TQPixmap ( ConfigInit ().m_SpinxTooltipDudebox )
: QPixmap ( ConfigInit ().m_SpinxTooltipDudeboxDefault ); : TQPixmap ( ConfigInit ().m_SpinxTooltipDudeboxDefault );
} }
void void
KbfxToolTip::paintEvent ( QPaintEvent * pe ) KbfxToolTip::paintEvent ( TQPaintEvent * pe )
{ {
const QRect r = pe->rect (); const TQRect r = pe->rect ();
QFont *let = new QFont (m_fontTooltipFont); TQFont *let = new TQFont (m_fontTooltipFont);
QPainter p; TQPainter p;
p.begin ( this ); p.begin ( this );
p.setBackgroundMode ( Qt::TransparentMode ); p.setBackgroundMode ( Qt::TransparentMode );
p.drawPixmap ( QRect ( 7, 16, _dude_box.width (), _dude_box.height () ), p.drawPixmap ( TQRect ( 7, 16, _dude_box.width (), _dude_box.height () ),
_dude_box ); _dude_box );
int _paddingX = ( ( _dude_box.height () - _dude.height () ) / 2 ) + 16; int _paddingX = ( ( _dude_box.height () - _dude.height () ) / 2 ) + 16;
p.drawPixmap ( QRect p.drawPixmap ( TQRect
( _paddingX - ( 55 - 48 ), _paddingX, _dude.width (), ( _paddingX - ( 55 - 48 ), _paddingX, _dude.width (),
_dude.height () ), _dude ); _dude.height () ), _dude );
@ -275,22 +279,22 @@ KbfxToolTip::paintEvent ( QPaintEvent * pe )
else else
{ {
p.drawPixmap ( QRect ( 126, 0, logo.width (), logo.height () ), p.drawPixmap ( TQRect ( 126, 0, logo.width (), logo.height () ),
QPixmap ( QImage (ConfigInit ().m_SpinxTooltipLogo ) ) ); TQPixmap ( TQImage (ConfigInit ().m_SpinxTooltipLogo ) ) );
} }
let->setBold ( TRUE ); let->setBold ( TRUE );
let->setPointSize ( 10 ); let->setPointSize ( 10 );
p.setFont ( *let ); p.setFont ( *let );
p.setPen ( QColor ( 61, 94, 129 ) ); p.setPen ( TQColor ( 61, 94, 129 ) );
p.drawText ( _dude_box.width () + 15, 30, "KBFX" ); p.drawText ( _dude_box.width () + 15, 30, TQString("KBFX") );
p.setPen ( QColor ( 0, 0, 0 ) ); p.setPen ( TQColor ( 0, 0, 0 ) );
let->setBold ( FALSE ); let->setBold ( FALSE );
let->setPointSize ( 8 ); let->setPointSize ( 8 );
p.setFont ( *let ); p.setFont ( *let );
p.drawText ( ( _animate ) ? _dude_box.width () + 50 : _dude_box.width () + 4, p.drawText ( ( _animate ) ? _dude_box.width () + 50 : _dude_box.width () + 4,
_dude_box.height () + 30, QString ( "Version " ).append ( APPLICATION_VERSION ) ); _dude_box.height () + 30, TQString ( "Version " ).append ( APPLICATION_VERSION ) );
p.setPen ( ConfigInit ().m_fontTooltipColor ); p.setPen ( ConfigInit ().m_fontTooltipColor );
let->setBold ( TRUE ); let->setBold ( TRUE );

@ -22,14 +22,14 @@
#ifndef KBFX_TOOL_TIP #ifndef KBFX_TOOL_TIP
#define KBFX_TOOL_TIP #define KBFX_TOOL_TIP
#include <qcursor.h> #include <tqcursor.h>
#include <qimage.h> #include <tqimage.h>
#include <qlabel.h> #include <tqlabel.h>
#include <qmovie.h> #include <tqmovie.h>
#include <qpainter.h> #include <tqpainter.h>
#include <qpixmap.h> #include <tqpixmap.h>
#include <qtimer.h> #include <tqtimer.h>
#include <qwidget.h> #include <tqwidget.h>
#include <kdebug.h> #include <kdebug.h>
#include <kiconloader.h> #include <kiconloader.h>
@ -42,18 +42,19 @@
#include <kbfxplasmapixmapprovider.h> #include <kbfxplasmapixmapprovider.h>
class KbfxToolTip:public QWidget class KbfxToolTip:public TQWidget
{ {
Q_OBJECT Q_OBJECT
TQ_OBJECT
public: public:
KbfxToolTip ( QWidget * parent=0,const char * name=0,WFlags fl=WType_TopLevel ); KbfxToolTip ( TQWidget * tqparent=0,const char * name=0,WFlags fl=WType_TopLevel );
~KbfxToolTip(); ~KbfxToolTip();
void setStartPos ( int x=0, int y=0 ); void setStartPos ( int x=0, int y=0 );
virtual void paintEvent ( QPaintEvent *pe ); virtual void paintEvent ( TQPaintEvent *pe );
void setBackground ( QPixmap bg ); void setBackground ( TQPixmap bg );
void setAnimationImage ( QString path ); void setAnimationImage ( TQString path );
void setWindow ( QPixmap win ); void setWindow ( TQPixmap win );
public slots: public slots:
void hideToolTip(); void hideToolTip();
@ -61,33 +62,33 @@ class KbfxToolTip:public QWidget
void setUserImage(); void setUserImage();
void setBoundBox(); void setBoundBox();
void setAnimated ( bool ); void setAnimated ( bool );
void setLabelText ( QString ); void setLabelText ( TQString );
void setHeadingText ( QString ); void setHeadingText ( TQString );
void setVersionText ( QString ); void setVersionText ( TQString );
private: private:
QTimer * _hide_timer; TQTimer * _hide_timer;
QTimer * _move_timer; TQTimer * _move_timer;
QTimer * _update_timer; TQTimer * _update_timer;
int _x,_y; int _x,_y;
int _maxW; int _maxW;
int _width; int _width;
int _height; int _height;
int _logo_move_x; int _logo_move_x;
QPixmap _dude; TQPixmap _dude;
QPixmap _dude_box; TQPixmap _dude_box;
QImage _bg; TQImage _bg;
QLabel * _window; TQLabel * _window;
QLabel * _agent; TQLabel * _agent;
QMovie * _agent_anim; TQMovie * _agent_anim;
bool _animate; bool _animate;
QString _label_text; TQString _label_text;
QString _heading_text; TQString _heading_text;
QString _version_text; TQString _version_text;
QFont m_fontTooltipFont; TQFont m_fontTooltipFont;
QImage logo; TQImage logo;
QImage tooltip_win; TQImage tooltip_win;
QImage tooltip_mask; TQImage tooltip_tqmask;
QImage dude_img; TQImage dude_img;
}; };
#endif #endif

Loading…
Cancel
Save