Initial TQT conversion

git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/dependencies/arts@1155618 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru
tpearson 15 years ago
parent 0012acab27
commit 6eb92df39e

@ -16,8 +16,8 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
Permission is also granted to link this program with the Qt
library, treating Qt like a library that normally accompanies the
Permission is also granted to link this program with the TQt
library, treating TQt like a library that normally accompanies the
operating system kernel, whether or not that is in fact the case.
*/

@ -17,8 +17,8 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
Permission is also granted to link this program with the Qt
library, treating Qt like a library that normally accompanies the
Permission is also granted to link this program with the TQt
library, treating TQt like a library that normally accompanies the
operating system kernel, whether or not that is in fact the case.
*/
@ -45,7 +45,7 @@ int main()
connect(sin, play, "invalue_left");
connect(sin, play, "invalue_right");
// start all objects (maybe we should group objects like with QWidget
// start all objects (maybe we should group objects like with TQWidget
// parents and such?)
freq.start();
sin.start();

@ -18,8 +18,8 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
Permission is also granted to link this program with the Qt
library, treating Qt like a library that normally accompanies the
Permission is also granted to link this program with the TQt
library, treating TQt like a library that normally accompanies the
operating system kernel, whether or not that is in fact the case.
*/

@ -18,8 +18,8 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
Permission is also granted to link this program with the Qt
library, treating Qt like a library that normally accompanies the
Permission is also granted to link this program with the TQt
library, treating TQt like a library that normally accompanies the
operating system kernel, whether or not that is in fact the case.
*/

@ -17,8 +17,8 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
Permission is also granted to link this program with the Qt
library, treating Qt like a library that normally accompanies the
Permission is also granted to link this program with the TQt
library, treating TQt like a library that normally accompanies the
operating system kernel, whether or not that is in fact the case.
*/

@ -17,8 +17,8 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
Permission is also granted to link this program with the Qt
library, treating Qt like a library that normally accompanies the
Permission is also granted to link this program with the TQt
library, treating TQt like a library that normally accompanies the
operating system kernel, whether or not that is in fact the case.
*/

@ -17,8 +17,8 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
Permission is also granted to link this program with the Qt
library, treating Qt like a library that normally accompanies the
Permission is also granted to link this program with the TQt
library, treating TQt like a library that normally accompanies the
operating system kernel, whether or not that is in fact the case.
*/

@ -17,8 +17,8 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
Permission is also granted to link this program with the Qt
library, treating Qt like a library that normally accompanies the
Permission is also granted to link this program with the TQt
library, treating TQt like a library that normally accompanies the
operating system kernel, whether or not that is in fact the case.
*/

@ -17,8 +17,8 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
Permission is also granted to link this program with the Qt
library, treating Qt like a library that normally accompanies the
Permission is also granted to link this program with the TQt
library, treating TQt like a library that normally accompanies the
operating system kernel, whether or not that is in fact the case.
*/

@ -17,8 +17,8 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
Permission is also granted to link this program with the Qt
library, treating Qt like a library that normally accompanies the
Permission is also granted to link this program with the TQt
library, treating TQt like a library that normally accompanies the
operating system kernel, whether or not that is in fact the case.
*/

@ -17,8 +17,8 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
Permission is also granted to link this program with the Qt
library, treating Qt like a library that normally accompanies the
Permission is also granted to link this program with the TQt
library, treating TQt like a library that normally accompanies the
operating system kernel, whether or not that is in fact the case.
*/

@ -17,8 +17,8 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
Permission is also granted to link this program with the Qt
library, treating Qt like a library that normally accompanies the
Permission is also granted to link this program with the TQt
library, treating TQt like a library that normally accompanies the
operating system kernel, whether or not that is in fact the case.
*/

@ -17,8 +17,8 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
Permission is also granted to link this program with the Qt
library, treating Qt like a library that normally accompanies the
Permission is also granted to link this program with the TQt
library, treating TQt like a library that normally accompanies the
operating system kernel, whether or not that is in fact the case.
*/

@ -18,8 +18,8 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
Permission is also granted to link this program with the Qt
library, treating Qt like a library that normally accompanies the
Permission is also granted to link this program with the TQt
library, treating TQt like a library that normally accompanies the
operating system kernel, whether or not that is in fact the case.
*/

@ -17,8 +17,8 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
Permission is also granted to link this program with the Qt
library, treating Qt like a library that normally accompanies the
Permission is also granted to link this program with the TQt
library, treating TQt like a library that normally accompanies the
operating system kernel, whether or not that is in fact the case.
*/

