summaryrefslogtreecommitdiffstats
path: root/src/mainwidget.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainwidget.h')
-rw-r--r--src/mainwidget.h57
1 files changed, 29 insertions, 28 deletions
diff --git a/src/mainwidget.h b/src/mainwidget.h
index 51f65fc..175e593 100644
--- a/src/mainwidget.h
+++ b/src/mainwidget.h
@@ -23,13 +23,13 @@
#include "MainWidgetBase.h"
-#include <qstring.h>
-#include <qprocess.h>
-#include <qstringlist.h>
-#include <qpixmap.h>
-#include <qclipboard.h>
-#include <qevent.h>
-#include <qlabel.h>
+#include <tqstring.h>
+#include <tqprocess.h>
+#include <tqstringlist.h>
+#include <tqpixmap.h>
+#include <tqclipboard.h>
+#include <tqevent.h>
+#include <tqlabel.h>
#include <kurl.h>
@@ -48,25 +48,26 @@ class Options;
class MainWidget : public MainWidgetBase
{
Q_OBJECT
+ TQ_OBJECT
//! For simplicity
friend class potracegui;
public:
//! Default constructor (all parameters are simply passed to MainWidgetBase)
- MainWidget(QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
+ MainWidget(TQWidget* tqparent = 0, const char* name = 0, WFlags fl = 0 );
//! Default destructor
~MainWidget();
private:
//! Contains the temporary file name used while tracing
- QString m_tmpFilename;
+ TQString m_tmpFilename;
//! Contains the input file name for autotrace
- QString m_tmpInputFilename;
+ TQString m_tmpInputFilename;
//! Contains the real file name where to save the traced image
- QString m_outputFilename;
+ TQString m_outputFilename;
//! The process of potrace (used to abort it and to control its exit status)
- QProcess tracer;
+ TQProcess tracer;
//! To know if the tracing has exited normally, or it has been interrupted
bool aborted;
//! To know if the current document is different from the saved one
@@ -74,15 +75,15 @@ private:
//! The history of the options (not used yet, it will permit undo/redo in the future)
vector<Options *> m_state;
//! The history of the previews (not used yet, it will permit undo/redo in the future)
- vector<QPixmap> m_oldPreviews;
+ vector<TQPixmap> m_oldPreviews;
//! The current options
vector<Options *>::iterator m_currentState;
//! The current preview image
- vector<QPixmap>::iterator m_currentPreview;
+ vector<TQPixmap>::iterator m_currentPreview;
//! Label to display the original image
- QLabel *originalLabel;
+ TQLabel *originalLabel;
//! Label to display the traced image
- QLabel *previewLabel;
+ TQLabel *previewLabel;
//! Retrives an image from an URL
/*!
@@ -115,21 +116,21 @@ private:
//! Creates the command line for tracing
/*!
* It reads m_currentState and creates from all the options a commandline to be executed
- * \returns A QStringList that can be used as a commandline to a QProcess
+ * \returns A TQStringList that can be used as a commandline to a TQProcess
*/
- QStringList createCommandLine();
+ TQStringList createCommandLine();
//! Creates the command line for tracing with potrace
/*!
* It reads m_currentState and creates from all the options a commandline to be executed
- * \returns A QStringList that can be used as a commandline to a QProcess
+ * \returns A TQStringList that can be used as a commandline to a TQProcess
*/
- QStringList createPotraceCommandLine();
+ TQStringList createPotraceCommandLine();
//! Creates the command line for tracing with autotrace
/*!
* It reads m_currentState and creates from all the options a commandline to be executed
- * \returns A QStringList that can be used as a commandline to a QProcess
+ * \returns A TQStringList that can be used as a commandline to a TQProcess
*/
- QStringList createAutotraceCommandLine();
+ TQStringList createAutotraceCommandLine();
//! Sets m_tmpFilename to a new temporary filename (generated through mkstemp())
bool createTmpFilename();
//! Deletes the file pointed by m_tmpFilename
@@ -140,14 +141,14 @@ private:
* \param text The text to display into the dialog
* \returns The code of the dialog button pressed.
*/
- int notificationDialog(QString caption, QString text);
+ int notificationDialog(TQString caption, TQString text);
//! Accepts only a KURL
- void dragEnterEvent(QDragEnterEvent* event);
+ void dragEnterEvent(TQDragEnterEvent* event);
//! Receives a KURL and loads it.
/*!
* \sa getImageFromURL()
*/
- void dropEvent(QDropEvent* event);
+ void dropEvent(TQDropEvent* event);
private slots:
//! Opens a file (whith a KFileDialog)
@@ -179,9 +180,9 @@ private slots:
//! Reverts to the default options
void defaultOptions();
//! When an output format for potrace has been selected, it shows the relevant options
- void showOptions(const QString &selection);
+ void showOptions(const TQString &selection);
//! When a backend has been selected, it shows the relevant options
- void backendChoosen(const QString &back);
+ void backendChoosen(const TQString &back);
//! Syncronize margins if corresponding checkbox is checked
void marginValueChanged( double newValue);
@@ -191,7 +192,7 @@ signals:
/*!
* \param message The message to display into the statusbar
*/
- void signalChangeStatusbar(QString message);
+ void signalChangeStatusbar(TQString message);
protected:
bool marginValueSynconizingNecessary;
};