summaryrefslogtreecommitdiffstats
path: root/kdvi/psgs.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 /kdvi/psgs.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 'kdvi/psgs.h')
-rw-r--r--kdvi/psgs.h46
1 files changed, 23 insertions, 23 deletions
diff --git a/kdvi/psgs.h b/kdvi/psgs.h
index 0b6e679d..c1062f13 100644
--- a/kdvi/psgs.h
+++ b/kdvi/psgs.h
@@ -10,28 +10,28 @@
#ifndef _PSGS_H_
#define _PSGS_H_
-#include <qcolor.h>
-#include <qobject.h>
-#include <qstring.h>
-#include <qintdict.h>
+#include <tqcolor.h>
+#include <tqobject.h>
+#include <tqstring.h>
+#include <tqintdict.h>
class PageNumber;
-class QPainter;
+class TQPainter;
class pageInfo
{
public:
- pageInfo(const QString& _PostScriptString);
+ pageInfo(const TQString& _PostScriptString);
~pageInfo();
- QColor background;
- QColor permanentBackground;
- QString *PostScriptString;
+ TQColor background;
+ TQColor permanentBackground;
+ TQString *PostScriptString;
};
-class ghostscript_interface : public QObject
+class ghostscript_interface : public TQObject
{
Q_OBJECT
@@ -42,16 +42,16 @@ public:
void clear();
// sets the PostScript which is used on a certain page
- void setPostScript(const PageNumber& page, const QString& PostScript);
+ void setPostScript(const PageNumber& page, const TQString& PostScript);
// sets path from additional postscript files may be read
- void setIncludePath(const QString &_includePath);
+ void setIncludePath(const TQString &_includePath);
// Sets the background color for a certain page. If permanent is false then the original
// background color can be restored by calling restoreBackground(page).
// The Option permanent = false is used when we want to display a different paper
// color as the one specified in the dvi file.
- void setBackgroundColor(const PageNumber& page, const QColor& background_color, bool permanent = true);
+ void setBackgroundColor(const PageNumber& page, const TQColor& background_color, bool permanent = true);
// Restore the background to the color which was specified by the last call to setBackgroundColor()
// With option permanent = true.
@@ -59,13 +59,13 @@ public:
// Draws the graphics of the page into the painter, if possible. If
// the page does not contain any graphics, nothing happens
- void graphics(const PageNumber& page, double dpi, long magnification, QPainter* paint);
+ void graphics(const PageNumber& page, double dpi, long magnification, TQPainter* paint);
// Returns the background color for a certain page. If no color was
// set, Qt::white is returned.
- QColor getBackgroundColor(const PageNumber& page) const;
+ TQColor getBackgroundColor(const PageNumber& page) const;
- QString *PostScriptHeaderString;
+ TQString *PostScriptHeaderString;
/** This method tries to find the PostScript file 'filename' in the
DVI file's directory (if the base-URL indicates that the DVI file
@@ -74,17 +74,17 @@ public:
returned. Otherwise, the method returns the first argument. TODO:
use the DVI file's baseURL, once this is implemented.
*/
- static QString locateEPSfile(const QString &filename, const KURL &base);
+ static TQString locateEPSfile(const TQString &filename, const KURL &base);
private:
- void gs_generate_graphics_file(const PageNumber& page, const QString& filename, long magnification);
- QIntDict<pageInfo> pageList;
+ void gs_generate_graphics_file(const PageNumber& page, const TQString& filename, long magnification);
+ TQIntDict<pageInfo> pageList;
double resolution; // in dots per inch
int pixel_page_w; // in pixels
int pixel_page_h; // in pixels
- QString includePath;
+ TQString includePath;
// Output device that ghostscript is supposed tp use. Default is
// "png256". If that does not work, gs_generate_graphics_file will
@@ -92,16 +92,16 @@ private:
// device can be found, something is badly wrong. In that case,
// "gsDevice" is set to an empty string, and
// gs_generate_graphics_file will return immediately.
- QValueListIterator<QString> gsDevice;
+ TQValueListIterator<TQString> gsDevice;
// A list of known devices, set by the constructor. This includes
// "png256", "pnm". If a device is found to not work, its name is
// removed from the list, and another device name is tried.
- QStringList knownDevices;
+ TQStringList knownDevices;
signals:
/** Passed through to the top-level kpart. */
- void setStatusBarText( const QString& );
+ void setStatusBarText( const TQString& );
};
#endif