summaryrefslogtreecommitdiffstats
path: root/kuickshow/src
diff options
context:
space:
mode:
Diffstat (limited to 'kuickshow/src')
-rw-r--r--kuickshow/src/aboutwidget.cpp34
-rw-r--r--kuickshow/src/aboutwidget.h8
-rw-r--r--kuickshow/src/defaultswidget.cpp80
-rw-r--r--kuickshow/src/defaultswidget.h24
-rw-r--r--kuickshow/src/filecache.cpp14
-rw-r--r--kuickshow/src/filecache.h8
-rw-r--r--kuickshow/src/filefinder.cpp24
-rw-r--r--kuickshow/src/filefinder.h12
-rw-r--r--kuickshow/src/filewidget.cpp74
-rw-r--r--kuickshow/src/filewidget.h24
-rw-r--r--kuickshow/src/generalwidget.cpp52
-rw-r--r--kuickshow/src/generalwidget.h14
-rw-r--r--kuickshow/src/imagewindow.cpp176
-rw-r--r--kuickshow/src/imagewindow.h48
-rw-r--r--kuickshow/src/imlibwidget.cpp54
-rw-r--r--kuickshow/src/imlibwidget.h40
-rw-r--r--kuickshow/src/kuick.cpp2
-rw-r--r--kuickshow/src/kuick.h12
-rw-r--r--kuickshow/src/kuickconfigdlg.cpp10
-rw-r--r--kuickshow/src/kuickconfigdlg.h4
-rw-r--r--kuickshow/src/kuickdata.cpp2
-rw-r--r--kuickshow/src/kuickdata.h8
-rw-r--r--kuickshow/src/kuickfile.cpp28
-rw-r--r--kuickshow/src/kuickfile.h10
-rw-r--r--kuickshow/src/kuickimage.cpp16
-rw-r--r--kuickshow/src/kuickimage.h10
-rw-r--r--kuickshow/src/kuickshow.cpp248
-rw-r--r--kuickshow/src/kuickshow.h30
-rw-r--r--kuickshow/src/kurlwidget.cpp6
-rw-r--r--kuickshow/src/kurlwidget.h2
-rw-r--r--kuickshow/src/main.cpp2
-rw-r--r--kuickshow/src/mainwidget.cpp8
-rw-r--r--kuickshow/src/mainwidget.h10
-rw-r--r--kuickshow/src/printing.cpp98
-rw-r--r--kuickshow/src/printing.h30
-rw-r--r--kuickshow/src/slideshowwidget.cpp14
-rw-r--r--kuickshow/src/slideshowwidget.h8
37 files changed, 622 insertions, 622 deletions
diff --git a/kuickshow/src/aboutwidget.cpp b/kuickshow/src/aboutwidget.cpp
index 2ae41102..fc9825fd 100644
--- a/kuickshow/src/aboutwidget.cpp
+++ b/kuickshow/src/aboutwidget.cpp
@@ -16,11 +16,11 @@
Boston, MA 02110-1301, USA.
*/
-#include <qdatetime.h>
-#include <qevent.h>
-#include <qglobal.h>
-#include <qgroupbox.h>
-#include <qlabel.h>
+#include <tqdatetime.h>
+#include <tqevent.h>
+#include <tqglobal.h>
+#include <tqgroupbox.h>
+#include <tqlabel.h>
#include <kwin.h>
#include <kstandarddirs.h>
@@ -31,31 +31,31 @@
#include "aboutwidget.h"
-AboutWidget::AboutWidget( QWidget *parent, const char *name )
- : QVBox( parent, name, Qt::WShowModal )
+AboutWidget::AboutWidget( TQWidget *parent, const char *name )
+ : TQVBox( parent, name, Qt::WShowModal )
{
KWin::setType( winId(), NET::Override );
KWin::setState( winId(), NET::SkipTaskbar );
setFrameStyle( WinPanel | Raised );
- QGroupBox *gBox = new QGroupBox( 1, Horizontal, this);
+ TQGroupBox *gBox = new TQGroupBox( 1, Horizontal, this);
gBox->setGeometry( 10, 10, width()-20, height()-20 );
gBox->setAlignment( AlignHCenter );
gBox->installEventFilter( this );
- gBox->setPalette( QPalette( QColor( white ) ) );
+ gBox->setPalette( TQPalette( TQColor( white ) ) );
gBox->setBackgroundMode( PaletteBackground );
- int hour = QTime::currentTime().hour();
- QString file;
+ int hour = TQTime::currentTime().hour();
+ TQString file;
if ( hour >= 10 && hour < 16 )
file = locate("appdata", "pics/kuickshow-day.jpg");
else
file = locate("appdata", "pics/kuickshow-night.jpg");
- QLabel *authors = new QLabel("Kuickshow " KUICKSHOWVERSION
+ TQLabel *authors = new TQLabel("Kuickshow " KUICKSHOWVERSION
" was brought to you by", gBox);
authors->setAlignment( AlignCenter );
@@ -63,7 +63,7 @@ AboutWidget::AboutWidget( QWidget *parent, const char *name )
m_homepage->setURL( "http://devel-home.kde.org/~pfeiffer/kuickshow/" );
m_homepage->setAlignment( AlignCenter );
- QLabel *copy = new QLabel("(C) 1998-2006", gBox);
+ TQLabel *copy = new TQLabel("(C) 1998-2006", gBox);
copy->setAlignment( AlignCenter );
ImlibWidget *im = new ImlibWidget( 0L, gBox, "KuickShow Logo" );
@@ -80,16 +80,16 @@ AboutWidget::~AboutWidget()
{
}
-bool AboutWidget::eventFilter( QObject *o, QEvent *e )
+bool AboutWidget::eventFilter( TQObject *o, TQEvent *e )
{
- if ( e->type() == QEvent::MouseButtonPress ) {
- QMouseEvent *ev = static_cast<QMouseEvent*>( e );
+ if ( e->type() == TQEvent::MouseButtonPress ) {
+ TQMouseEvent *ev = static_cast<TQMouseEvent*>( e );
if ( !m_homepage->geometry().contains( ev->pos() ) ) {
deleteLater();
return true;
}
}
- return QVBox::eventFilter( o, e );
+ return TQVBox::eventFilter( o, e );
}
#include "aboutwidget.moc"
diff --git a/kuickshow/src/aboutwidget.h b/kuickshow/src/aboutwidget.h
index b9bc79d1..0f70ccaa 100644
--- a/kuickshow/src/aboutwidget.h
+++ b/kuickshow/src/aboutwidget.h
@@ -19,8 +19,8 @@
#ifndef ABOUTWIDGET_H
#define ABOUTWIDGET_H
-#include <qevent.h>
-#include <qvbox.h>
+#include <tqevent.h>
+#include <tqvbox.h>
class KURLWidget;
@@ -29,11 +29,11 @@ class AboutWidget : public QVBox
Q_OBJECT
public:
- AboutWidget(QWidget *parent = 0, const char *name = 0);
+ AboutWidget(TQWidget *parent = 0, const char *name = 0);
protected:
~AboutWidget();
- bool eventFilter( QObject*, QEvent * );
+ bool eventFilter( TQObject*, TQEvent * );
private:
KURLWidget *m_homepage;
diff --git a/kuickshow/src/defaultswidget.cpp b/kuickshow/src/defaultswidget.cpp
index 69807251..7e94b1b1 100644
--- a/kuickshow/src/defaultswidget.cpp
+++ b/kuickshow/src/defaultswidget.cpp
@@ -16,11 +16,11 @@
Boston, MA 02110-1301, USA.
*/
-#include <qcheckbox.h>
-#include <qgroupbox.h>
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qvgroupbox.h>
+#include <tqcheckbox.h>
+#include <tqgroupbox.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqvgroupbox.h>
#include <kcombobox.h>
#include <kdialog.h>
@@ -31,40 +31,40 @@
#include "imlibwidget.h"
#include "defaultswidget.h"
-DefaultsWidget::DefaultsWidget( QWidget *parent, const char *name)
- : QWidget( parent, name )
+DefaultsWidget::DefaultsWidget( TQWidget *parent, const char *name)
+ : TQWidget( parent, name )
{
imFiltered = 0L;
- cbEnableMods = new QCheckBox( i18n("Apply default image modifications"), this );
- connect( cbEnableMods, SIGNAL( toggled(bool) ), SLOT( enableWidgets(bool) ));
+ cbEnableMods = new TQCheckBox( i18n("Apply default image modifications"), this );
+ connect( cbEnableMods, TQT_SIGNAL( toggled(bool) ), TQT_SLOT( enableWidgets(bool) ));
// create all the widgets
- gbScale = new QGroupBox( i18n("Scaling"), this );
+ gbScale = new TQGroupBox( i18n("Scaling"), this );
gbScale->setColumnLayout( 0, Qt::Horizontal );
- cbDownScale = new QCheckBox( i18n("Shrink image to screen size, if larger"),
+ cbDownScale = new TQCheckBox( i18n("Shrink image to screen size, if larger"),
gbScale, "shrinktoscreen" );
- cbUpScale = new QCheckBox( i18n("Scale image to screen size, if smaller, up to factor:"), gbScale, "upscale checkbox" );
+ cbUpScale = new TQCheckBox( i18n("Scale image to screen size, if smaller, up to factor:"), gbScale, "upscale checkbox" );
sbMaxUpScaleFactor = new KIntNumInput( gbScale, "upscale factor" );
sbMaxUpScaleFactor->setRange( 1, 100, 1, false );
- connect(cbUpScale, SIGNAL( toggled(bool)), sbMaxUpScaleFactor,
- SLOT( setEnabled(bool) ));
+ connect(cbUpScale, TQT_SIGNAL( toggled(bool)), sbMaxUpScaleFactor,
+ TQT_SLOT( setEnabled(bool) ));
// --
- gbGeometry = new QGroupBox( i18n("Geometry"), this );
+ gbGeometry = new TQGroupBox( i18n("Geometry"), this );
gbGeometry->setColumnLayout( 0, Qt::Horizontal );
- cbFlipVertically = new QCheckBox( i18n("Flip vertically"), gbGeometry );
+ cbFlipVertically = new TQCheckBox( i18n("Flip vertically"), gbGeometry );
- cbFlipHorizontally = new QCheckBox( i18n("Flip horizontally"), gbGeometry );
+ cbFlipHorizontally = new TQCheckBox( i18n("Flip horizontally"), gbGeometry );
- lbRotate = new QLabel( i18n("Rotate image:"), gbGeometry );
+ lbRotate = new TQLabel( i18n("Rotate image:"), gbGeometry );
comboRotate = new KComboBox( gbGeometry, "rotate combobox" );
comboRotate->insertItem( i18n("0 Degrees") );
@@ -74,7 +74,7 @@ DefaultsWidget::DefaultsWidget( QWidget *parent, const char *name)
// --
- gbAdjust = new QVGroupBox( i18n("Adjustments"), this );
+ gbAdjust = new TQVGroupBox( i18n("Adjustments"), this );
sbBrightness = new KIntNumInput( gbAdjust, "brightness spinbox" );
sbBrightness->setRange( -256, 256, 1, true );
@@ -91,37 +91,37 @@ DefaultsWidget::DefaultsWidget( QWidget *parent, const char *name)
// --
- gbPreview = new QGroupBox( i18n("Preview"), this );
+ gbPreview = new TQGroupBox( i18n("Preview"), this );
gbPreview->setAlignment( AlignCenter );
- lbImOrig = new QLabel( i18n("Original"), gbPreview );
+ lbImOrig = new TQLabel( i18n("Original"), gbPreview );
imOrig = new ImlibWidget( 0L, gbPreview, "original image" );
- lbImFiltered = new QLabel( i18n("Modified"), gbPreview );
+ lbImFiltered = new TQLabel( i18n("Modified"), gbPreview );
imFiltered = new ImlibWidget( 0L, imOrig->getImlibData(), gbPreview, "" );
- connect( imFiltered, SIGNAL( destroyed() ), SLOT( slotNoImage() ));
+ connect( imFiltered, TQT_SIGNAL( destroyed() ), TQT_SLOT( slotNoImage() ));
////
////////////////
// layout management
- QVBoxLayout *mainLayout = new QVBoxLayout( this, 0,
+ TQVBoxLayout *mainLayout = new TQVBoxLayout( this, 0,
KDialog::spacingHint(), "main layout" );
- QVBoxLayout *gbScaleLayout = new QVBoxLayout( gbScale->layout(),
+ TQVBoxLayout *gbScaleLayout = new TQVBoxLayout( gbScale->layout(),
KDialog::spacingHint());
- QVBoxLayout *gbGeometryLayout = new QVBoxLayout(gbGeometry->layout(),
+ TQVBoxLayout *gbGeometryLayout = new TQVBoxLayout(gbGeometry->layout(),
KDialog::spacingHint());
- QGridLayout *gbPreviewLayout = new QGridLayout(gbPreview, 2, 3, 0,
+ TQGridLayout *gbPreviewLayout = new TQGridLayout(gbPreview, 2, 3, 0,
KDialog::spacingHint());
- QHBoxLayout *scaleLayout = new QHBoxLayout();
- QHBoxLayout *rotateLayout = new QHBoxLayout();
+ TQHBoxLayout *scaleLayout = new TQHBoxLayout();
+ TQHBoxLayout *rotateLayout = new TQHBoxLayout();
mainLayout->addWidget( cbEnableMods );
mainLayout->addWidget( gbScale );
- QHBoxLayout *hl = new QHBoxLayout();
+ TQHBoxLayout *hl = new TQHBoxLayout();
hl->addWidget( gbGeometry );
hl->addWidget( gbAdjust );
mainLayout->addLayout( hl );
@@ -159,19 +159,19 @@ DefaultsWidget::DefaultsWidget( QWidget *parent, const char *name)
////////////////
// connect them all to the update slot
- connect( cbDownScale, SIGNAL( clicked() ), SLOT( updatePreview() ));
- connect( cbUpScale, SIGNAL( clicked() ), SLOT( updatePreview() ));
- connect( cbFlipVertically, SIGNAL( clicked() ), SLOT( updatePreview() ));
- connect( cbFlipHorizontally, SIGNAL( clicked() ), SLOT( updatePreview() ));
- connect( sbMaxUpScaleFactor, SIGNAL( valueChanged(int) ), SLOT( updatePreview() ));
- connect( sbBrightness, SIGNAL( valueChanged(int) ), SLOT( updatePreview() ));
- connect( sbContrast, SIGNAL( valueChanged(int) ), SLOT( updatePreview() ));
- connect( sbGamma, SIGNAL( valueChanged(int) ), SLOT( updatePreview() ));
+ connect( cbDownScale, TQT_SIGNAL( clicked() ), TQT_SLOT( updatePreview() ));
+ connect( cbUpScale, TQT_SIGNAL( clicked() ), TQT_SLOT( updatePreview() ));
+ connect( cbFlipVertically, TQT_SIGNAL( clicked() ), TQT_SLOT( updatePreview() ));
+ connect( cbFlipHorizontally, TQT_SIGNAL( clicked() ), TQT_SLOT( updatePreview() ));
+ connect( sbMaxUpScaleFactor, TQT_SIGNAL( valueChanged(int) ), TQT_SLOT( updatePreview() ));
+ connect( sbBrightness, TQT_SIGNAL( valueChanged(int) ), TQT_SLOT( updatePreview() ));
+ connect( sbContrast, TQT_SIGNAL( valueChanged(int) ), TQT_SLOT( updatePreview() ));
+ connect( sbGamma, TQT_SIGNAL( valueChanged(int) ), TQT_SLOT( updatePreview() ));
- connect( comboRotate, SIGNAL( activated(int) ), SLOT( updatePreview() ));
+ connect( comboRotate, TQT_SIGNAL( activated(int) ), TQT_SLOT( updatePreview() ));
- QString filename = locate( "data", "kuickshow/pics/calibrate.png" );
+ TQString filename = locate( "data", "kuickshow/pics/calibrate.png" );
if ( !imOrig->loadImage( filename ) )
imOrig = 0L; // FIXME - display some errormessage!
if ( !imFiltered->loadImage( filename ) )
diff --git a/kuickshow/src/defaultswidget.h b/kuickshow/src/defaultswidget.h
index 3febb098..5eeae365 100644
--- a/kuickshow/src/defaultswidget.h
+++ b/kuickshow/src/defaultswidget.h
@@ -24,8 +24,8 @@
class ImlibWidget;
class ImData;
-class QCheckBox;
-class QLabel;
+class TQCheckBox;
+class TQLabel;
class KComboBox;
class KIntNumInput;
@@ -35,7 +35,7 @@ class DefaultsWidget : public QWidget
Q_OBJECT
public:
- DefaultsWidget( QWidget *parent, const char *name );
+ DefaultsWidget( TQWidget *parent, const char *name );
~DefaultsWidget();
void loadSettings( const KuickData& data );
@@ -44,22 +44,22 @@ public:
private:
Rotation currentRotation() const;
- QCheckBox *cbEnableMods;
+ TQCheckBox *cbEnableMods;
- QGroupBox *gbScale;
- QCheckBox *cbUpScale, *cbDownScale;
+ TQGroupBox *gbScale;
+ TQCheckBox *cbUpScale, *cbDownScale;
KIntNumInput *sbMaxUpScaleFactor;
- QGroupBox *gbAdjust;
+ TQGroupBox *gbAdjust;
KIntNumInput *sbBrightness, *sbContrast, *sbGamma;
- QGroupBox *gbGeometry;
- QLabel *lbRotate;
+ TQGroupBox *gbGeometry;
+ TQLabel *lbRotate;
KComboBox *comboRotate;
- QCheckBox *cbFlipVertically, *cbFlipHorizontally;
+ TQCheckBox *cbFlipVertically, *cbFlipHorizontally;
- QGroupBox *gbPreview;
- QLabel *lbImOrig, *lbImFiltered;
+ TQGroupBox *gbPreview;
+ TQLabel *lbImOrig, *lbImFiltered;
ImlibWidget *imOrig, *imFiltered;
diff --git a/kuickshow/src/filecache.cpp b/kuickshow/src/filecache.cpp
index c1c1affe..006bf46e 100644
--- a/kuickshow/src/filecache.cpp
+++ b/kuickshow/src/filecache.cpp
@@ -1,6 +1,6 @@
#include <unistd.h>
-#include <qstring.h>
+#include <tqstring.h>
#include <kdebug.h>
#include <kstandarddirs.h>
@@ -41,7 +41,7 @@ FileCache * FileCache::self()
KuickFile * FileCache::getFile( const KURL& url )
{
- QString urlString = url.prettyURL();
+ TQString urlString = url.prettyURL();
KuickFile *file = m_files.find( urlString );
if ( !file ) {
file = new KuickFile( url );
@@ -51,14 +51,14 @@ KuickFile * FileCache::getFile( const KURL& url )
return file;
}
-QString FileCache::tempDir()
+TQString FileCache::tempDir()
{
if ( !m_tempDir ) {
m_tempDir = createTempDir();
if ( !m_tempDir ) {
kdWarning() << "Unable to create temporary directory for KuickShow" << endl;
- return QString::null;
+ return TQString::null;
}
}
@@ -68,9 +68,9 @@ QString FileCache::tempDir()
KTempDir * FileCache::createTempDir()
{
- QString tmpName = QString::fromLatin1( KGlobal::instance()->instanceName() );
- tmpName.append( QString::number( getpid() ) );
- QString dirName = locateLocal( "tmp", tmpName );
+ TQString tmpName = TQString::fromLatin1( KGlobal::instance()->instanceName() );
+ tmpName.append( TQString::number( getpid() ) );
+ TQString dirName = locateLocal( "tmp", tmpName );
KTempDir *dir = new KTempDir( dirName );
dir->setAutoDelete( true );
if ( dir->status() != 0L )
diff --git a/kuickshow/src/filecache.h b/kuickshow/src/filecache.h
index 16e53261..7cb97526 100644
--- a/kuickshow/src/filecache.h
+++ b/kuickshow/src/filecache.h
@@ -10,7 +10,7 @@
#ifndef FILECACHE_H
#define FILECACHE_H
-#include <qcache.h>
+#include <tqcache.h>
#include "kuickfile.h"
@@ -27,9 +27,9 @@ public:
int getLimit() const { return m_limit; }
/**
- * @return the temporary directory or QString::null if none available
+ * @return the temporary directory or TQString::null if none available
*/
- QString tempDir();
+ TQString tempDir();
private:
static FileCache *s_self;
@@ -37,7 +37,7 @@ private:
~FileCache();
KTempDir * createTempDir();
- QCache<KuickFile> m_files;
+ TQCache<KuickFile> m_files;
int m_limit;
KTempDir *m_tempDir;
diff --git a/kuickshow/src/filefinder.cpp b/kuickshow/src/filefinder.cpp
index 9dda0046..35bb382a 100644
--- a/kuickshow/src/filefinder.cpp
+++ b/kuickshow/src/filefinder.cpp
@@ -16,7 +16,7 @@
Boston, MA 02110-1301, USA.
*/
-#include <qkeycode.h>
+#include <tqkeycode.h>
#include <kapplication.h>
#include <kconfig.h>
@@ -26,7 +26,7 @@
#include "filefinder.h"
-FileFinder::FileFinder( QWidget *parent, const char *name )
+FileFinder::FileFinder( TQWidget *parent, const char *name )
: KLineEdit( parent, name )
{
// make this widget just as large, as the font is + 8 Pixels
@@ -37,12 +37,12 @@ FileFinder::FileFinder( QWidget *parent, const char *name )
setHandleSignals( true ); // we want the completionbox signals
completionBox()->setTabHandling( true );
- connect( completionBox(), SIGNAL( userCancelled(const QString&) ),
- SLOT( hide() ));
- connect( completionBox(), SIGNAL( activated( const QString& ) ),
- SLOT( slotAccept( const QString& )));
- connect( this, SIGNAL( returnPressed( const QString& )),
- SLOT( slotAccept( const QString& ) ));
+ connect( completionBox(), TQT_SIGNAL( userCancelled(const TQString&) ),
+ TQT_SLOT( hide() ));
+ connect( completionBox(), TQT_SIGNAL( activated( const TQString& ) ),
+ TQT_SLOT( slotAccept( const TQString& )));
+ connect( this, TQT_SIGNAL( returnPressed( const TQString& )),
+ TQT_SLOT( slotAccept( const TQString& ) ));
KURLCompletion *comp = new KURLCompletion();
comp->setReplaceHome( true );
@@ -65,13 +65,13 @@ FileFinder::~FileFinder()
config->writeEntry( "FileFinderCompletionMode", completionMode() );
}
-void FileFinder::focusOutEvent( QFocusEvent *e )
+void FileFinder::focusOutEvent( TQFocusEvent *e )
{
- if ( e->reason() != QFocusEvent::Popup )
+ if ( e->reason() != TQFocusEvent::Popup )
hide();
}
-void FileFinder::keyPressEvent( QKeyEvent *e )
+void FileFinder::keyPressEvent( TQKeyEvent *e )
{
int key = e->key();
if ( key == Key_Escape ) {
@@ -90,7 +90,7 @@ void FileFinder::hide()
parentWidget()->setFocus();
}
-void FileFinder::slotAccept( const QString& dir )
+void FileFinder::slotAccept( const TQString& dir )
{
hide();
emit enterDir( dir );
diff --git a/kuickshow/src/filefinder.h b/kuickshow/src/filefinder.h
index f75c69a4..fc94bd71 100644
--- a/kuickshow/src/filefinder.h
+++ b/kuickshow/src/filefinder.h
@@ -19,7 +19,7 @@
#ifndef FILEFINDER_H
#define FILEFINDER_H
-#include <qevent.h>
+#include <tqevent.h>
#include <klineedit.h>
@@ -30,7 +30,7 @@ class FileFinder : public KLineEdit
Q_OBJECT
public:
- FileFinder( QWidget *parent=0, const char *name=0 );
+ FileFinder( TQWidget *parent=0, const char *name=0 );
~FileFinder();
KURLCompletion *completion() {
@@ -40,14 +40,14 @@ public:
virtual void hide();
signals:
- void enterDir( const QString& );
+ void enterDir( const TQString& );
protected:
- virtual void focusOutEvent( QFocusEvent * );
- virtual void keyPressEvent( QKeyEvent * );
+ virtual void focusOutEvent( TQFocusEvent * );
+ virtual void keyPressEvent( TQKeyEvent * );
private slots:
- void slotAccept( const QString& );
+ void slotAccept( const TQString& );
};
diff --git a/kuickshow/src/filewidget.cpp b/kuickshow/src/filewidget.cpp
index d4b99f0a..d697db21 100644
--- a/kuickshow/src/filewidget.cpp
+++ b/kuickshow/src/filewidget.cpp
@@ -16,7 +16,7 @@
Boston, MA 02110-1301, USA.
*/
-#include <qkeycode.h>
+#include <tqkeycode.h>
#include <kdeversion.h>
#include <kglobal.h>
@@ -35,7 +35,7 @@
#undef KeyPress
#endif
-FileWidget::FileWidget( const KURL& url, QWidget *parent, const char *name )
+FileWidget::FileWidget( const KURL& url, TQWidget *parent, const char *name )
: KDirOperator( url, parent, name ),
m_validCompletion( false ),
m_fileFinder( 0L )
@@ -55,21 +55,21 @@ FileWidget::FileWidget( const KURL& url, QWidget *parent, const char *name )
dirCompletionObject()->setCompletionMode( KGlobalSettings::CompletionAuto);
slotViewChanged();
- connect( this, SIGNAL( viewChanged( KFileView * )),
- SLOT( slotViewChanged() ));
+ connect( this, TQT_SIGNAL( viewChanged( KFileView * )),
+ TQT_SLOT( slotViewChanged() ));
- connect( dirLister(), SIGNAL( clear() ), SLOT( slotItemsCleared() ));
- connect( dirLister(), SIGNAL( deleteItem( KFileItem * ) ),
- SLOT( slotItemDeleted( KFileItem *) ));
+ connect( dirLister(), TQT_SIGNAL( clear() ), TQT_SLOT( slotItemsCleared() ));
+ connect( dirLister(), TQT_SIGNAL( deleteItem( KFileItem * ) ),
+ TQT_SLOT( slotItemDeleted( KFileItem *) ));
- connect( this, SIGNAL( fileHighlighted( const KFileItem * )),
- SLOT( slotHighlighted( const KFileItem * )));
+ connect( this, TQT_SIGNAL( fileHighlighted( const KFileItem * )),
+ TQT_SLOT( slotHighlighted( const KFileItem * )));
- connect( this, SIGNAL(urlEntered(const KURL&)),
- SLOT( slotURLEntered( const KURL& )));
+ connect( this, TQT_SIGNAL(urlEntered(const KURL&)),
+ TQT_SLOT( slotURLEntered( const KURL& )));
// should actually be KDirOperator's job!
- connect( this, SIGNAL( finishedLoading() ), SLOT( slotFinishedLoading() ));
+ connect( this, TQT_SIGNAL( finishedLoading() ), TQT_SLOT( slotFinishedLoading() ));
}
FileWidget::~FileWidget()
@@ -97,9 +97,9 @@ void FileWidget::initActions()
// so we move it to the real bottom
menu->remove( coll->action( "properties" ) );
- QPopupMenu *pMenu = menu->popupMenu();
+ TQPopupMenu *pMenu = menu->popupMenu();
int lastItemId = pMenu->idAt( pMenu->count() - 1 );
- QMenuItem *mItem = pMenu->findItem( lastItemId );
+ TQMenuItem *mItem = pMenu->findItem( lastItemId );
if ( mItem && !mItem->isSeparator() )
menu->insert( sep );
@@ -113,7 +113,7 @@ void FileWidget::reloadConfiguration()
{
if ( kdata->fileFilter != nameFilter() ) {
// At first, our list must have folders
- QStringList mimes;
+ TQStringList mimes;
mimes.append("inode/directory");
// Then, all the images!
@@ -133,7 +133,7 @@ bool FileWidget::hasFiles() const
return (numFiles() > 0);
}
-void FileWidget::activatedMenu( const KFileItem *item, const QPoint& pos )
+void FileWidget::activatedMenu( const KFileItem *item, const TQPoint& pos )
{
bool image = isImage( item );
actionCollection()->action("kuick_showInSameWindow")->setEnabled( image );
@@ -149,11 +149,11 @@ void FileWidget::activatedMenu( const KFileItem *item, const QPoint& pos )
KDirOperator::activatedMenu( item, pos );
}
-void FileWidget::findCompletion( const QString& text )
+void FileWidget::findCompletion( const TQString& text )
{
if ( text.at(0) == '/' || text.at(0) == '~' ||
text.find('/') != -1 ) {
- QString t = m_fileFinder->completion()->makeCompletion( text );
+ TQString t = m_fileFinder->completion()->makeCompletion( text );
if (m_fileFinder->completionMode() == KGlobalSettings::CompletionPopup ||
m_fileFinder->completionMode() == KGlobalSettings::CompletionPopupAuto)
@@ -166,7 +166,7 @@ void FileWidget::findCompletion( const QString& text )
return;
}
- QString file = makeDirCompletion( text );
+ TQString file = makeDirCompletion( text );
if ( file.isNull() )
file = makeCompletion( text );
@@ -176,10 +176,10 @@ void FileWidget::findCompletion( const QString& text )
KDirOperator::setCurrentItem( file );
}
-bool FileWidget::eventFilter( QObject *o, QEvent *e )
+bool FileWidget::eventFilter( TQObject *o, TQEvent *e )
{
- if ( e->type() == QEvent::KeyPress ) {
- QKeyEvent *k = static_cast<QKeyEvent*>( e );
+ if ( e->type() == TQEvent::KeyPress ) {
+ TQKeyEvent *k = static_cast<TQKeyEvent*>( e );
if ( (k->state() & (ControlButton | AltButton)) == 0 ) {
int key = k->key();
@@ -195,17 +195,17 @@ bool FileWidget::eventFilter( QObject *o, QEvent *e )
return true;
}
- const QString& text = k->text();
+ const TQString& text = k->text();
if ( !text.isEmpty() && text.unicode()->isPrint() ) {
k->accept();
if ( !m_fileFinder ) {
m_fileFinder = new FileFinder( this, "file finder" );
- connect( m_fileFinder, SIGNAL( completion(const QString&)),
- SLOT( findCompletion( const QString& )));
+ connect( m_fileFinder, TQT_SIGNAL( completion(const TQString&)),
+ TQT_SLOT( findCompletion( const TQString& )));
connect( m_fileFinder,
- SIGNAL( enterDir( const QString& ) ),
- SLOT( slotReturnPressed( const QString& )));
+ TQT_SIGNAL( enterDir( const TQString& ) ),
+ TQT_SLOT( slotReturnPressed( const TQString& )));
m_fileFinder->move( width() - m_fileFinder->width(),
height() - m_fileFinder->height() );
}
@@ -360,7 +360,7 @@ void FileWidget::slotViewChanged()
void FileWidget::slotItemsCleared()
{
- m_currentURL = QString::null;
+ m_currentURL = TQString::null;
}
void FileWidget::slotItemDeleted( KFileItem *item )
@@ -383,16 +383,16 @@ void FileWidget::slotHighlighted( const KFileItem *item )
m_currentURL = item->url().url();
}
-void FileWidget::slotReturnPressed( const QString& t )
+void FileWidget::slotReturnPressed( const TQString& t )
{
// we need a / at the end, otherwise replacedPath() will cut off the dir,
// assuming it is a filename
- QString text = t;
+ TQString text = t;
if ( text.at( text.length()-1 ) != '/' )
text += '/';
if ( text.at(0) == '/' || text.at(0) == '~' ) {
- QString dir = m_fileFinder->completion()->replacedPath( text );
+ TQString dir = m_fileFinder->completion()->replacedPath( text );
KURL url;
url.setPath( dir );
@@ -400,7 +400,7 @@ void FileWidget::slotReturnPressed( const QString& t )
}
else if ( text.find('/') != (int) text.length() -1 ) { // relative path
- QString dir = m_fileFinder->completion()->replacedPath( text );
+ TQString dir = m_fileFinder->completion()->replacedPath( text );
KURL u( url(), dir );
setURL( u, true );
}
@@ -425,7 +425,7 @@ void FileWidget::setCurrentItem( const KFileItem *item )
}
}
-void FileWidget::setInitialItem( const QString& filename )
+void FileWidget::setInitialItem( const TQString& filename )
{
m_initialName = filename;
}
@@ -444,16 +444,16 @@ void FileWidget::slotFinishedLoading()
else if ( !current )
setCurrentItem( view()->items()->getFirst() );
- m_initialName = QString::null;
+ m_initialName = TQString::null;
emit finished();
}
-QSize FileWidget::sizeHint() const
+TQSize FileWidget::sizeHint() const
{
- return QSize( 300, 300 );
+ return TQSize( 300, 300 );
}
-void FileWidget::resizeEvent( QResizeEvent *e )
+void FileWidget::resizeEvent( TQResizeEvent *e )
{
KDirOperator::resizeEvent( e );
if ( m_fileFinder )
diff --git a/kuickshow/src/filewidget.h b/kuickshow/src/filewidget.h
index a785fd85..2022bdbc 100644
--- a/kuickshow/src/filewidget.h
+++ b/kuickshow/src/filewidget.h
@@ -19,7 +19,7 @@
#ifndef FILEWIDGET_H
#define FILEWIDGET_H
-#include <qevent.h>
+#include <tqevent.h>
#include <kdiroperator.h>
@@ -33,20 +33,20 @@ class FileWidget : public KDirOperator
public:
enum WhichItem { Previous, Next, Current };
- FileWidget( const KURL& url, QWidget *parent = 0L, const char *name = 0L );
+ FileWidget( const KURL& url, TQWidget *parent = 0L, const char *name = 0L );
~FileWidget();
bool hasFiles() const;
void reloadConfiguration();
- void setInitialItem( const QString& filename );
+ void setInitialItem( const TQString& filename );
KFileItem *getCurrentItem( bool onlyImage ) const {
return getItem( Current, onlyImage );
}
void setCurrentItem( const KFileItem * );
- void setCurrentItem( const QString& filename ) {
+ void setCurrentItem( const TQString& filename ) {
KDirOperator::setCurrentItem( filename );
}
@@ -67,14 +67,14 @@ signals:
void finished();
protected:
- virtual bool eventFilter( QObject *o, QEvent * );
- virtual void resizeEvent( QResizeEvent * );
- virtual void activatedMenu( const KFileItem *, const QPoint& );
- virtual QSize sizeHint() const;
+ virtual bool eventFilter( TQObject *o, TQEvent * );
+ virtual void resizeEvent( TQResizeEvent * );
+ virtual void activatedMenu( const KFileItem *, const TQPoint& );
+ virtual TQSize sizeHint() const;
private slots:
- void slotReturnPressed( const QString& text );
- void findCompletion( const QString& );
+ void slotReturnPressed( const TQString& text );
+ void findCompletion( const TQString& );
void slotViewChanged();
void slotItemsCleared();
@@ -89,8 +89,8 @@ private:
bool m_validCompletion;
FileFinder *m_fileFinder;
- QString m_currentURL;
- QString m_initialName;
+ TQString m_currentURL;
+ TQString m_initialName;
};
diff --git a/kuickshow/src/generalwidget.cpp b/kuickshow/src/generalwidget.cpp
index 3b718d69..1308885a 100644
--- a/kuickshow/src/generalwidget.cpp
+++ b/kuickshow/src/generalwidget.cpp
@@ -16,11 +16,11 @@
Boston, MA 02110-1301, USA.
*/
-#include <qcheckbox.h>
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qtooltip.h>
-#include <qvgroupbox.h>
+#include <tqcheckbox.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqtooltip.h>
+#include <tqvgroupbox.h>
#include <kapplication.h>
#include <kcolorbutton.h>
@@ -33,13 +33,13 @@
#include "generalwidget.h"
-GeneralWidget::GeneralWidget( QWidget *parent, const char *name )
- : QWidget( parent, name )
+GeneralWidget::GeneralWidget( TQWidget *parent, const char *name )
+ : TQWidget( parent, name )
{
- QVBoxLayout *layout = new QVBoxLayout( this );
+ TQVBoxLayout *layout = new TQVBoxLayout( this );
layout->setSpacing( KDialog::spacingHint() );
- QPixmap pixmap = UserIcon( "logo" );
+ TQPixmap pixmap = UserIcon( "logo" );
KURLLabel *logo = new KURLLabel( this );
logo->setURL( "http://devel-home.kde.org/~pfeiffer/kuickshow/" );
logo->setPixmap( pixmap );
@@ -47,22 +47,22 @@ GeneralWidget::GeneralWidget( QWidget *parent, const char *name )
logo->setTipText( i18n( "Open KuickShow Website" ) );
logo->setUseTips( true );
- connect( logo, SIGNAL( leftClickedURL( const QString & ) ),
- SLOT( slotURLClicked( const QString & ) ) );
+ connect( logo, TQT_SIGNAL( leftClickedURL( const TQString & ) ),
+ TQT_SLOT( slotURLClicked( const TQString & ) ) );
layout->addWidget( logo, 0, AlignRight );
- cbFullscreen = new QCheckBox( i18n("Fullscreen mode"), this, "boscreen" );
+ cbFullscreen = new TQCheckBox( i18n("Fullscreen mode"), this, "boscreen" );
- cbPreload = new QCheckBox( i18n("Preload next image"), this, "preload");
- cbLastdir = new QCheckBox( i18n("Remember last folder"), this, "restart_lastdir");
+ cbPreload = new TQCheckBox( i18n("Preload next image"), this, "preload");
+ cbLastdir = new TQCheckBox( i18n("Remember last folder"), this, "restart_lastdir");
- QGridLayout *gridLayout = new QGridLayout( 2, 2 );
+ TQGridLayout *gridLayout = new TQGridLayout( 2, 2 );
gridLayout->setSpacing( KDialog::spacingHint() );
- QLabel *l0 = new QLabel( i18n("Background color:"), this );
+ TQLabel *l0 = new TQLabel( i18n("Background color:"), this );
colorButton = new KColorButton( this );
- QLabel *l1 = new QLabel( i18n("Show only files with extension: "), this, "label" );
+ TQLabel *l1 = new TQLabel( i18n("Show only files with extension: "), this, "label" );
editFilter = new KLineEdit( this, "filteredit" );
gridLayout->addWidget( l0, 0, 0 );
@@ -77,24 +77,24 @@ GeneralWidget::GeneralWidget( QWidget *parent, const char *name )
////////////////////////////////////////////////////////////////////////
- QVGroupBox *gbox2 = new QVGroupBox( i18n("Quality/Speed"),
+ TQVGroupBox *gbox2 = new TQVGroupBox( i18n("Quality/Speed"),
this, "qualitybox" );
layout->addWidget( gbox2 );
layout->addStretch();
- cbSmoothScale = new QCheckBox( i18n("Smooth scaling"), gbox2, "smoothscale" );
- cbFastRender = new QCheckBox( i18n("Fast rendering"), gbox2, "fastrender" );
- cbDither16bit = new QCheckBox( i18n("Dither in HiColor (15/16bit) modes"),
+ cbSmoothScale = new TQCheckBox( i18n("Smooth scaling"), gbox2, "smoothscale" );
+ cbFastRender = new TQCheckBox( i18n("Fast rendering"), gbox2, "fastrender" );
+ cbDither16bit = new TQCheckBox( i18n("Dither in HiColor (15/16bit) modes"),
gbox2, "dither16bit" );
- cbDither8bit = new QCheckBox( i18n("Dither in LowColor (<=8bit) modes"),
+ cbDither8bit = new TQCheckBox( i18n("Dither in LowColor (<=8bit) modes"),
gbox2, "dither8bit" );
- cbOwnPalette = new QCheckBox( i18n("Use own color palette"),
+ cbOwnPalette = new TQCheckBox( i18n("Use own color palette"),
gbox2, "pal");
- connect( cbOwnPalette, SIGNAL( clicked() ), this, SLOT( useOwnPalette() ) );
+ connect( cbOwnPalette, TQT_SIGNAL( clicked() ), this, TQT_SLOT( useOwnPalette() ) );
- cbFastRemap = new QCheckBox( i18n("Fast palette remapping"), gbox2, "remap");
+ cbFastRemap = new TQCheckBox( i18n("Fast palette remapping"), gbox2, "remap");
maxCacheSpinBox = new KIntNumInput( gbox2, "editmaxcache" );
maxCacheSpinBox->setLabel( i18n("Maximum cache size: "), AlignVCenter );
@@ -110,7 +110,7 @@ GeneralWidget::~GeneralWidget()
{
}
-void GeneralWidget::slotURLClicked( const QString & url )
+void GeneralWidget::slotURLClicked( const TQString & url )
{
kapp->invokeBrowser( url );
}
diff --git a/kuickshow/src/generalwidget.h b/kuickshow/src/generalwidget.h
index e39eef18..e84c46ac 100644
--- a/kuickshow/src/generalwidget.h
+++ b/kuickshow/src/generalwidget.h
@@ -19,11 +19,11 @@
#ifndef GENERALWIDGET_H
#define GENERALWIDGET_H
-#include <qwidget.h>
+#include <tqwidget.h>
#include "kuickdata.h"
-class QCheckBox;
+class TQCheckBox;
class KColorButton;
class KLineEdit;
class KIntNumInput;
@@ -34,16 +34,16 @@ class GeneralWidget : public QWidget
Q_OBJECT
public:
- GeneralWidget( QWidget *parent, const char *name );
+ GeneralWidget( TQWidget *parent, const char *name );
~GeneralWidget();
void loadSettings( const KuickData& data );
void applySettings( KuickData& data );
private:
- QCheckBox *cbFullscreen, *cbActiveWindow, *cbPreload, *cbLastdir;
- QCheckBox *cbSmoothScale, *cbFastRemap, *cbFastRender;
- QCheckBox *cbDither16bit, *cbDither8bit, *cbOwnPalette;
+ TQCheckBox *cbFullscreen, *cbActiveWindow, *cbPreload, *cbLastdir;
+ TQCheckBox *cbSmoothScale, *cbFastRemap, *cbFastRender;
+ TQCheckBox *cbDither16bit, *cbDither8bit, *cbOwnPalette;
KLineEdit *editFilter;
KIntNumInput *maxCacheSpinBox;
@@ -55,7 +55,7 @@ private:
private slots:
void useOwnPalette();
- void slotURLClicked( const QString & );
+ void slotURLClicked( const TQString & );
};
diff --git a/kuickshow/src/imagewindow.cpp b/kuickshow/src/imagewindow.cpp
index c63a3c67..72de91c1 100644
--- a/kuickshow/src/imagewindow.cpp
+++ b/kuickshow/src/imagewindow.cpp
@@ -18,23 +18,23 @@
#include <stdlib.h>
-#include <qcheckbox.h>
-#include <qcursor.h>
-#include <qdrawutil.h>
-#include <qfileinfo.h>
-#include <qkeycode.h>
-#include <qpainter.h>
-#include <qpen.h>
-#include <qpopupmenu.h>
+#include <tqcheckbox.h>
+#include <tqcursor.h>
+#include <tqdrawutil.h>
+#include <tqfileinfo.h>
+#include <tqkeycode.h>
+#include <tqpainter.h>
+#include <tqpen.h>
+#include <tqpopupmenu.h>
#ifdef KDE_USE_FINAL
#undef GrayScale
#undef Color
#endif
-#include <qrect.h>
-#include <qstring.h>
-#include <qstringlist.h>
-#include <qtimer.h>
+#include <tqrect.h>
+#include <tqstring.h>
+#include <tqstringlist.h>
+#include <tqtimer.h>
#include <kapplication.h>
#include <kconfig.h>
@@ -72,16 +72,16 @@
#undef GrayScale
-QCursor *ImageWindow::s_handCursor = 0L;
+TQCursor *ImageWindow::s_handCursor = 0L;
-ImageWindow::ImageWindow( ImData *_idata, ImlibData *id, QWidget *parent,
+ImageWindow::ImageWindow( ImData *_idata, ImlibData *id, TQWidget *parent,
const char *name )
: ImlibWidget( _idata, id, parent, name )
{
init();
}
-ImageWindow::ImageWindow( ImData *_idata, QWidget *parent, const char *name )
+ImageWindow::ImageWindow( ImData *_idata, TQWidget *parent, const char *name )
: ImlibWidget( _idata, parent, name )
{
init();
@@ -94,7 +94,7 @@ ImageWindow::~ImageWindow()
void ImageWindow::init()
{
- setFocusPolicy( QWidget::StrongFocus );
+ setFocusPolicy( TQWidget::StrongFocus );
KCursor::setAutoHideCursor( this, true, true );
KCursor::setHideCursorDelay( 1500 );
@@ -114,11 +114,11 @@ void ImageWindow::init()
m_actions = new KActionCollection( this );
if ( !s_handCursor ) {
- QString file = locate( "appdata", "pics/handcursor.png" );
+ TQString file = locate( "appdata", "pics/handcursor.png" );
if ( !file.isEmpty() )
- s_handCursor = new QCursor( file );
+ s_handCursor = new TQCursor( file );
else
- s_handCursor = new QCursor( arrowCursor );
+ s_handCursor = new TQCursor( arrowCursor );
}
setupActions();
@@ -133,8 +133,8 @@ void ImageWindow::init()
setAcceptDrops( true );
setBackgroundColor( kdata->backgroundColor );
- static QPixmap imageIcon = UserIcon( "imageviewer-medium" );
- static QPixmap miniImageIcon = UserIcon( "imageviewer-small" );
+ static TQPixmap imageIcon = UserIcon( "imageviewer-medium" );
+ static TQPixmap miniImageIcon = UserIcon( "imageviewer-small" );
KWin::setIcons( winId(), imageIcon, miniImageIcon );
}
@@ -146,103 +146,103 @@ void ImageWindow::updateActions()
void ImageWindow::setupActions()
{
new KAction( i18n("Show Next Image"), KStdAccel::next(),
- this, SLOT( slotRequestNext() ),
+ this, TQT_SLOT( slotRequestNext() ),
m_actions, "next_image" );
new KAction( i18n("Show Previous Image"), KStdAccel::prior(),
- this, SLOT( slotRequestPrevious() ),
+ this, TQT_SLOT( slotRequestPrevious() ),
m_actions, "previous_image" );
new KAction( i18n("Delete Image"), SHIFT + Key_Delete,
- this, SLOT( imageDelete() ),
+ this, TQT_SLOT( imageDelete() ),
m_actions, "delete_image" );
new KAction( i18n("Move Image to Trash"), Key_Delete,
- this, SLOT( imageTrash() ),
+ this, TQT_SLOT( imageTrash() ),
m_actions, "trash_image" );
new KAction( i18n("Zoom In"), Key_Plus,
- this, SLOT( zoomIn() ),
+ this, TQT_SLOT( zoomIn() ),
m_actions, "zoom_in" );
new KAction( i18n("Zoom Out"), Key_Minus,
- this, SLOT( zoomOut() ),
+ this, TQT_SLOT( zoomOut() ),
m_actions, "zoom_out" );
new KAction( i18n("Restore Original Size"), Key_O,
- this, SLOT( showImageOriginalSize() ),
+ this, TQT_SLOT( showImageOriginalSize() ),
m_actions, "original_size" );
new KAction( i18n("Maximize"), Key_M,
- this, SLOT( maximize() ),
+ this, TQT_SLOT( maximize() ),
m_actions, "maximize" );
new KAction( i18n("Rotate 90 Degrees"), Key_9,
- this, SLOT( rotate90() ),
+ this, TQT_SLOT( rotate90() ),
m_actions, "rotate90" );
new KAction( i18n("Rotate 180 Degrees"), Key_8,
- this, SLOT( rotate180() ),
+ this, TQT_SLOT( rotate180() ),
m_actions, "rotate180" );
new KAction( i18n("Rotate 270 Degrees"), Key_7,
- this, SLOT( rotate270() ),
+ this, TQT_SLOT( rotate270() ),
m_actions, "rotate270" );
new KAction( i18n("Flip Horizontally"), Key_Asterisk,
- this, SLOT( flipHoriz() ),
+ this, TQT_SLOT( flipHoriz() ),
m_actions, "flip_horicontally" );
new KAction( i18n("Flip Vertically"), Key_Slash,
- this, SLOT( flipVert() ),
+ this, TQT_SLOT( flipVert() ),
m_actions, "flip_vertically" );
new KAction( i18n("Print Image..."), KStdAccel::print(),
- this, SLOT( printImage() ),
+ this, TQT_SLOT( printImage() ),
m_actions, "print_image" );
- KStdAction::saveAs( this, SLOT( saveImage() ),
+ KStdAction::saveAs( this, TQT_SLOT( saveImage() ),
m_actions, "save_image_as" );
- KStdAction::close( this, SLOT( close() ),
+ KStdAction::close( this, TQT_SLOT( close() ),
m_actions, "close_image" );
// --------
new KAction( i18n("More Brightness"), Key_B,
- this, SLOT( moreBrightness() ),
+ this, TQT_SLOT( moreBrightness() ),
m_actions, "more_brightness" );
new KAction( i18n("Less Brightness"), SHIFT + Key_B,
- this, SLOT( lessBrightness() ),
+ this, TQT_SLOT( lessBrightness() ),
m_actions, "less_brightness" );
new KAction( i18n("More Contrast"), Key_C,
- this, SLOT( moreContrast() ),
+ this, TQT_SLOT( moreContrast() ),
m_actions, "more_contrast" );
new KAction( i18n("Less Contrast"), SHIFT + Key_C,
- this, SLOT( lessContrast() ),
+ this, TQT_SLOT( lessContrast() ),
m_actions, "less_contrast" );
new KAction( i18n("More Gamma"), Key_G,
- this, SLOT( moreGamma() ),
+ this, TQT_SLOT( moreGamma() ),
m_actions, "more_gamma" );
new KAction( i18n("Less Gamma"), SHIFT + Key_G,
- this, SLOT( lessGamma() ),
+ this, TQT_SLOT( lessGamma() ),
m_actions, "less_gamma" );
// --------
new KAction( i18n("Scroll Up"), Key_Up,
- this, SLOT( scrollUp() ),
+ this, TQT_SLOT( scrollUp() ),
m_actions, "scroll_up" );
new KAction( i18n("Scroll Down"), Key_Down,
- this, SLOT( scrollDown() ),
+ this, TQT_SLOT( scrollDown() ),
m_actions, "scroll_down" );
new KAction( i18n("Scroll Left"), Key_Left,
- this, SLOT( scrollLeft() ),
+ this, TQT_SLOT( scrollLeft() ),
m_actions, "scroll_left" );
new KAction( i18n("Scroll Right"), Key_Right,
- this, SLOT( scrollRight() ),
+ this, TQT_SLOT( scrollRight() ),
m_actions, "scroll_right" );
// --------
new KAction( i18n("Pause Slideshow"), Key_P,
- this, SLOT( pauseSlideShow() ),
+ this, TQT_SLOT( pauseSlideShow() ),
m_actions, "kuick_slideshow_pause" );
- KAction *fullscreenAction = KStdAction::fullScreen(this, SLOT( toggleFullscreen() ), m_actions, 0 );
+ KAction *fullscreenAction = KStdAction::fullScreen(this, TQT_SLOT( toggleFullscreen() ), m_actions, 0 );
KAction *reloadAction = new KAction( i18n("Reload Image"), KStdAccel::shortcut(KStdAccel::Reload),
- this, SLOT( reload() ),
+ this, TQT_SLOT( reload() ),
m_actions, "reload_image" );
new KAction( i18n("Properties"), ALT + Key_Return,
- this, SLOT( slotProperties() ),
+ this, TQT_SLOT( slotProperties() ),
m_actions, "properties" );
m_actions->readShortcutSettings();
@@ -308,7 +308,7 @@ void ImageWindow::updateGeometry( int imWidth, int imHeight )
updateCursor();
- QString caption = i18n( "Filename (Imagewidth x Imageheight)",
+ TQString caption = i18n( "Filename (Imagewidth x Imageheight)",
"%3 (%1 x %2)" );
caption = caption.arg( m_kuim->originalWidth() ).
arg( m_kuim->originalHeight() ).arg( m_kuim->url().prettyURL() );
@@ -321,7 +321,7 @@ void ImageWindow::centerImage()
int w, h;
if ( myIsFullscreen )
{
- QRect desktopRect = KGlobalSettings::desktopGeometry( this );
+ TQRect desktopRect = KGlobalSettings::desktopGeometry( this );
w = desktopRect.width();
h = desktopRect.height();
}
@@ -412,7 +412,7 @@ bool ImageWindow::showNextImage( const KURL& url )
switch ( file->waitForDownload( this ) ) {
case KuickFile::ERROR:
{
- QString tmp = i18n("Unable to download the image from %1.").arg(url.prettyURL());
+ TQString tmp = i18n("Unable to download the image from %1.").arg(url.prettyURL());
emit sigImageError( file, tmp );
return false;
}
@@ -428,7 +428,7 @@ bool ImageWindow::showNextImage( const KURL& url )
bool ImageWindow::showNextImage( KuickFile *file )
{
if ( !loadImage( file ) ) {
- QString tmp = i18n("Unable to load the image %1.\n"
+ TQString tmp = i18n("Unable to load the image %1.\n"
"Perhaps the file format is unsupported or "
"your Imlib is not installed properly.").arg(file->url().prettyURL());
emit sigImageError( file, tmp );
@@ -573,7 +573,7 @@ void ImageWindow::imageTrash()
////
// event handlers
-void ImageWindow::wheelEvent( QWheelEvent *e )
+void ImageWindow::wheelEvent( TQWheelEvent *e )
{
e->accept();
static const int WHEEL_DELTA = 120;
@@ -586,7 +586,7 @@ void ImageWindow::wheelEvent( QWheelEvent *e )
emit requestImage( this, -steps );
}
-void ImageWindow::keyPressEvent( QKeyEvent *e )
+void ImageWindow::keyPressEvent( TQKeyEvent *e )
{
uint key = e->key();
@@ -606,7 +606,7 @@ void ImageWindow::keyPressEvent( QKeyEvent *e )
e->accept();
}
-void ImageWindow::keyReleaseEvent( QKeyEvent *e )
+void ImageWindow::keyReleaseEvent( TQKeyEvent *e )
{
if ( e->state() & ShiftButton ) { // Shift-key released
updateCursor();
@@ -619,7 +619,7 @@ void ImageWindow::keyReleaseEvent( QKeyEvent *e )
e->accept();
}
-void ImageWindow::mousePressEvent( QMouseEvent *e )
+void ImageWindow::mousePressEvent( TQMouseEvent *e )
{
xmove = e->x(); // for moving the image with the mouse
ymove = e->y();
@@ -640,7 +640,7 @@ void ImageWindow::mousePressEvent( QMouseEvent *e )
ImlibWidget::mousePressEvent( e );
}
-void ImageWindow::contextMenuEvent( QContextMenuEvent *e )
+void ImageWindow::contextMenuEvent( TQContextMenuEvent *e )
{
e->accept();
@@ -673,7 +673,7 @@ void ImageWindow::updateCursor( KuickCursor cursor )
}
}
-void ImageWindow::mouseMoveEvent( QMouseEvent *e )
+void ImageWindow::mouseMoveEvent( TQMouseEvent *e )
{
if ( !(e->state() & LeftButton) ) { // only handle LeftButton actions
return;
@@ -682,13 +682,13 @@ void ImageWindow::mouseMoveEvent( QMouseEvent *e )
if ( e->state() & ShiftButton ) {
if ( !transWidget ) {
- transWidget = new QWidget( this );
+ transWidget = new TQWidget( this );
transWidget->setGeometry( 0, 0, width(), height() );
transWidget->setBackgroundMode( NoBackground );
}
transWidget->hide();
- QPainter p( transWidget );
+ TQPainter p( transWidget );
// really required?
p.eraseRect( transWidget->rect() );
transWidget->show();
@@ -707,7 +707,7 @@ void ImageWindow::mouseMoveEvent( QMouseEvent *e )
yzoom = e->y();
}
- QPen pen( Qt::white, 1, DashLine );
+ TQPen pen( Qt::white, 1, DashLine );
p.setPen( pen ); // for drawing white dashed line
p.drawRect( xzoom, yzoom, width, height );
p.setPen( DotLine ); // defaults to black dotted line pen
@@ -725,7 +725,7 @@ void ImageWindow::mouseMoveEvent( QMouseEvent *e )
}
}
-void ImageWindow::mouseReleaseEvent( QMouseEvent *e )
+void ImageWindow::mouseReleaseEvent( TQMouseEvent *e )
{
updateCursor();
@@ -806,14 +806,14 @@ void ImageWindow::mouseReleaseEvent( QMouseEvent *e )
}
-void ImageWindow::focusInEvent( QFocusEvent *ev )
+void ImageWindow::focusInEvent( TQFocusEvent *ev )
{
ImlibWidget::focusInEvent( ev );
emit sigFocusWindow( this );
}
-void ImageWindow::resizeEvent( QResizeEvent *e )
+void ImageWindow::resizeEvent( TQResizeEvent *e )
{
ImlibWidget::resizeEvent( e );
@@ -822,7 +822,7 @@ void ImageWindow::resizeEvent( QResizeEvent *e )
}
-void ImageWindow::dragEnterEvent( QDragEnterEvent *e )
+void ImageWindow::dragEnterEvent( TQDragEnterEvent *e )
{
// if ( e->provides( "image/*" ) ) // can't do this right now with Imlib
if ( e->provides( "text/uri-list" ) )
@@ -832,12 +832,12 @@ void ImageWindow::dragEnterEvent( QDragEnterEvent *e )
}
-void ImageWindow::dropEvent( QDropEvent *e )
+void ImageWindow::dropEvent( TQDropEvent *e )
{
// FIXME - only preliminary drop-support for now
KURL::List list;
if ( KURLDrag::decode( e, list ) && !list.isEmpty()) {
- QString tmpFile;
+ TQString tmpFile;
const KURL &url = list.first();
if (KIO::NetAccess::download( url, tmpFile, this ) )
{
@@ -858,21 +858,21 @@ void ImageWindow::dropEvent( QDropEvent *e )
void ImageWindow::setPopupMenu()
{
- viewerMenu = new QPopupMenu( this );
+ viewerMenu = new TQPopupMenu( this );
m_actions->action("next_image")->plug( viewerMenu );
m_actions->action("previous_image")->plug( viewerMenu );
viewerMenu->insertSeparator();
- brightnessMenu = new QPopupMenu( viewerMenu );
+ brightnessMenu = new TQPopupMenu( viewerMenu );
m_actions->action("more_brightness")->plug(brightnessMenu);
m_actions->action("less_brightness")->plug(brightnessMenu);
- contrastMenu = new QPopupMenu( viewerMenu );
+ contrastMenu = new TQPopupMenu( viewerMenu );
m_actions->action("more_contrast")->plug(contrastMenu);
m_actions->action("less_contrast")->plug(contrastMenu);
- gammaMenu = new QPopupMenu( viewerMenu );
+ gammaMenu = new TQPopupMenu( viewerMenu );
m_actions->action("more_gamma")->plug(gammaMenu);
m_actions->action("less_gamma")->plug(gammaMenu);
@@ -922,7 +922,7 @@ void ImageWindow::saveImage()
return;
KuickData tmp;
- QCheckBox *keepSize = new QCheckBox( i18n("Keep original image size"), 0L);
+ TQCheckBox *keepSize = new TQCheckBox( i18n("Keep original image size"), 0L);
keepSize->setChecked( true );
KFileDialog dlg( m_saveDirectory, tmp.fileFilter, this, "filedialog", true
#if KDE_VERSION >= 310
@@ -930,21 +930,21 @@ void ImageWindow::saveImage()
#endif
);
- QString selection = m_saveDirectory.isEmpty() ?
+ TQString selection = m_saveDirectory.isEmpty() ?
m_kuim->url().url() :
m_kuim->url().fileName();
dlg.setOperationMode( KFileDialog::Saving );
dlg.setMode( KFile::File );
dlg.setSelection( selection );
dlg.setCaption( i18n("Save As") );
- if ( dlg.exec() == QDialog::Accepted )
+ if ( dlg.exec() == TQDialog::Accepted )
{
KURL url = dlg.selectedURL();
if ( url.isValid() )
{
if ( !saveImage( url, keepSize->isChecked() ) )
{
- QString tmp = i18n("Couldn't save the file.\n"
+ TQString tmp = i18n("Couldn't save the file.\n"
"Perhaps the disk is full, or you don't "
"have write permission to the file.");
KMessageBox::sorry( this, tmp, i18n("File Saving Failed"));
@@ -958,7 +958,7 @@ void ImageWindow::saveImage()
}
}
- QString lastDir = dlg.baseURL().path(+1);
+ TQString lastDir = dlg.baseURL().path(+1);
if ( lastDir != m_saveDirectory )
m_saveDirectory = lastDir;
@@ -978,16 +978,16 @@ bool ImageWindow::saveImage( const KURL& dest, bool keepOriginalSize )
w, h );
bool success = false;
- QString saveFile;
+ TQString saveFile;
if ( dest.isLocalFile() )
saveFile = dest.path();
else
{
- QString extension = QFileInfo( dest.fileName() ).extension();
+ TQString extension = TQFileInfo( dest.fileName() ).extension();
if ( !extension.isEmpty() )
extension.prepend( '.' );
- KTempFile tmpFile( QString::null, extension );
+ KTempFile tmpFile( TQString::null, extension );
if ( tmpFile.status() != 0 )
return false;
tmpFile.close();
@@ -1000,7 +1000,7 @@ bool ImageWindow::saveImage( const KURL& dest, bool keepOriginalSize )
{
Imlib_apply_modifiers_to_rgb( id, saveIm );
success = Imlib_save_image( id, saveIm,
- QFile::encodeName( saveFile ).data(),
+ TQFile::encodeName( saveFile ).data(),
NULL );
if ( success && !dest.isLocalFile() )
{
@@ -1040,7 +1040,7 @@ void ImageWindow::autoScale( KuickImage *kuim )
int newW = kuim->originalWidth();
int newH = kuim->originalHeight();
- QSize s = maxImageSize();
+ TQSize s = maxImageSize();
int mw = s.width();
int mh = s.height();
@@ -1143,7 +1143,7 @@ int ImageWindow::desktopHeight( bool totalScreen ) const
}
}
-QSize ImageWindow::maxImageSize() const
+TQSize ImageWindow::maxImageSize() const
{
if ( myIsFullscreen ) {
return KGlobalSettings::desktopGeometry(topLevelWidget()).size();
@@ -1155,7 +1155,7 @@ QSize ImageWindow::maxImageSize() const
void ImageWindow::resizeOptimal( int w, int h )
{
- QSize s = maxImageSize();
+ TQSize s = maxImageSize();
int mw = s.width();
int mh = s.height();
int neww = (w >= mw) ? mw : w;
@@ -1193,7 +1193,7 @@ bool ImageWindow::canZoomTo( int newWidth, int newHeight )
if ( !ImlibWidget::canZoomTo( newWidth, newHeight ) )
return false;
- QSize desktopSize = KGlobalSettings::desktopGeometry(topLevelWidget()).size();
+ TQSize desktopSize = KGlobalSettings::desktopGeometry(topLevelWidget()).size();
int desktopArea = desktopSize.width() * desktopSize.height();
int imageArea = newWidth * newHeight;
@@ -1204,7 +1204,7 @@ bool ImageWindow::canZoomTo( int newWidth, int newHeight )
this,
i18n("You are about to view a very large image (%1 x %2 pixels), which can be very resource-consuming and even make your computer hang.\nDo you want to continue?")
.arg( newWidth ).arg( newHeight ),
- QString::null,
+ TQString::null,
KStdGuiItem::cont(),
"ImageWindow_confirm_very_large_window"
) == KMessageBox::Continue;
diff --git a/kuickshow/src/imagewindow.h b/kuickshow/src/imagewindow.h
index 4a823a0a..19dc7462 100644
--- a/kuickshow/src/imagewindow.h
+++ b/kuickshow/src/imagewindow.h
@@ -19,19 +19,19 @@
#ifndef IMAGEWINDOW_H
#define IMAGEWINDOW_H
-#include <qevent.h>
+#include <tqevent.h>
#include <kaction.h>
#include <kurl.h>
#include "imlibwidget.h"
-class QCursor;
-class QPopupMenu;
-class QRect;
-class QString;
-class QTimer;
-class QWidget;
+class TQCursor;
+class TQPopupMenu;
+class TQRect;
+class TQString;
+class TQTimer;
+class TQWidget;
class KuickFile;
@@ -40,9 +40,9 @@ class ImageWindow : public ImlibWidget
Q_OBJECT
public:
- ImageWindow( ImData *_idata, ImlibData *id, QWidget *parent=0,
+ ImageWindow( ImData *_idata, ImlibData *id, TQWidget *parent=0,
const char *name=0 );
- ImageWindow( ImData *_idata=0, QWidget *parent=0, const char *name=0 );
+ ImageWindow( ImData *_idata=0, TQWidget *parent=0, const char *name=0 );
bool showNextImage( KuickFile * file );
bool showNextImage( const KURL& url );
@@ -105,17 +105,17 @@ protected:
virtual bool canZoomTo( int newWidth, int newHeight );
virtual void rotated( KuickImage *kuim, int rotation );
- virtual void wheelEvent( QWheelEvent * );
- virtual void keyPressEvent( QKeyEvent * );
- virtual void keyReleaseEvent( QKeyEvent * );
- virtual void mousePressEvent( QMouseEvent * );
- virtual void mouseReleaseEvent( QMouseEvent * );
- virtual void mouseMoveEvent( QMouseEvent * );
- virtual void focusInEvent( QFocusEvent * );
- virtual void resizeEvent( QResizeEvent * );
- virtual void dragEnterEvent( QDragEnterEvent * );
- virtual void dropEvent( QDropEvent * );
- virtual void contextMenuEvent( QContextMenuEvent * );
+ virtual void wheelEvent( TQWheelEvent * );
+ virtual void keyPressEvent( TQKeyEvent * );
+ virtual void keyReleaseEvent( TQKeyEvent * );
+ virtual void mousePressEvent( TQMouseEvent * );
+ virtual void mouseReleaseEvent( TQMouseEvent * );
+ virtual void mouseMoveEvent( TQMouseEvent * );
+ virtual void focusInEvent( TQFocusEvent * );
+ virtual void resizeEvent( TQResizeEvent * );
+ virtual void dragEnterEvent( TQDragEnterEvent * );
+ virtual void dropEvent( TQDropEvent * );
+ virtual void contextMenuEvent( TQContextMenuEvent * );
void showWindow();
enum KuickCursor { DefaultCursor = 0, ZoomCursor, MoveCursor };
@@ -138,8 +138,8 @@ protected:
uint xposPress, yposPress;
- QPopupMenu *viewerMenu, *gammaMenu, *brightnessMenu, *contrastMenu;
- QWidget *transWidget;
+ TQPopupMenu *viewerMenu, *gammaMenu, *brightnessMenu, *contrastMenu;
+ TQWidget *transWidget;
protected slots:
@@ -165,11 +165,11 @@ private:
bool myIsFullscreen;
int m_numHeads;
- QString m_saveDirectory;
+ TQString m_saveDirectory;
KActionCollection *m_actions;
- static QCursor * s_handCursor;
+ static TQCursor * s_handCursor;
};
diff --git a/kuickshow/src/imlibwidget.cpp b/kuickshow/src/imlibwidget.cpp
index 5b5cb84b..8386e1ab 100644
--- a/kuickshow/src/imlibwidget.cpp
+++ b/kuickshow/src/imlibwidget.cpp
@@ -24,12 +24,12 @@
#include <stdlib.h>
#include <assert.h>
-#include <qcolor.h>
-#include <qfile.h>
-#include <qglobal.h>
-#include <qimage.h>
-#include <qobject.h>
-#include <qpalette.h>
+#include <tqcolor.h>
+#include <tqfile.h>
+#include <tqglobal.h>
+#include <tqimage.h>
+#include <tqobject.h>
+#include <tqpalette.h>
#include <kcursor.h>
#include <kdebug.h>
@@ -43,8 +43,8 @@
const int ImlibWidget::ImlibOffset = 256;
-ImlibWidget::ImlibWidget( ImData *_idata, QWidget *parent, const char *name ) :
- QWidget( parent, name, WDestructiveClose )
+ImlibWidget::ImlibWidget( ImData *_idata, TQWidget *parent, const char *name ) :
+ TQWidget( parent, name, WDestructiveClose )
{
idata = _idata;
deleteImData = false;
@@ -82,9 +82,9 @@ ImlibWidget::ImlibWidget( ImData *_idata, QWidget *parent, const char *name ) :
}
-ImlibWidget::ImlibWidget( ImData *_idata, ImlibData *_id, QWidget *parent,
+ImlibWidget::ImlibWidget( ImData *_idata, ImlibData *_id, TQWidget *parent,
const char *name )
- : QWidget( parent, name, WDestructiveClose )
+ : TQWidget( parent, name, WDestructiveClose )
{
id = _id;
idata = _idata;
@@ -113,12 +113,12 @@ void ImlibWidget::init()
setAutoRender( true );
- setPalette( QPalette( myBackgroundColor ));
+ setPalette( TQPalette( myBackgroundColor ));
setBackgroundMode( PaletteBackground );
imageCache = new ImageCache( id, 4 ); // cache 4 images (FIXME?)
- connect( imageCache, SIGNAL( sigBusy() ), SLOT( setBusyCursor() ));
- connect( imageCache, SIGNAL( sigIdle() ), SLOT( restoreCursor() ));
+ connect( imageCache, TQT_SIGNAL( sigBusy() ), TQT_SLOT( setBusyCursor() ));
+ connect( imageCache, TQT_SIGNAL( sigIdle() ), TQT_SLOT( restoreCursor() ));
win = XCreateSimpleWindow(x11Display(), winId(), 0,0,w,h,0,0,0);
}
@@ -206,7 +206,7 @@ bool ImlibWidget::cacheImage( const KURL& url )
if ( !file->download() ) {
return false;
}
- connect( file, SIGNAL( downloaded( KuickFile * )), SLOT( cacheImage( KuickFile * )) );
+ connect( file, TQT_SIGNAL( downloaded( KuickFile * )), TQT_SLOT( cacheImage( KuickFile * )) );
return true; // optimistic
}
}
@@ -466,21 +466,21 @@ void ImlibWidget::updateGeometry( int w, int h )
}
-void ImlibWidget::closeEvent( QCloseEvent *e )
+void ImlibWidget::closeEvent( TQCloseEvent *e )
{
e->accept();
- QWidget::closeEvent( e );
+ TQWidget::closeEvent( e );
}
-void ImlibWidget::setBackgroundColor( const QColor& color )
+void ImlibWidget::setBackgroundColor( const TQColor& color )
{
myBackgroundColor = color;
- setPalette( QPalette( myBackgroundColor ));
+ setPalette( TQPalette( myBackgroundColor ));
repaint( false); // FIXME - false? necessary at all?
}
-const QColor& ImlibWidget::backgroundColor() const
+const TQColor& ImlibWidget::backgroundColor() const
{
return myBackgroundColor;
}
@@ -510,7 +510,7 @@ void ImlibWidget::setBusyCursor()
if ( ownCursor() )
m_oldCursor = cursor();
else
- m_oldCursor = QCursor();
+ m_oldCursor = TQCursor();
setCursor( KCursor::waitCursor() );
}
@@ -527,13 +527,13 @@ void ImlibWidget::restoreCursor()
// destroying the Imlib image X window. Therefore it needs to be temporarily reparented
// away and reparented back to the new X window.
// Reparenting may happen e.g. when doing the old-style (non-NETWM) fullscreen changes.
-void ImlibWidget::reparent( QWidget* parent, WFlags f, const QPoint& p, bool showIt )
+void ImlibWidget::reparent( TQWidget* parent, WFlags f, const TQPoint& p, bool showIt )
{
XWindowAttributes attr;
XGetWindowAttributes( x11Display(), win, &attr );
XUnmapWindow( x11Display(), win );
XReparentWindow( x11Display(), win, attr.root, 0, 0 );
- QWidget::reparent( parent, f, p, showIt );
+ TQWidget::reparent( parent, f, p, showIt );
XReparentWindow( x11Display(), win, winId(), attr.x, attr.y );
if( attr.map_state != IsUnmapped )
XMapWindow( x11Display(), win );
@@ -630,7 +630,7 @@ KuickImage * ImageCache::getKuimage( KuickFile * file,
// #endif
ImlibImage *im = Imlib_load_image( myId,
- QFile::encodeName( file->localFile() ).data() );
+ TQFile::encodeName( file->localFile() ).data() );
// #ifndef NDEBUG
// gettimeofday( &tms2, NULL );
@@ -649,8 +649,8 @@ KuickImage * ImageCache::getKuimage( KuickFile * file,
Imlib_set_image_modifier( myId, im, &mod );
kuim = new KuickImage( file, im, myId );
- connect( kuim, SIGNAL( startRendering() ), SLOT( slotBusy() ));
- connect( kuim, SIGNAL( stoppedRendering() ), SLOT( slotIdle() ));
+ connect( kuim, TQT_SIGNAL( startRendering() ), TQT_SLOT( slotBusy() ));
+ connect( kuim, TQT_SIGNAL( stoppedRendering() ), TQT_SLOT( slotIdle() ));
kuickList.insert( 0, kuim );
fileList.prepend( file );
@@ -668,13 +668,13 @@ KuickImage * ImageCache::getKuimage( KuickFile * file,
// Note: the returned image's filename will not be the real filename (which it usually
// isn't anyway, according to Imlib's sources).
-ImlibImage * ImageCache::loadImageWithQt( const QString& fileName ) const
+ImlibImage * ImageCache::loadImageWithQt( const TQString& fileName ) const
{
kdDebug() << "Trying to load " << fileName << " with KImageIO..." << endl;
KImageIO::registerFormats();
- QImage image( fileName );
+ TQImage image( fileName );
if ( image.isNull() )
return 0L;
if ( image.depth() != 32 ) {
diff --git a/kuickshow/src/imlibwidget.h b/kuickshow/src/imlibwidget.h
index 5f6e89e1..de13cad8 100644
--- a/kuickshow/src/imlibwidget.h
+++ b/kuickshow/src/imlibwidget.h
@@ -12,13 +12,13 @@
#ifndef IMLIBWIDGET_H
#define IMLIBWIDGET_H
-#include <qvariant.h>
+#include <tqvariant.h>
-#include <qcursor.h>
-#include <qevent.h>
-#include <qptrlist.h>
-#include <qtimer.h>
-#include <qwidget.h>
+#include <tqcursor.h>
+#include <tqevent.h>
+#include <tqptrlist.h>
+#include <tqtimer.h>
+#include <tqwidget.h>
#include <kurl.h>
@@ -48,12 +48,12 @@ public:
KuickImage * getKuimage( KuickFile * file, ImlibColorModifier );
private:
- ImlibImage * loadImageWithQt( const QString& filename ) const;
+ ImlibImage * loadImageWithQt( const TQString& filename ) const;
int myMaxImages;
- QValueList<KuickFile*>fileList;
- QPtrList<KuickImage> kuickList;
- // QPtrList<ImlibImage> imList;
+ TQValueList<KuickFile*>fileList;
+ TQPtrList<KuickImage> kuickList;
+ // TQPtrList<ImlibImage> imList;
ImlibData * myId;
int idleCount;
@@ -70,7 +70,7 @@ signals:
// ------------------------------------------
-class QColor;
+class TQColor;
class ImlibWidget : public QWidget
{
@@ -78,8 +78,8 @@ class ImlibWidget : public QWidget
public:
- ImlibWidget( ImData *_idata=0, QWidget *parent=0, const char *name=0 );
- ImlibWidget( ImData *_idata, ImlibData *id, QWidget *parent=0,
+ ImlibWidget( ImData *_idata=0, TQWidget *parent=0, const char *name=0 );
+ ImlibWidget( ImData *_idata, ImlibData *id, TQWidget *parent=0,
const char *name=0 );
virtual ~ImlibWidget();
@@ -108,8 +108,8 @@ public:
bool isAutoRenderEnabled() const { return isAutoRendering; }
void setMaxImageCache( int );
int maxImageCache() const { return myMaxImageCache; }
- const QColor& backgroundColor() const;
- void setBackgroundColor( const QColor& );
+ const TQColor& backgroundColor() const;
+ void setBackgroundColor( const TQColor& );
/**
* @return true if auto-rotation is not possible, e.g. because no metadata
@@ -119,7 +119,7 @@ public:
ImlibData* getImlibData() const { return id; }
- virtual void reparent( QWidget* parent, WFlags f, const QPoint& p, bool showIt = FALSE );
+ virtual void reparent( TQWidget* parent, WFlags f, const TQPoint& p, bool showIt = FALSE );
public slots:
void rotate90();
@@ -142,7 +142,7 @@ protected:
virtual bool canZoomTo( int newWidth, int newHeight );
virtual void rotated( KuickImage *kuim, int rotation );
- void closeEvent( QCloseEvent * );
+ void closeEvent( TQCloseEvent * );
inline void autoUpdate( bool geometryUpdate=false ) {
if ( isAutoRendering )
@@ -160,7 +160,7 @@ protected:
ImlibColorModifier mod;
KuickFile *m_kuickFile;
- QCursor m_oldCursor;
+ TQCursor m_oldCursor;
static const int ImlibOffset;
@@ -169,7 +169,7 @@ private:
void init();
bool isAutoRendering;
int myMaxImageCache;
- QColor myBackgroundColor;
+ TQColor myBackgroundColor;
protected slots:
@@ -179,7 +179,7 @@ protected slots:
signals:
- void sigImageError( const KuickFile * file, const QString& );
+ void sigImageError( const KuickFile * file, const TQString& );
};
diff --git a/kuickshow/src/kuick.cpp b/kuickshow/src/kuick.cpp
index 43eadb50..24f1677f 100644
--- a/kuickshow/src/kuick.cpp
+++ b/kuickshow/src/kuick.cpp
@@ -1,4 +1,4 @@
#include "kuick.h"
Kuick * Kuick::s_self = 0L;
-QSize Kuick::s_frameSize;
+TQSize Kuick::s_frameSize;
diff --git a/kuickshow/src/kuick.h b/kuickshow/src/kuick.h
index bc86d5d2..98289dfc 100644
--- a/kuickshow/src/kuick.h
+++ b/kuickshow/src/kuick.h
@@ -19,8 +19,8 @@
#ifndef KUICKGLOBALS_H
#define KUICKGLOBALS_H
-#include <qrect.h>
-#include <qsize.h>
+#include <tqrect.h>
+#include <tqsize.h>
#include <kwin.h>
#include <kwinmodule.h>
@@ -28,11 +28,11 @@
class Kuick
{
public:
- static QRect workArea() {
+ static TQRect workArea() {
return self()->winModule.workArea();
}
- static QSize frameSize( WId win = 0L ) {
+ static TQSize frameSize( WId win = 0L ) {
if ( win ) {
KWin::WindowInfo info = KWin::windowInfo(win, NET::WMKDEFrameStrut | NET::WMGeometry);
int wborder = info.frameGeometry().width() - info.geometry().width();
@@ -45,7 +45,7 @@ public:
}
if ( !s_frameSize.isValid() )
- return QSize( 0, 0 );
+ return TQSize( 0, 0 );
return s_frameSize;
}
@@ -63,7 +63,7 @@ private:
Kuick() {}
static Kuick * s_self;
- static QSize s_frameSize;
+ static TQSize s_frameSize;
};
diff --git a/kuickshow/src/kuickconfigdlg.cpp b/kuickshow/src/kuickconfigdlg.cpp
index 6ece8883..140c90d5 100644
--- a/kuickshow/src/kuickconfigdlg.cpp
+++ b/kuickshow/src/kuickconfigdlg.cpp
@@ -22,8 +22,8 @@
#endif
#include "kuickconfigdlg.h"
-#include <qkeycode.h>
-#include <qvbox.h>
+#include <tqkeycode.h>
+#include <tqvbox.h>
#include <kaccel.h>
#include <kconfig.h>
@@ -38,14 +38,14 @@
#include "kuickdata.h"
-KuickConfigDialog::KuickConfigDialog( KActionCollection *_coll, QWidget *parent,
+KuickConfigDialog::KuickConfigDialog( KActionCollection *_coll, TQWidget *parent,
const char *name, bool modal )
: KDialogBase( Tabbed, i18n("Configure"),
Help | Default | Ok | Apply | Cancel, Ok,
parent, name, modal )
{
coll = _coll;
- QVBox *box = addVBoxPage( i18n("&General") );
+ TQVBox *box = addVBoxPage( i18n("&General") );
generalWidget = new GeneralWidget( box, "general widget" );
box = addVBoxPage( i18n("&Modifications") );
@@ -64,7 +64,7 @@ KuickConfigDialog::KuickConfigDialog( KActionCollection *_coll, QWidget *parent,
box = addVBoxPage( i18n("Bro&wser Shortcuts") );
browserKeyChooser = new KKeyChooser( coll, box );
- connect( this, SIGNAL( defaultClicked() ), SLOT( resetDefaults() ));
+ connect( this, TQT_SIGNAL( defaultClicked() ), TQT_SLOT( resetDefaults() ));
}
KuickConfigDialog::~KuickConfigDialog()
diff --git a/kuickshow/src/kuickconfigdlg.h b/kuickshow/src/kuickconfigdlg.h
index 884d91dc..a19a6e97 100644
--- a/kuickshow/src/kuickconfigdlg.h
+++ b/kuickshow/src/kuickconfigdlg.h
@@ -19,7 +19,7 @@
#ifndef KUICKCONFIGDLG_H
#define KUICKCONFIGDLG_H
-#include <qevent.h>
+#include <tqevent.h>
#include <kkeydialog.h>
@@ -35,7 +35,7 @@ class KuickConfigDialog : public KDialogBase
Q_OBJECT
public:
- KuickConfigDialog( KActionCollection *coll, QWidget *parent=0,
+ KuickConfigDialog( KActionCollection *coll, TQWidget *parent=0,
const char *name=0, bool modal=true);
~KuickConfigDialog();
diff --git a/kuickshow/src/kuickdata.cpp b/kuickshow/src/kuickdata.cpp
index c6aa47c2..a68a9d3e 100644
--- a/kuickshow/src/kuickdata.cpp
+++ b/kuickshow/src/kuickdata.cpp
@@ -18,7 +18,7 @@
#include <stdlib.h>
-#include <qcolor.h>
+#include <tqcolor.h>
#include <kconfig.h>
#include <kglobal.h>
diff --git a/kuickshow/src/kuickdata.h b/kuickshow/src/kuickdata.h
index d05b3e99..e24d3bc4 100644
--- a/kuickshow/src/kuickdata.h
+++ b/kuickshow/src/kuickdata.h
@@ -19,8 +19,8 @@
#ifndef KUICKDATA_H
#define KUICKDATA_H
-#include <qcolor.h>
-#include <qstring.h>
+#include <tqcolor.h>
+#include <tqstring.h>
#include "imdata.h"
@@ -44,7 +44,7 @@ public:
ImData *idata;
- QString fileFilter;
+ TQString fileFilter;
uint slideDelay;
uint slideshowCycles;
bool slideshowFullscreen :1;
@@ -75,7 +75,7 @@ public:
uint maxCachedImages;
Rotation rotation;
- QColor backgroundColor;
+ TQColor backgroundColor;
};
diff --git a/kuickshow/src/kuickfile.cpp b/kuickshow/src/kuickfile.cpp
index 1dd259d6..da38fdee 100644
--- a/kuickshow/src/kuickfile.cpp
+++ b/kuickshow/src/kuickfile.cpp
@@ -1,4 +1,4 @@
-#include <qfile.h>
+#include <tqfile.h>
#include <kdebug.h>
#include <kdeversion.h>
@@ -13,7 +13,7 @@
#include "kuickfile.h"
KuickFile::KuickFile(const KURL& url)
- : QObject(),
+ : TQObject(),
m_url( url ),
m_job( 0L ),
m_progress( 0L ),
@@ -33,15 +33,15 @@ KuickFile::~KuickFile()
delete m_job;
if ( hasDownloaded() )
- QFile::remove( m_localFile );
+ TQFile::remove( m_localFile );
}
-QString KuickFile::localFile() const
+TQString KuickFile::localFile() const
{
// Note: never call isAvailable() from here, directly or indirectly
if ( isDownloading() )
- return QString::null;
+ return TQString::null;
return m_localFile;
}
@@ -61,17 +61,17 @@ bool KuickFile::download()
return true;
// reinitialize
- m_localFile = QString::null;
+ m_localFile = TQString::null;
m_currentProgress = 0;
- QString ext;
- QString fileName = m_url.fileName();
+ TQString ext;
+ TQString fileName = m_url.fileName();
int extIndex = fileName.findRev('.');
if ( extIndex > 0 )
ext = fileName.mid( extIndex + 1 );
- QString tempDir = FileCache::self()->tempDir();
+ TQString tempDir = FileCache::self()->tempDir();
KTempFile tempFile( tempDir, ext );
tempFile.setAutoDelete( tempDir.isNull() ); // in case there is no proper tempdir, make sure to delete those files!
if ( tempFile.status() != 0 )
@@ -86,15 +86,15 @@ bool KuickFile::download()
m_job = KIO::file_copy( m_url, destURL, -1, true, false, false ); // handling progress ourselves
m_job->setAutoErrorHandlingEnabled( true );
- connect( m_job, SIGNAL( result( KIO::Job * )), SLOT( slotResult( KIO::Job * ) ));
- connect( m_job, SIGNAL( percent( KIO::Job *, unsigned long )), SLOT( slotProgress( KIO::Job *, unsigned long ) ));
+ connect( m_job, TQT_SIGNAL( result( KIO::Job * )), TQT_SLOT( slotResult( KIO::Job * ) ));
+ connect( m_job, TQT_SIGNAL( percent( KIO::Job *, unsigned long )), TQT_SLOT( slotProgress( KIO::Job *, unsigned long ) ));
// TODO: generify background/foreground downloading?
return m_job != 0L;
}
-KuickFile::DownloadStatus KuickFile::waitForDownload( QWidget *parent )
+KuickFile::DownloadStatus KuickFile::waitForDownload( TQWidget *parent )
{
if ( isAvailable() )
return OK;
@@ -150,8 +150,8 @@ void KuickFile::slotResult( KIO::Job *job )
if ( job->error() != KIO::ERR_USER_CANCELED )
kdWarning() << "ERROR: KuickFile::slotResult: " << job->errorString() << endl;
- QString canceledFile = static_cast<KIO::FileCopyJob*>(job)->destURL().path();
- QFile::remove( canceledFile );
+ TQString canceledFile = static_cast<KIO::FileCopyJob*>(job)->destURL().path();
+ TQFile::remove( canceledFile );
m_progress->topLevelWidget()->hide();
}
else {
diff --git a/kuickshow/src/kuickfile.h b/kuickshow/src/kuickfile.h
index 957db6ee..2076e612 100644
--- a/kuickshow/src/kuickfile.h
+++ b/kuickshow/src/kuickfile.h
@@ -10,8 +10,8 @@
#ifndef KUICKFILE_H
#define KUICKFILE_H
-#include <qobject.h>
-#include <qstring.h>
+#include <tqobject.h>
+#include <tqstring.h>
#include <kurl.h>
#include <kprogress.h>
@@ -43,7 +43,7 @@ public:
const KURL& url() const { return m_url; }
- QString localFile() const;
+ TQString localFile() const;
bool download();
@@ -71,7 +71,7 @@ public:
* immediately.
* @return true when the download has finished or false when the user aborted the dialog
*/
- KuickFile::DownloadStatus waitForDownload( QWidget *parent );
+ KuickFile::DownloadStatus waitForDownload( TQWidget *parent );
// bool needsDownload();
@@ -87,7 +87,7 @@ private slots:
private:
KURL m_url;
- QString m_localFile;
+ TQString m_localFile;
KIO::FileCopyJob *m_job;
KProgress *m_progress;
int m_currentProgress;
diff --git a/kuickshow/src/kuickimage.cpp b/kuickshow/src/kuickimage.cpp
index 29e5de1c..36fa97c2 100644
--- a/kuickshow/src/kuickimage.cpp
+++ b/kuickshow/src/kuickimage.cpp
@@ -1,7 +1,7 @@
#include "kuickimage.h"
KuickImage::KuickImage( const KuickFile * file, ImlibImage *im, ImlibData *id)
- : QObject( 0L, 0L )
+ : TQObject( 0L, 0L )
{
myFile = file;
myOrigIm = 0L;
@@ -212,9 +212,9 @@ bool KuickImage::smoothResize( int newWidth, int newHeight )
{
// qDebug("-- smoothResize: %i x %i", newWidth, newHeight);
- QImage *image = newQImage();
- // Note: QImage::ScaleMin seems to have a bug (off-by-one, sometimes results in width being 1 pixel too small)
- QImage scaledImage = image->smoothScale(newWidth, newHeight, QImage::ScaleFree);
+ TQImage *image = newQImage();
+ // Note: TQImage::ScaleMin seems to have a bug (off-by-one, sometimes results in width being 1 pixel too small)
+ TQImage scaledImage = image->smoothScale(newWidth, newHeight, TQImage::ScaleFree);
delete image;
@@ -235,7 +235,7 @@ bool KuickImage::smoothResize( int newWidth, int newHeight )
return false;
}
-QImage * KuickImage::newQImage() const
+TQImage * KuickImage::newQImage() const
{
ImlibImage *im;
@@ -255,7 +255,7 @@ QImage * KuickImage::newQImage() const
int w = im->rgb_width;
int h = im->rgb_height;
- QImage *image = new QImage( w, h, 32 );
+ TQImage *image = new TQImage( w, h, 32 );
uchar *rgb = im->rgb_data;
QRgb **destImageData = reinterpret_cast<QRgb**>( image->jumpTable() );
@@ -282,7 +282,7 @@ QImage * KuickImage::newQImage() const
return image;
}
-ImlibImage * KuickImage::toImage( ImlibData *id, QImage& image )
+ImlibImage * KuickImage::toImage( ImlibData *id, TQImage& image )
{
if ( image.isNull() )
return 0L;
@@ -339,7 +339,7 @@ bool KuickImage::smoothResize( int newWidth, int newHeight )
// int w = myOrigWidth; //myViewport.width();
//int h = myOrigHeight; //myViewport.height();
- //QImage dst(w, h, myIm->depth(), myIm->numColors(), myIm->bitOrder());
+ //TQImage dst(w, h, myIm->depth(), myIm->numColors(), myIm->bitOrder());
//QRgb *scanline;
diff --git a/kuickshow/src/kuickimage.h b/kuickshow/src/kuickimage.h
index 745facf4..4463e83a 100644
--- a/kuickshow/src/kuickimage.h
+++ b/kuickshow/src/kuickimage.h
@@ -10,8 +10,8 @@
#ifndef KUICKIMAGE_H
#define KUICKIMAGE_H
-#include <qimage.h>
-#include <qobject.h>
+#include <tqimage.h>
+#include <tqobject.h>
#include <kurl.h>
@@ -49,7 +49,7 @@ public:
ImlibImage * imlibImage() const { return myIm; }
Pixmap& pixmap();
void renderPixmap();
-// const QString& filename() const { return myFilename;}
+// const TQString& filename() const { return myFilename;}
const KuickFile& file() const { return *myFile; }
const KURL& url() const { return myFile->url(); }
@@ -58,7 +58,7 @@ public:
Rotation absRotation() const { return myRotation; }
FlipMode flipMode() const { return myFlipMode; }
- static ImlibImage * toImage( ImlibData *id, QImage& image );
+ static ImlibImage * toImage( ImlibData *id, TQImage& image );
private:
void fastResize( int newWidth, int newHeight );
@@ -66,7 +66,7 @@ private:
/**
* Note: caller must delete it!
*/
- QImage * newQImage() const;
+ TQImage * newQImage() const;
const KuickFile * myFile;
diff --git a/kuickshow/src/kuickshow.cpp b/kuickshow/src/kuickshow.cpp
index 7e8718fb..570e626b 100644
--- a/kuickshow/src/kuickshow.cpp
+++ b/kuickshow/src/kuickshow.cpp
@@ -19,14 +19,14 @@
#include <stdio.h>
#include <assert.h>
-#include <qdir.h>
-#include <qdesktopwidget.h>
-#include <qdialog.h>
-#include <qglobal.h>
-#include <qkeycode.h>
-#include <qlayout.h>
-#include <qsize.h>
-#include <qstring.h>
+#include <tqdir.h>
+#include <tqdesktopwidget.h>
+#include <tqdialog.h>
+#include <tqglobal.h>
+#include <tqkeycode.h>
+#include <tqlayout.h>
+#include <tqsize.h>
+#include <tqstring.h>
#include <kaboutdata.h>
#include <kaccel.h>
@@ -89,7 +89,7 @@ KuickData* kdata;
static const int URL_ITEM = 0;
static const int META_ITEM = 1;
-QValueList<ImageWindow*> KuickShow::s_viewers;
+TQValueList<ImageWindow*> KuickShow::s_viewers;
KuickShow::KuickShow( const char *name )
: KMainWindow( 0L, name ),
@@ -110,8 +110,8 @@ KuickShow::KuickShow( const char *name )
initImlib();
resize( 400, 500 );
- m_slideTimer = new QTimer( this );
- connect( m_slideTimer, SIGNAL( timeout() ), SLOT( nextSlide() ));
+ m_slideTimer = new TQTimer( this );
+ connect( m_slideTimer, TQT_SIGNAL( timeout() ), TQT_SLOT( nextSlide() ));
KConfig *kc = KGlobal::config();
@@ -124,7 +124,7 @@ KuickShow::KuickShow( const char *name )
// files to display
// either a directory to display, an absolute path, a relative path, or a URL
KURL startDir;
- startDir.setPath( QDir::currentDirPath() + '/' );
+ startDir.setPath( TQDir::currentDirPath() + '/' );
int numArgs = args->count();
if ( numArgs >= 10 )
@@ -164,7 +164,7 @@ KuickShow::KuickShow( const char *name )
else if ( !url.isLocalFile() )
{
KMimeType::Ptr mime = KMimeType::findByURL( url );
- QString name = mime->name();
+ TQString name = mime->name();
if ( name == "application/octet-stream" ) // unknown -> stat()
name = KIO::NetAccess::mimetype( url, this );
@@ -231,39 +231,39 @@ void KuickShow::initGUI( const KURL& startDir )
redirectDeleteAndTrashActions(coll);
- connect( fileWidget, SIGNAL( fileSelected( const KFileItem * ) ),
- this, SLOT( slotSelected( const KFileItem * ) ));
+ connect( fileWidget, TQT_SIGNAL( fileSelected( const KFileItem * ) ),
+ this, TQT_SLOT( slotSelected( const KFileItem * ) ));
- connect( fileWidget, SIGNAL( fileHighlighted( const KFileItem * )),
- this, SLOT( slotHighlighted( const KFileItem * ) ));
+ connect( fileWidget, TQT_SIGNAL( fileHighlighted( const KFileItem * )),
+ this, TQT_SLOT( slotHighlighted( const KFileItem * ) ));
- connect( fileWidget, SIGNAL( urlEntered( const KURL& )),
- this, SLOT( dirSelected( const KURL& )) );
+ connect( fileWidget, TQT_SIGNAL( urlEntered( const KURL& )),
+ this, TQT_SLOT( dirSelected( const KURL& )) );
fileWidget->setAcceptDrops(true);
- connect( fileWidget, SIGNAL( dropped( const KFileItem *, QDropEvent *, const KURL::List & )),
- this, SLOT( slotDropped( const KFileItem *, QDropEvent *, const KURL::List &)) );
+ connect( fileWidget, TQT_SIGNAL( dropped( const KFileItem *, TQDropEvent *, const KURL::List & )),
+ this, TQT_SLOT( slotDropped( const KFileItem *, TQDropEvent *, const KURL::List &)) );
// setup actions
- KAction *open = KStdAction::open( this, SLOT( slotOpenURL() ),
+ KAction *open = KStdAction::open( this, TQT_SLOT( slotOpenURL() ),
coll, "openURL" );
- KAction *print = KStdAction::print( this, SLOT( slotPrint() ),
+ KAction *print = KStdAction::print( this, TQT_SLOT( slotPrint() ),
coll, "kuick_print" );
print->setText( i18n("Print Image...") );
KAction *configure = new KAction( i18n("Configure %1...").arg( KGlobal::instance()->aboutData()->programName() ), "configure",
KShortcut(),
- this, SLOT( configuration() ),
+ this, TQT_SLOT( configuration() ),
coll, "kuick_configure" );
KAction *slide = new KAction( i18n("Start Slideshow" ), "ksslide",
KShortcut( Key_F2 ),
- this, SLOT( startSlideShow() ),
+ this, TQT_SLOT( startSlideShow() ),
coll, "kuick_slideshow" );
KAction *about = new KAction( i18n( "About KuickShow" ), "about",
KShortcut(),
- this, SLOT( about() ), coll, "about" );
+ this, TQT_SLOT( about() ), coll, "about" );
oneWindowAction = new KToggleAction( i18n("Open Only One Image Window"),
"window_new",
@@ -272,29 +272,29 @@ void KuickShow::initGUI( const KURL& startDir )
m_toggleBrowserAction = new KToggleAction( i18n("Show File Browser"), KShortcut( Key_Space ), coll, "toggleBrowser" );
m_toggleBrowserAction->setCheckedState(i18n("Hide File Browser"));
- connect( m_toggleBrowserAction, SIGNAL( toggled( bool ) ),
- SLOT( toggleBrowser() ));
+ connect( m_toggleBrowserAction, TQT_SIGNAL( toggled( bool ) ),
+ TQT_SLOT( toggleBrowser() ));
KAction *showInOther = new KAction( i18n("Show Image"), KShortcut(),
- this, SLOT( slotShowInOtherWindow() ),
+ this, TQT_SLOT( slotShowInOtherWindow() ),
coll, "kuick_showInOtherWindow" );
KAction *showInSame = new KAction( i18n("Show Image in Active Window"),
KShortcut(),
- this, SLOT( slotShowInSameWindow() ),
+ this, TQT_SLOT( slotShowInSameWindow() ),
coll, "kuick_showInSameWindow" );
KAction *showFullscreen = new KAction( i18n("Show Image in Fullscreen Mode"),
- KShortcut(), this, SLOT( slotShowFullscreen() ),
+ KShortcut(), this, TQT_SLOT( slotShowFullscreen() ),
coll, "kuick_showFullscreen" );
- KAction *quit = KStdAction::quit( this, SLOT(slotQuit()), coll, "quit");
+ KAction *quit = KStdAction::quit( this, TQT_SLOT(slotQuit()), coll, "quit");
- // remove QString::null parameter -- ellis
- coll->readShortcutSettings( QString::null );
+ // remove TQString::null parameter -- ellis
+ coll->readShortcutSettings( TQString::null );
m_accel = coll->accel();
// menubar
KMenuBar *mBar = menuBar();
- QPopupMenu *fileMenu = new QPopupMenu( mBar, "file" );
+ TQPopupMenu *fileMenu = new TQPopupMenu( mBar, "file" );
open->plug( fileMenu );
showInOther->plug( fileMenu );
showInSame->plug( fileMenu );
@@ -305,7 +305,7 @@ void KuickShow::initGUI( const KURL& startDir )
fileMenu->insertSeparator();
quit->plug( fileMenu );
- QPopupMenu *editMenu = new QPopupMenu( mBar, "edit" );
+ TQPopupMenu *editMenu = new TQPopupMenu( mBar, "edit" );
coll->action("mkdir")->plug( editMenu );
coll->action("delete")->plug( editMenu );
editMenu->insertSeparator();
@@ -316,10 +316,10 @@ void KuickShow::initGUI( const KURL& startDir )
// from the main contextmenu
KActionMenu *sortingMenu = static_cast<KActionMenu*>( coll->action("sorting menu"));
KActionMenu *mainActionMenu = static_cast<KActionMenu*>( coll->action("popupMenu"));
- QPopupMenu *mainPopup = mainActionMenu->popupMenu();
+ TQPopupMenu *mainPopup = mainActionMenu->popupMenu();
int sortingIndex = mainPopup->indexOf( sortingMenu->itemId( 0 ) );
int separatorId = mainPopup->idAt( sortingIndex + 1 );
- QMenuItem *separatorItem = mainPopup->findItem( separatorId );
+ TQMenuItem *separatorItem = mainPopup->findItem( separatorId );
if ( separatorItem && separatorItem->isSeparator() )
mainPopup->removeItem( separatorId );
mainActionMenu->remove( sortingMenu );
@@ -330,7 +330,7 @@ void KuickShow::initGUI( const KURL& startDir )
sortingMenu->plug( viewActionMenu->popupMenu(), 0 ); // on top of the menu
- QPopupMenu *settingsMenu = new QPopupMenu( mBar, "settings" );
+ TQPopupMenu *settingsMenu = new TQPopupMenu( mBar, "settings" );
configure->plug( settingsMenu );
mBar->insertItem( i18n("&File"), fileMenu );
@@ -363,14 +363,14 @@ void KuickShow::initGUI( const KURL& startDir )
tBar->insertSeparator();
about->plug( tBar );
- QPopupMenu *help = helpMenu( QString::null, false );
+ TQPopupMenu *help = helpMenu( TQString::null, false );
mBar->insertItem( KStdGuiItem::help().text() , help );
KStatusBar* sBar = statusBar();
sBar->insertItem( " ", URL_ITEM, 10 );
sBar->insertItem( " ", META_ITEM, 2 );
- sBar->setItemAlignment(URL_ITEM, QLabel::AlignVCenter | QLabel::AlignLeft);
+ sBar->setItemAlignment(URL_ITEM, TQLabel::AlignVCenter | TQLabel::AlignLeft);
fileWidget->setFocus();
@@ -394,10 +394,10 @@ void KuickShow::initGUI( const KURL& startDir )
addressToolBar->insertWidget( ID_ADDRESSBAR, 1, cmbPath);
addressToolBar->setItemAutoSized( ID_ADDRESSBAR );
- connect( cmbPath, SIGNAL( urlActivated( const KURL& )),
- this, SLOT( slotSetURL( const KURL& )));
- connect( cmbPath, SIGNAL( returnPressed()),
- this, SLOT( slotURLComboReturnPressed()));
+ connect( cmbPath, TQT_SIGNAL( urlActivated( const KURL& )),
+ this, TQT_SLOT( slotSetURL( const KURL& )));
+ connect( cmbPath, TQT_SIGNAL( returnPressed()),
+ this, TQT_SLOT( slotURLComboReturnPressed()));
fileWidget->initActions();
@@ -422,14 +422,14 @@ void KuickShow::redirectDeleteAndTrashActions(KActionCollection *coll)
if (action)
{
action->disconnect(fileWidget);
- connect(action, SIGNAL(activated()), this, SLOT(slotDeleteCurrentImage()));
+ connect(action, TQT_SIGNAL(activated()), this, TQT_SLOT(slotDeleteCurrentImage()));
}
action = coll->action("trash");
if (action)
{
action->disconnect(fileWidget);
- connect(action, SIGNAL(activated()), this, SLOT(slotTrashCurrentImage()));
+ connect(action, TQT_SIGNAL(activated()), this, TQT_SLOT(slotTrashCurrentImage()));
}
}
@@ -478,7 +478,7 @@ void KuickShow::slotHighlighted( const KFileItem *fi )
statusBar()->changeItem( item->getStatusBarInfo(), URL_ITEM );
bool image = FileWidget::isImage( fi );
- QString meta;
+ TQString meta;
if ( image )
{
KFileMetaInfo info = item->metaInfo();
@@ -488,7 +488,7 @@ void KuickShow::slotHighlighted( const KFileItem *fi )
KFileMetaInfoGroup group = info.group( "Technical" );
if ( group.isValid() )
{
- QString bpp = group.item( "BitDepth" ).string();
+ TQString bpp = group.item( "BitDepth" ).string();
if ( !bpp.isEmpty() )
meta.append( ", " ).append( bpp );
}
@@ -537,19 +537,19 @@ bool KuickShow::showImage( const KFileItem *fi,
m_viewer->setFullscreen( fullscreen );
s_viewers.append( m_viewer );
- connect( m_viewer, SIGNAL( destroyed() ), SLOT( viewerDeleted() ));
- connect( m_viewer, SIGNAL( sigFocusWindow( ImageWindow *) ),
- this, SLOT( slotSetActiveViewer( ImageWindow * ) ));
- connect( m_viewer, SIGNAL( sigImageError(const KuickFile *, const QString& ) ),
- this, SLOT( messageCantLoadImage(const KuickFile *, const QString &) ));
- connect( m_viewer, SIGNAL( requestImage( ImageWindow *, int )),
- this, SLOT( slotAdvanceImage( ImageWindow *, int )));
- connect( m_viewer, SIGNAL( pauseSlideShowSignal() ),
- this, SLOT( pauseSlideShow() ) );
- connect( m_viewer, SIGNAL (deleteImage (ImageWindow *)),
- this, SLOT (slotDeleteCurrentImage (ImageWindow *)));
- connect( m_viewer, SIGNAL (trashImage (ImageWindow *)),
- this, SLOT (slotTrashCurrentImage (ImageWindow *)));
+ connect( m_viewer, TQT_SIGNAL( destroyed() ), TQT_SLOT( viewerDeleted() ));
+ connect( m_viewer, TQT_SIGNAL( sigFocusWindow( ImageWindow *) ),
+ this, TQT_SLOT( slotSetActiveViewer( ImageWindow * ) ));
+ connect( m_viewer, TQT_SIGNAL( sigImageError(const KuickFile *, const TQString& ) ),
+ this, TQT_SLOT( messageCantLoadImage(const KuickFile *, const TQString &) ));
+ connect( m_viewer, TQT_SIGNAL( requestImage( ImageWindow *, int )),
+ this, TQT_SLOT( slotAdvanceImage( ImageWindow *, int )));
+ connect( m_viewer, TQT_SIGNAL( pauseSlideShowSignal() ),
+ this, TQT_SLOT( pauseSlideShow() ) );
+ connect( m_viewer, TQT_SIGNAL (deleteImage (ImageWindow *)),
+ this, TQT_SLOT (slotDeleteCurrentImage (ImageWindow *)));
+ connect( m_viewer, TQT_SIGNAL (trashImage (ImageWindow *)),
+ this, TQT_SLOT (slotTrashCurrentImage (ImageWindow *)));
if ( s_viewers.count() == 1 && moveToTopLeft ) {
// we have to move to 0x0 before showing _and_
// after showing, otherwise we get some bogus geometry()
@@ -568,7 +568,7 @@ bool KuickShow::showImage( const KFileItem *fi,
ImageWindow *safeViewer = m_viewer;
// file->waitForDownload( this );
-// QString filename;
+// TQString filename;
// KIO::NetAccess::download(fi->url(), filename, this);
if ( !safeViewer->showNextImage( fi->url() ) ) {
@@ -631,7 +631,7 @@ void KuickShow::slotTrashCurrentImage(ImageWindow *viewer)
performTrashCurrentImage(viewer);
}
-void KuickShow::performDeleteCurrentImage(QWidget *parent)
+void KuickShow::performDeleteCurrentImage(TQWidget *parent)
{
assert(fileWidget != 0L);
@@ -654,7 +654,7 @@ void KuickShow::performDeleteCurrentImage(QWidget *parent)
fileWidget->del(list, false, false);
}
-void KuickShow::performTrashCurrentImage(QWidget *parent)
+void KuickShow::performTrashCurrentImage(TQWidget *parent)
{
assert(fileWidget != 0L);
@@ -698,7 +698,7 @@ void KuickShow::tryShowNextImage()
if (!haveBrowser())
{
// ### when simply calling toggleBrowser(), this main window is completely messed up
- QTimer::singleShot(0, this, SLOT(toggleBrowser()));
+ TQTimer::singleShot(0, this, TQT_SLOT(toggleBrowser()));
}
m_viewer->deleteLater();
}
@@ -805,7 +805,7 @@ void KuickShow::slotShowFullscreen()
showImage( fileWidget->getCurrentItem( false ), false, true );
}
-void KuickShow::slotDropped( const KFileItem *, QDropEvent *, const KURL::List &urls)
+void KuickShow::slotDropped( const KFileItem *, TQDropEvent *, const KURL::List &urls)
{
KURL::List::ConstIterator it = urls.begin();
for ( ; it != urls.end(); ++it )
@@ -855,7 +855,7 @@ void KuickShow::slotAdvanceImage( ImageWindow *view, int steps )
}
if ( FileWidget::isImage( item ) ) {
-// QString filename;
+// TQString filename;
// KIO::NetAccess::download(item->url(), filename, this);
view->showNextImage( item->url() );
if (m_slideTimer->isActive() && kdata->slideDelay)
@@ -869,7 +869,7 @@ void KuickShow::slotAdvanceImage( ImageWindow *view, int steps )
}
}
-bool KuickShow::eventFilter( QObject *o, QEvent *e )
+bool KuickShow::eventFilter( TQObject *o, TQEvent *e )
{
if ( m_delayedRepeatItem ) // we probably need to install an eventFilter over
{
@@ -878,9 +878,9 @@ bool KuickShow::eventFilter( QObject *o, QEvent *e )
bool ret = false;
int eventType = e->type();
- QKeyEvent *k = 0L;
- if ( eventType == QEvent::KeyPress )
- k = static_cast<QKeyEvent *>( e );
+ TQKeyEvent *k = 0L;
+ if ( eventType == TQEvent::KeyPress )
+ k = static_cast<TQKeyEvent *>( e );
if ( k ) {
if ( KStdAccel::quit().contains( KKey( k ) ) ) {
@@ -903,11 +903,11 @@ bool KuickShow::eventFilter( QObject *o, QEvent *e )
// switching images, causing enter- and leaveevents for this
// ImageWindow, leading to the cursor being unhidden. So we simply
// don't pass those events to KCursor to prevent that.
- if ( eventType != QEvent::Leave && eventType != QEvent::Enter )
+ if ( eventType != TQEvent::Leave && eventType != TQEvent::Enter )
KCursor::autoHideEventFilter( o, e );
m_viewer = window;
- QString img;
+ TQString img;
KFileItem *item = 0L; // the image to be shown
KFileItem *item_next = 0L; // the image to be cached
@@ -925,7 +925,7 @@ bool KuickShow::eventFilter( QObject *o, QEvent *e )
if ( key != Key_Escape && key != Key_Shift && key != Key_Alt )
{
KuickFile *file = m_viewer->currentFile();
-// QFileInfo fi( m_viewer->filename() );
+// TQFileInfo fi( m_viewer->filename() );
// start.setPath( fi.dirPath( true ) );
initGUI( file->url().upURL() );
@@ -952,7 +952,7 @@ bool KuickShow::eventFilter( QObject *o, QEvent *e )
if ( fileWidget->dirLister()->rootItem() )
{
fileWidget->setCurrentItem( file->url().fileName() );
- QTimer::singleShot( 0, this, SLOT( slotReplayEvent()));
+ TQTimer::singleShot( 0, this, TQT_SLOT( slotReplayEvent()));
}
else // finished, but no root-item -- probably an error, kill repeat-item!
{
@@ -962,8 +962,8 @@ bool KuickShow::eventFilter( QObject *o, QEvent *e )
else // not finished yet
{
fileWidget->setInitialItem( file->url().fileName() );
- connect( fileWidget, SIGNAL( finished() ),
- SLOT( slotReplayEvent() ));
+ connect( fileWidget, TQT_SIGNAL( finished() ),
+ TQT_SLOT( slotReplayEvent() ));
}
return true;
@@ -1018,7 +1018,7 @@ bool KuickShow::eventFilter( QObject *o, QEvent *e )
if ( FileWidget::isImage( item ) ) {
-// QString filename;
+// TQString filename;
// KIO::NetAccess::download(item->url(), filename, this);
m_viewer->showNextImage( item->url() );
@@ -1034,9 +1034,9 @@ bool KuickShow::eventFilter( QObject *o, QEvent *e )
// doubleclick closes image window
// and shows browser when last window closed via doubleclick
- else if ( eventType == QEvent::MouseButtonDblClick )
+ else if ( eventType == TQEvent::MouseButtonDblClick )
{
- QMouseEvent *ev = static_cast<QMouseEvent*>( e );
+ TQMouseEvent *ev = static_cast<TQMouseEvent*>( e );
if ( ev->button() == LeftButton )
{
if ( s_viewers.count() == 1 )
@@ -1044,7 +1044,7 @@ bool KuickShow::eventFilter( QObject *o, QEvent *e )
if ( !fileWidget )
{
// KURL start;
-// QFileInfo fi( window->filename() );
+// TQFileInfo fi( window->filename() );
// start.setPath( fi.dirPath( true ) );
initGUI( window->currentFile()->url().fileName() );
}
@@ -1072,8 +1072,8 @@ void KuickShow::configuration()
{
if ( !m_accel ) {
KURL start;
- start.setPath( QDir::homeDirPath() );
- initGUI( KURL::fromPathOrURL( QDir::homeDirPath() ) );
+ start.setPath( TQDir::homeDirPath() );
+ initGUI( KURL::fromPathOrURL( TQDir::homeDirPath() ) );
}
dialog = new KuickConfigDialog( fileWidget->actionCollection(), 0L,
@@ -1081,12 +1081,12 @@ void KuickShow::configuration()
dialog->resize( 540, 510 );
dialog->setIcon( kapp->miniIcon() );
- connect( dialog, SIGNAL( okClicked() ),
- this, SLOT( slotConfigApplied() ) );
- connect( dialog, SIGNAL( applyClicked() ),
- this, SLOT( slotConfigApplied() ) );
- connect( dialog, SIGNAL( finished() ),
- this, SLOT( slotConfigClosed() ) );
+ connect( dialog, TQT_SIGNAL( okClicked() ),
+ this, TQT_SLOT( slotConfigApplied() ) );
+ connect( dialog, TQT_SIGNAL( applyClicked() ),
+ this, TQT_SLOT( slotConfigApplied() ) );
+ connect( dialog, TQT_SIGNAL( finished() ),
+ this, TQT_SLOT( slotConfigClosed() ) );
fileWidget->actionCollection()->action( "kuick_configure" )->setEnabled( false );
dialog->show();
@@ -1101,7 +1101,7 @@ void KuickShow::slotConfigApplied()
kdata->save();
ImageWindow *viewer;
- QValueListIterator<ImageWindow*> it = s_viewers.begin();
+ TQValueListIterator<ImageWindow*> it = s_viewers.begin();
while ( it != s_viewers.end() ) {
viewer = *it;
viewer->updateActions();
@@ -1129,12 +1129,12 @@ void KuickShow::about()
KDialog::centerOnScreen( aboutWidget );
#else
// Not fixed because it must be dead code now.
- QDesktopWidget *desktop = QApplication::desktop();
+ TQDesktopWidget *desktop = TQApplication::desktop();
int screen = desktop->screenNumber( aboutWidget );
if ( screen == -1 )
screen = desktop->primaryScreen();
- QRect r = desktop->screenGeometry( screen );
+ TQRect r = desktop->screenGeometry( screen );
aboutWidget->move( r.center().x() - aboutWidget->width()/2,
r.center().y() - aboutWidget->height()/2 );
#endif
@@ -1146,15 +1146,15 @@ void KuickShow::about()
void KuickShow::readProperties( KConfig *kc )
{
assert( fileWidget ); // from SM, we should always have initGUI on startup
- QString dir = kc->readPathEntry( "CurrentDirectory" );
+ TQString dir = kc->readPathEntry( "CurrentDirectory" );
if ( !dir.isEmpty() ) {
fileWidget->setURL( KURL::fromPathOrURL( dir ), true );
fileWidget->clearHistory();
}
const KURL& listedURL = fileWidget->url();
- QStringList images = kc->readPathListEntry( "Images shown" );
- QStringList::Iterator it;
+ TQStringList images = kc->readPathListEntry( "Images shown" );
+ TQStringList::Iterator it;
bool hasCurrentURL = false;
for ( it = images.begin(); it != images.end(); ++it ) {
@@ -1179,8 +1179,8 @@ void KuickShow::saveProperties( KConfig *kc )
if (fileWidget)
kc->writePathEntry( "CurrentDirectory", fileWidget->url().url() );
- QStringList urls;
- QValueListIterator<ImageWindow*> it;
+ TQStringList urls;
+ TQValueListIterator<ImageWindow*> it;
for ( it = s_viewers.begin(); it != s_viewers.end(); ++it )
{
const KURL& url = (*it)->currentFile()->url();
@@ -1212,7 +1212,7 @@ void KuickShow::saveSettings()
}
-void KuickShow::messageCantLoadImage( const KuickFile *, const QString& message )
+void KuickShow::messageCantLoadImage( const KuickFile *, const TQString& message )
{
m_viewer->clearFocus();
KMessageBox::information( m_viewer, message, i18n("Error"), "kuick_cant_load_image" );
@@ -1229,7 +1229,7 @@ void KuickShow::initImlib()
initImlibParams( idata, &par );
qWarning("*** KuickShow: Whoops, can't initialize imlib, trying my own palettefile now.");
- QString paletteFile = locate( "data", "kuickshow/im_palette.pal" );
+ TQString paletteFile = locate( "data", "kuickshow/im_palette.pal" );
// ### - does the qstrdup() cure the segfault in imlib eventually?
char *file = qstrdup( paletteFile.local8Bit() );
par.palettefile = file;
@@ -1240,7 +1240,7 @@ void KuickShow::initImlib()
id = Imlib_init_with_params( x11Display(), &par );
if ( !id ) {
- QString tmp = i18n("Unable to initialize \"Imlib\".\n"
+ TQString tmp = i18n("Unable to initialize \"Imlib\".\n"
"Start kuickshow from the command line "
"and look for error messages.\n"
"The program will now quit.");
@@ -1281,9 +1281,9 @@ bool KuickShow::haveBrowser() const
return fileWidget && fileWidget->isVisible();
}
-void KuickShow::delayedRepeatEvent( ImageWindow *w, QKeyEvent *e )
+void KuickShow::delayedRepeatEvent( ImageWindow *w, TQKeyEvent *e )
{
- m_delayedRepeatItem = new DelayedRepeatEvent( w, new QKeyEvent( *e ) );
+ m_delayedRepeatItem = new DelayedRepeatEvent( w, new TQKeyEvent( *e ) );
}
void KuickShow::abortDelayedEvent()
@@ -1294,8 +1294,8 @@ void KuickShow::abortDelayedEvent()
void KuickShow::slotReplayEvent()
{
- disconnect( fileWidget, SIGNAL( finished() ),
- this, SLOT( slotReplayEvent() ));
+ disconnect( fileWidget, TQT_SIGNAL( finished() ),
+ this, TQT_SLOT( slotReplayEvent() ));
DelayedRepeatEvent *e = m_delayedRepeatItem;
m_delayedRepeatItem = 0L; // otherwise, eventFilter aborts
@@ -1303,10 +1303,10 @@ void KuickShow::slotReplayEvent()
eventFilter( e->viewer, e->event );
delete e;
- // ### WORKAROUND for QIconView bug in Qt <= 3.0.3 at least
+ // ### WORKAROUND for TQIconView bug in Qt <= 3.0.3 at least
if ( fileWidget && fileWidget->view() ) {
- QWidget *widget = fileWidget->view()->widget();
- if ( widget->inherits( "QIconView" ) || widget->child(0, "QIconView" ) ){
+ TQWidget *widget = fileWidget->view()->widget();
+ if ( widget->inherits( "TQIconView" ) || widget->child(0, "TQIconView" ) ){
fileWidget->setSorting( fileWidget->sorting() );
}
}
@@ -1315,12 +1315,12 @@ void KuickShow::slotReplayEvent()
void KuickShow::replayAdvance(DelayedRepeatEvent *event)
{
- // ### WORKAROUND for QIconView bug in Qt <= 3.0.3 at least
+ // ### WORKAROUND for TQIconView bug in Qt <= 3.0.3 at least
// Sigh. According to qt-bugs, they won't fix this bug ever. So you can't
- // rely on sorting to be correct before the QIconView has been show()n.
+ // rely on sorting to be correct before the TQIconView has been show()n.
if ( fileWidget && fileWidget->view() ) {
- QWidget *widget = fileWidget->view()->widget();
- if ( widget->inherits( "QIconView" ) || widget->child(0, "QIconView" ) ){
+ TQWidget *widget = fileWidget->view()->widget();
+ if ( widget->inherits( "TQIconView" ) || widget->child(0, "TQIconView" ) ){
fileWidget->setSorting( fileWidget->sorting() );
}
}
@@ -1337,7 +1337,7 @@ void KuickShow::delayAction(DelayedRepeatEvent *event)
m_delayedRepeatItem = event;
KURL url = event->viewer->currentFile()->url();
-// QFileInfo fi( event->viewer->filename() );
+// TQFileInfo fi( event->viewer->filename() );
// start.setPath( fi.dirPath( true ) );
initGUI( url.upURL() );
@@ -1346,13 +1346,13 @@ void KuickShow::delayAction(DelayedRepeatEvent *event)
fileWidget->dirLister()->rootItem() )
{
fileWidget->setCurrentItem( url.fileName() );
- QTimer::singleShot( 0, this, SLOT( doReplay()));
+ TQTimer::singleShot( 0, this, TQT_SLOT( doReplay()));
}
else
{
fileWidget->setInitialItem( url.fileName() );
- connect( fileWidget, SIGNAL( finished() ),
- SLOT( doReplay() ));
+ connect( fileWidget, TQT_SIGNAL( finished() ),
+ TQT_SLOT( doReplay() ));
}
}
@@ -1361,16 +1361,16 @@ void KuickShow::doReplay()
if (!m_delayedRepeatItem)
return;
- disconnect( fileWidget, SIGNAL( finished() ),
- this, SLOT( doReplay() ));
+ disconnect( fileWidget, TQT_SIGNAL( finished() ),
+ this, TQT_SLOT( doReplay() ));
switch (m_delayedRepeatItem->action)
{
case DelayedRepeatEvent::DeleteCurrentFile:
- performDeleteCurrentImage((QWidget *) m_delayedRepeatItem->data);
+ performDeleteCurrentImage((TQWidget *) m_delayedRepeatItem->data);
break;
case DelayedRepeatEvent::TrashCurrentFile:
- performTrashCurrentImage((QWidget *) m_delayedRepeatItem->data);
+ performTrashCurrentImage((TQWidget *) m_delayedRepeatItem->data);
break;
case DelayedRepeatEvent::AdvanceViewer:
replayAdvance(m_delayedRepeatItem);
@@ -1401,11 +1401,11 @@ void KuickShow::toggleBrowser()
void KuickShow::slotOpenURL()
{
- KFileDialog dlg(QString::null, kdata->fileFilter, this, "filedialog", true);
+ KFileDialog dlg(TQString::null, kdata->fileFilter, this, "filedialog", true);
dlg.setMode( KFile::Files | KFile::Directory );
dlg.setCaption( i18n("Select Files or Folder to Open") );
- if ( dlg.exec() == QDialog::Accepted )
+ if ( dlg.exec() == TQDialog::Accepted )
{
KURL::List urls = dlg.selectedURLs();
KURL::List::ConstIterator it = urls.begin();
@@ -1422,9 +1422,9 @@ void KuickShow::slotOpenURL()
void KuickShow::deleteAllViewers()
{
- QValueListIterator<ImageWindow*> it = s_viewers.begin();
+ TQValueListIterator<ImageWindow*> it = s_viewers.begin();
for ( ; it != s_viewers.end(); ++it ) {
- (*it)->disconnect( SIGNAL( destroyed() ), this, SLOT( viewerDeleted() ));
+ (*it)->disconnect( TQT_SIGNAL( destroyed() ), this, TQT_SLOT( viewerDeleted() ));
(*it)->close( true );
}
diff --git a/kuickshow/src/kuickshow.h b/kuickshow/src/kuickshow.h
index d6239b64..4aeb1f2e 100644
--- a/kuickshow/src/kuickshow.h
+++ b/kuickshow/src/kuickshow.h
@@ -19,10 +19,10 @@
#ifndef KUICKSHOW_H
#define KUICKSHOW_H
-#include <qevent.h>
-#include <qguardedptr.h>
-#include <qstring.h>
-#include <qvaluelist.h>
+#include <tqevent.h>
+#include <tqguardedptr.h>
+#include <tqstring.h>
+#include <tqvaluelist.h>
#include <kfileitem.h>
#include <kmainwindow.h>
@@ -50,7 +50,7 @@ class KuickFile;
class DelayedRepeatEvent
{
public:
- DelayedRepeatEvent( ImageWindow *view, QKeyEvent *ev ) {
+ DelayedRepeatEvent( ImageWindow *view, TQKeyEvent *ev ) {
viewer = view;
event = ev;
}
@@ -73,7 +73,7 @@ public:
};
ImageWindow *viewer;
- QKeyEvent *event;
+ TQKeyEvent *event;
int action;
void *data;
};
@@ -88,7 +88,7 @@ public:
~KuickShow();
virtual void show();
- static QValueList<ImageWindow*> s_viewers;
+ static TQValueList<ImageWindow*> s_viewers;
// overridden to make KDCOPActionProxy work -- all our actions are not
// in the mainwindow's collection, but in the filewidget's.
@@ -106,7 +106,7 @@ private slots:
void slotPrint();
void slotConfigApplied();
void slotConfigClosed();
- void messageCantLoadImage( const KuickFile * file, const QString& message);
+ void messageCantLoadImage( const KuickFile * file, const TQString& message);
bool showImage(const KFileItem *, bool newWindow = false,
bool fullscreen = false, bool moveToTopLeft = true );
void showFileItem( ImageWindow *, const KFileItem * );
@@ -120,7 +120,7 @@ private slots:
void nextSlide();
void nextSlide( KFileItem *item );
void viewerDeleted();
- void slotDropped( const KFileItem *, QDropEvent *, const KURL::List &);
+ void slotDropped( const KFileItem *, TQDropEvent *, const KURL::List &);
void slotSetActiveViewer( ImageWindow *i ) { m_viewer = i; }
void slotAdvanceImage( ImageWindow *, int steps );
@@ -142,12 +142,12 @@ private slots:
private:
void initGUI( const KURL& startDir );
- bool eventFilter( QObject *, QEvent * );
+ bool eventFilter( TQObject *, TQEvent * );
void initImlib();
void saveProperties( KConfig * );
void saveSettings();
bool haveBrowser() const;
- void delayedRepeatEvent( ImageWindow *, QKeyEvent * );
+ void delayedRepeatEvent( ImageWindow *, TQKeyEvent * );
void abortDelayedEvent();
void deleteAllViewers();
void redirectDeleteAndTrashActions(KActionCollection *coll);
@@ -155,8 +155,8 @@ private:
void delayAction(DelayedRepeatEvent *event);
void replayAdvance(DelayedRepeatEvent *event);
- void performDeleteCurrentImage(QWidget *parent);
- void performTrashCurrentImage(QWidget *parent);
+ void performDeleteCurrentImage(TQWidget *parent);
+ void performTrashCurrentImage(TQWidget *parent);
uint viewItem, renameItem, deleteItem, printItem;
uint m_slideshowCycle;
@@ -169,10 +169,10 @@ private:
KToggleAction *oneWindowAction;
KAccel *m_accel;
DelayedRepeatEvent *m_delayedRepeatItem;
- QTimer *m_slideTimer;
+ TQTimer *m_slideTimer;
bool m_slideShowStopped;
KToggleAction *m_toggleBrowserAction;
- QGuardedPtr<AboutWidget> aboutWidget;
+ TQGuardedPtr<AboutWidget> aboutWidget;
};
#endif
diff --git a/kuickshow/src/kurlwidget.cpp b/kuickshow/src/kurlwidget.cpp
index 0a23fa3a..342c78c5 100644
--- a/kuickshow/src/kurlwidget.cpp
+++ b/kuickshow/src/kurlwidget.cpp
@@ -16,18 +16,18 @@
Boston, MA 02110-1301, USA.
*/
-#include <qtooltip.h>
+#include <tqtooltip.h>
#include <kurl.h>
#include <krun.h>
#include "kurlwidget.h"
-KURLWidget::KURLWidget(const QString& text, QWidget *parent, const char *name)
+KURLWidget::KURLWidget(const TQString& text, TQWidget *parent, const char *name)
: KURLLabel( parent, name )
{
setText( text );
- connect( this, SIGNAL( leftClickedURL() ), SLOT( run() ));
+ connect( this, TQT_SIGNAL( leftClickedURL() ), TQT_SLOT( run() ));
setUseTips( true );
}
diff --git a/kuickshow/src/kurlwidget.h b/kuickshow/src/kurlwidget.h
index 2f35e009..68b621fc 100644
--- a/kuickshow/src/kurlwidget.h
+++ b/kuickshow/src/kurlwidget.h
@@ -26,7 +26,7 @@ class KURLWidget : public KURLLabel
Q_OBJECT
public:
- KURLWidget( const QString& text, QWidget *, const char *name=0 );
+ KURLWidget( const TQString& text, TQWidget *, const char *name=0 );
protected slots:
virtual void run();
diff --git a/kuickshow/src/main.cpp b/kuickshow/src/main.cpp
index dfb462f0..41fcbace 100644
--- a/kuickshow/src/main.cpp
+++ b/kuickshow/src/main.cpp
@@ -16,7 +16,7 @@
Boston, MA 02110-1301, USA.
*/
-#include <qstring.h>
+#include <tqstring.h>
#include <kaboutdata.h>
#include <kapplication.h>
diff --git a/kuickshow/src/mainwidget.cpp b/kuickshow/src/mainwidget.cpp
index caa6700c..47b3d837 100644
--- a/kuickshow/src/mainwidget.cpp
+++ b/kuickshow/src/mainwidget.cpp
@@ -21,10 +21,10 @@
#include "mainwidget.h"
-MainWidget::MainWidget( QString startDir, QWidget *parent,
- const char *name ) : QWidget ( parent, name )
+MainWidget::MainWidget( TQString startDir, TQWidget *parent,
+ const char *name ) : TQWidget ( parent, name )
{
- box = new FileView( startDir, true, (QDir::Dirs | QDir::Files),
+ box = new FileView( startDir, true, (TQDir::Dirs | TQDir::Files),
this, "fileview" );
}
@@ -36,7 +36,7 @@ MainWidget::~MainWidget()
// for now, no layout managers
-void MainWidget::resizeEvent( QResizeEvent * )
+void MainWidget::resizeEvent( TQResizeEvent * )
{
box->resize( width(), height() );
}
diff --git a/kuickshow/src/mainwidget.h b/kuickshow/src/mainwidget.h
index 36285dd8..bb633ba8 100644
--- a/kuickshow/src/mainwidget.h
+++ b/kuickshow/src/mainwidget.h
@@ -19,9 +19,9 @@
#ifndef MAINWIDGET_H
#define MAINWIDGET_H
-#include <qevent.h>
-#include <qstring.h>
-#include <qwidget.h>
+#include <tqevent.h>
+#include <tqstring.h>
+#include <tqwidget.h>
class FileView;
@@ -30,13 +30,13 @@ class MainWidget : public QWidget
Q_OBJECT
public:
- MainWidget( QString, QWidget *parent, const char *name=0L);
+ MainWidget( TQString, TQWidget *parent, const char *name=0L);
~MainWidget();
FileView* getFileBox() { return box; }
protected:
- virtual void resizeEvent( QResizeEvent * );
+ virtual void resizeEvent( TQResizeEvent * );
private:
FileView *box;
diff --git a/kuickshow/src/printing.cpp b/kuickshow/src/printing.cpp
index be57ca7f..64687e55 100644
--- a/kuickshow/src/printing.cpp
+++ b/kuickshow/src/printing.cpp
@@ -16,19 +16,19 @@
Boston, MA 02110-1301, USA.
*/
-#include <qcheckbox.h>
-#include <qfont.h>
-#include <qfontmetrics.h>
-#include <qgrid.h>
-#include <qhbox.h>
-#include <qlayout.h>
-#include <qimage.h>
+#include <tqcheckbox.h>
+#include <tqfont.h>
+#include <tqfontmetrics.h>
+#include <tqgrid.h>
+#include <tqhbox.h>
+#include <tqlayout.h>
+#include <tqimage.h>
#include <kimageeffect.h>
-#include <qpaintdevicemetrics.h>
-#include <qpainter.h>
-#include <qradiobutton.h>
-#include <qvbuttongroup.h>
-#include <qcolor.h>
+#include <tqpaintdevicemetrics.h>
+#include <tqpainter.h>
+#include <tqradiobutton.h>
+#include <tqvbuttongroup.h>
+#include <tqcolor.h>
#include <kcombobox.h>
#include <kdialog.h>
@@ -43,9 +43,9 @@
#include "printing.h"
#include "version.h"
-bool Printing::printImage( ImageWindow& imageWin, QWidget *parent )
+bool Printing::printImage( ImageWindow& imageWin, TQWidget *parent )
{
- QString imageURL = imageWin.url().prettyURL();
+ TQString imageURL = imageWin.url().prettyURL();
KPrinter printer;
printer.setDocName( imageURL );
printer.setCreator( "KuickShow-" KUICKSHOWVERSION );
@@ -54,7 +54,7 @@ bool Printing::printImage( ImageWindow& imageWin, QWidget *parent )
if ( printer.setup( parent, i18n("Print %1").arg(printer.docName().section('/', -1)) ) )
{
- KTempFile tmpFile( QString::null, ".png" );
+ KTempFile tmpFile( TQString::null, ".png" );
if ( tmpFile.status() == 0 )
{
tmpFile.setAutoDelete( true );
@@ -69,27 +69,27 @@ bool Printing::printImage( ImageWindow& imageWin, QWidget *parent )
return true; // user aborted
}
-bool Printing::printImageWithQt( const QString& filename, KPrinter& printer,
- const QString& originalFileName )
+bool Printing::printImageWithQt( const TQString& filename, KPrinter& printer,
+ const TQString& originalFileName )
{
- QImage image( filename );
+ TQImage image( filename );
if ( image.isNull() ) {
kdWarning() << "Can't load image: " << filename << " for printing.\n";
return false;
}
- QPainter p;
+ TQPainter p;
p.begin( &printer );
- QPaintDeviceMetrics metrics( &printer );
+ TQPaintDeviceMetrics metrics( &printer );
p.setFont( KGlobalSettings::generalFont() );
- QFontMetrics fm = p.fontMetrics();
+ TQFontMetrics fm = p.fontMetrics();
int w = metrics.width();
int h = metrics.height();
- QString t = "true";
- QString f = "false";
+ TQString t = "true";
+ TQString f = "false";
// Black & white print?
if ( printer.option( "app-kuickshow-blackwhite" ) != f) {
@@ -107,9 +107,9 @@ bool Printing::printImageWithQt( const QString& filename, KPrinter& printer,
// shrink image to pagesize, if necessary
//
bool shrinkToFit = (printer.option( "app-kuickshow-shrinkToFit" ) != f);
- QSize imagesize = image.size();
+ TQSize imagesize = image.size();
if ( shrinkToFit && (image.width() > w || image.height() > h) ) {
- imagesize.scale( w, h, QSize::ScaleMin );
+ imagesize.scale( w, h, TQSize::ScaleMin );
}
@@ -144,11 +144,11 @@ bool Printing::printImageWithQt( const QString& filename, KPrinter& printer,
//
// perform the actual drawing
//
- p.drawImage( QRect( x, y, imagesize.width(), imagesize.height()), image );
+ p.drawImage( TQRect( x, y, imagesize.width(), imagesize.height()), image );
if ( printFilename )
{
- QString fname = minimizeString( originalFileName, fm, w );
+ TQString fname = minimizeString( originalFileName, fm, w );
if ( !fname.isEmpty() )
{
int fw = fm.width( fname );
@@ -163,11 +163,11 @@ bool Printing::printImageWithQt( const QString& filename, KPrinter& printer,
return true;
}
-QString Printing::minimizeString( QString text, const QFontMetrics&
+TQString Printing::minimizeString( TQString text, const TQFontMetrics&
metrics, int maxWidth )
{
if ( text.length() <= 5 )
- return QString::null; // no sense to cut that tiny little string
+ return TQString::null; // no sense to cut that tiny little string
bool changed = false;
while ( metrics.width( text ) > maxWidth )
@@ -181,7 +181,7 @@ QString Printing::minimizeString( QString text, const QFontMetrics&
{
int mid = text.length() / 2;
if ( mid <= 5 ) // sanity check
- return QString::null;
+ return TQString::null;
text.replace( mid - 1, 3, "..." );
}
@@ -194,42 +194,42 @@ QString Printing::minimizeString( QString text, const QFontMetrics&
///////////////////////////////////////////////////////////////////
-KuickPrintDialogPage::KuickPrintDialogPage( QWidget *parent, const char *name )
+KuickPrintDialogPage::KuickPrintDialogPage( TQWidget *parent, const char *name )
: KPrintDialogPage( parent, name )
{
setTitle( i18n("Image Settings") );
- QVBoxLayout *layout = new QVBoxLayout( this );
+ TQVBoxLayout *layout = new TQVBoxLayout( this );
layout->setMargin( KDialog::marginHint() );
layout->setSpacing( KDialog::spacingHint() );
- m_addFileName = new QCheckBox( i18n("Print fi&lename below image"), this);
+ m_addFileName = new TQCheckBox( i18n("Print fi&lename below image"), this);
m_addFileName->setChecked( true );
layout->addWidget( m_addFileName );
- m_blackwhite = new QCheckBox ( i18n("Print image in &black and white"), this);
+ m_blackwhite = new TQCheckBox ( i18n("Print image in &black and white"), this);
m_blackwhite->setChecked( false );
layout->addWidget (m_blackwhite );
- QVButtonGroup *group = new QVButtonGroup( i18n("Scaling"), this );
+ TQVButtonGroup *group = new TQVButtonGroup( i18n("Scaling"), this );
group->setRadioButtonExclusive( true );
layout->addWidget( group );
- // m_shrinkToFit = new QRadioButton( i18n("Shrink image to &fit, if necessary"), group );
- m_shrinkToFit = new QCheckBox( i18n("Shrink image to &fit, if necessary"), group );
+ // m_shrinkToFit = new TQRadioButton( i18n("Shrink image to &fit, if necessary"), group );
+ m_shrinkToFit = new TQCheckBox( i18n("Shrink image to &fit, if necessary"), group );
m_shrinkToFit->setChecked( true );
- QWidget *widget = new QWidget( group );
- QGridLayout *grid = new QGridLayout( widget, 3, 3 );
+ TQWidget *widget = new TQWidget( group );
+ TQGridLayout *grid = new TQGridLayout( widget, 3, 3 );
grid->addColSpacing( 0, 30 );
grid->setColStretch( 0, 0 );
grid->setColStretch( 1, 1 );
grid->setColStretch( 2, 10 );
- m_scale = new QRadioButton( i18n("Print e&xact size: "), widget );
+ m_scale = new TQRadioButton( i18n("Print e&xact size: "), widget );
m_scale->setEnabled( false ); // ###
grid->addMultiCellWidget( m_scale, 0, 0, 0, 1 );
group->insert( m_scale );
- connect( m_scale, SIGNAL( toggled( bool )), SLOT( toggleScaling( bool )));
+ connect( m_scale, TQT_SIGNAL( toggled( bool )), TQT_SLOT( toggleScaling( bool )));
m_units = new KComboBox( false, widget, "unit combobox" );
grid->addWidget( m_units, 0, 2, AlignLeft );
@@ -252,11 +252,11 @@ KuickPrintDialogPage::~KuickPrintDialogPage()
{
}
-void KuickPrintDialogPage::getOptions( QMap<QString,QString>& opts,
+void KuickPrintDialogPage::getOptions( TQMap<TQString,TQString>& opts,
bool /*incldef*/ )
{
- QString t = "true";
- QString f = "false";
+ TQString t = "true";
+ TQString f = "false";
// ### opts["app-kuickshow-alignment"] = ;
opts["app-kuickshow-printFilename"] = m_addFileName->isChecked() ? t : f;
@@ -264,14 +264,14 @@ void KuickPrintDialogPage::getOptions( QMap<QString,QString>& opts,
opts["app-kuickshow-shrinkToFit"] = m_shrinkToFit->isChecked() ? t : f;
opts["app-kuickshow-scale"] = m_scale->isChecked() ? t : f;
opts["app-kuickshow-scale-unit"] = m_units->currentText();
- opts["app-kuickshow-scale-width-pixels"] = QString::number( scaleWidth() );
- opts["app-kuickshow-scale-height-pixels"] = QString::number( scaleHeight() );
+ opts["app-kuickshow-scale-width-pixels"] = TQString::number( scaleWidth() );
+ opts["app-kuickshow-scale-height-pixels"] = TQString::number( scaleHeight() );
}
-void KuickPrintDialogPage::setOptions( const QMap<QString,QString>& opts )
+void KuickPrintDialogPage::setOptions( const TQMap<TQString,TQString>& opts )
{
- QString t = "true";
- QString f = "false";
+ TQString t = "true";
+ TQString f = "false";
m_addFileName->setChecked( opts["app-kuickshow-printFilename"] != f );
// This sound strange, but if I copy the code on the line above, the checkbox
diff --git a/kuickshow/src/printing.h b/kuickshow/src/printing.h
index eb679f7e..43365bf4 100644
--- a/kuickshow/src/printing.h
+++ b/kuickshow/src/printing.h
@@ -19,13 +19,13 @@
#ifndef PRINTING_H
#define PRINTING_H
-#include <qfontmetrics.h>
-#include <qstring.h>
+#include <tqfontmetrics.h>
+#include <tqstring.h>
#include <kdeprint/kprintdialogpage.h>
-class QCheckBox;
-class QRadioButton;
+class TQCheckBox;
+class TQRadioButton;
class KComboBox;
class KPrinter;
class KIntNumInput;
@@ -36,13 +36,13 @@ class ImageWindow;
class Printing
{
public:
- static bool printImage( ImageWindow& imageWin, QWidget *parent = 0L);
- static bool printImageWithQt( const QString& filename, KPrinter& printer,
- const QString& originalFileName );
+ static bool printImage( ImageWindow& imageWin, TQWidget *parent = 0L);
+ static bool printImageWithQt( const TQString& filename, KPrinter& printer,
+ const TQString& originalFileName );
private:
static void addConfigPages();
- static QString minimizeString( QString text, const QFontMetrics& metrics,
+ static TQString minimizeString( TQString text, const TQFontMetrics& metrics,
int maxWidth );
};
@@ -52,11 +52,11 @@ class KuickPrintDialogPage : public KPrintDialogPage
Q_OBJECT
public:
- KuickPrintDialogPage( QWidget *parent = 0L, const char *name = 0 );
+ KuickPrintDialogPage( TQWidget *parent = 0L, const char *name = 0 );
~KuickPrintDialogPage();
- virtual void getOptions(QMap<QString,QString>& opts, bool incldef = false);
- virtual void setOptions(const QMap<QString,QString>& opts);
+ virtual void getOptions(TQMap<TQString,TQString>& opts, bool incldef = false);
+ virtual void setOptions(const TQMap<TQString,TQString>& opts);
private slots:
void toggleScaling( bool enable );
@@ -72,13 +72,13 @@ private:
int fromUnitToPixels( float val ) const;
float pixelsToUnit( int pixels ) const;
- QCheckBox *m_shrinkToFit;
- QRadioButton *m_scale;
+ TQCheckBox *m_shrinkToFit;
+ TQRadioButton *m_scale;
KIntNumInput *m_width;
KIntNumInput *m_height;
KComboBox *m_units;
- QCheckBox *m_addFileName;
- QCheckBox *m_blackwhite;
+ TQCheckBox *m_addFileName;
+ TQCheckBox *m_blackwhite;
};
diff --git a/kuickshow/src/slideshowwidget.cpp b/kuickshow/src/slideshowwidget.cpp
index 447b996e..9727c203 100644
--- a/kuickshow/src/slideshowwidget.cpp
+++ b/kuickshow/src/slideshowwidget.cpp
@@ -16,8 +16,8 @@
Boston, MA 02110-1301, USA.
*/
-#include <qcheckbox.h>
-#include <qlayout.h>
+#include <tqcheckbox.h>
+#include <tqlayout.h>
#include <kdialog.h>
#include <klocale.h>
@@ -26,16 +26,16 @@
#include "slideshowwidget.h"
-SlideShowWidget::SlideShowWidget( QWidget *parent, const char *name )
- : QWidget( parent, name )
+SlideShowWidget::SlideShowWidget( TQWidget *parent, const char *name )
+ : TQWidget( parent, name )
{
// setTitle( i18n("Slideshow") );
- QVBoxLayout *layout = new QVBoxLayout( this );
+ TQVBoxLayout *layout = new TQVBoxLayout( this );
layout->setSpacing( KDialog::spacingHint() );
- m_fullScreen = new QCheckBox( i18n("Switch to &full-screen"), this );
- m_startWithCurrent = new QCheckBox( i18n("S&tart with current image"), this);
+ m_fullScreen = new TQCheckBox( i18n("Switch to &full-screen"), this );
+ m_startWithCurrent = new TQCheckBox( i18n("S&tart with current image"), this);
m_delayTime = new KIntNumInput( this, "delay time" );
m_delayTime->setLabel( i18n("De&lay between slides:") );
diff --git a/kuickshow/src/slideshowwidget.h b/kuickshow/src/slideshowwidget.h
index c651103d..182a977d 100644
--- a/kuickshow/src/slideshowwidget.h
+++ b/kuickshow/src/slideshowwidget.h
@@ -21,14 +21,14 @@
#include "kuickdata.h"
-class QCheckBox;
+class TQCheckBox;
class KIntNumInput;
class SlideShowWidget : public QWidget
{
Q_OBJECT
public:
- SlideShowWidget( QWidget *parent, const char *name );
+ SlideShowWidget( TQWidget *parent, const char *name );
~SlideShowWidget();
virtual void loadSettings( const KuickData& data );
@@ -37,8 +37,8 @@ public:
private:
KIntNumInput *m_delayTime;
KIntNumInput *m_cycles;
- QCheckBox *m_fullScreen;
- QCheckBox *m_startWithCurrent;
+ TQCheckBox *m_fullScreen;
+ TQCheckBox *m_startWithCurrent;
};
#endif // SLIDESHOWWIDGET_H