@ -22,8 +22,8 @@
#include "qiomanager.h"
#include "qiomanager_p.h"
#include <qsocketnotifier.h>
#include <qapplication.h>
#include <tqsocketnotifier.h>
#include <tqapplication.h>
#include "debug.h"
#include "dispatcher.h"
#include "thread.h"
@ -66,11 +66,11 @@ static bool qioBlocking;
* QIOWatch:
*/
QIOWatch::QIOWatch(int fd, int type, IONotify *notify,
QSocketNotifier::Type qtype, bool reentrant)
TQSocketNotifier::Type qtype, bool reentrant)
: _fd(fd), _type(type), _client(notify), _reentrant(reentrant)
{
qsocketnotify = new QSocketNotifier(fd,qtype,this);
connect(qsocketnotify,SIGNAL(activated(int)),this,SLOT(notify(int)));
qsocketnotify = new TQSocketNotifier(fd,qtype,this);
connect(qsocketnotify,TQT_SIGNAL(activated(int)),this,TQT_SLOT(notify(int)));
}
void QIOWatch::notify(int socket)
@ -80,17 +80,17 @@ void QIOWatch::notify(int socket)
}
/*
* QTimeWatch:
* TQTimeWatch:
*/
QTimeWatch::QTimeWatch(int milliseconds, TimeNotify *notify)
TQTimeWatch::TQTimeWatch(int milliseconds, TimeNotify *notify)
{
timer = new QTimer(this);
connect( timer, SIGNAL(timeout()), this, SLOT(notify()) );
timer = new TQTimer(this);
connect( timer, TQT_SIGNAL(timeout()), this, TQT_SLOT(notify()) );
timer->start(milliseconds);
_client = notify;
}
void QTimeWatch::notify()
void TQTimeWatch::notify()
{
qioManager->dispatch(this);
}
@ -179,19 +179,19 @@ void QIOManager::watchFD(int fd, int types, IONotify *notify)
if(types & IOType::read)
{
fdList.push_back(
new QIOWatch(fd, IOType::read, notify, QSocketNotifier::Read, r)
new QIOWatch(fd, IOType::read, notify, TQSocketNotifier::Read, r)
);
}
if(types & IOType::write)
{
fdList.push_back(
new QIOWatch(fd, IOType::write, notify, QSocketNotifier::Write, r)
new QIOWatch(fd, IOType::write, notify, TQSocketNotifier::Write, r)
);
}
if(types & IOType::except)
{
fdList.push_back(
new QIOWatch(fd, IOType::except, notify, QSocketNotifier::Exception,
new QIOWatch(fd, IOType::except, notify, TQSocketNotifier::Exception,
r)
);
}
@ -228,17 +228,17 @@ void QIOManager::addTimer(int milliseconds, TimeNotify *notify)
notify = new HandleNotifications();
milliseconds = 0;
}
timeList.push_back(new QTimeWatch(milliseconds,notify));
timeList.push_back(new TQTimeWatch(milliseconds,notify));
}
void QIOManager::removeTimer(TimeNotify *notify)
{
list<QTimeWatch *>::iterator i;
list<TQTimeWatch *>::iterator i;
i = timeList.begin();
while(i != timeList.end())
{
QTimeWatch *w = *i;
TQTimeWatch *w = *i;
if(w->client() == notify)
{
@ -271,7 +271,7 @@ void QIOManager::dispatch(QIOWatch *ioWatch)
qioLevel--;
}
void QIOManager::dispatch(QTimeWatch *timeWatch)
void QIOManager::dispatch(TQTimeWatch *timeWatch)
{
qioLevel++;
if(qioLevel == 1)

@ -30,20 +30,20 @@
#define QIOMANAGER_H
#include "iomanager.h"
#include <qobject.h>
#include <qtimer.h>
#include <qsocketnotifier.h>
#include <tqobject.h>
#include <tqtimer.h>
#include <tqsocketnotifier.h>
#include <list>
#include "arts_export.h"
namespace Arts {
class QIOWatch;
class QTimeWatch;
class TQTimeWatch;
/**
* QIOManager performs MCOP I/O inside the Qt event loop. This way, you will
* be able to receive requests and notifications inside Qt application. The
* QIOManager performs MCOP I/O inside the TQt event loop. This way, you will
* be able to receive requests and notifications inside TQt application. The
* usual way to set it up is:
*
* <pre>
@ -59,13 +59,13 @@ class QTimeWatch;
class ARTS_EXPORT QIOManager : public IOManager {
protected:
friend class QIOWatch;
friend class QTimeWatch;
friend class TQTimeWatch;
std::list<QIOWatch *> fdList;
std::list<QTimeWatch *> timeList;
std::list<TQTimeWatch *> timeList;
void dispatch(QIOWatch *ioWatch);
void dispatch(QTimeWatch *timeWatch);
void dispatch(TQTimeWatch *timeWatch);
public:
QIOManager();

@ -21,7 +21,7 @@
*/
/*
* BC - Status (2002-03-08): QIOWatch, QTimeWatch.
* BC - Status (2002-03-08): QIOWatch, TQTimeWatch.
*
* These classes provide implementation details and not meant to be used
* in any way.
@ -31,24 +31,24 @@
#define QIOMANAGER_P_H
#include "iomanager.h"
#include <qobject.h>
#include <qtimer.h>
#include <qsocketnotifier.h>
#include <tqobject.h>
#include <tqtimer.h>
#include <tqsocketnotifier.h>
#include <list>
namespace Arts {
class QIOWatch : public QObject {
class QIOWatch : public TQObject {
Q_OBJECT
protected:
QSocketNotifier *qsocketnotify;
TQSocketNotifier *qsocketnotify;
int _fd;
int _type;
IONotify *_client;
bool _reentrant;
public:
QIOWatch(int fd, int type, IONotify *notify, QSocketNotifier::Type qtype,
QIOWatch(int fd, int type, IONotify *notify, TQSocketNotifier::Type qtype,
bool reentrant);
inline IONotify *client() { return _client; }
@ -59,13 +59,13 @@ public slots:
void notify(int socket);
};
class QTimeWatch : public QObject {
class TQTimeWatch : public TQObject {
Q_OBJECT
protected:
QTimer *timer;
TQTimer *timer;
TimeNotify *_client;
public:
QTimeWatch(int milliseconds, TimeNotify *notify);
TQTimeWatch(int milliseconds, TimeNotify *notify);
inline TimeNotify *client() { return _client; }
public slots:

@ -17,8 +17,8 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
Permission is also granted to link this program with the Qt
library, treating Qt like a library that normally accompanies the
Permission is also granted to link this program with the TQt
library, treating TQt like a library that normally accompanies the
operating system kernel, whether or not that is in fact the case.
*/

@ -18,8 +18,8 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
Permission is also granted to link this program with the Qt
library, treating Qt like a library that normally accompanies the
Permission is also granted to link this program with the TQt
library, treating TQt like a library that normally accompanies the
operating system kernel, whether or not that is in fact the case.
*/

@ -17,8 +17,8 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
Permission is also granted to link this program with the Qt
library, treating Qt like a library that normally accompanies the
Permission is also granted to link this program with the TQt
library, treating TQt like a library that normally accompanies the
operating system kernel, whether or not that is in fact the case.
*/

@ -19,8 +19,8 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
Permission is also granted to link this program with the Qt
library, treating Qt like a library that normally accompanies the
Permission is also granted to link this program with the TQt
library, treating TQt like a library that normally accompanies the
operating system kernel, whether or not that is in fact the case.
*/

@ -21,8 +21,8 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
Permission is also granted to link this program with the Qt
library, treating Qt like a library that normally accompanies the
Permission is also granted to link this program with the TQt
library, treating TQt like a library that normally accompanies the
operating system kernel, whether or not that is in fact the case.
*/

@ -21,8 +21,8 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
Permission is also granted to link this program with the Qt
library, treating Qt like a library that normally accompanies the
Permission is also granted to link this program with the TQt
library, treating TQt like a library that normally accompanies the
operating system kernel, whether or not that is in fact the case.
*/

@ -17,8 +17,8 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
Permission is also granted to link this program with the Qt
library, treating Qt like a library that normally accompanies the
Permission is also granted to link this program with the TQt
library, treating TQt like a library that normally accompanies the
operating system kernel, whether or not that is in fact the case.
*/

@ -17,8 +17,8 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
Permission is also granted to link this program with the Qt
library, treating Qt like a library that normally accompanies the
Permission is also granted to link this program with the TQt
library, treating TQt like a library that normally accompanies the
operating system kernel, whether or not that is in fact the case.
*/

@ -19,8 +19,8 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
Permission is also granted to link this program with the Qt
library, treating Qt like a library that normally accompanies the
Permission is also granted to link this program with the TQt
library, treating TQt like a library that normally accompanies the
operating system kernel, whether or not that is in fact the case.
*/

@ -17,8 +17,8 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
Permission is also granted to link this program with the Qt
library, treating Qt like a library that normally accompanies the
Permission is also granted to link this program with the TQt
library, treating TQt like a library that normally accompanies the
operating system kernel, whether or not that is in fact the case.
*/

@ -16,8 +16,8 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
Permission is also granted to link this program with the Qt
library, treating Qt like a library that normally accompanies the
Permission is also granted to link this program with the TQt
library, treating TQt like a library that normally accompanies the
operating system kernel, whether or not that is in fact the case.
*/

@ -16,8 +16,8 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
Permission is also granted to link this program with the Qt
library, treating Qt like a library that normally accompanies the
Permission is also granted to link this program with the TQt
library, treating TQt like a library that normally accompanies the
operating system kernel, whether or not that is in fact the case.
*/

@ -16,8 +16,8 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
Permission is also granted to link this program with the Qt
library, treating Qt like a library that normally accompanies the
Permission is also granted to link this program with the TQt
library, treating TQt like a library that normally accompanies the
operating system kernel, whether or not that is in fact the case.
*/

@ -21,7 +21,7 @@
/*
* This is based on Mark Donohoe's nice KRootProp class (found in
* kdelibs/kdecore/krootprop.cpp). I couldn't use KRootProp directly, since
* I wanted aRts (and even it's X11 support) to work without KDE and/or Qt
* I wanted aRts (and even it's X11 support) to work without KDE and/or TQt
* installed at all.
*/

Loading…
Cancel
Save