summaryrefslogtreecommitdiffstats
path: root/libkscan/previewer.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-08-02 19:23:46 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-08-02 19:23:46 +0000
commiteba47f8f0637f451e21348187591e1f1fd58ac74 (patch)
tree448f10b95c656604acc331a3236c1e59bde5c1ad /libkscan/previewer.h
parentc7e8736c69373f48b0401319757c742e8607431a (diff)
downloadtdegraphics-eba47f8f0637f451e21348187591e1f1fd58ac74.tar.gz
tdegraphics-eba47f8f0637f451e21348187591e1f1fd58ac74.zip
TQt conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1158446 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'libkscan/previewer.h')
-rw-r--r--libkscan/previewer.h58
1 files changed, 29 insertions, 29 deletions
diff --git a/libkscan/previewer.h b/libkscan/previewer.h
index b2f993a0..6d9a7b10 100644
--- a/libkscan/previewer.h
+++ b/libkscan/previewer.h
@@ -20,31 +20,31 @@
#ifndef PREVIEWER_H
#define PREVIEWER_H
-#include <qwidget.h>
-#include <qimage.h>
-#include <qrect.h>
-#include <qbuttongroup.h>
-#include <qpoint.h>
+#include <tqwidget.h>
+#include <tqimage.h>
+#include <tqrect.h>
+#include <tqbuttongroup.h>
+#include <tqpoint.h>
#include <kruler.h>
-#include <qmemarray.h>
+#include <tqmemarray.h>
/**
*@author Klaas Freitag
*/
class ImageCanvas;
-class QCheckBox;
-class QSlider;
+class TQCheckBox;
+class TQSlider;
class KScanDevice;
-class QComboBox;
-class QRadioButton;
-class QHBoxLayout;
+class TQComboBox;
+class TQRadioButton;
+class TQHBoxLayout;
class Previewer : public QWidget
{
Q_OBJECT
public:
- Previewer(QWidget *parent=0, const char *name=0);
+ Previewer(TQWidget *parent=0, const char *name=0);
~Previewer();
ImageCanvas *getImageCanvas( void ){ return( img_canvas ); }
@@ -52,18 +52,18 @@ public:
/**
* Static function that returns the image gallery base dir.
*/
- static QString galleryRoot();
- bool setPreviewImage( const QImage &image );
+ static TQString galleryRoot();
+ bool setPreviewImage( const TQImage &image );
void findSelection();
public slots:
- void newImage( QImage* );
+ void newImage( TQImage* );
void slFormatChange( int id );
void slOrientChange(int);
void slSetDisplayUnit( KRuler::MetricStyle unit );
void setScanSize( int w, int h, KRuler::MetricStyle unit );
void slCustomChange( void );
- void slNewDimen(QRect r);
+ void slNewDimen(TQRect r);
void slNewScanResolutions( int, int );
void recalcFileSize( void );
void slSetAutoSelThresh(int);
@@ -77,27 +77,27 @@ protected slots:
void slScanBackgroundChanged(int);
signals:
- void newRect( QRect );
+ void newRect( TQRect );
void noRect( void );
- void setScanWidth(const QString&);
- void setScanHeight(const QString&);
+ void setScanWidth(const TQString&);
+ void setScanHeight(const TQString&);
void setSelectionSize( long );
private:
void checkForScannerBg();
- QPoint calcPercent( int, int );
+ TQPoint calcPercent( int, int );
- QHBoxLayout *layout;
+ TQHBoxLayout *layout;
ImageCanvas *img_canvas;
- QComboBox *pre_format_combo;
- QMemArray<QCString> format_ids;
- QButtonGroup * bgroup;
- QRadioButton * rb1;
- QRadioButton * rb2;
- QImage m_previewImage;
-
- bool imagePiece( QMemArray<long> src,
+ TQComboBox *pre_format_combo;
+ TQMemArray<TQCString> format_ids;
+ TQButtonGroup * bgroup;
+ TQRadioButton * rb1;
+ TQRadioButton * rb2;
+ TQImage m_previewImage;
+
+ bool imagePiece( TQMemArray<long> src,
int& start,
int& end );