summaryrefslogtreecommitdiffstats
path: root/kmid/collectdlg.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kmid/collectdlg.cpp')
-rw-r--r--kmid/collectdlg.cpp72
1 files changed, 36 insertions, 36 deletions
diff --git a/kmid/collectdlg.cpp b/kmid/collectdlg.cpp
index 7b40d0a9..ab476bb6 100644
--- a/kmid/collectdlg.cpp
+++ b/kmid/collectdlg.cpp
@@ -21,9 +21,9 @@
or to Antonio Larrosa, Rio Arnoya, 10 5B, 29006 Malaga, Spain
***************************************************************************/
-#include <qpushbutton.h>
-#include <qlistbox.h>
-#include <qlabel.h>
+#include <tqpushbutton.h>
+#include <tqlistbox.h>
+#include <tqlabel.h>
#include <kapplication.h>
#include <kfiledialog.h>
@@ -38,23 +38,23 @@
#include "songlist.h"
#include "slman.h"
-CollectionDialog::CollectionDialog(SLManager *slm,int selC,QWidget *parent,const char *name) : QDialog(parent,name,TRUE)
+CollectionDialog::CollectionDialog(SLManager *slm,int selC,TQWidget *parent,const char *name) : TQDialog(parent,name,TRUE)
{
setCaption(i18n("Collections Manager"));
ok=new KPushButton(KStdGuiItem::ok(),this);
ok->setGeometry(140,200,100,30);
-connect(ok,SIGNAL(clicked()),SLOT(accept()) );
+connect(ok,TQT_SIGNAL(clicked()),TQT_SLOT(accept()) );
cancel=new KPushButton(KStdGuiItem::cancel(),this);
cancel->setGeometry(250,200,100,30);
-connect(cancel,SIGNAL(clicked()),SLOT(reject()) );
+connect(cancel,TQT_SIGNAL(clicked()),TQT_SLOT(reject()) );
-label=new QLabel(i18n("Available collections:"),this);
+label=new TQLabel(i18n("Available collections:"),this);
label->adjustSize();
label->move(10,10);
-collections=new QListBox(this,"collectionlist");
+collections=new TQListBox(this,"collectionlist");
collections->setGeometry(10,20+label->height(),340,90);
-connect(collections,SIGNAL(highlighted(int)),SLOT(collectionselected(int)));
-connect(collections,SIGNAL(selected(int)),SLOT(changeCollectionName(int)));
+connect(collections,TQT_SIGNAL(highlighted(int)),TQT_SLOT(collectionselected(int)));
+connect(collections,TQT_SIGNAL(selected(int)),TQT_SLOT(changeCollectionName(int)));
slman=slm;
for (int i=0;i<=slman->numberOfCollections();i++)
{
@@ -68,13 +68,13 @@ selectedC=selC;
printf("selectedC : %d\n",selectedC);
#endif
-label2=new QLabel(i18n("Songs in selected collection:"),this);
+label2=new TQLabel(i18n("Songs in selected collection:"),this);
label2->adjustSize();
label2->move(10,collections->y()+collections->height()+10);
-songs=new QListBox(this,"songlist");
+songs=new TQListBox(this,"songlist");
songs->setGeometry(10,label2->y()+label2->height()+10,340,120);
-connect(songs,SIGNAL(highlighted(int)),SLOT(songselected(int)));
+connect(songs,TQT_SIGNAL(highlighted(int)),TQT_SLOT(songselected(int)));
currentsl=slman->getCollection(selectedC);
if (slman->numberOfCollections()>0)
{
@@ -82,27 +82,27 @@ if (slman->numberOfCollections()>0)
collections->centerCurrentItem();
};
//fillInSongList();
-newC=new QPushButton(i18n("&New..."),this);
+newC=new TQPushButton(i18n("&New..."),this);
newC->adjustSize();
newC->move(360,collections->y()+5);
-connect(newC,SIGNAL(clicked()),SLOT(newCollection()) );
-copyC=new QPushButton(i18n("&Copy..."),this);
+connect(newC,TQT_SIGNAL(clicked()),TQT_SLOT(newCollection()) );
+copyC=new TQPushButton(i18n("&Copy..."),this);
copyC->adjustSize();
copyC->move(360,newC->y()+newC->height()+5);
-connect(copyC,SIGNAL(clicked()),SLOT(copyCollection()) );
-deleteC=new QPushButton(i18n("Delete"),this);
+connect(copyC,TQT_SIGNAL(clicked()),TQT_SLOT(copyCollection()) );
+deleteC=new TQPushButton(i18n("Delete"),this);
deleteC->adjustSize();
deleteC->move(360,copyC->y()+copyC->height()+5);
-connect(deleteC,SIGNAL(clicked()),SLOT(deleteCollection()) );
+connect(deleteC,TQT_SIGNAL(clicked()),TQT_SLOT(deleteCollection()) );
-addS=new QPushButton(i18n("&Add..."),this);
+addS=new TQPushButton(i18n("&Add..."),this);
addS->adjustSize();
addS->move(360,songs->y()+5);
-connect(addS,SIGNAL(clicked()),SLOT(addSong()) );
-delS=new QPushButton(i18n("&Remove"),this);
+connect(addS,TQT_SIGNAL(clicked()),TQT_SLOT(addSong()) );
+delS=new TQPushButton(i18n("&Remove"),this);
delS->adjustSize();
delS->move(360,addS->y()+addS->height()+5);
-connect(delS,SIGNAL(clicked()),SLOT(removeSong()) );
+connect(delS,TQT_SIGNAL(clicked()),TQT_SLOT(removeSong()) );
ok->move(ok->x(),songs->y()+songs->height()+10);
cancel->move(ok->x()+ok->width()+5,ok->y());
@@ -123,7 +123,7 @@ fillInSongList();
void CollectionDialog::fillInSongList(void)
{
-QString qs;
+TQString qs;
songs->clear();
if (currentsl!=NULL)
{
@@ -131,7 +131,7 @@ if (currentsl!=NULL)
int i=0;
while (!currentsl->iteratorAtEnd())
{
- qs=QString(currentsl->getIteratorName());
+ qs=TQString(currentsl->getIteratorName());
//KURL::decode(qs);
songs->insertItem(qs,i);
currentsl->iteratorNext();
@@ -155,8 +155,8 @@ printf("Selected song: %d\n",selectedS);
void CollectionDialog::newCollection()
{
bool ok;
- QString name = KInputDialog::getText( i18n( "New Collection" ),
- i18n( "Enter the name of the new collection:" ), QString::null,
+ TQString name = KInputDialog::getText( i18n( "New Collection" ),
+ i18n( "Enter the name of the new collection:" ), TQString::null,
&ok, this );
if (ok)
@@ -164,7 +164,7 @@ void CollectionDialog::newCollection()
int i=slman->createCollection(name.ascii());
if (i==-1)
{
- QString s = i18n("The name '%1' is already used").arg(name);
+ TQString s = i18n("The name '%1' is already used").arg(name);
KMessageBox::sorry(this, s);
}
else
@@ -181,8 +181,8 @@ void CollectionDialog::copyCollection()
SongList *src=currentsl;
int i;
bool ok;
- QString name = KInputDialog::getText( i18n( "Copy Collection" ),
- i18n( "Enter the name of the copy collection:" ), QString::null,
+ TQString name = KInputDialog::getText( i18n( "Copy Collection" ),
+ i18n( "Enter the name of the copy collection:" ), TQString::null,
&ok, this );
if (ok)
@@ -190,7 +190,7 @@ int i;
i=slman->createCollection(name.ascii());
if (i==-1)
{
- QString s = i18n("The name '%1' is already used").arg(name);
+ TQString s = i18n("The name '%1' is already used").arg(name);
KMessageBox::sorry(this, s);
}
else
@@ -224,15 +224,15 @@ void CollectionDialog::changeCollectionName(int idx)
if (idx==0) return;
bool ok;
- QString name = KInputDialog::getText( i18n( "Change Collection Name" ),
- i18n( "Enter the name of the selected collection:" ), QString::null,
+ TQString name = KInputDialog::getText( i18n( "Change Collection Name" ),
+ i18n( "Enter the name of the selected collection:" ), TQString::null,
&ok, this );
if (ok)
{
if (slman->getCollection(name.ascii())!=NULL)
{
- QString s = i18n("The name '%1' is already used").arg(name);
+ TQString s = i18n("The name '%1' is already used").arg(name);
KMessageBox::sorry(this, s);
}
else
@@ -248,7 +248,7 @@ void CollectionDialog::addSong(const KURL &url)
if (currentsl==NULL) return;
if( url.isEmpty()) return;
- int id=currentsl->AddSong(QFile::encodeName(url.path()));
+ int id=currentsl->AddSong(TQFile::encodeName(url.path()));
if (id==-1)
{
@@ -280,7 +280,7 @@ songs->removeItem(selectedS);
songs->setCurrentItem(i);
}
-void CollectionDialog::resizeEvent(QResizeEvent *)
+void CollectionDialog::resizeEvent(TQResizeEvent *)
{
int maxw=newC->width();
if (copyC->width()>maxw) maxw=copyC->width();