rename the following methods:

tqparent parent
tqmask mask


git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeaccessibility@1246260 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru
tpearson 13 years ago
parent a53c68f02a
commit 1b93777b64

@ -50,16 +50,16 @@ extern "C"
#include <X11/keysymdef.h> #include <X11/keysymdef.h>
#include <X11/extensions/XKB.h> #include <X11/extensions/XKB.h>
KDE_EXPORT KPanelApplet* init(TQWidget *tqparent, const TQString& configFile) KDE_EXPORT KPanelApplet* init(TQWidget *parent, const TQString& configFile)
{ {
KGlobal::locale()->insertCatalogue("kbstateapplet"); KGlobal::locale()->insertCatalogue("kbstateapplet");
KbStateApplet *applet = new KbStateApplet(configFile, KPanelApplet::Normal, KPanelApplet::About, tqparent, "kbstateapplet"); KbStateApplet *applet = new KbStateApplet(configFile, KPanelApplet::Normal, KPanelApplet::About, parent, "kbstateapplet");
return applet; return applet;
} }
} }
struct ModifierKey { struct ModifierKey {
const unsigned int tqmask; const unsigned int mask;
const KeySym keysym; const KeySym keysym;
const char *name; const char *name;
const char *icon; const char *icon;
@ -86,8 +86,8 @@ static ModifierKey modifierKeys[] = {
/********************************************************************/ /********************************************************************/
KbStateApplet::KbStateApplet(const TQString& configFile, Type t, int actions, KbStateApplet::KbStateApplet(const TQString& configFile, Type t, int actions,
TQWidget *tqparent, const char *name) TQWidget *parent, const char *name)
: KPanelApplet( configFile, t, actions, tqparent, name ) : KPanelApplet( configFile, t, actions, parent, name )
{ {
for (int i = 0; i < 8; i++) { for (int i = 0; i < 8; i++) {
icons[i] = 0; icons[i] = 0;
@ -527,21 +527,21 @@ void KbStateApplet::initMasks() {
state = 0; state = 0;
for (int i = 0; strcmp(modifierKeys[i].name, "") != 0; i++) { for (int i = 0; strcmp(modifierKeys[i].name, "") != 0; i++) {
int tqmask = modifierKeys[i].tqmask; int mask = modifierKeys[i].mask;
if (tqmask == 0) if (mask == 0)
if (modifierKeys[i].keysym != 0) if (modifierKeys[i].keysym != 0)
tqmask = XkbKeysymToModifiers (this->x11Display(), modifierKeys[i].keysym); mask = XkbKeysymToModifiers (this->x11Display(), modifierKeys[i].keysym);
else if (!strcmp(modifierKeys[i].name, "Win")) else if (!strcmp(modifierKeys[i].name, "Win"))
tqmask = KKeyNative::modX(KKey::WIN); mask = KKeyNative::modX(KKey::WIN);
else else
tqmask = XkbKeysymToModifiers (this->x11Display(), XK_Mode_switch) mask = XkbKeysymToModifiers (this->x11Display(), XK_Mode_switch)
| XkbKeysymToModifiers (this->x11Display(), XK_ISO_Level3_Shift) | XkbKeysymToModifiers (this->x11Display(), XK_ISO_Level3_Shift)
| XkbKeysymToModifiers (this->x11Display(), XK_ISO_Level3_Latch) | XkbKeysymToModifiers (this->x11Display(), XK_ISO_Level3_Latch)
| XkbKeysymToModifiers (this->x11Display(), XK_ISO_Level3_Lock); | XkbKeysymToModifiers (this->x11Display(), XK_ISO_Level3_Lock);
int map = 0; int map = 0;
for (map = 0; map < 8; map++) { for (map = 0; map < 8; map++) {
if ((tqmask & (1 << map)) != 0) if ((mask & (1 << map)) != 0)
break; break;
} }
if ((map <= 7) && !(icons[map])) { if ((map <= 7) && !(icons[map])) {
@ -747,8 +747,8 @@ void KbStateApplet::saveConfig()
/********************************************************************/ /********************************************************************/
KeyIcon::KeyIcon (int keyId, KInstance *instance, KeyIcon::KeyIcon (int keyId, KInstance *instance,
TQWidget *tqparent, const char *name) TQWidget *parent, const char *name)
: StatusIcon (modifierKeys[keyId].name, tqparent, name) { : StatusIcon (modifierKeys[keyId].name, parent, name) {
this->instance = instance; this->instance = instance;
this->keyId = keyId; this->keyId = keyId;
this->tristate = (modifierKeys[keyId].isModifier); this->tristate = (modifierKeys[keyId].isModifier);
@ -855,8 +855,8 @@ void KeyIcon::drawButton (TQPainter *p) {
/********************************************************************/ /********************************************************************/
MouseIcon::MouseIcon (KInstance *instance, TQWidget *tqparent, const char *name) MouseIcon::MouseIcon (KInstance *instance, TQWidget *parent, const char *name)
: StatusIcon ("", tqparent, name) : StatusIcon ("", parent, name)
{ {
this->instance = instance; this->instance = instance;
state = 0; state = 0;
@ -958,8 +958,8 @@ void MouseIcon::drawButton (TQPainter *p) {
TimeoutIcon::TimeoutIcon (KInstance *instance, const TQString &text, TimeoutIcon::TimeoutIcon (KInstance *instance, const TQString &text,
const TQString &featurename, const TQString &featurename,
TQWidget *tqparent, const char *name) TQWidget *parent, const char *name)
: StatusIcon (text, tqparent, name) { : StatusIcon (text, parent, name) {
this->instance = instance; this->instance = instance;
this->featurename = featurename; this->featurename = featurename;
glyth = " "; glyth = " ";
@ -1066,8 +1066,8 @@ void TimeoutIcon::drawButton (TQPainter *p) {
/********************************************************************/ /********************************************************************/
StatusIcon::StatusIcon (const TQString &text, TQWidget *tqparent, const char *name) StatusIcon::StatusIcon (const TQString &text, TQWidget *parent, const char *name)
: TQPushButton (text, tqparent, name) { : TQPushButton (text, parent, name) {
tqsetSizePolicy(TQSizePolicy(TQSizePolicy::Ignored, TQSizePolicy::Ignored)); tqsetSizePolicy(TQSizePolicy(TQSizePolicy::Ignored, TQSizePolicy::Ignored));
} }

@ -37,7 +37,7 @@ class StatusIcon : public TQPushButton {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
StatusIcon (const TQString &text, TQWidget *tqparent, const char *name=0); StatusIcon (const TQString &text, TQWidget *parent, const char *name=0);
~StatusIcon (); ~StatusIcon ();
TQSize tqminimumSizeHint () const; TQSize tqminimumSizeHint () const;
@ -50,7 +50,7 @@ class TimeoutIcon : public StatusIcon {
public: public:
TimeoutIcon (KInstance *instance, const TQString &text, TimeoutIcon (KInstance *instance, const TQString &text,
const TQString &featurename, const TQString &featurename,
TQWidget *tqparent, const char *name=0); TQWidget *parent, const char *name=0);
~TimeoutIcon (); ~TimeoutIcon ();
void update (); void update ();
@ -77,7 +77,7 @@ class KeyIcon : public StatusIcon {
TQ_OBJECT TQ_OBJECT
public: public:
KeyIcon (int keyId, KInstance *instance, KeyIcon (int keyId, KInstance *instance,
TQWidget *tqparent, const char *name=0); TQWidget *parent, const char *name=0);
~KeyIcon (); ~KeyIcon ();
void setState (bool latched, bool locked); void setState (bool latched, bool locked);
void drawButton (TQPainter *p); void drawButton (TQPainter *p);
@ -107,7 +107,7 @@ class MouseIcon : public StatusIcon {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
MouseIcon (KInstance *instance, TQWidget *tqparent, const char *name=0); MouseIcon (KInstance *instance, TQWidget *parent, const char *name=0);
~MouseIcon (); ~MouseIcon ();
void setState (int state); void setState (int state);
void setActiveKey (int activekey); void setActiveKey (int activekey);
@ -138,7 +138,7 @@ class KbStateApplet : public KPanelApplet {
public: public:
KbStateApplet(const TQString& configFile, Type t = Normal, int actions = 0, KbStateApplet(const TQString& configFile, Type t = Normal, int actions = 0,
TQWidget *tqparent = 0, const char *name = 0); TQWidget *parent = 0, const char *name = 0);
~KbStateApplet(); ~KbStateApplet();
int widthForHeight(int height) const; int widthForHeight(int height) const;

@ -63,7 +63,7 @@ class KmagApp : public KMainWindow
/** /**
* Construtor of KmagApp, calls all init functions to create the application. * Construtor of KmagApp, calls all init functions to create the application.
*/ */
KmagApp(TQWidget* tqparent=0, const char* name=0); KmagApp(TQWidget* parent=0, const char* name=0);
/// Default destructor /// Default destructor
~KmagApp(); ~KmagApp();

@ -87,42 +87,42 @@ int getTitleSize ()
// Construction // Construction
//-------------------------------------------------------------------------- //--------------------------------------------------------------------------
KMagSelRect::KMagSelRect(TQWidget *tqparent) : KMagSelRect::KMagSelRect(TQWidget *parent) :
TQRect() TQRect()
{ {
init(tqparent); init(parent);
} }
KMagSelRect::KMagSelRect(const TQPoint &topLeft, const TQPoint &bottomRight, KMagSelRect::KMagSelRect(const TQPoint &topLeft, const TQPoint &bottomRight,
TQWidget *tqparent) : TQWidget *parent) :
TQRect(topLeft, bottomRight) TQRect(topLeft, bottomRight)
{ {
init(tqparent); init(parent);
} }
KMagSelRect::KMagSelRect(const TQPoint &topLeft, const TQSize &size, KMagSelRect::KMagSelRect(const TQPoint &topLeft, const TQSize &size,
TQWidget *tqparent) : TQWidget *parent) :
TQRect(topLeft, size) TQRect(topLeft, size)
{ {
init(tqparent); init(parent);
} }
KMagSelRect::KMagSelRect(int left, int top, int width, int height, KMagSelRect::KMagSelRect(int left, int top, int width, int height,
TQWidget *tqparent) : TQWidget *parent) :
TQRect(left, top, width, height) TQRect(left, top, width, height)
{ {
init(tqparent); init(parent);
} }
void KMagSelRect::init(TQWidget *tqparent) void KMagSelRect::init(TQWidget *parent)
{ {
// Make sure tqparent is the window itself, not a widget within the window // Make sure parent is the window itself, not a widget within the window
if (tqparent != 0) if (parent != 0)
while (tqparent->parentWidget (true) != 0) while (parent->parentWidget (true) != 0)
tqparent=tqparent->parentWidget (true); parent=parent->parentWidget (true);
selectionwindow = 0; selectionwindow = 0;
selWindowParent = tqparent; selWindowParent = parent;
m_alwaysVisible = false; m_alwaysVisible = false;
} }
@ -215,8 +215,8 @@ void KMagSelRect::selWinResized()
// KMagSelWin // KMagSelWin
//-------------------------------------------------------------------------- //--------------------------------------------------------------------------
KMagSelWin::KMagSelWin ( TQWidget * tqparent, const char * name, WFlags ) : KMagSelWin::KMagSelWin ( TQWidget * parent, const char * name, WFlags ) :
TQWidget (tqparent, name, WStyle_Customize | WStyle_NoBorder | WStyle_StaysOnTop | WType_TopLevel | WX11BypassWM) TQWidget (parent, name, WStyle_Customize | WStyle_NoBorder | WStyle_StaysOnTop | WType_TopLevel | WX11BypassWM)
{ {
TQBitmap line (8, 8, line_bits, true); TQBitmap line (8, 8, line_bits, true);
setPaletteBackgroundPixmap (line); setPaletteBackgroundPixmap (line);
@ -356,8 +356,8 @@ void KMagSelWin::bottomRightResized ( TQPoint offset )
// KMagSelWinCorner // KMagSelWinCorner
//-------------------------------------------------------------------------- //--------------------------------------------------------------------------
KMagSelWinCorner::KMagSelWinCorner ( TQWidget * tqparent, const char * name, WFlags f ) : KMagSelWinCorner::KMagSelWinCorner ( TQWidget * parent, const char * name, WFlags f ) :
TQLabel (tqparent, name, f) TQLabel (parent, name, f)
{ {
setFrameStyle (TQFrame::WinPanel | TQFrame::Raised); setFrameStyle (TQFrame::WinPanel | TQFrame::Raised);
setLineWidth (1); setLineWidth (1);

@ -34,7 +34,7 @@ class KMagSelWinCorner : public TQLabel
public: public:
KMagSelWinCorner ( TQWidget * tqparent = 0, const char * name = 0, WFlags f = 0 ); KMagSelWinCorner ( TQWidget * parent = 0, const char * name = 0, WFlags f = 0 );
virtual ~KMagSelWinCorner(); virtual ~KMagSelWinCorner();
@ -59,7 +59,7 @@ class KMagSelWin : public TQWidget
public: public:
KMagSelWin ( TQWidget * tqparent = 0, const char * name = 0, WFlags f = 0 ); KMagSelWin ( TQWidget * parent = 0, const char * name = 0, WFlags f = 0 );
virtual ~KMagSelWin(); virtual ~KMagSelWin();
@ -103,11 +103,11 @@ class KMagSelRect : public TQObject, public TQRect
TQ_OBJECT TQ_OBJECT
public: public:
KMagSelRect(TQWidget *tqparent=0); KMagSelRect(TQWidget *parent=0);
KMagSelRect(const TQPoint &topLeft, const TQPoint &bottomRight, KMagSelRect(const TQPoint &topLeft, const TQPoint &bottomRight,
TQWidget *tqparent=0); TQWidget *parent=0);
KMagSelRect(const TQPoint &topLeft, const TQSize &size, KMagSelRect(const TQPoint &topLeft, const TQSize &size,
TQWidget *tqparent=0); TQWidget *parent=0);
KMagSelRect(int left, int top, int width, int height, KMagSelRect(int left, int top, int width, int height,
TQWidget *selWindowParent=0); TQWidget *selWindowParent=0);

@ -80,12 +80,12 @@ static uchar phand_bits[] = {
static bool obscuredRegion (TQRegion &region, Window winId, Window ignoreId, Window start = 0, int level = -1) { static bool obscuredRegion (TQRegion &region, Window winId, Window ignoreId, Window start = 0, int level = -1) {
Window root, tqparent, *tqchildren; uint ntqchildren; Window root, parent, *tqchildren; uint ntqchildren;
if (0 == start) if (0 == start)
start = qt_xrootwin(); start = qt_xrootwin();
bool winIdFound = false; bool winIdFound = false;
if (0 != XQueryTree (qt_xdisplay(), start, &root, &tqparent, &tqchildren, &ntqchildren)) { if (0 != XQueryTree (qt_xdisplay(), start, &root, &parent, &tqchildren, &ntqchildren)) {
for (uint i=0; i < ntqchildren; ++i) { for (uint i=0; i < ntqchildren; ++i) {
if (winIdFound) { if (winIdFound) {
if (ignoreId != tqchildren [i]) { if (ignoreId != tqchildren [i]) {
@ -120,8 +120,8 @@ static bool obscuredRegion (TQRegion &region, Window winId, Window ignoreId, Win
KMagZoomView::KMagZoomView(TQWidget *tqparent, const char *name) KMagZoomView::KMagZoomView(TQWidget *parent, const char *name)
: TQScrollView(tqparent, name), : TQScrollView(parent, name),
m_selRect(0, 0, 128, 128, this), m_selRect(0, 0, 128, 128, this),
m_grabTimer(0), m_grabTimer(0),
m_mouseViewTimer(0), m_mouseViewTimer(0),
@ -295,8 +295,8 @@ void KMagZoomView::paintMouseCursor(TQPaintDevice *dev, TQPoint mousePos)
pz.setBackgroundColor(TQt::white); pz.setBackgroundColor(TQt::white);
TQBitmap sCursor( 16, 16, left_ptr_bits, TRUE ); TQBitmap sCursor( 16, 16, left_ptr_bits, TRUE );
TQBitmap tqmask( 16, 16, left_ptrmsk_bits, TRUE ); TQBitmap mask( 16, 16, left_ptrmsk_bits, TRUE );
sCursor.setMask(tqmask); sCursor.setMask(mask);
// since hot spot is at 3,1 // since hot spot is at 3,1
pz.drawPixmap(mousePos.x()-3, mousePos.y()-1, sCursor); pz.drawPixmap(mousePos.x()-3, mousePos.y()-1, sCursor);
@ -319,8 +319,8 @@ void KMagZoomView::paintMouseCursor(TQPaintDevice *dev, TQPoint mousePos)
pz.setBackgroundColor(TQt::white); pz.setBackgroundColor(TQt::white);
TQBitmap sCursor( 16, 16, left_ptr_bits, TRUE ); TQBitmap sCursor( 16, 16, left_ptr_bits, TRUE );
TQBitmap tqmask( 16, 16, left_ptrmsk_bits, TRUE ); TQBitmap mask( 16, 16, left_ptrmsk_bits, TRUE );
sCursor.setMask(tqmask); sCursor.setMask(mask);
// since hot spot is at 3,1 // since hot spot is at 3,1
pz.drawPixmap(mousePos.x()-3, mousePos.y()-1, sCursor); pz.drawPixmap(mousePos.x()-3, mousePos.y()-1, sCursor);
@ -328,8 +328,8 @@ void KMagZoomView::paintMouseCursor(TQPaintDevice *dev, TQPoint mousePos)
break; break;
default: default:
TQBitmap sCursor( 32, 32, phand_bits, TRUE ); TQBitmap sCursor( 32, 32, phand_bits, TRUE );
TQBitmap tqmask( 32, 32, phandm_bits, TRUE ); TQBitmap mask( 32, 32, phandm_bits, TRUE );
sCursor.setMask(tqmask); sCursor.setMask(mask);
pz.drawPixmap(mousePos.x(), mousePos.y(), sCursor); pz.drawPixmap(mousePos.x(), mousePos.y(), sCursor);
break; break;
@ -392,7 +392,7 @@ void KMagZoomView::mousePressEvent(TQMouseEvent *e)
m_selRect.show(); m_selRect.show();
} }
else { else {
// ignore this button press.. so it goes to the tqparent // ignore this button press.. so it goes to the parent
e->ignore(); e->ignore();
} }
} else if(m_shiftKeyPressed) { } else if(m_shiftKeyPressed) {
@ -415,7 +415,7 @@ void KMagZoomView::mousePressEvent(TQMouseEvent *e)
m_selRect.show(); m_selRect.show();
} }
else { else {
// ignore this button press.. so it goes to the tqparent // ignore this button press.. so it goes to the parent
e->ignore(); e->ignore();
} }
} else { } else {
@ -437,7 +437,7 @@ void KMagZoomView::mousePressEvent(TQMouseEvent *e)
m_selRect.show(); m_selRect.show();
} }
else { else {
// ignore this button press.. so it goes to the tqparent // ignore this button press.. so it goes to the parent
e->ignore(); e->ignore();
} }
} }
@ -463,13 +463,13 @@ void KMagZoomView::mousePressEvent(TQMouseEvent *e)
m_selRect.show(); m_selRect.show();
} }
else { else {
// ignore this button press.. so it goes to the tqparent // ignore this button press.. so it goes to the parent
e->ignore(); e->ignore();
} }
break; break;
// do nothing // do nothing
default: default:
// ignore this button press.. so it goes to the tqparent // ignore this button press.. so it goes to the parent
e->ignore(); e->ignore();
break; break;
} }

@ -49,7 +49,7 @@ class KMagZoomView : public TQScrollView
TQ_OBJECT TQ_OBJECT
public: public:
/// Constructor for the main view /// Constructor for the main view
KMagZoomView(TQWidget *tqparent = 0, const char *name=0); KMagZoomView(TQWidget *parent = 0, const char *name=0);
/// Destructor for the main view /// Destructor for the main view
~KMagZoomView(); ~KMagZoomView();

@ -250,7 +250,7 @@ void KMouseTool::playTickSound()
// TQSound::play(mSoundFileName); // TQSound::play(mSoundFileName);
} }
KMouseTool::KMouseTool(TQWidget *tqparent, const char *name) : KMouseToolUI(tqparent, name) KMouseTool::KMouseTool(TQWidget *parent, const char *name) : KMouseToolUI(parent, name)
{ {
init_vars(); init_vars();
resetSettings(); resetSettings();
@ -608,7 +608,7 @@ void KMouseTool::aboutSelected()
KMouseToolTray::KMouseToolTray (TQWidget *tqparent, const char *name) : KSystemTray (tqparent, name) KMouseToolTray::KMouseToolTray (TQWidget *parent, const char *name) : KSystemTray (parent, name)
{ {
startStopId = contextMenu()->insertItem (i18n("&Start"), this, TQT_SIGNAL(startStopSelected())); startStopId = contextMenu()->insertItem (i18n("&Start"), this, TQT_SIGNAL(startStopSelected()));
contextMenu()->insertSeparator(); contextMenu()->insertSeparator();

@ -187,7 +187,7 @@ public:
/** /**
* construtor * construtor
*/ */
KMouseTool(TQWidget* tqparent=0, const char *name=0); KMouseTool(TQWidget* parent=0, const char *name=0);
/** destructor */ /** destructor */
~KMouseTool(); ~KMouseTool();
@ -198,7 +198,7 @@ class KMouseToolTray : public KSystemTray {
TQ_OBJECT TQ_OBJECT
int startStopId; int startStopId;
public: public:
KMouseToolTray (TQWidget *tqparent=0, const char *name=0); KMouseToolTray (TQWidget *parent=0, const char *name=0);
~KMouseToolTray(); ~KMouseToolTray();
void updateStartStopText (bool mousetool_is_running); void updateStartStopText (bool mousetool_is_running);

@ -31,8 +31,8 @@
#include "wordcompletion/wordcompletion.h" #include "wordcompletion/wordcompletion.h"
#include "wordcompletion/dictionarycreationwizard.h" #include "wordcompletion/dictionarycreationwizard.h"
ConfigWizard::ConfigWizard (TQWidget *tqparent, const char *name, KConfig *config) ConfigWizard::ConfigWizard (TQWidget *parent, const char *name, KConfig *config)
: KWizard(tqparent, name, true) : KWizard(parent, name, true)
{ {
setCaption (i18n("Initial Configuration - KMouth")); setCaption (i18n("Initial Configuration - KMouth"));

@ -37,7 +37,7 @@ class ConfigWizard : public KWizard {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
ConfigWizard (TQWidget *tqparent, const char *name, KConfig *config); ConfigWizard (TQWidget *parent, const char *name, KConfig *config);
~ConfigWizard(); ~ConfigWizard();
bool configurationNeeded (); bool configurationNeeded ();

@ -61,7 +61,7 @@ class KMouthApp : public KMainWindow
public: public:
/** construtor of KMouthApp, calls all init functions to create the application. /** construtor of KMouthApp, calls all init functions to create the application.
*/ */
KMouthApp(TQWidget* tqparent=0, const char* name=0); KMouthApp(TQWidget* parent=0, const char* name=0);
~KMouthApp(); ~KMouthApp();
/** Returns true if the configuration wizard was not needed or when it /** Returns true if the configuration wizard was not needed or when it
* was successfully completed. * was successfully completed.

@ -39,8 +39,8 @@
#include "texttospeechconfigurationwidget.h" #include "texttospeechconfigurationwidget.h"
#include "speech.h" #include "speech.h"
PreferencesWidget::PreferencesWidget (TQWidget *tqparent, const char *name) PreferencesWidget::PreferencesWidget (TQWidget *parent, const char *name)
: PreferencesUI (tqparent, name) : PreferencesUI (parent, name)
{ {
speakCombo->setCurrentItem (1); speakCombo->setCurrentItem (1);
speak = false; speak = false;
@ -113,9 +113,9 @@ bool PreferencesWidget::isSpeakImmediately () {
/***************************************************************************/ /***************************************************************************/
OptionsDialog::OptionsDialog (TQWidget *tqparent) OptionsDialog::OptionsDialog (TQWidget *parent)
: KDialogBase(IconList, i18n("Configuration"), Ok|Apply|Cancel|Help, Ok, : KDialogBase(IconList, i18n("Configuration"), Ok|Apply|Cancel|Help, Ok,
tqparent, "configuration", false, true) parent, "configuration", false, true)
{ {
setHelp ("config-dialog"); setHelp ("config-dialog");

@ -35,7 +35,7 @@ class PreferencesWidget : public PreferencesUI {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
PreferencesWidget(TQWidget *tqparent, const char *name); PreferencesWidget(TQWidget *parent, const char *name);
~PreferencesWidget(); ~PreferencesWidget();
void readOptions (KConfig *config); void readOptions (KConfig *config);
@ -59,7 +59,7 @@ class OptionsDialog : public KDialogBase {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
OptionsDialog(TQWidget *tqparent); OptionsDialog(TQWidget *parent);
~OptionsDialog(); ~OptionsDialog();
void slotCancel(); void slotCancel();

@ -249,7 +249,7 @@ bool PhraseBook::save (const KURL &url, bool asPhrasebook) {
} }
} }
int PhraseBook::save (TQWidget *tqparent, const TQString &title, KURL &url, bool phrasebookFirst) { int PhraseBook::save (TQWidget *parent, const TQString &title, KURL &url, bool phrasebookFirst) {
// KFileDialog::getSaveURL(...) is not useful here as we need // KFileDialog::getSaveURL(...) is not useful here as we need
// to know the requested file type. // to know the requested file type.
@ -259,7 +259,7 @@ int PhraseBook::save (TQWidget *tqparent, const TQString &title, KURL &url, bool
else else
filters = i18n("*.txt|Plain Text Files (*.txt)\n*.phrasebook|Phrase Books (*.phrasebook)\n*|All Files"); filters = i18n("*.txt|Plain Text Files (*.txt)\n*.phrasebook|Phrase Books (*.phrasebook)\n*|All Files");
KFileDialog fdlg(TQString(),filters, tqparent, "filedialog", true); KFileDialog fdlg(TQString(),filters, parent, "filedialog", true);
fdlg.setCaption(title); fdlg.setCaption(title);
fdlg.setOperationMode( KFileDialog::Saving ); fdlg.setOperationMode( KFileDialog::Saving );
@ -374,7 +374,7 @@ void PhraseBook::addToGUI (TQPopupMenu *popup, KToolBar *toolbar, KActionCollect
TQObject *receiver, const char *slot) const { TQObject *receiver, const char *slot) const {
if ((popup != 0) || (toolbar != 0)) { if ((popup != 0) || (toolbar != 0)) {
TQPtrStack<TQWidget> stack; TQPtrStack<TQWidget> stack;
TQWidget *tqparent = popup; TQWidget *parent = popup;
int level = 0; int level = 0;
TQValueListConstIterator<PhraseBookEntry> it; TQValueListConstIterator<PhraseBookEntry> it;
@ -384,38 +384,38 @@ void PhraseBook::addToGUI (TQPopupMenu *popup, KToolBar *toolbar, KActionCollect
KActionMenu *menu = new KActionMenu("", "phrasebook"); KActionMenu *menu = new KActionMenu("", "phrasebook");
menu->setDelayed(false); menu->setDelayed(false);
phrases->insert(menu); phrases->insert(menu);
menu->plug (tqparent); menu->plug (parent);
if (tqparent == popup) if (parent == popup)
menu->plug (toolbar); menu->plug (toolbar);
if (tqparent != 0) if (parent != 0)
stack.push (tqparent); stack.push (parent);
tqparent = menu->popupMenu(); parent = menu->popupMenu();
level++; level++;
} }
while (newLevel < level && (tqparent != popup)) { while (newLevel < level && (parent != popup)) {
tqparent = stack.pop(); parent = stack.pop();
level--; level--;
} }
if ((*it).isPhrase()) { if ((*it).isPhrase()) {
Phrase phrase = (*it).getPhrase(); Phrase phrase = (*it).getPhrase();
KAction *action = new PhraseAction (phrase.getPhrase(), KAction *action = new PhraseAction (phrase.getPhrase(),
phrase.getShortcut(), receiver, slot, phrases); phrase.getShortcut(), receiver, slot, phrases);
if (tqparent == popup) if (parent == popup)
action->plug (toolbar); action->plug (toolbar);
if (tqparent != 0) if (parent != 0)
action->plug(tqparent); action->plug(parent);
} }
else { else {
Phrase phrase = (*it).getPhrase(); Phrase phrase = (*it).getPhrase();
KActionMenu *menu = new KActionMenu(phrase.getPhrase(), "phrasebook"); KActionMenu *menu = new KActionMenu(phrase.getPhrase(), "phrasebook");
menu->setDelayed(false); menu->setDelayed(false);
phrases->insert(menu); phrases->insert(menu);
if (tqparent == popup) if (parent == popup)
menu->plug (toolbar); menu->plug (toolbar);
if (tqparent != 0) if (parent != 0)
menu->plug (tqparent); menu->plug (parent);
stack.push (tqparent); stack.push (parent);
tqparent = menu->popupMenu(); parent = menu->popupMenu();
level++; level++;
} }
} }

@ -118,7 +118,7 @@ public:
* 0, if the user canceled the operation, * 0, if the user canceled the operation,
* -1, if there was an error when saving the file. * -1, if there was an error when saving the file.
*/ */
int save (TQWidget *tqparent, const TQString &title, KURL &url, bool phrasebookFirst = true); int save (TQWidget *parent, const TQString &title, KURL &url, bool phrasebookFirst = true);
/** encodes the phrase book. Returns the encoded xml code. */ /** encodes the phrase book. Returns the encoded xml code. */
TQString encode (); TQString encode ();
@ -173,8 +173,8 @@ class PhraseAction : public KAction {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
PhraseAction (const TQString& phrase, const TQString& cut, const TQObject* receiver, const char* slot, KActionCollection* tqparent) PhraseAction (const TQString& phrase, const TQString& cut, const TQObject* receiver, const char* slot, KActionCollection* parent)
: KAction (phrase, "phrase", KShortcut(cut), 0, 0, tqparent, phrase.latin1()) { : KAction (phrase, "phrase", KShortcut(cut), 0, 0, parent, phrase.latin1()) {
this->phrase = phrase; this->phrase = phrase;
connect (this, TQT_SIGNAL(slotActivated (const TQString &)), receiver, slot); connect (this, TQT_SIGNAL(slotActivated (const TQString &)), receiver, slot);
}; };

@ -53,9 +53,9 @@ namespace PhraseBookPrivate {
}; };
} }
CheckBookItem::CheckBookItem (TQListViewItem *tqparent, TQListViewItem *last, CheckBookItem::CheckBookItem (TQListViewItem *parent, TQListViewItem *last,
const TQString &text, const TQString &name, const TQString &filename) const TQString &text, const TQString &name, const TQString &filename)
: TQCheckListItem (tqparent, text, TQCheckListItem::CheckBox) : TQCheckListItem (parent, text, TQCheckListItem::CheckBox)
{ {
moveItem (last); moveItem (last);
setText(PhraseBookPrivate::name, name); setText(PhraseBookPrivate::name, name);
@ -67,12 +67,12 @@ CheckBookItem::CheckBookItem (TQListViewItem *tqparent, TQListViewItem *last,
else else
numberOfBooks = 1; numberOfBooks = 1;
selectedBooks = 0; selectedBooks = 0;
((CheckBookItem*)tqparent)->childChange (numberOfBooks, selectedBooks); ((CheckBookItem*)parent)->childChange (numberOfBooks, selectedBooks);
} }
CheckBookItem::CheckBookItem (TQListView *tqparent, TQListViewItem *last, CheckBookItem::CheckBookItem (TQListView *parent, TQListViewItem *last,
const TQString &text, const TQString &name, const TQString &filename) const TQString &text, const TQString &name, const TQString &filename)
: TQCheckListItem (tqparent, text, TQCheckListItem::CheckBox) : TQCheckListItem (parent, text, TQCheckListItem::CheckBox)
{ {
moveItem (last); moveItem (last);
setText(PhraseBookPrivate::name, name); setText(PhraseBookPrivate::name, name);
@ -102,12 +102,12 @@ void CheckBookItem::activate() {
void CheckBookItem::stateChange (bool on) { void CheckBookItem::stateChange (bool on) {
TQListViewItem *item = firstChild(); TQListViewItem *item = firstChild();
if (item == 0) { if (item == 0) {
TQListViewItem *tqparent = this->tqparent(); TQListViewItem *parent = this->parent();
if (tqparent != 0) { if (parent != 0) {
if (on) if (on)
((CheckBookItem*)tqparent)->childChange (0, 1); ((CheckBookItem*)parent)->childChange (0, 1);
else else
((CheckBookItem*)tqparent)->childChange (0, -1); ((CheckBookItem*)parent)->childChange (0, -1);
} }
} }
else propagateStateChange(); else propagateStateChange();
@ -127,9 +127,9 @@ void CheckBookItem::propagateStateChange () {
void CheckBookItem::childChange (int numberDiff, int selDiff) { void CheckBookItem::childChange (int numberDiff, int selDiff) {
numberOfBooks += numberDiff; numberOfBooks += numberDiff;
selectedBooks += selDiff; selectedBooks += selDiff;
TQListViewItem *tqparent = this->tqparent(); TQListViewItem *parent = this->parent();
if (tqparent != 0) if (parent != 0)
((CheckBookItem*)tqparent)->childChange (numberDiff, selDiff); ((CheckBookItem*)parent)->childChange (numberDiff, selDiff);
TQString text = i18n(" (%1 of %2 books selected)"); TQString text = i18n(" (%1 of %2 books selected)");
text = text.tqarg(selectedBooks).tqarg(numberOfBooks); text = text.tqarg(selectedBooks).tqarg(numberOfBooks);
@ -138,8 +138,8 @@ void CheckBookItem::childChange (int numberDiff, int selDiff) {
/***************************************************************************/ /***************************************************************************/
InitialPhraseBookWidget::InitialPhraseBookWidget (TQWidget *tqparent, const char *name) InitialPhraseBookWidget::InitialPhraseBookWidget (TQWidget *parent, const char *name)
: TQWidget(tqparent, name) : TQWidget(parent, name)
{ {
TQVBoxLayout *mainLayout = new TQVBoxLayout (this, 0, KDialog::spacingHint()); TQVBoxLayout *mainLayout = new TQVBoxLayout (this, 0, KDialog::spacingHint());
TQLabel *label = new TQLabel (i18n("Please decide which phrase books you need:"), this, "booksTitle"); TQLabel *label = new TQLabel (i18n("Please decide which phrase books you need:"), this, "booksTitle");
@ -165,7 +165,7 @@ InitialPhraseBookWidget::~InitialPhraseBookWidget () {
void InitialPhraseBookWidget::initStandardPhraseBooks() { void InitialPhraseBookWidget::initStandardPhraseBooks() {
StandardBookList bookPaths = PhraseBookDialog::standardPhraseBooks(); StandardBookList bookPaths = PhraseBookDialog::standardPhraseBooks();
TQListViewItem *tqparent = 0; TQListViewItem *parent = 0;
TQListViewItem *last = 0; TQListViewItem *last = 0;
TQStringList currentNamePath = ""; TQStringList currentNamePath = "";
TQPtrStack<TQListViewItem> stack; TQPtrStack<TQListViewItem> stack;
@ -179,26 +179,26 @@ void InitialPhraseBookWidget::initStandardPhraseBooks() {
for (; (it1 != currentNamePath.end()) for (; (it1 != currentNamePath.end())
&& (it1 != dirs.end()) && (*it1 == *it2); ++it1, ++it2); && (it1 != dirs.end()) && (*it1 == *it2); ++it1, ++it2);
for (; it1 != currentNamePath.end(); ++it1) { for (; it1 != currentNamePath.end(); ++it1) {
last = tqparent; last = parent;
tqparent = stack.pop(); parent = stack.pop();
} }
for (; it2 != dirs.end(); ++it2) { for (; it2 != dirs.end(); ++it2) {
stack.push (tqparent); stack.push (parent);
TQListViewItem *newParent; TQListViewItem *newParent;
if (tqparent == 0) if (parent == 0)
newParent = new CheckBookItem (books, last, *it2, *it2, TQString()); newParent = new CheckBookItem (books, last, *it2, *it2, TQString());
else else
newParent = new CheckBookItem (tqparent, last, *it2, *it2, TQString()); newParent = new CheckBookItem (parent, last, *it2, *it2, TQString());
tqparent = newParent; parent = newParent;
last = 0; last = 0;
} }
currentNamePath = dirs; currentNamePath = dirs;
TQListViewItem *book; TQListViewItem *book;
if (tqparent == 0) if (parent == 0)
book = new CheckBookItem (books, last, (*it).name, (*it).name, (*it).filename); book = new CheckBookItem (books, last, (*it).name, (*it).name, (*it).filename);
else else
book = new CheckBookItem (tqparent, last, (*it).name, (*it).name, (*it).filename); book = new CheckBookItem (parent, last, (*it).name, (*it).name, (*it).filename);
last = book; last = book;
} }
} }
@ -218,7 +218,7 @@ void InitialPhraseBookWidget::createBook () {
} }
while ((item != 0) && (item->nextSibling() == 0)) { while ((item != 0) && (item->nextSibling() == 0)) {
item = item->tqparent(); item = item->parent();
} }
if (item != 0) if (item != 0)
item = item->nextSibling(); item = item->nextSibling();
@ -233,8 +233,8 @@ void InitialPhraseBookWidget::createBook () {
/***************************************************************************/ /***************************************************************************/
ButtonBoxWidget::ButtonBoxWidget (TQWidget *tqparent, const char *name) ButtonBoxWidget::ButtonBoxWidget (TQWidget *parent, const char *name)
: ButtonBoxUI (tqparent, name) { : ButtonBoxUI (parent, name) {
keyButtonPlaceLayout = new TQGridLayout (keyButtonPlace, 1, 1, 0, 0, "keyButtonPlaceLayout"); keyButtonPlaceLayout = new TQGridLayout (keyButtonPlace, 1, 1, 0, 0, "keyButtonPlaceLayout");
keyButton = new KKeyButton (keyButtonPlace, "key"); keyButton = new KKeyButton (keyButtonPlace, "key");
@ -434,7 +434,7 @@ StandardBookList PhraseBookDialog::standardPhraseBooks() {
void PhraseBookDialog::initStandardPhraseBooks () { void PhraseBookDialog::initStandardPhraseBooks () {
StandardBookList bookPaths = standardPhraseBooks(); StandardBookList bookPaths = standardPhraseBooks();
KActionMenu *tqparent = fileImportStandardBook; KActionMenu *parent = fileImportStandardBook;
TQStringList currentNamePath = "x"; TQStringList currentNamePath = "x";
TQPtrStack<KActionMenu> stack; TQPtrStack<KActionMenu> stack;
StandardBookList::iterator it; StandardBookList::iterator it;
@ -450,21 +450,21 @@ void PhraseBookDialog::initStandardPhraseBooks () {
for (; (it1 != currentNamePath.end()) for (; (it1 != currentNamePath.end())
&& (it1 != dirs.end()) && (*it1 == *it2); ++it1, ++it2); && (it1 != dirs.end()) && (*it1 == *it2); ++it1, ++it2);
for (; it1 != currentNamePath.end(); ++it1) for (; it1 != currentNamePath.end(); ++it1)
tqparent = stack.pop(); parent = stack.pop();
for (; it2 != dirs.end(); ++it2) { for (; it2 != dirs.end(); ++it2) {
stack.push (tqparent); stack.push (parent);
KActionMenu *newParent = new KActionMenu (*it2); KActionMenu *newParent = new KActionMenu (*it2);
tqparent->insert(newParent); parent->insert(newParent);
if (tqparent == fileImportStandardBook) if (parent == fileImportStandardBook)
newParent->plug(toolbarImport->popupMenu()); newParent->plug(toolbarImport->popupMenu());
tqparent = newParent; parent = newParent;
} }
currentNamePath = dirs; currentNamePath = dirs;
KAction *book = new StandardPhraseBookInsertAction ( KAction *book = new StandardPhraseBookInsertAction (
url, (*it).name, TQT_TQOBJECT(this), TQT_SLOT(slotImportPhrasebook (const KURL &)), actionCollection()); url, (*it).name, TQT_TQOBJECT(this), TQT_SLOT(slotImportPhrasebook (const KURL &)), actionCollection());
tqparent->insert(book); parent->insert(book);
if (tqparent == fileImportStandardBook) if (parent == fileImportStandardBook)
book->plug(toolbarImport->popupMenu()); book->plug(toolbarImport->popupMenu());
} }
} }
@ -615,8 +615,8 @@ void PhraseBookDialog::setShortcut( const KShortcut& cut ) {
} }
} }
TQListViewItem *PhraseBookDialog::addBook (TQListViewItem *tqparent, TQListViewItem *after, PhraseBook *book) { TQListViewItem *PhraseBookDialog::addBook (TQListViewItem *parent, TQListViewItem *after, PhraseBook *book) {
TQListViewItem *newItem = treeView->addBook(tqparent, after, book); TQListViewItem *newItem = treeView->addBook(parent, after, book);
if (newItem != 0) { if (newItem != 0) {
treeView->clearSelection(); treeView->clearSelection();
treeView->ensureItemVisible(newItem); treeView->ensureItemVisible(newItem);
@ -631,8 +631,8 @@ TQListViewItem *PhraseBookDialog::addBook (TQListViewItem *item, PhraseBook *boo
if (item == 0) if (item == 0)
return addBook(0, 0, book); return addBook(0, 0, book);
else if (((PhraseTreeItem *)item)->isPhrase() || !item->isOpen()) else if (((PhraseTreeItem *)item)->isPhrase() || !item->isOpen())
if (item->tqparent() != 0) if (item->parent() != 0)
return addBook(item->tqparent(), item, book); return addBook(item->parent(), item, book);
else else
return addBook(0, item, book); return addBook(0, item, book);
else else
@ -677,10 +677,10 @@ void PhraseBookDialog::slotPaste () {
} }
} }
void PhraseBookDialog::slotDropped (TQDropEvent *e, TQListViewItem *tqparent, TQListViewItem *after) { void PhraseBookDialog::slotDropped (TQDropEvent *e, TQListViewItem *parent, TQListViewItem *after) {
PhraseBook book; PhraseBook book;
if (PhraseBookDrag::decode(e, &book)) { if (PhraseBookDrag::decode(e, &book)) {
addBook(tqparent, after, &book); addBook(parent, after, &book);
} }
} }

@ -50,9 +50,9 @@ typedef TQValueList<StandardBook> StandardBookList;
class CheckBookItem : public TQCheckListItem { class CheckBookItem : public TQCheckListItem {
public: public:
CheckBookItem (TQListViewItem *tqparent, TQListViewItem *last, CheckBookItem (TQListViewItem *parent, TQListViewItem *last,
const TQString &text, const TQString &name, const TQString &filename); const TQString &text, const TQString &name, const TQString &filename);
CheckBookItem (TQListView *tqparent, TQListViewItem *last, CheckBookItem (TQListView *parent, TQListViewItem *last,
const TQString &text, const TQString &name, const TQString &filename); const TQString &text, const TQString &name, const TQString &filename);
~CheckBookItem(); ~CheckBookItem();
@ -76,7 +76,7 @@ class InitialPhraseBookWidget : public TQWidget {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
InitialPhraseBookWidget(TQWidget *tqparent, const char *name); InitialPhraseBookWidget(TQWidget *parent, const char *name);
~InitialPhraseBookWidget(); ~InitialPhraseBookWidget();
void createBook(); void createBook();
@ -97,8 +97,8 @@ class StandardPhraseBookInsertAction : public KAction {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
StandardPhraseBookInsertAction (const KURL &url, const TQString& name, const TQObject* receiver, const char* slot, KActionCollection* tqparent) StandardPhraseBookInsertAction (const KURL &url, const TQString& name, const TQObject* receiver, const char* slot, KActionCollection* parent)
: KAction (name, "phrasebook", 0, 0, 0, tqparent, 0) { : KAction (name, "phrasebook", 0, 0, 0, parent, 0) {
this->url = url; this->url = url;
connect (this, TQT_SIGNAL(slotActivated (const KURL &)), receiver, slot); connect (this, TQT_SIGNAL(slotActivated (const KURL &)), receiver, slot);
}; };
@ -125,7 +125,7 @@ private:
*/ */
class ButtonBoxWidget : public ButtonBoxUI { class ButtonBoxWidget : public ButtonBoxUI {
public: public:
ButtonBoxWidget (TQWidget *tqparent = 0, const char *name = 0); ButtonBoxWidget (TQWidget *parent = 0, const char *name = 0);
~ButtonBoxWidget (); ~ButtonBoxWidget ();
KKeyButton *keyButton; KKeyButton *keyButton;
@ -187,7 +187,7 @@ public slots:
void slotExportPhrasebook (); void slotExportPhrasebook ();
void slotPrint (); void slotPrint ();
void slotDropped (TQDropEvent *e, TQListViewItem *tqparent, TQListViewItem *after); void slotDropped (TQDropEvent *e, TQListViewItem *parent, TQListViewItem *after);
void slotMoved (TQListViewItem *item, TQListViewItem *, TQListViewItem *); void slotMoved (TQListViewItem *item, TQListViewItem *, TQListViewItem *);
signals: signals:
@ -202,7 +202,7 @@ private:
/** initializes the list of standard phrase books */ /** initializes the list of standard phrase books */
void initStandardPhraseBooks (); void initStandardPhraseBooks ();
TQListViewItem *addBook (TQListViewItem *tqparent, TQListViewItem *after, PhraseBook *book); TQListViewItem *addBook (TQListViewItem *parent, TQListViewItem *after, PhraseBook *book);
TQListViewItem *addBook (TQListViewItem *item, PhraseBook *book); TQListViewItem *addBook (TQListViewItem *item, PhraseBook *book);
void setShortcut (const KShortcut &cut); void setShortcut (const KShortcut &cut);

@ -28,8 +28,8 @@
#include "phrasebookdialog.h" #include "phrasebookdialog.h"
#include "phrasebook.h" #include "phrasebook.h"
PhraseTreeItem::PhraseTreeItem (TQListView *tqparent, TQListViewItem *after, TQString phrase, KShortcut shortcut, TQPixmap icon) PhraseTreeItem::PhraseTreeItem (TQListView *parent, TQListViewItem *after, TQString phrase, KShortcut shortcut, TQPixmap icon)
: KListViewItem (tqparent, after, phrase) : KListViewItem (parent, after, phrase)
{ {
isPhraseValue = true; isPhraseValue = true;
cutValue = shortcut; cutValue = shortcut;
@ -38,8 +38,8 @@ PhraseTreeItem::PhraseTreeItem (TQListView *tqparent, TQListViewItem *after, TQS
setExpandable (false); setExpandable (false);
} }
PhraseTreeItem::PhraseTreeItem (TQListViewItem *tqparent, TQListViewItem *after, TQString phrase, KShortcut shortcut, TQPixmap icon) PhraseTreeItem::PhraseTreeItem (TQListViewItem *parent, TQListViewItem *after, TQString phrase, KShortcut shortcut, TQPixmap icon)
: KListViewItem (tqparent, after, phrase) : KListViewItem (parent, after, phrase)
{ {
isPhraseValue = true; isPhraseValue = true;
cutValue = shortcut; cutValue = shortcut;
@ -47,15 +47,15 @@ PhraseTreeItem::PhraseTreeItem (TQListViewItem *tqparent, TQListViewItem *after,
setPixmap(0, icon); setPixmap(0, icon);
setExpandable (false); setExpandable (false);
} }
PhraseTreeItem::PhraseTreeItem (TQListView *tqparent, TQListViewItem *after, TQString name, TQPixmap icon) PhraseTreeItem::PhraseTreeItem (TQListView *parent, TQListViewItem *after, TQString name, TQPixmap icon)
: KListViewItem (tqparent, after, name) : KListViewItem (parent, after, name)
{ {
isPhraseValue = false; isPhraseValue = false;
setPixmap(0, icon); setPixmap(0, icon);
setExpandable (true); setExpandable (true);
} }
PhraseTreeItem::PhraseTreeItem (TQListViewItem *tqparent, TQListViewItem *after, TQString name, TQPixmap icon) PhraseTreeItem::PhraseTreeItem (TQListViewItem *parent, TQListViewItem *after, TQString name, TQPixmap icon)
: KListViewItem (tqparent, after, name) : KListViewItem (parent, after, name)
{ {
isPhraseValue = false; isPhraseValue = false;
setPixmap(0, icon); setPixmap(0, icon);
@ -74,8 +74,8 @@ void PhraseTreeItem::setCut (KShortcut cut) {
// *************************************************************************** // ***************************************************************************
PhraseTree::PhraseTree (TQWidget *tqparent, const char *name) PhraseTree::PhraseTree (TQWidget *parent, const char *name)
: KListView (tqparent, name) : KListView (parent, name)
{ {
phrasebook_open = KGlobal::iconLoader()->loadIcon("phrasebook", KIcon::Small); phrasebook_open = KGlobal::iconLoader()->loadIcon("phrasebook", KIcon::Small);
phrasebook_closed = KGlobal::iconLoader()->loadIcon("phrasebook_closed", KIcon::Small); phrasebook_closed = KGlobal::iconLoader()->loadIcon("phrasebook_closed", KIcon::Small);
@ -90,14 +90,14 @@ PhraseTree::~PhraseTree (){
namespace PhraseTreePrivate { namespace PhraseTreePrivate {
TQListViewItem *prevSibling (TQListViewItem *item) { TQListViewItem *prevSibling (TQListViewItem *item) {
TQListViewItem *tqparent = item->tqparent(); TQListViewItem *parent = item->parent();
TQListViewItem *above = item->itemAbove(); TQListViewItem *above = item->itemAbove();
if (above == tqparent) if (above == parent)
return 0; return 0;
while (above->tqparent() != tqparent) while (above->parent() != parent)
above = above->tqparent(); above = above->parent();
return above; return above;
} }
@ -109,25 +109,25 @@ namespace PhraseTreePrivate {
if (item == 0) if (item == 0)
return false; return false;
TQListViewItem *tqparent = item->tqparent(); TQListViewItem *parent = item->parent();
TQListViewItem *above = item->itemAbove(); TQListViewItem *above = item->itemAbove();
if (above == 0) if (above == 0)
return false; return false;
else if (above == tqparent) { else if (above == parent) {
*newParent = tqparent->tqparent(); *newParent = parent->parent();
*newAbove = prevSibling (tqparent); *newAbove = prevSibling (parent);
return true; return true;
} }
else if (above->tqparent() == tqparent) { else if (above->parent() == parent) {
*newParent = tqparent; *newParent = parent;
*newAbove = prevSibling (above); *newAbove = prevSibling (above);
return true; return true;
} }
else { else {
while (above->tqparent()->tqparent() != tqparent) while (above->parent()->parent() != parent)
above = above->tqparent(); above = above->parent();
*newParent = above->tqparent(); *newParent = above->parent();
*newAbove = above; *newAbove = above;
return true; return true;
} }
@ -140,14 +140,14 @@ namespace PhraseTreePrivate {
if (item == 0) if (item == 0)
return false; return false;
TQListViewItem *tqparent = item->tqparent(); TQListViewItem *parent = item->parent();
TQListViewItem *below = item->nextSibling(); TQListViewItem *below = item->nextSibling();
if (tqparent == 0 && below == 0) if (parent == 0 && below == 0)
return false; return false;
else if (tqparent != 0 && below == 0) { else if (parent != 0 && below == 0) {
*newParent = tqparent->tqparent(); *newParent = parent->parent();
*newAbove = tqparent; *newAbove = parent;
return true; return true;
} }
else if (below->isOpen()) { else if (below->isOpen()) {
@ -156,7 +156,7 @@ namespace PhraseTreePrivate {
return true; return true;
} }
else { else {
*newParent = tqparent; *newParent = parent;
*newAbove = below; *newAbove = below;
return true; return true;
} }
@ -195,32 +195,32 @@ namespace PhraseTreePrivate {
if (item == 0) if (item == 0)
return false; return false;
TQListViewItem *tqparent = item->tqparent(); TQListViewItem *parent = item->parent();
if (tqparent == 0) if (parent == 0)
return false; return false;
else { else {
*newParent = tqparent->tqparent(); *newParent = parent->parent();
*newAbove = tqparent; *newAbove = parent;
return true; return true;
} }
} }
} }
void PhraseTree::moveItem (TQListViewItem *item, void PhraseTree::moveItem (TQListViewItem *item,
TQListViewItem *tqparent, TQListViewItem *parent,
TQListViewItem *above) TQListViewItem *above)
{ {
if (item != 0) { if (item != 0) {
if (item->tqparent() == 0) if (item->parent() == 0)
takeItem (item); takeItem (item);
else else
item->tqparent()->takeItem (item); item->parent()->takeItem (item);
if (tqparent == 0) if (parent == 0)
insertItem (item); insertItem (item);
else else
tqparent->insertItem (item); parent->insertItem (item);
item->moveItem(above); item->moveItem(above);
} }
@ -241,7 +241,7 @@ bool PhraseTree::hasSelectedItems() {
} }
else { else {
while ((i != 0) && (i->nextSibling() == 0)) { while ((i != 0) && (i->nextSibling() == 0)) {
i = i->tqparent(); i = i->parent();
level--; level--;
} }
if (i != 0) if (i != 0)
@ -267,7 +267,7 @@ void PhraseTree::deleteSelectedItems() {
} }
else { else {
while ((i != 0) && (i->nextSibling() == 0)) { while ((i != 0) && (i->nextSibling() == 0)) {
i = i->tqparent(); i = i->parent();
} }
if (i != 0) if (i != 0)
i = i->nextSibling(); i = i->nextSibling();
@ -285,11 +285,11 @@ void PhraseTree::keyPressEvent (TQKeyEvent *e) {
if (e->key() == TQt::Key_Up) { if (e->key() == TQt::Key_Up) {
TQListViewItem *item = currentItem(); TQListViewItem *item = currentItem();
if ((item != 0) && (item->isSelected())) { if ((item != 0) && (item->isSelected())) {
TQListViewItem *tqparent; TQListViewItem *parent;
TQListViewItem *above; TQListViewItem *above;
if (PhraseTreePrivate::findAbovePosition (item, &tqparent, &above)) { if (PhraseTreePrivate::findAbovePosition (item, &parent, &above)) {
moveItem(item, tqparent, above); moveItem(item, parent, above);
setCurrentItem (item); setCurrentItem (item);
item->setSelected(true); item->setSelected(true);
} }
@ -300,11 +300,11 @@ void PhraseTree::keyPressEvent (TQKeyEvent *e) {
else if (e->key() == TQt::Key_Down) { else if (e->key() == TQt::Key_Down) {
TQListViewItem *item = currentItem(); TQListViewItem *item = currentItem();
if ((item != 0) && (item->isSelected())) { if ((item != 0) && (item->isSelected())) {
TQListViewItem *tqparent; TQListViewItem *parent;
TQListViewItem *above; TQListViewItem *above;
if (PhraseTreePrivate::findBelowPosition (item, &tqparent, &above)) { if (PhraseTreePrivate::findBelowPosition (item, &parent, &above)) {
moveItem(item, tqparent, above); moveItem(item, parent, above);
setCurrentItem (item); setCurrentItem (item);
item->setSelected(true); item->setSelected(true);
} }
@ -315,11 +315,11 @@ void PhraseTree::keyPressEvent (TQKeyEvent *e) {
else if (e->key() == TQt::Key_Left) { else if (e->key() == TQt::Key_Left) {
TQListViewItem *item = currentItem(); TQListViewItem *item = currentItem();
if ((item != 0) && (item->isSelected())) { if ((item != 0) && (item->isSelected())) {
TQListViewItem *tqparent; TQListViewItem *parent;
TQListViewItem *above; TQListViewItem *above;
if (PhraseTreePrivate::findLeftPosition (item, &tqparent, &above)) { if (PhraseTreePrivate::findLeftPosition (item, &parent, &above)) {
moveItem(item, tqparent, above); moveItem(item, parent, above);
setCurrentItem (item); setCurrentItem (item);
item->setSelected(true); item->setSelected(true);
} }
@ -330,11 +330,11 @@ void PhraseTree::keyPressEvent (TQKeyEvent *e) {
else if (e->key() == TQt::Key_Right) { else if (e->key() == TQt::Key_Right) {
TQListViewItem *item = currentItem(); TQListViewItem *item = currentItem();
if ((item != 0) && (item->isSelected())) { if ((item != 0) && (item->isSelected())) {
TQListViewItem *tqparent; TQListViewItem *parent;
TQListViewItem *above; TQListViewItem *above;
if (PhraseTreePrivate::findRightPosition (item, &tqparent, &above)) { if (PhraseTreePrivate::findRightPosition (item, &parent, &above)) {
moveItem(item, tqparent, above); moveItem(item, parent, above);
setCurrentItem (item); setCurrentItem (item);
item->setSelected(true); item->setSelected(true);
} }
@ -346,57 +346,57 @@ void PhraseTree::keyPressEvent (TQKeyEvent *e) {
KListView::keyPressEvent(e); KListView::keyPressEvent(e);
} }
PhraseTreeItem *PhraseTree::insertPhrase (TQListViewItem *tqparent, TQListViewItem *after, TQString phrase, TQString shortcut) { PhraseTreeItem *PhraseTree::insertPhrase (TQListViewItem *parent, TQListViewItem *after, TQString phrase, TQString shortcut) {
KShortcut cut = KShortcut(shortcut); KShortcut cut = KShortcut(shortcut);
if (isKeyPresent (cut, 0, false)) if (isKeyPresent (cut, 0, false))
cut = KShortcut(TQString()); cut = KShortcut(TQString());
if (tqparent == 0) if (parent == 0)
return new PhraseTreeItem (this, after, phrase, cut, this->phrase); return new PhraseTreeItem (this, after, phrase, cut, this->phrase);
else else
return new PhraseTreeItem (tqparent, after, phrase, cut, this->phrase); return new PhraseTreeItem (parent, after, phrase, cut, this->phrase);
} }
PhraseTreeItem *PhraseTree::insertBook (TQListViewItem *tqparent, TQListViewItem *after, TQString name) { PhraseTreeItem *PhraseTree::insertBook (TQListViewItem *parent, TQListViewItem *after, TQString name) {
if (tqparent == 0) if (parent == 0)
return new PhraseTreeItem (this, after, name, phrasebook_closed); return new PhraseTreeItem (this, after, name, phrasebook_closed);
else else
return new PhraseTreeItem (tqparent, after, name, phrasebook_closed); return new PhraseTreeItem (parent, after, name, phrasebook_closed);
} }
TQListViewItem *PhraseTree::addBook (TQListViewItem *tqparent, TQListViewItem *after, PhraseBook *book) { TQListViewItem *PhraseTree::addBook (TQListViewItem *parent, TQListViewItem *after, PhraseBook *book) {
TQListViewItem *last = after; TQListViewItem *last = after;
int level = 0; int level = 0;
PhraseBookEntryList::iterator it; PhraseBookEntryList::iterator it;
for (it = book->begin(); it != book->end(); ++it) { for (it = book->begin(); it != book->end(); ++it) {
int newLevel = (*it).getLevel(); int newLevel = (*it).getLevel();
while (level < newLevel) { while (level < newLevel) {
tqparent = insertBook(tqparent, last, ""); parent = insertBook(parent, last, "");
last = 0; last = 0;
level++; level++;
} }
while (level > newLevel) { while (level > newLevel) {
last = tqparent; last = parent;
if (tqparent != 0) if (parent != 0)
tqparent = tqparent->tqparent(); parent = parent->parent();
level--; level--;
} }
if ((*it).isPhrase()) { if ((*it).isPhrase()) {
Phrase phrase = (*it).getPhrase(); Phrase phrase = (*it).getPhrase();
last = insertPhrase (tqparent, last, phrase.getPhrase(), phrase.getShortcut()); last = insertPhrase (parent, last, phrase.getPhrase(), phrase.getShortcut());
} }
else { else {
Phrase phrase = (*it).getPhrase(); Phrase phrase = (*it).getPhrase();
tqparent = insertBook(tqparent, last, phrase.getPhrase()); parent = insertBook(parent, last, phrase.getPhrase());
last = 0; last = 0;
level++; level++;
} }
} }
while (level > 0) { while (level > 0) {
last = tqparent; last = parent;
if (tqparent != 0) if (parent != 0)
tqparent = tqparent->tqparent(); parent = parent->parent();
level--; level--;
} }
return last; return last;
@ -421,7 +421,7 @@ void PhraseTree::fillBook (PhraseBook *book, bool respectSelection) {
} }
else { else {
while ((i != 0) && (i->nextSibling() == 0)) { while ((i != 0) && (i->nextSibling() == 0)) {
i = i->tqparent(); i = i->parent();
if (level > 0) if (level > 0)
level--; level--;
} }

@ -33,13 +33,13 @@ class PhraseTreeItem : public KListViewItem {
friend class PhraseTree; friend class PhraseTree;
private: private:
/** Creates a phrase item within a sub phrase book */ /** Creates a phrase item within a sub phrase book */
PhraseTreeItem (TQListView *tqparent, TQListViewItem *after, TQString phrase, KShortcut shortcut, TQPixmap icon); PhraseTreeItem (TQListView *parent, TQListViewItem *after, TQString phrase, KShortcut shortcut, TQPixmap icon);
/** Creates a phrase item at the top level */ /** Creates a phrase item at the top level */
PhraseTreeItem (TQListViewItem *tqparent, TQListViewItem *after, TQString phrase, KShortcut shortcut, TQPixmap icon); PhraseTreeItem (TQListViewItem *parent, TQListViewItem *after, TQString phrase, KShortcut shortcut, TQPixmap icon);
/** Creates a phrase book item within a sub phrase book */ /** Creates a phrase book item within a sub phrase book */
PhraseTreeItem (TQListView *tqparent, TQListViewItem *after, TQString name, TQPixmap icon); PhraseTreeItem (TQListView *parent, TQListViewItem *after, TQString name, TQPixmap icon);
/** Creates a phrase book item at the top level */ /** Creates a phrase book item at the top level */
PhraseTreeItem (TQListViewItem *tqparent, TQListViewItem *after, TQString name, TQPixmap icon); PhraseTreeItem (TQListViewItem *parent, TQListViewItem *after, TQString name, TQPixmap icon);
public: public:
bool isPhrase(); bool isPhrase();
@ -62,21 +62,21 @@ class PhraseTree : public KListView {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
PhraseTree (TQWidget *tqparent = 0, const char *name = 0); PhraseTree (TQWidget *parent = 0, const char *name = 0);
~PhraseTree (); ~PhraseTree ();
void keyPressEvent (TQKeyEvent *e); void keyPressEvent (TQKeyEvent *e);
PhraseTreeItem *insertPhrase (TQListViewItem *tqparent, TQListViewItem *after, TQString phrase, TQString shortcut); PhraseTreeItem *insertPhrase (TQListViewItem *parent, TQListViewItem *after, TQString phrase, TQString shortcut);
PhraseTreeItem *insertBook (TQListViewItem *tqparent, TQListViewItem *after, TQString name); PhraseTreeItem *insertBook (TQListViewItem *parent, TQListViewItem *after, TQString name);
TQListViewItem *addBook (TQListViewItem *tqparent, TQListViewItem *after, PhraseBook *book); TQListViewItem *addBook (TQListViewItem *parent, TQListViewItem *after, PhraseBook *book);
void fillBook (PhraseBook *book, bool respectSelection); void fillBook (PhraseBook *book, bool respectSelection);
TQDragObject *dragObject (); TQDragObject *dragObject ();
TQDragObject *dragObject (bool isDependent); TQDragObject *dragObject (bool isDependent);
void moveItem (TQListViewItem *item, TQListViewItem *tqparent, TQListViewItem *above); void moveItem (TQListViewItem *item, TQListViewItem *parent, TQListViewItem *above);
bool hasSelectedItems(); bool hasSelectedItems();
void deleteSelectedItems(); void deleteSelectedItems();

@ -17,8 +17,8 @@
#include "phraseedit.h" #include "phraseedit.h"
PhraseEdit::PhraseEdit(const TQString &string, TQWidget *tqparent) PhraseEdit::PhraseEdit(const TQString &string, TQWidget *parent)
: KLineEdit (string, tqparent) { : KLineEdit (string, parent) {
} }
PhraseEdit::~PhraseEdit() { PhraseEdit::~PhraseEdit() {

@ -27,7 +27,7 @@
class PhraseEdit : public KLineEdit { class PhraseEdit : public KLineEdit {
public: public:
PhraseEdit(const TQString &string, TQWidget *tqparent); PhraseEdit(const TQString &string, TQWidget *parent);
virtual ~PhraseEdit(); virtual ~PhraseEdit();
void keyPressEvent (TQKeyEvent *e); void keyPressEvent (TQKeyEvent *e);

@ -45,7 +45,7 @@
#include "phrasebook/phrasebook.h" #include "phrasebook/phrasebook.h"
#include "wordcompletion/wordcompletion.h" #include "wordcompletion/wordcompletion.h"
PhraseList::PhraseList(TQWidget *tqparent, const char *name) : TQWidget(tqparent,name) { PhraseList::PhraseList(TQWidget *parent, const char *name) : TQWidget(parent,name) {
isInSlot = false; isInSlot = false;
setBackgroundMode(PaletteBase); setBackgroundMode(PaletteBase);
TQVBoxLayout *tqlayout = new TQVBoxLayout (this); TQVBoxLayout *tqlayout = new TQVBoxLayout (this);

@ -42,7 +42,7 @@ class PhraseList : public TQWidget {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
PhraseList(TQWidget *tqparent=0, const char *name=0); PhraseList(TQWidget *parent=0, const char *name=0);
~PhraseList(); ~PhraseList();
/** contains the implementation for printing functionality */ /** contains the implementation for printing functionality */

@ -31,8 +31,8 @@
#include <tqcheckbox.h> #include <tqcheckbox.h>
#include <kurlrequester.h> #include <kurlrequester.h>
TextToSpeechConfigurationWidget::TextToSpeechConfigurationWidget (TQWidget *tqparent, const char *name) TextToSpeechConfigurationWidget::TextToSpeechConfigurationWidget (TQWidget *parent, const char *name)
: texttospeechconfigurationui (tqparent, name) : texttospeechconfigurationui (parent, name)
{ {
ttsSystem = new TextToSpeechSystem(); ttsSystem = new TextToSpeechSystem();

@ -30,7 +30,7 @@
class TextToSpeechConfigurationWidget : public texttospeechconfigurationui { class TextToSpeechConfigurationWidget : public texttospeechconfigurationui {
friend class TextToSpeechConfigurationDialog; friend class TextToSpeechConfigurationDialog;
public: public:
TextToSpeechConfigurationWidget(TQWidget *tqparent, const char *name); TextToSpeechConfigurationWidget(TQWidget *parent, const char *name);
~TextToSpeechConfigurationWidget(); ~TextToSpeechConfigurationWidget();
TextToSpeechSystem *getTTSSystem() const; TextToSpeechSystem *getTTSSystem() const;

@ -42,10 +42,10 @@
#include "kdedocsourceui.h" #include "kdedocsourceui.h"
#include "wordlist.h" #include "wordlist.h"
DictionaryCreationWizard::DictionaryCreationWizard (TQWidget *tqparent, const char *name, DictionaryCreationWizard::DictionaryCreationWizard (TQWidget *parent, const char *name,
TQStringList dictionaryNames, TQStringList dictionaryFiles, TQStringList dictionaryNames, TQStringList dictionaryFiles,
TQStringList dictionaryLanguages) TQStringList dictionaryLanguages)
: KWizard (tqparent, name) : KWizard (parent, name)
{ {
buildCodecList (); buildCodecList ();
@ -274,10 +274,10 @@ TQString DictionaryCreationWizard::language() {
/***************************************************************************/ /***************************************************************************/
MergeWidget::MergeWidget(KWizard *tqparent, const char *name, MergeWidget::MergeWidget(KWizard *parent, const char *name,
TQStringList dictionaryNames, TQStringList dictionaryFiles, TQStringList dictionaryNames, TQStringList dictionaryFiles,
TQStringList dictionaryLanguages) TQStringList dictionaryLanguages)
: TQScrollView (tqparent, name) { : TQScrollView (parent, name) {
dictionaries.setAutoDelete (false); dictionaries.setAutoDelete (false);
weights.setAutoDelete (false); weights.setAutoDelete (false);
@ -340,8 +340,8 @@ TQString MergeWidget::language () {
/***************************************************************************/ /***************************************************************************/
CompletionWizardWidget::CompletionWizardWidget (KWizard *tqparent, const char *name) CompletionWizardWidget::CompletionWizardWidget (KWizard *parent, const char *name)
: KDEDocSourceUI (tqparent, name) { : KDEDocSourceUI (parent, name) {
} }
CompletionWizardWidget::~CompletionWizardWidget() { CompletionWizardWidget::~CompletionWizardWidget() {

@ -44,7 +44,7 @@ class DictionaryCreationWizard : public KWizard {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
DictionaryCreationWizard (TQWidget *tqparent, const char *name, DictionaryCreationWizard (TQWidget *parent, const char *name,
TQStringList dictionaryNames, TQStringList dictionaryNames,
TQStringList dictionaryFiles, TQStringList dictionaryFiles,
TQStringList dictionaryLanguages); TQStringList dictionaryLanguages);
@ -79,7 +79,7 @@ class MergeWidget : public TQScrollView {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
MergeWidget(KWizard *tqparent, const char *name, MergeWidget(KWizard *parent, const char *name,
TQStringList dictionaryNames, TQStringList dictionaryNames,
TQStringList dictionaryFiles, TQStringList dictionaryFiles,
TQStringList dictionaryLanguages); TQStringList dictionaryLanguages);
@ -104,7 +104,7 @@ class CompletionWizardWidget : public KDEDocSourceUI {
TQ_OBJECT TQ_OBJECT
friend class ConfigWizard; friend class ConfigWizard;
public: public:
CompletionWizardWidget(KWizard *tqparent, const char *name); CompletionWizardWidget(KWizard *parent, const char *name);
~CompletionWizardWidget(); ~CompletionWizardWidget();
void ok (KConfig *config); void ok (KConfig *config);

@ -80,8 +80,8 @@ KLanguageButton::~KLanguageButton()
delete m_tags; delete m_tags;
} }
KLanguageButton::KLanguageButton( TQWidget * tqparent, const char *name ) KLanguageButton::KLanguageButton( TQWidget * parent, const char *name )
: TQPushButton( tqparent, name ), : TQPushButton( parent, name ),
m_popup( 0 ), m_popup( 0 ),
m_oldPopup( 0 ) m_oldPopup( 0 )
{ {

@ -43,7 +43,7 @@ class KLanguageButton : public TQPushButton
TQ_OBJECT TQ_OBJECT
public: public:
KLanguageButton(TQWidget *tqparent=0, const char *name=0); KLanguageButton(TQWidget *parent=0, const char *name=0);
~KLanguageButton(); ~KLanguageButton();
void insertItem( const TQIconSet& icon, const TQString &text, void insertItem( const TQIconSet& icon, const TQString &text,

@ -39,18 +39,18 @@
class DictionaryListItem : public KListViewItem { class DictionaryListItem : public KListViewItem {
public: public:
DictionaryListItem (TQListView *tqparent, TQString filename, TQString name, TQString language, TQString languageCode) DictionaryListItem (TQListView *parent, TQString filename, TQString name, TQString language, TQString languageCode)
: KListViewItem (tqparent, name) { : KListViewItem (parent, name) {
setFilename (filename); setFilename (filename);
setLanguage (language, languageCode); setLanguage (language, languageCode);
}; };
DictionaryListItem (TQListView *tqparent, TQString filename, TQString name, TQString languageCode) DictionaryListItem (TQListView *parent, TQString filename, TQString name, TQString languageCode)
: KListViewItem (tqparent, name) { : KListViewItem (parent, name) {
setFilename (filename); setFilename (filename);
setLanguage (languageCode); setLanguage (languageCode);
}; };
DictionaryListItem (TQListView *tqparent, TQListViewItem *after, TQString filename, TQString name, TQString languageCode) DictionaryListItem (TQListView *parent, TQListViewItem *after, TQString filename, TQString name, TQString languageCode)
: KListViewItem (tqparent, after, name) { : KListViewItem (parent, after, name) {
setFilename (filename); setFilename (filename);
setLanguage (languageCode); setLanguage (languageCode);
}; };
@ -91,7 +91,7 @@ private:
/***************************************************************************/ /***************************************************************************/
WordCompletionWidget::WordCompletionWidget(TQWidget *tqparent, const char *name) : WordCompletionUI (tqparent, name) { WordCompletionWidget::WordCompletionWidget(TQWidget *parent, const char *name) : WordCompletionUI (parent, name) {
dictionaryList->setSorting (-1); // no sorted list dictionaryList->setSorting (-1); // no sorted list
// Connect the signals from hte KCMKTTSDWidget to this class // Connect the signals from hte KCMKTTSDWidget to this class

@ -32,7 +32,7 @@ class WordCompletionWidget : public WordCompletionUI {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
WordCompletionWidget(TQWidget *tqparent, const char *name); WordCompletionWidget(TQWidget *parent, const char *name);
~WordCompletionWidget(); ~WordCompletionWidget();
/** /**

@ -28,8 +28,8 @@ using namespace std;
// App specific includes // App specific includes
#include "freeverbsetupimpl.h" #include "freeverbsetupimpl.h"
FreeverbSetupImpl::FreeverbSetupImpl(TQWidget *tqparent, const char *name, bool modal, KConfig *config ) FreeverbSetupImpl::FreeverbSetupImpl(TQWidget *parent, const char *name, bool modal, KConfig *config )
: Freeverb_Setup(tqparent,name,modal), m_config(config) { : Freeverb_Setup(parent,name,modal), m_config(config) {
// initialize Widgets // initialize Widgets
Init(); Init();

@ -35,7 +35,7 @@ class FreeverbSetupImpl : public Freeverb_Setup {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
FreeverbSetupImpl(TQWidget *tqparent=0, const char *name=0, bool modal=true, KConfig *config=0); FreeverbSetupImpl(TQWidget *parent=0, const char *name=0, bool modal=true, KConfig *config=0);
~FreeverbSetupImpl(); ~FreeverbSetupImpl();
public slots: public slots:

@ -41,19 +41,19 @@ KInstance *FreeverbPluginFactory::p_instance = 0L;
// Factory Constructor // Factory Constructor
FreeverbPluginFactory::FreeverbPluginFactory(TQObject *tqparent, const char* name) FreeverbPluginFactory::FreeverbPluginFactory(TQObject *parent, const char* name)
{ {
p_instance = new KInstance("FreeverbPluginFactory"); p_instance = new KInstance("FreeverbPluginFactory");
} }
TQObject* FreeverbPluginFactory::createObject(TQObject *tqparent, const char* name, TQObject* FreeverbPluginFactory::createObject(TQObject *parent, const char* name,
const char*, const char*,
const TQStringList &) const TQStringList &)
{ {
kdDebug(100200) << "FreeverbPluginFactory::createObject()" << endl; kdDebug(100200) << "FreeverbPluginFactory::createObject()" << endl;
TQObject* obj = new FreeverbPlugin( tqparent, name ); TQObject* obj = new FreeverbPlugin( parent, name );
emit objectCreated( obj ); emit objectCreated( obj );
return obj; return obj;
} }
@ -62,8 +62,8 @@ TQObject* FreeverbPluginFactory::createObject(TQObject *tqparent, const char* na
// Plugin Constructor // Plugin Constructor
FreeverbPlugin::FreeverbPlugin(TQObject *tqparent, const char* name) //, KApplication *Appl) FreeverbPlugin::FreeverbPlugin(TQObject *parent, const char* name) //, KApplication *Appl)
: FXPlugin(tqparent, name) //, m_Appl(Appl) : FXPlugin(parent, name) //, m_Appl(Appl)
{ {
m_config = new KSimpleConfig("ksayit_freeverbrc"); m_config = new KSimpleConfig("ksayit_freeverbrc");

@ -30,12 +30,12 @@ Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
// Consturctor // Consturctor
FreeverbPluginFactory(TQObject *tqparent=0, const char* name=0); FreeverbPluginFactory(TQObject *parent=0, const char* name=0);
// Destructor // Destructor
virtual ~FreeverbPluginFactory(){ delete p_instance; }; virtual ~FreeverbPluginFactory(){ delete p_instance; };
TQObject* createObject(TQObject *tqparent=0, const char* name=0, TQObject* createObject(TQObject *parent=0, const char* name=0,
const char* className=TQOBJECT_OBJECT_NAME_STRING, const char* className=TQOBJECT_OBJECT_NAME_STRING,
const TQStringList &args=TQStringList()); const TQStringList &args=TQStringList());
@ -54,7 +54,7 @@ Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
// Constructor // Constructor
FreeverbPlugin(TQObject *tqparent=0, const char* name=0); //, KApplication *Appl=0); FreeverbPlugin(TQObject *parent=0, const char* name=0); //, KApplication *Appl=0);
// Destructor // Destructor
~FreeverbPlugin(); ~FreeverbPlugin();

@ -27,8 +27,8 @@
#include "kttsdlibsetupimpl.h" #include "kttsdlibsetupimpl.h"
KTTSDLib::KTTSDLib(TQObject *tqparent, const char *name, KApplication *Appl) KTTSDLib::KTTSDLib(TQObject *parent, const char *name, KApplication *Appl)
: TQObject(tqparent, name), m_Appl(Appl) : TQObject(parent, name), m_Appl(Appl)
{ {
KGlobal::locale()->insertCatalogue("libKTTSD"); KGlobal::locale()->insertCatalogue("libKTTSD");
m_talker = new kttsdlibtalker2(static_cast<TQObject*>(this), "kttsdlibtalker"); m_talker = new kttsdlibtalker2(static_cast<TQObject*>(this), "kttsdlibtalker");

@ -71,7 +71,7 @@ public slots:
void slotTextStarted(const uint job); void slotTextStarted(const uint job);
public: public:
KTTSDLib(TQObject *tqparent=0, const char *name=0, KApplication *Appl=0); KTTSDLib(TQObject *parent=0, const char *name=0, KApplication *Appl=0);
~KTTSDLib(); ~KTTSDLib();

@ -23,8 +23,8 @@
// App specific includes // App specific includes
#include "kttsdlibsetupimpl.h" #include "kttsdlibsetupimpl.h"
KTTSDlibSetupImpl::KTTSDlibSetupImpl(TQWidget *tqparent, const char *name) KTTSDlibSetupImpl::KTTSDlibSetupImpl(TQWidget *parent, const char *name)
: KTTSDlibSetup(tqparent, name) : KTTSDlibSetup(parent, name)
{ {
} }

@ -28,7 +28,7 @@ class KTTSDlibSetupImpl : public KTTSDlibSetup
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
KTTSDlibSetupImpl(TQWidget *tqparent = 0, const char *name = 0); KTTSDlibSetupImpl(TQWidget *parent = 0, const char *name = 0);
~KTTSDlibSetupImpl(); ~KTTSDlibSetupImpl();

@ -21,8 +21,8 @@
// App specific includes // App specific includes
#include "kttsdlibtalker2.h" #include "kttsdlibtalker2.h"
kttsdlibtalker2::kttsdlibtalker2(TQObject *tqparent, const char *name) kttsdlibtalker2::kttsdlibtalker2(TQObject *parent, const char *name)
: TQObject(tqparent, name), DCOPStub("kttsd", "KSpeech") : TQObject(parent, name), DCOPStub("kttsd", "KSpeech")
{ {
m_client = NULL; m_client = NULL;

@ -37,7 +37,7 @@ signals:
void signalTextStopped(const uint); void signalTextStopped(const uint);
public: public:
kttsdlibtalker2(TQObject *tqparent = 0, const char *name = 0); kttsdlibtalker2(TQObject *parent = 0, const char *name = 0);
~kttsdlibtalker2(); ~kttsdlibtalker2();

@ -54,8 +54,8 @@ This abstract class is the interface to access the items of the TreeView.
class ListViewInterface : public KListViewItem class ListViewInterface : public KListViewItem
{ {
public: public:
ListViewInterface(ListViewInterface *tqparent=0, TQString label=TQString()); ListViewInterface(ListViewInterface *parent=0, TQString label=TQString());
ListViewInterface(ListViewInterface *tqparent=0, ListViewInterface *after=0, TQString label=TQString()); ListViewInterface(ListViewInterface *parent=0, ListViewInterface *after=0, TQString label=TQString());
ListViewInterface(KListView *lv=0, TQString label=TQString()); ListViewInterface(KListView *lv=0, TQString label=TQString());
// ~ListViewItemInterface(); // ~ListViewItemInterface();

@ -117,8 +117,8 @@ bool ContextActionHandler::characters( const TQString &ch )
/** /**
* MenuHandler * MenuHandler
*/ */
ContextMenuHandler::ContextMenuHandler(TQObject *tqparent, const char *name) ContextMenuHandler::ContextMenuHandler(TQObject *parent, const char *name)
: TQObject(tqparent, name), m_DocTreeView(tqparent) : TQObject(parent, name), m_DocTreeView(parent)
{ {
m_popupmenu = NULL; m_popupmenu = NULL;
m_item = NULL; m_item = NULL;
@ -378,9 +378,9 @@ KAction* ContextMenuHandler::ActionFactory( const TQString &actionName, const TQ
} }
KPopupMenu* ContextMenuHandler::SubMenuFactory(KPopupMenu *tqparent) KPopupMenu* ContextMenuHandler::SubMenuFactory(KPopupMenu *parent)
{ {
return new KPopupMenu(tqparent); return new KPopupMenu(parent);
} }

@ -69,7 +69,7 @@ class ContextMenuHandler : public TQObject
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
ContextMenuHandler(TQObject *tqparent = 0, const char *name = 0); ContextMenuHandler(TQObject *parent = 0, const char *name = 0);
~ContextMenuHandler(); ~ContextMenuHandler();
@ -80,10 +80,10 @@ public:
KPopupMenu* getPopupMenu(ListViewInterface *item); KPopupMenu* getPopupMenu(ListViewInterface *item);
/** /**
* \returns A pointer to the Submenu as a child of the tqparent * \returns A pointer to the Submenu as a child of the parent
* \p tqparent. * \p parent.
*/ */
KPopupMenu* SubMenuFactory(KPopupMenu *tqparent); KPopupMenu* SubMenuFactory(KPopupMenu *parent);
/** /**
* Creates an action sufficiant to the given name. * Creates an action sufficiant to the given name.

@ -31,12 +31,12 @@
////////////////////////////////////// //////////////////////////////////////
// Interface // Interface
////////////////////////////////////// //////////////////////////////////////
ListViewInterface::ListViewInterface(ListViewInterface *tqparent, TQString label) ListViewInterface::ListViewInterface(ListViewInterface *parent, TQString label)
: KListViewItem( tqparent, label ) : KListViewItem( parent, label )
{ {
} }
ListViewInterface::ListViewInterface(ListViewInterface *tqparent, ListViewInterface *after, TQString label) : KListViewItem( tqparent, after, label ) ListViewInterface::ListViewInterface(ListViewInterface *parent, ListViewInterface *after, TQString label) : KListViewItem( parent, after, label )
{ {
} }
@ -116,8 +116,8 @@ TQVariant RobDocument::getValue( unsigned int index ) const
/** /**
* Overview * Overview
*/ */
Overview::Overview(ListViewInterface *tqparent, ListViewInterface *after, TQString label) Overview::Overview(ListViewInterface *parent, ListViewInterface *after, TQString label)
: ListViewInterface(tqparent, after, label) : ListViewInterface(parent, after, label)
{ {
TQPixmap pixmap = KGlobal::iconLoader()->loadIcon("filenew", KIcon::Small); TQPixmap pixmap = KGlobal::iconLoader()->loadIcon("filenew", KIcon::Small);
this->setPixmap(0, pixmap); this->setPixmap(0, pixmap);
@ -171,8 +171,8 @@ TQVariant Overview::getValue( unsigned int index ) const
/** /**
* Date * Date
*/ */
Date::Date(ListViewInterface *tqparent, ListViewInterface *after, TQString label) Date::Date(ListViewInterface *parent, ListViewInterface *after, TQString label)
: ListViewInterface(tqparent, after, label) : ListViewInterface(parent, after, label)
{ {
TQPixmap pixmap = KGlobal::iconLoader()->loadIcon("filenew", KIcon::Small); TQPixmap pixmap = KGlobal::iconLoader()->loadIcon("filenew", KIcon::Small);
this->setPixmap(0, pixmap); this->setPixmap(0, pixmap);
@ -238,8 +238,8 @@ TQVariant Date::getValue( unsigned int index ) const
/** /**
* ReleaseInfo * ReleaseInfo
*/ */
ReleaseInfo::ReleaseInfo(ListViewInterface *tqparent, ListViewInterface *after, TQString label) ReleaseInfo::ReleaseInfo(ListViewInterface *parent, ListViewInterface *after, TQString label)
: ListViewInterface(tqparent, after, label) : ListViewInterface(parent, after, label)
{ {
TQPixmap pixmap = KGlobal::iconLoader()->loadIcon("filenew", KIcon::Small); TQPixmap pixmap = KGlobal::iconLoader()->loadIcon("filenew", KIcon::Small);
this->setPixmap(0, pixmap); this->setPixmap(0, pixmap);
@ -305,8 +305,8 @@ TQVariant ReleaseInfo::getValue( unsigned int index ) const
/** /**
* Authorgroup * Authorgroup
*/ */
AuthorGroup::AuthorGroup(ListViewInterface *tqparent, ListViewInterface *after, TQString label) AuthorGroup::AuthorGroup(ListViewInterface *parent, ListViewInterface *after, TQString label)
: ListViewInterface(tqparent, after, label) : ListViewInterface(parent, after, label)
{ {
TQPixmap pixmap = KGlobal::iconLoader()->loadIcon("kdmconfig", KIcon::Small); TQPixmap pixmap = KGlobal::iconLoader()->loadIcon("kdmconfig", KIcon::Small);
this->setPixmap(0, pixmap); this->setPixmap(0, pixmap);
@ -361,8 +361,8 @@ TQVariant AuthorGroup::getValue( unsigned int index ) const
/** /**
* Author * Author
*/ */
Author::Author(ListViewInterface *tqparent, ListViewInterface *after, TQString label) Author::Author(ListViewInterface *parent, ListViewInterface *after, TQString label)
: ListViewInterface(tqparent, after, label) : ListViewInterface(parent, after, label)
{ {
TQPixmap pixmap = KGlobal::iconLoader()->loadIcon("personal", KIcon::Small); TQPixmap pixmap = KGlobal::iconLoader()->loadIcon("personal", KIcon::Small);
this->setPixmap(0, pixmap); this->setPixmap(0, pixmap);
@ -445,8 +445,8 @@ TQVariant Author::getValue( unsigned int index ) const
/** /**
* KeywordSet * KeywordSet
*/ */
KeywordSet::KeywordSet(ListViewInterface *tqparent, ListViewInterface *after, TQString label) KeywordSet::KeywordSet(ListViewInterface *parent, ListViewInterface *after, TQString label)
: ListViewInterface(tqparent, after, label) : ListViewInterface(parent, after, label)
{ {
TQPixmap pixmap = KGlobal::iconLoader()->loadIcon("txt", KIcon::Small); TQPixmap pixmap = KGlobal::iconLoader()->loadIcon("txt", KIcon::Small);
this->setPixmap(0, pixmap); this->setPixmap(0, pixmap);
@ -500,8 +500,8 @@ TQVariant KeywordSet::getValue( unsigned int index ) const
/** /**
* Keyword * Keyword
*/ */
Keyword::Keyword(ListViewInterface *tqparent, ListViewInterface *after, TQString label) Keyword::Keyword(ListViewInterface *parent, ListViewInterface *after, TQString label)
: ListViewInterface(tqparent, after, label) : ListViewInterface(parent, after, label)
{ {
// new Concept (begin) // new Concept (begin)
m_valueList.clear(); m_valueList.clear();
@ -566,8 +566,8 @@ TQVariant Keyword::getValue( unsigned int index ) const
/** /**
* Abstract * Abstract
*/ */
Abstract::Abstract(ListViewInterface *tqparent, ListViewInterface *after, TQString label) Abstract::Abstract(ListViewInterface *parent, ListViewInterface *after, TQString label)
: ListViewInterface(tqparent, after, label) : ListViewInterface(parent, after, label)
{ {
TQPixmap pixmap = KGlobal::iconLoader()->loadIcon("filenew", KIcon::Small); TQPixmap pixmap = KGlobal::iconLoader()->loadIcon("filenew", KIcon::Small);
this->setPixmap(0, pixmap); this->setPixmap(0, pixmap);
@ -622,8 +622,8 @@ TQVariant Abstract::getValue( unsigned int index ) const
/** /**
* Para * Para
*/ */
Para::Para(ListViewInterface *tqparent, ListViewInterface *after, TQString label) Para::Para(ListViewInterface *parent, ListViewInterface *after, TQString label)
: ListViewInterface(tqparent, after, label) : ListViewInterface(parent, after, label)
{ {
TQPixmap pixmap = KGlobal::iconLoader()->loadIcon("leftjust", KIcon::Small); TQPixmap pixmap = KGlobal::iconLoader()->loadIcon("leftjust", KIcon::Small);
this->setPixmap(0, pixmap); this->setPixmap(0, pixmap);
@ -696,8 +696,8 @@ TQVariant Para::getValue( unsigned int index ) const
/** /**
* Chapter * Chapter
*/ */
Chapter::Chapter(ListViewInterface *tqparent, ListViewInterface *after, TQString label) Chapter::Chapter(ListViewInterface *parent, ListViewInterface *after, TQString label)
: ListViewInterface(tqparent, after, label) : ListViewInterface(parent, after, label)
{ {
TQPixmap pixmap = KGlobal::iconLoader()->loadIcon("leftjust", KIcon::Small); TQPixmap pixmap = KGlobal::iconLoader()->loadIcon("leftjust", KIcon::Small);
this->setPixmap(0, pixmap); this->setPixmap(0, pixmap);
@ -757,8 +757,8 @@ TQVariant Chapter::getValue( unsigned int index ) const
/** /**
* Sect1 * Sect1
*/ */
Sect1::Sect1(ListViewInterface *tqparent, ListViewInterface *after, TQString label) Sect1::Sect1(ListViewInterface *parent, ListViewInterface *after, TQString label)
: ListViewInterface(tqparent, after, label) : ListViewInterface(parent, after, label)
{ {
TQPixmap pixmap = KGlobal::iconLoader()->loadIcon("leftjust", KIcon::Small); TQPixmap pixmap = KGlobal::iconLoader()->loadIcon("leftjust", KIcon::Small);
this->setPixmap(0, pixmap); this->setPixmap(0, pixmap);
@ -817,8 +817,8 @@ TQVariant Sect1::getValue( unsigned int index ) const
/** /**
* Sect2 * Sect2
*/ */
Sect2::Sect2(ListViewInterface *tqparent, ListViewInterface *after, TQString label) Sect2::Sect2(ListViewInterface *parent, ListViewInterface *after, TQString label)
: ListViewInterface(tqparent, after, label) : ListViewInterface(parent, after, label)
{ {
TQPixmap pixmap = KGlobal::iconLoader()->loadIcon("leftjust", KIcon::Small); TQPixmap pixmap = KGlobal::iconLoader()->loadIcon("leftjust", KIcon::Small);
this->setPixmap(0, pixmap); this->setPixmap(0, pixmap);
@ -877,8 +877,8 @@ TQVariant Sect2::getValue( unsigned int index ) const
/** /**
* Sect3 * Sect3
*/ */
Sect3::Sect3(ListViewInterface *tqparent, ListViewInterface *after, TQString label) Sect3::Sect3(ListViewInterface *parent, ListViewInterface *after, TQString label)
: ListViewInterface(tqparent, after, label) : ListViewInterface(parent, after, label)
{ {
TQPixmap pixmap = KGlobal::iconLoader()->loadIcon("leftjust", KIcon::Small); TQPixmap pixmap = KGlobal::iconLoader()->loadIcon("leftjust", KIcon::Small);
this->setPixmap(0, pixmap); this->setPixmap(0, pixmap);
@ -937,8 +937,8 @@ TQVariant Sect3::getValue( unsigned int index ) const
/** /**
* Sect4 * Sect4
*/ */
Sect4::Sect4(ListViewInterface *tqparent, ListViewInterface *after, TQString label) Sect4::Sect4(ListViewInterface *parent, ListViewInterface *after, TQString label)
: ListViewInterface(tqparent, after, label) : ListViewInterface(parent, after, label)
{ {
TQPixmap pixmap = KGlobal::iconLoader()->loadIcon("leftjust", KIcon::Small); TQPixmap pixmap = KGlobal::iconLoader()->loadIcon("leftjust", KIcon::Small);
this->setPixmap(0, pixmap); this->setPixmap(0, pixmap);
@ -997,8 +997,8 @@ TQVariant Sect4::getValue( unsigned int index ) const
/** /**
* Sect5 * Sect5
*/ */
Sect5::Sect5(ListViewInterface *tqparent, ListViewInterface *after, TQString label) Sect5::Sect5(ListViewInterface *parent, ListViewInterface *after, TQString label)
: ListViewInterface(tqparent, after, label) : ListViewInterface(parent, after, label)
{ {
TQPixmap pixmap = KGlobal::iconLoader()->loadIcon("leftjust", KIcon::Small); TQPixmap pixmap = KGlobal::iconLoader()->loadIcon("leftjust", KIcon::Small);
this->setPixmap(0, pixmap); this->setPixmap(0, pixmap);

@ -32,7 +32,7 @@ class TQStringList;
// //
/** /**
Represents the root item of the document, therefore it expects Represents the root item of the document, therefore it expects
a \p TQListView object as tqparent.\n a \p TQListView object as parent.\n
Structural item only (no references to a DOM node). Structural item only (no references to a DOM node).
@author Robert Vogl @author Robert Vogl
*/ */
@ -41,7 +41,7 @@ class RobDocument : public ListViewInterface
public: public:
/** /**
* Constructor * Constructor
* \param lv The ListView tqparent. * \param lv The ListView parent.
* \param label The label is shown in column 0 of the TreeView and is also * \param label The label is shown in column 0 of the TreeView and is also
* used as bookmark title. * used as bookmark title.
*/ */
@ -67,7 +67,7 @@ private:
class Overview : public ListViewInterface class Overview : public ListViewInterface
{ {
public: public:
Overview(ListViewInterface *tqparent=0, ListViewInterface *after=0, TQString label=TQString()); Overview(ListViewInterface *parent=0, ListViewInterface *after=0, TQString label=TQString());
~Overview(); ~Overview();
bool setValue( unsigned int index, TQVariant data ); bool setValue( unsigned int index, TQVariant data );
@ -85,7 +85,7 @@ private:
class Date : public ListViewInterface class Date : public ListViewInterface
{ {
public: public:
Date(ListViewInterface *tqparent=0, ListViewInterface *after=0, TQString label=TQString()); Date(ListViewInterface *parent=0, ListViewInterface *after=0, TQString label=TQString());
~Date(); ~Date();
bool setValue( unsigned int index, TQVariant data ); bool setValue( unsigned int index, TQVariant data );
@ -104,7 +104,7 @@ private:
class ReleaseInfo : public ListViewInterface class ReleaseInfo : public ListViewInterface
{ {
public: public:
ReleaseInfo(ListViewInterface *tqparent=0, ListViewInterface *after=0, TQString label=TQString()); ReleaseInfo(ListViewInterface *parent=0, ListViewInterface *after=0, TQString label=TQString());
~ReleaseInfo(); ~ReleaseInfo();
bool setValue( unsigned int index, TQVariant data ); bool setValue( unsigned int index, TQVariant data );
@ -124,7 +124,7 @@ private:
class AuthorGroup : public ListViewInterface class AuthorGroup : public ListViewInterface
{ {
public: public:
AuthorGroup(ListViewInterface *tqparent=0, ListViewInterface *after=0, TQString label=TQString()); AuthorGroup(ListViewInterface *parent=0, ListViewInterface *after=0, TQString label=TQString());
~AuthorGroup(); ~AuthorGroup();
bool setValue( unsigned int index, TQVariant data ); bool setValue( unsigned int index, TQVariant data );
@ -143,7 +143,7 @@ private:
class Author : public ListViewInterface class Author : public ListViewInterface
{ {
public: public:
Author(ListViewInterface *tqparent=0, ListViewInterface *after=0, TQString label=TQString()); Author(ListViewInterface *parent=0, ListViewInterface *after=0, TQString label=TQString());
~Author(); ~Author();
bool setValue( unsigned int index, TQVariant data ); bool setValue( unsigned int index, TQVariant data );
@ -162,7 +162,7 @@ private:
class KeywordSet : public ListViewInterface class KeywordSet : public ListViewInterface
{ {
public: public:
KeywordSet(ListViewInterface *tqparent=0, ListViewInterface *after=0, TQString label=TQString()); KeywordSet(ListViewInterface *parent=0, ListViewInterface *after=0, TQString label=TQString());
~KeywordSet(); ~KeywordSet();
bool setValue( unsigned int index, TQVariant data ); bool setValue( unsigned int index, TQVariant data );
@ -180,7 +180,7 @@ private:
class Keyword : public ListViewInterface class Keyword : public ListViewInterface
{ {
public: public:
Keyword(ListViewInterface *tqparent=0, ListViewInterface *after=0, TQString label=TQString()); Keyword(ListViewInterface *parent=0, ListViewInterface *after=0, TQString label=TQString());
~Keyword(); ~Keyword();
bool setValue( unsigned int index, TQVariant data ); bool setValue( unsigned int index, TQVariant data );
@ -199,7 +199,7 @@ private:
class Abstract : public ListViewInterface class Abstract : public ListViewInterface
{ {
public: public:
Abstract(ListViewInterface *tqparent=0, ListViewInterface *after=0, TQString label=TQString()); Abstract(ListViewInterface *parent=0, ListViewInterface *after=0, TQString label=TQString());
~Abstract(); ~Abstract();
bool setValue( unsigned int index, TQVariant data ); bool setValue( unsigned int index, TQVariant data );
@ -217,7 +217,7 @@ private:
class Para : public ListViewInterface class Para : public ListViewInterface
{ {
public: public:
Para(ListViewInterface *tqparent=0, ListViewInterface *after=0, TQString label=TQString()); Para(ListViewInterface *parent=0, ListViewInterface *after=0, TQString label=TQString());
~Para(); ~Para();
bool setValue( unsigned int index, TQVariant data ); bool setValue( unsigned int index, TQVariant data );
@ -236,7 +236,7 @@ private:
class Chapter : public ListViewInterface class Chapter : public ListViewInterface
{ {
public: public:
Chapter(ListViewInterface *tqparent=0, ListViewInterface *after=0, TQString label=TQString()); Chapter(ListViewInterface *parent=0, ListViewInterface *after=0, TQString label=TQString());
~Chapter(); ~Chapter();
bool setValue( unsigned int index, TQVariant data ); bool setValue( unsigned int index, TQVariant data );
@ -255,7 +255,7 @@ private:
class Sect1 : public ListViewInterface class Sect1 : public ListViewInterface
{ {
public: public:
Sect1(ListViewInterface *tqparent=0, ListViewInterface *after=0, TQString label=TQString()); Sect1(ListViewInterface *parent=0, ListViewInterface *after=0, TQString label=TQString());
~Sect1(); ~Sect1();
bool setValue( unsigned int index, TQVariant data ); bool setValue( unsigned int index, TQVariant data );
@ -274,7 +274,7 @@ private:
class Sect2 : public ListViewInterface class Sect2 : public ListViewInterface
{ {
public: public:
Sect2(ListViewInterface *tqparent=0, ListViewInterface *after=0, TQString label=TQString()); Sect2(ListViewInterface *parent=0, ListViewInterface *after=0, TQString label=TQString());
~Sect2(); ~Sect2();
bool setValue( unsigned int index, TQVariant data ); bool setValue( unsigned int index, TQVariant data );
@ -293,7 +293,7 @@ private:
class Sect3 : public ListViewInterface class Sect3 : public ListViewInterface
{ {
public: public:
Sect3(ListViewInterface *tqparent=0, ListViewInterface *after=0, TQString label=TQString()); Sect3(ListViewInterface *parent=0, ListViewInterface *after=0, TQString label=TQString());
~Sect3(); ~Sect3();
bool setValue( unsigned int index, TQVariant data ); bool setValue( unsigned int index, TQVariant data );
@ -312,7 +312,7 @@ private:
class Sect4 : public ListViewInterface class Sect4 : public ListViewInterface
{ {
public: public:
Sect4(ListViewInterface *tqparent=0, ListViewInterface *after=0, TQString label=TQString()); Sect4(ListViewInterface *parent=0, ListViewInterface *after=0, TQString label=TQString());
~Sect4(); ~Sect4();
bool setValue( unsigned int index, TQVariant data ); bool setValue( unsigned int index, TQVariant data );
@ -331,7 +331,7 @@ private:
class Sect5 : public ListViewInterface class Sect5 : public ListViewInterface
{ {
public: public:
Sect5(ListViewInterface *tqparent=0, ListViewInterface *after=0, TQString label=TQString()); Sect5(ListViewInterface *parent=0, ListViewInterface *after=0, TQString label=TQString());
~Sect5(); ~Sect5();
bool setValue( unsigned int index, TQVariant data ); bool setValue( unsigned int index, TQVariant data );

@ -105,10 +105,10 @@ void DocbookGenerator::writeTitleOfBook(TQTextStream &doc, ListViewInterface *it
if ( whoAmI != "BookInfo" ) if ( whoAmI != "BookInfo" )
return; return;
// Documents title is stored in root element (tqparent of BookInfo) // Documents title is stored in root element (parent of BookInfo)
ListViewInterface *tqparent = static_cast<ListViewInterface*>(item->tqparent()); ListViewInterface *parent = static_cast<ListViewInterface*>(item->parent());
if ( tqparent ){ if ( parent ){
TQString title = tqparent->text(0); TQString title = parent->text(0);
// add node to document // add node to document
doc << "<Title>" << title << "</Title>" << endl; doc << "<Title>" << title << "</Title>" << endl;

@ -41,8 +41,8 @@
////////////////////////////////////// //////////////////////////////////////
// TreeView Implementation // TreeView Implementation
////////////////////////////////////// //////////////////////////////////////
DocTreeViewImpl::DocTreeViewImpl(TQWidget* tqparent, const char* name, WFlags fl) DocTreeViewImpl::DocTreeViewImpl(TQWidget* parent, const char* name, WFlags fl)
: DocTreeView(tqparent, name, fl) : DocTreeView(parent, name, fl)
{ {
m_rootItem = NULL; m_rootItem = NULL;
m_url = KURL(); m_url = KURL();
@ -553,10 +553,10 @@ void DocTreeViewImpl::recursiveBuildItemIdentifier(ListViewInterface* item, TQTe
if ( !item ) if ( !item )
return; return;
// 1. Do we have a tqparent (=parentItem)? // 1. Do we have a parent (=parentItem)?
// If no -> return, if yes -> recursive call // If no -> return, if yes -> recursive call
ListViewInterface *parentItem = NULL; ListViewInterface *parentItem = NULL;
parentItem = static_cast<ListViewInterface*>( item->tqparent() ); parentItem = static_cast<ListViewInterface*>( item->parent() );
if ( parentItem ){ if ( parentItem ){
recursiveBuildItemIdentifier( parentItem, idstring ); recursiveBuildItemIdentifier( parentItem, idstring );
} else { } else {
@ -757,9 +757,9 @@ void DocTreeViewImpl::slotDeleteItem()
ListViewInterface *itemToDelete = m_currentItem; ListViewInterface *itemToDelete = m_currentItem;
ListViewInterface *parentItem = NULL; ListViewInterface *parentItem = NULL;
parentItem = static_cast<ListViewInterface*>(itemToDelete->tqparent()); parentItem = static_cast<ListViewInterface*>(itemToDelete->parent());
if ( !parentItem ) if ( !parentItem )
return; // delete only items with tqparent return; // delete only items with parent
// try to delete bookmark // try to delete bookmark
TQString url = TQString(); TQString url = TQString();

@ -40,7 +40,7 @@ all required methods to access or manipulate its content.
class DocTreeViewImpl : public DocTreeView class DocTreeViewImpl : public DocTreeView
{ {
public: public:
DocTreeViewImpl(TQWidget* tqparent=0, const char* name=0, WFlags fl=0); DocTreeViewImpl(TQWidget* parent=0, const char* name=0, WFlags fl=0);
~DocTreeViewImpl(); ~DocTreeViewImpl();

@ -26,8 +26,8 @@
#include "ksayit_ttsplugin.h" #include "ksayit_ttsplugin.h"
FXPluginHandler::FXPluginHandler(TQObject *tqparent, const char *name, KConfig *config) FXPluginHandler::FXPluginHandler(TQObject *parent, const char *name, KConfig *config)
: TQObject(tqparent, name), m_config(config) : TQObject(parent, name), m_config(config)
{ {
m_mapPluginList.clear(); m_mapPluginList.clear();
m_lstActivePlugins.clear(); m_lstActivePlugins.clear();

@ -49,7 +49,7 @@ class FXPluginHandler : public TQObject
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
FXPluginHandler(TQObject *tqparent = 0, const char *name = 0, KConfig *config=0); FXPluginHandler(TQObject *parent = 0, const char *name = 0, KConfig *config=0);
~FXPluginHandler(); ~FXPluginHandler();
public: // Methods public: // Methods

@ -27,10 +27,10 @@
// #include "freeverbsetupimpl.h" // #include "freeverbsetupimpl.h"
#include "fxpluginhandler.h" #include "fxpluginhandler.h"
FX_SetupImpl::FX_SetupImpl(TQWidget *tqparent, const char *name, FX_SetupImpl::FX_SetupImpl(TQWidget *parent, const char *name,
KConfig *config, KConfig *config,
FXPluginHandler *fxpluginhandler ) FXPluginHandler *fxpluginhandler )
: FX_Setup(tqparent,name), m_config(config), m_fxpluginhandler(fxpluginhandler) : FX_Setup(parent,name), m_config(config), m_fxpluginhandler(fxpluginhandler)
{ {
m_fxpluginhandler->getPlugins(pluginlist); m_fxpluginhandler->getPlugins(pluginlist);

@ -40,7 +40,7 @@ class FX_SetupImpl : public FX_Setup {
TQ_OBJECT TQ_OBJECT
public: public:
FX_SetupImpl(TQWidget *tqparent=0, const char *name=0, FX_SetupImpl(TQWidget *parent=0, const char *name=0,
KConfig *config=0, KConfig *config=0,
FXPluginHandler *fxpluginhandler=0); FXPluginHandler *fxpluginhandler=0);
~FX_SetupImpl(); ~FX_SetupImpl();

@ -55,9 +55,9 @@
#define KSAYITUI "ksayitui.rc" #define KSAYITUI "ksayitui.rc"
#define ID_STATUS_MSG 1 #define ID_STATUS_MSG 1
KSayItApp::KSayItApp(TQWidget* tqparent, const char* name, WFlags f, KSayItApp::KSayItApp(TQWidget* parent, const char* name, WFlags f,
const TQCString &objID) const TQCString &objID)
: KMainWindow(tqparent, name, f), DCOPObject(objID) : KMainWindow(parent, name, f), DCOPObject(objID)
{ {
config = NULL; config = NULL;
view = NULL; view = NULL;
@ -811,12 +811,12 @@ void KSayItApp::setActions(int actions)
{ {
// ACTIONS::PLAY | ACTIONS::STOP | ACTIONS::PAUSE | ACTIONS::FFWD | ACTIONS::FREV; // ACTIONS::PLAY | ACTIONS::STOP | ACTIONS::PAUSE | ACTIONS::FFWD | ACTIONS::FREV;
// Get the tqmask of supported actions from the plugin. // Get the mask of supported actions from the plugin.
int tqmask = m_kttslib->getActions(); int mask = m_kttslib->getActions();
kdDebug(100200) << TQString("KSayItApp:PSA: %1").tqarg(tqmask, 0, 2) << endl; kdDebug(100200) << TQString("KSayItApp:PSA: %1").tqarg(mask, 0, 2) << endl;
// disable actions not supported by the plugin // disable actions not supported by the plugin
int ma = actions & tqmask; int ma = actions & mask;
if (ma & ACTIONS::PLAY){ if (ma & ACTIONS::PLAY){
say->setEnabled(true); say->setEnabled(true);

@ -74,7 +74,7 @@ class KSayItApp : public KMainWindow, public DCOPObject
public: public:
/** construtor of KSayItApp, calls all init functions to create the application. /** construtor of KSayItApp, calls all init functions to create the application.
*/ */
KSayItApp(TQWidget* tqparent=0, const char* name=0, WFlags f=0, KSayItApp(TQWidget* parent=0, const char* name=0, WFlags f=0,
const TQCString &objID=0); const TQCString &objID=0);
~KSayItApp(); ~KSayItApp();

@ -38,7 +38,7 @@ class FXPlugin : public TQObject
// Q_OBJECT // Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
FXPlugin(TQObject *tqparent=0, const char* name=0){}; FXPlugin(TQObject *parent=0, const char* name=0){};
/** Sets the Main application object. Useful for config objects etc. /** Sets the Main application object. Useful for config objects etc.
*/ */

@ -65,7 +65,7 @@
class TTSPlugin : public TQObject class TTSPlugin : public TQObject
{ {
protected: protected:
TTSPlugin(TQObject *tqparent, const char *name) : TQObject(tqparent, name){}; TTSPlugin(TQObject *parent, const char *name) : TQObject(parent, name){};
public: public:
/** Returns the name of the plugin. This name is the unique identifier /** Returns the name of the plugin. This name is the unique identifier

@ -23,8 +23,8 @@
#include "ksayitbookmarkhandler.h" #include "ksayitbookmarkhandler.h"
#include "ksayit.h" #include "ksayit.h"
KSayItBookmarkHandler::KSayItBookmarkHandler(KBookmarkManager *bkManager, KSayItApp* tqparent) KSayItBookmarkHandler::KSayItBookmarkHandler(KBookmarkManager *bkManager, KSayItApp* parent)
: KBookmarkOwner(), m_bkManager(bkManager), m_parent(tqparent) : KBookmarkOwner(), m_bkManager(bkManager), m_parent(parent)
{ {
m_ID = TQString(); m_ID = TQString();
m_title = TQString(); m_title = TQString();

@ -31,7 +31,7 @@ class KSayItApp;
class KSayItBookmarkHandler : public KBookmarkOwner class KSayItBookmarkHandler : public KBookmarkOwner
{ {
public: public:
KSayItBookmarkHandler(KBookmarkManager *bkManager=0, KSayItApp* tqparent=0); KSayItBookmarkHandler(KBookmarkManager *bkManager=0, KSayItApp* parent=0);
virtual ~KSayItBookmarkHandler(); virtual ~KSayItBookmarkHandler();
public: public:

@ -26,8 +26,8 @@
// App specific includes // App specific includes
#include "ksayitsystemtray.h" #include "ksayitsystemtray.h"
KSayItSystemTray::KSayItSystemTray(TQWidget *tqparent, const char *name) KSayItSystemTray::KSayItSystemTray(TQWidget *parent, const char *name)
: KSystemTray(tqparent,name) : KSystemTray(parent,name)
{ {
initActions(); initActions();
changeState( StateCLIPEMPTY::Instance() ); changeState( StateCLIPEMPTY::Instance() );

@ -44,7 +44,7 @@ class KSayItSystemTray : public KSystemTray {
friend class State; friend class State;
public: public:
KSayItSystemTray(TQWidget *tqparent=0, const char *name=0); KSayItSystemTray(TQWidget *parent=0, const char *name=0);
~KSayItSystemTray(); ~KSayItSystemTray();
signals: signals:

@ -33,7 +33,7 @@ using namespace std;
// App specific includes // App specific includes
#include "ksayitviewimpl.h" #include "ksayitviewimpl.h"
KSayItViewImpl::KSayItViewImpl(TQWidget *tqparent, const char *name ) : KSayItView(tqparent,name) { KSayItViewImpl::KSayItViewImpl(TQWidget *parent, const char *name ) : KSayItView(parent,name) {
// some presets // some presets

@ -36,7 +36,7 @@ class KSayItViewImpl : public KSayItView {
TQ_OBJECT TQ_OBJECT
public: public:
KSayItViewImpl(TQWidget *tqparent=0, const char *name=0); KSayItViewImpl(TQWidget *parent=0, const char *name=0);
~KSayItViewImpl(); ~KSayItViewImpl();
signals: signals:

@ -39,12 +39,12 @@
#include "fxpluginhandler.h" #include "fxpluginhandler.h"
#include "kttsdlib.h" #include "kttsdlib.h"
VoiceSetupDlg::VoiceSetupDlg(TQWidget *tqparent, const char *name, const TQString &caption, VoiceSetupDlg::VoiceSetupDlg(TQWidget *parent, const char *name, const TQString &caption,
bool modal, bool modal,
KConfig *config, KConfig *config,
FXPluginHandler *fxpluginhandler, FXPluginHandler *fxpluginhandler,
KTTSDLib *ttslib) KTTSDLib *ttslib)
: KDialogBase(IconList, caption, Ok|Cancel, Ok, tqparent, name, modal, true), : KDialogBase(IconList, caption, Ok|Cancel, Ok, parent, name, modal, true),
m_config(config), m_config(config),
m_fxpluginhandler(fxpluginhandler), m_fxpluginhandler(fxpluginhandler),
m_kttslib(ttslib) m_kttslib(ttslib)

@ -36,7 +36,7 @@ class VoiceSetupDlg : public KDialogBase {
TQ_OBJECT TQ_OBJECT
public: public:
VoiceSetupDlg(TQWidget *tqparent=0, const char *name=0, const TQString &caption=NULL, VoiceSetupDlg(TQWidget *parent=0, const char *name=0, const TQString &caption=NULL,
bool modal=true, bool modal=true,
KConfig *config=0, KConfig *config=0,
FXPluginHandler *fxpluginhandler=0, FXPluginHandler *fxpluginhandler=0,

@ -38,8 +38,8 @@
K_EXPORT_COMPONENT_FACTORY( ktexteditor_kttsd, KGenericFactory<KateKttsdPlugin>( "ktexteditor_kttsd" ) ) K_EXPORT_COMPONENT_FACTORY( ktexteditor_kttsd, KGenericFactory<KateKttsdPlugin>( "ktexteditor_kttsd" ) )
KateKttsdPlugin::KateKttsdPlugin( TQObject *tqparent, const char* name, const TQStringList& ) KateKttsdPlugin::KateKttsdPlugin( TQObject *parent, const char* name, const TQStringList& )
: KTextEditor::Plugin ( (KTextEditor::Document*) tqparent, name ) : KTextEditor::Plugin ( (KTextEditor::Document*) parent, name )
{ {
} }
@ -80,7 +80,7 @@ KateKttsdPluginView::KateKttsdPluginView( KTextEditor::View *view, const char *n
void KateKttsdPluginView::slotReadOut() void KateKttsdPluginView::slotReadOut()
{ {
KTextEditor::View *v = (KTextEditor::View*)tqparent(); KTextEditor::View *v = (KTextEditor::View*)parent();
KTextEditor::SelectionInterface *si = KTextEditor::selectionInterface( v->document() ); KTextEditor::SelectionInterface *si = KTextEditor::selectionInterface( v->document() );
TQString text; TQString text;

@ -31,7 +31,7 @@ class KateKttsdPlugin : public KTextEditor::Plugin, public KTextEditor::PluginVi
TQ_OBJECT TQ_OBJECT
public: public:
KateKttsdPlugin( TQObject *tqparent = 0, KateKttsdPlugin( TQObject *parent = 0,
const char* name = 0, const char* name = 0,
const TQStringList &args = TQStringList() ); const TQStringList &args = TQStringList() );
virtual ~KateKttsdPlugin(); virtual ~KateKttsdPlugin();

@ -207,8 +207,8 @@
* "kttsd", object "KSpeech". * "kttsd", object "KSpeech".
* *
@verbatim @verbatim
MyPart::MyPart(TQWidget *tqparent, const char *name) : MyPart::MyPart(TQWidget *parent, const char *name) :
KParts::ReadOnlyPart(tqparent, name), KParts::ReadOnlyPart(parent, name),
DCOPStub("kttsd", "KSpeech") { DCOPStub("kttsd", "KSpeech") {
@endverbatim @endverbatim
* *
@ -293,8 +293,8 @@
* receiving object. * receiving object.
* *
@verbatim @verbatim
MyPart::MyPart(TQWidget *tqparent, const char *name) : MyPart::MyPart(TQWidget *parent, const char *name) :
KParts::ReadOnlyPart(tqparent, name), KParts::ReadOnlyPart(parent, name),
DCOPObject("mypart_kspeechsink") { DCOPObject("mypart_kspeechsink") {
@endverbatim @endverbatim
* *

@ -56,8 +56,8 @@
/** /**
* Constructor * Constructor
*/ */
SbdConf::SbdConf( TQWidget *tqparent, const char *name, const TQStringList& /*args*/) : SbdConf::SbdConf( TQWidget *parent, const char *name, const TQStringList& /*args*/) :
KttsFilterConf(tqparent, name) KttsFilterConf(parent, name)
{ {
// kdDebug() << "SbdConf::SbdConf: Running" << endl; // kdDebug() << "SbdConf::SbdConf: Running" << endl;

@ -49,7 +49,7 @@ class SbdConf : public KttsFilterConf
/** /**
* Constructor * Constructor
*/ */
SbdConf( TQWidget *tqparent, const char *name, const TQStringList &args = TQStringList() ); SbdConf( TQWidget *parent, const char *name, const TQStringList &args = TQStringList() );
/** /**
* Destructor * Destructor

@ -41,8 +41,8 @@
/** /**
* Constructor. * Constructor.
*/ */
SbdThread::SbdThread( TQObject *tqparent, const char *name ) : SbdThread::SbdThread( TQObject *parent, const char *name ) :
TQObject( tqparent, name ), TQObject( parent, name ),
TQThread() TQThread()
{ {
} }
@ -562,11 +562,11 @@ bool SbdThread::event ( TQEvent * e )
/** /**
* Constructor. * Constructor.
*/ */
SbdProc::SbdProc( TQObject *tqparent, const char *name, const TQStringList& /*args*/) : SbdProc::SbdProc( TQObject *parent, const char *name, const TQStringList& /*args*/) :
KttsFilterProc(tqparent, name) KttsFilterProc(parent, name)
{ {
// kdDebug() << "SbdProc::SbdProc: Running" << endl; // kdDebug() << "SbdProc::SbdProc: Running" << endl;
m_sbdThread = new SbdThread( tqparent, *name + "_thread" ); m_sbdThread = new SbdThread( parent, *name + "_thread" );
connect( m_sbdThread, TQT_SIGNAL(filteringFinished()), this, TQT_SLOT(slotSbdThreadFilteringFinished()) ); connect( m_sbdThread, TQT_SIGNAL(filteringFinished()), this, TQT_SLOT(slotSbdThreadFilteringFinished()) );
} }

@ -69,7 +69,7 @@ class SbdThread: public TQObject, public TQThread
/** /**
* Constructor. * Constructor.
*/ */
SbdThread( TQObject *tqparent = 0, const char *name = 0); SbdThread( TQObject *parent = 0, const char *name = 0);
/** /**
* Destructor. * Destructor.
@ -247,7 +247,7 @@ class SbdProc : virtual public KttsFilterProc
/** /**
* Constructor. * Constructor.
*/ */
SbdProc( TQObject *tqparent, const char *name, const TQStringList &args = TQStringList() ); SbdProc( TQObject *parent, const char *name, const TQStringList &args = TQStringList() );
/** /**
* Destructor. * Destructor.

@ -59,8 +59,8 @@
/** /**
* Constructor * Constructor
*/ */
StringReplacerConf::StringReplacerConf( TQWidget *tqparent, const char *name, const TQStringList& /*args*/) : StringReplacerConf::StringReplacerConf( TQWidget *parent, const char *name, const TQStringList& /*args*/) :
KttsFilterConf(tqparent, name), KttsFilterConf(parent, name),
m_editDlg(0), m_editDlg(0),
m_editWidget(0) m_editWidget(0)
{ {

@ -49,7 +49,7 @@ class StringReplacerConf : public KttsFilterConf
/** /**
* Constructor * Constructor
*/ */
StringReplacerConf( TQWidget *tqparent, const char *name, const TQStringList &args = TQStringList() ); StringReplacerConf( TQWidget *parent, const char *name, const TQStringList &args = TQStringList() );
/** /**
* Destructor * Destructor

@ -44,8 +44,8 @@
/** /**
* Constructor. * Constructor.
*/ */
StringReplacerProc::StringReplacerProc( TQObject *tqparent, const char *name, const TQStringList& ) : StringReplacerProc::StringReplacerProc( TQObject *parent, const char *name, const TQStringList& ) :
KttsFilterProc(tqparent, name) KttsFilterProc(parent, name)
{ {
} }

@ -44,7 +44,7 @@ public:
/** /**
* Constructor. * Constructor.
*/ */
StringReplacerProc( TQObject *tqparent, const char *name, const TQStringList &args = TQStringList() ); StringReplacerProc( TQObject *parent, const char *name, const TQStringList &args = TQStringList() );
/** /**
* Destructor. * Destructor.

@ -49,8 +49,8 @@
/** /**
* Constructor * Constructor
*/ */
TalkerChooserConf::TalkerChooserConf( TQWidget *tqparent, const char *name, const TQStringList& /*args*/) : TalkerChooserConf::TalkerChooserConf( TQWidget *parent, const char *name, const TQStringList& /*args*/) :
KttsFilterConf(tqparent, name) KttsFilterConf(parent, name)
{ {
// kdDebug() << "TalkerChooserConf::TalkerChooserConf: Running" << endl; // kdDebug() << "TalkerChooserConf::TalkerChooserConf: Running" << endl;

@ -51,7 +51,7 @@ class TalkerChooserConf : public KttsFilterConf
/** /**
* Constructor * Constructor
*/ */
TalkerChooserConf( TQWidget *tqparent, const char *name, const TQStringList &args = TQStringList() ); TalkerChooserConf( TQWidget *parent, const char *name, const TQStringList &args = TQStringList() );
/** /**
* Destructor * Destructor

@ -38,8 +38,8 @@
/** /**
* Constructor. * Constructor.
*/ */
TalkerChooserProc::TalkerChooserProc( TQObject *tqparent, const char *name, const TQStringList& /*args*/ ) : TalkerChooserProc::TalkerChooserProc( TQObject *parent, const char *name, const TQStringList& /*args*/ ) :
KttsFilterProc(tqparent, name) KttsFilterProc(parent, name)
{ {
// kdDebug() << "TalkerChooserProc::TalkerChooserProc: Running" << endl; // kdDebug() << "TalkerChooserProc::TalkerChooserProc: Running" << endl;
} }

@ -37,7 +37,7 @@ public:
/** /**
* Constructor. * Constructor.
*/ */
TalkerChooserProc( TQObject *tqparent, const char *name, const TQStringList &args = TQStringList() ); TalkerChooserProc( TQObject *parent, const char *name, const TQStringList &args = TQStringList() );
/** /**
* Destructor. * Destructor.

@ -43,8 +43,8 @@
/** /**
* Constructor * Constructor
*/ */
XmlTransformerConf::XmlTransformerConf( TQWidget *tqparent, const char *name, const TQStringList& /*args*/) : XmlTransformerConf::XmlTransformerConf( TQWidget *parent, const char *name, const TQStringList& /*args*/) :
KttsFilterConf(tqparent, name) KttsFilterConf(parent, name)
{ {
// kdDebug() << "XmlTransformerConf::XmlTransformerConf: Running" << endl; // kdDebug() << "XmlTransformerConf::XmlTransformerConf: Running" << endl;

@ -46,7 +46,7 @@ class XmlTransformerConf : public KttsFilterConf
/** /**
* Constructor * Constructor
*/ */
XmlTransformerConf( TQWidget *tqparent, const char *name, const TQStringList &args = TQStringList() ); XmlTransformerConf( TQWidget *parent, const char *name, const TQStringList &args = TQStringList() );
/** /**
* Destructor * Destructor

@ -44,8 +44,8 @@
/** /**
* Constructor. * Constructor.
*/ */
XmlTransformerProc::XmlTransformerProc( TQObject *tqparent, const char *name, const TQStringList& ) : XmlTransformerProc::XmlTransformerProc( TQObject *parent, const char *name, const TQStringList& ) :
KttsFilterProc(tqparent, name) KttsFilterProc(parent, name)
{ {
m_xsltProc = 0; m_xsltProc = 0;
} }

@ -42,7 +42,7 @@ public:
/** /**
* Constructor. * Constructor.
*/ */
XmlTransformerProc( TQObject *tqparent, const char *name, const TQStringList &args = TQStringList() ); XmlTransformerProc( TQObject *parent, const char *name, const TQStringList &args = TQStringList() );
/** /**
* Destructor. * Destructor.

@ -34,8 +34,8 @@
// KTTS includes. // KTTS includes.
#include "addtalker.h" #include "addtalker.h"
AddTalker::AddTalker(SynthToLangMap synthToLangMap, TQWidget* tqparent, const char* name, WFlags fl) AddTalker::AddTalker(SynthToLangMap synthToLangMap, TQWidget* parent, const char* name, WFlags fl)
: AddTalkerWidget(tqparent,name,fl) : AddTalkerWidget(parent,name,fl)
{ {
// Build maps. // Build maps.
setSynthToLangMap(synthToLangMap); setSynthToLangMap(synthToLangMap);

@ -42,10 +42,10 @@ public:
/** /**
* Constructor. * Constructor.
* @param synthToLangMap TQMap of supported language codes indexed by synthesizer. * @param synthToLangMap TQMap of supported language codes indexed by synthesizer.
* @param tqparent Inherited KDialog parameter. * @param parent Inherited KDialog parameter.
* @param name Inherited KDialog parameter. * @param name Inherited KDialog parameter.
*/ */
AddTalker(SynthToLangMap synthToLangMap, TQWidget* tqparent = 0, const char* name = 0, WFlags fl = 0 ); AddTalker(SynthToLangMap synthToLangMap, TQWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
/** /**
* Destructor. * Destructor.

@ -104,10 +104,10 @@ K_EXPORT_COMPONENT_FACTORY( kcm_kttsd, KCMKttsMgrFactory("kttsd") )
* Makes the list of plug ins. * Makes the list of plug ins.
* And the languages acording to the plug ins. * And the languages acording to the plug ins.
*/ */
KCMKttsMgr::KCMKttsMgr(TQWidget *tqparent, const char *name, const TQStringList &) : KCMKttsMgr::KCMKttsMgr(TQWidget *parent, const char *name, const TQStringList &) :
DCOPStub("kttsd", "KSpeech"), DCOPStub("kttsd", "KSpeech"),
DCOPObject("kcmkttsmgr_kspeechsink"), DCOPObject("kcmkttsmgr_kspeechsink"),
KCModule(KCMKttsMgrFactory::instance(), tqparent, name) KCModule(KCMKttsMgrFactory::instance(), parent, name)
{ {
// kdDebug() << "KCMKttsMgr contructor running." << endl; // kdDebug() << "KCMKttsMgr contructor running." << endl;
@ -2396,7 +2396,7 @@ void KCMKttsMgr::slotNotifyListView_selectionChanged()
bool defaultItem = ( item->text(nlvcEventSrc) == "default" ); bool defaultItem = ( item->text(nlvcEventSrc) == "default" );
m_kttsmgrw->notifyRemoveButton->setEnabled( !defaultItem ); m_kttsmgrw->notifyRemoveButton->setEnabled( !defaultItem );
} else { } else {
bool defaultItem = ( item->tqparent()->text(nlvcEventSrc) == "default" ); bool defaultItem = ( item->parent()->text(nlvcEventSrc) == "default" );
m_kttsmgrw->notifyPresentComboBox->setEnabled( defaultItem ); m_kttsmgrw->notifyPresentComboBox->setEnabled( defaultItem );
if ( defaultItem ) if ( defaultItem )
m_kttsmgrw->notifyPresentComboBox->setCurrentItem( NotifyPresent::present( item->text( nlvcEvent ) ) ); m_kttsmgrw->notifyPresentComboBox->setCurrentItem( NotifyPresent::present( item->text( nlvcEvent ) ) );
@ -2558,7 +2558,7 @@ TQListViewItem* KCMKttsMgr::addNotifyItem(
} }
// No duplicates. // No duplicates.
item = lv->findItem( event, nlvcEvent ); item = lv->findItem( event, nlvcEvent );
if ( !item || item->tqparent() != parentItem ) if ( !item || item->parent() != parentItem )
item = new KListViewItem(parentItem, eventName, actionDisplayName, talkerName, item = new KListViewItem(parentItem, eventName, actionDisplayName, talkerName,
eventSrc, event, actionName, talkerCode.getTalkerCode()); eventSrc, event, actionName, talkerCode.getTalkerCode());
if ( action == NotifyAction::DoNotSpeak ) if ( action == NotifyAction::DoNotSpeak )
@ -2644,7 +2644,7 @@ void KCMKttsMgr::slotNotifyRemoveButton_clicked()
{ {
TQListViewItem* item = m_kttsmgrw->notifyListView->selectedItem(); TQListViewItem* item = m_kttsmgrw->notifyListView->selectedItem();
if (!item) return; if (!item) return;
TQListViewItem* parentItem = item->tqparent(); TQListViewItem* parentItem = item->parent();
delete item; delete item;
if (parentItem) if (parentItem)
{ {
@ -2688,16 +2688,16 @@ void KCMKttsMgr::slotNotifySaveButton_clicked()
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
KttsCheckListItem::KttsCheckListItem( TQListView *tqparent, TQListViewItem *after, KttsCheckListItem::KttsCheckListItem( TQListView *parent, TQListViewItem *after,
const TQString &text, Type tt, const TQString &text, Type tt,
KCMKttsMgr* kcmkttsmgr ) : KCMKttsMgr* kcmkttsmgr ) :
TQCheckListItem(tqparent, after, text, tt), TQCheckListItem(parent, after, text, tt),
m_kcmkttsmgr(kcmkttsmgr) { } m_kcmkttsmgr(kcmkttsmgr) { }
KttsCheckListItem::KttsCheckListItem( TQListView *tqparent, KttsCheckListItem::KttsCheckListItem( TQListView *parent,
const TQString &text, Type tt, const TQString &text, Type tt,
KCMKttsMgr* kcmkttsmgr ) : KCMKttsMgr* kcmkttsmgr ) :
TQCheckListItem(tqparent, text, tt), TQCheckListItem(parent, text, tt),
m_kcmkttsmgr(kcmkttsmgr) { } m_kcmkttsmgr(kcmkttsmgr) { }
/*virtual*/ void KttsCheckListItem::stateChange(bool) /*virtual*/ void KttsCheckListItem::stateChange(bool)

@ -58,7 +58,7 @@ class KCMKttsMgr :
TQ_OBJECT TQ_OBJECT
public: public:
KCMKttsMgr(TQWidget *tqparent, const char *name, const TQStringList &); KCMKttsMgr(TQWidget *parent, const char *name, const TQStringList &);
~KCMKttsMgr(); ~KCMKttsMgr();
@ -514,10 +514,10 @@ class KCMKttsMgr :
class KttsCheckListItem : public TQCheckListItem class KttsCheckListItem : public TQCheckListItem
{ {
public: public:
KttsCheckListItem( TQListView *tqparent, KttsCheckListItem( TQListView *parent,
const TQString &text, Type tt = RadioButtonController, const TQString &text, Type tt = RadioButtonController,
KCMKttsMgr* kcmkttsmgr = 0); KCMKttsMgr* kcmkttsmgr = 0);
KttsCheckListItem( TQListView *tqparent, TQListViewItem *after, KttsCheckListItem( TQListView *parent, TQListViewItem *after,
const TQString &text, Type tt = RadioButtonController, const TQString &text, Type tt = RadioButtonController,
KCMKttsMgr* kcmkttsmgr = 0); KCMKttsMgr* kcmkttsmgr = 0);

@ -36,8 +36,8 @@
#include "utils.h" #include "utils.h"
#include "selectevent.h" #include "selectevent.h"
SelectEvent::SelectEvent(TQWidget* tqparent, const char* name, WFlags fl, const TQString& initEventSrc) SelectEvent::SelectEvent(TQWidget* parent, const char* name, WFlags fl, const TQString& initEventSrc)
: SelectEventWidget(tqparent,name,fl) : SelectEventWidget(parent,name,fl)
{ {
// Load list of event sources (applications). // Load list of event sources (applications).
TQStringList fullpaths = TQStringList fullpaths =

@ -34,11 +34,11 @@ class SelectEvent : public SelectEventWidget
public: public:
/** /**
* Constructor. * Constructor.
* @param tqparent Inherited KDialog parameter. * @param parent Inherited KDialog parameter.
* @param name Inherited KDialog parameter. * @param name Inherited KDialog parameter.
* @param initEventSrc Event source to start with. * @param initEventSrc Event source to start with.
*/ */
SelectEvent(TQWidget* tqparent = 0, const char* name = 0, WFlags fl = 0, SelectEvent(TQWidget* parent = 0, const char* name = 0, WFlags fl = 0,
const TQString& initEventSrc = TQString() ); const TQString& initEventSrc = TQString() );
/** /**

@ -37,8 +37,8 @@
/** /**
* Constructor. * Constructor.
*/ */
FilterMgr::FilterMgr( TQObject *tqparent, const char *name) : FilterMgr::FilterMgr( TQObject *parent, const char *name) :
KttsFilterProc(tqparent, name) KttsFilterProc(parent, name)
{ {
// kdDebug() << "FilterMgr::FilterMgr: Running" << endl; // kdDebug() << "FilterMgr::FilterMgr: Running" << endl;
m_state = fsIdle; m_state = fsIdle;

@ -46,7 +46,7 @@ class FilterMgr : public KttsFilterProc
/** /**
* Constructor. * Constructor.
*/ */
FilterMgr(TQObject *tqparent = 0, const char *name = 0); FilterMgr(TQObject *parent = 0, const char *name = 0);
/** /**
* Destructor. * Destructor.

@ -49,9 +49,9 @@
* Note that most of the real tts work occurs in Speaker. * Note that most of the real tts work occurs in Speaker.
*/ */
KTTSD::KTTSD(const TQCString& objId, TQObject *tqparent, const char *name) : KTTSD::KTTSD(const TQCString& objId, TQObject *parent, const char *name) :
DCOPObject(objId), DCOPObject(objId),
TQObject(tqparent, name) TQObject(parent, name)
{ {
// kdDebug() << "KTTSD::KTTSD Running" << endl; // kdDebug() << "KTTSD::KTTSD Running" << endl;
m_speaker = 0; m_speaker = 0;
@ -1096,9 +1096,9 @@ TQString KTTSD::fixNullString(const TQString &talker) const
// kspeech is obsolete. Applications should use KSpeech instead. // kspeech is obsolete. Applications should use KSpeech instead.
// Constructor. // Constructor.
kspeech::kspeech(const TQCString& objId, TQObject *tqparent, const char *name) : kspeech::kspeech(const TQCString& objId, TQObject *parent, const char *name) :
DCOPObject(objId), DCOPObject(objId),
TQObject(tqparent, name), TQObject(parent, name),
m_kttsd("KSpeech") m_kttsd("KSpeech")
{ {
} }

@ -49,7 +49,7 @@ class KTTSD : public TQObject, virtual public KSpeech
* Create objects, speechData and speaker. * Create objects, speechData and speaker.
* Start thread * Start thread
*/ */
KTTSD(const TQCString& objId, TQObject *tqparent=0, const char *name=0); KTTSD(const TQCString& objId, TQObject *parent=0, const char *name=0);
/** /**
* Destructor. * Destructor.
@ -638,7 +638,7 @@ class kspeech : public TQObject, virtual public KSpeech
public: public:
// Constructor. // Constructor.
kspeech(const TQCString& objId, TQObject *tqparent=0, const char *name=0); kspeech(const TQCString& objId, TQObject *parent=0, const char *name=0);
// Destructor. // Destructor.
~kspeech(); ~kspeech();

@ -107,8 +107,8 @@
* Loads plugins. * Loads plugins.
*/ */
Speaker::Speaker( SpeechData*speechData, TalkerMgr* talkerMgr, Speaker::Speaker( SpeechData*speechData, TalkerMgr* talkerMgr,
TQObject *tqparent, const char *name) : TQObject *parent, const char *name) :
TQObject(tqparent, name), TQObject(parent, name),
m_speechData(speechData), m_speechData(speechData),
m_talkerMgr(talkerMgr) m_talkerMgr(talkerMgr)
{ {

@ -119,7 +119,7 @@ class Speaker : public TQObject{
* Calls load plug ins * Calls load plug ins
*/ */
Speaker(SpeechData* speechData, TalkerMgr* talkerMgr, Speaker(SpeechData* speechData, TalkerMgr* talkerMgr,
TQObject *tqparent = 0, const char *name = 0); TQObject *parent = 0, const char *name = 0);
/** /**
* Destructor * Destructor

@ -37,8 +37,8 @@
/** /**
* Constructor. * Constructor.
*/ */
TalkerMgr::TalkerMgr(TQObject *tqparent, const char *name) : TalkerMgr::TalkerMgr(TQObject *parent, const char *name) :
TQObject( tqparent, name ) TQObject( parent, name )
{ {
m_loadedPlugIns.setAutoDelete(true); m_loadedPlugIns.setAutoDelete(true);
} }

@ -41,7 +41,7 @@ public:
/** /**
* Constructor. * Constructor.
*/ */
TalkerMgr(TQObject *tqparent = 0, const char *name = 0); TalkerMgr(TQObject *parent = 0, const char *name = 0);
/** /**
* Destructor. * Destructor.

@ -33,8 +33,8 @@
* Constructor. * Constructor.
*/ */
ThreadedPlugIn::ThreadedPlugIn(PlugInProc* plugin, ThreadedPlugIn::ThreadedPlugIn(PlugInProc* plugin,
TQObject *tqparent /*= 0*/, const char *name /*= 0*/): TQObject *parent /*= 0*/, const char *name /*= 0*/):
PlugInProc(tqparent, name), PlugInProc(parent, name),
TQThread(), TQThread(),
m_plugin(plugin), m_plugin(plugin),
m_filename(TQString()), m_filename(TQString()),

@ -45,7 +45,7 @@ class ThreadedPlugIn : public PlugInProc, public TQThread
/** /**
* Constructor. * Constructor.
*/ */
ThreadedPlugIn(PlugInProc* plugin, TQObject *tqparent = 0, const char *name = 0); ThreadedPlugIn(PlugInProc* plugin, TQObject *parent = 0, const char *name = 0);
/** /**
* Destructor. * Destructor.

@ -65,10 +65,10 @@ KttsJobMgrFactory::~KttsJobMgrFactory()
s_instance = 0; s_instance = 0;
} }
TQObject *KttsJobMgrFactory::createObject(TQObject *tqparent, const char *name, const char*, TQObject *KttsJobMgrFactory::createObject(TQObject *parent, const char *name, const char*,
const TQStringList& ) const TQStringList& )
{ {
TQObject *obj = new KttsJobMgrPart((TQWidget*)tqparent, name); TQObject *obj = new KttsJobMgrPart((TQWidget*)parent, name);
emit objectCreated(obj); emit objectCreated(obj);
return obj; return obj;
} }
@ -86,10 +86,10 @@ KAboutData *KttsJobMgrFactory::aboutData()
return about; return about;
} }
KttsJobMgrPart::KttsJobMgrPart(TQWidget *tqparent, const char *name) : KttsJobMgrPart::KttsJobMgrPart(TQWidget *parent, const char *name) :
DCOPStub("kttsd", "KSpeech"), DCOPStub("kttsd", "KSpeech"),
DCOPObject("kttsjobmgr_kspeechsink"), DCOPObject("kttsjobmgr_kspeechsink"),
KParts::ReadOnlyPart(TQT_TQOBJECT(tqparent), name) KParts::ReadOnlyPart(TQT_TQOBJECT(parent), name)
{ {
// Initialize some variables. // Initialize some variables.
m_selectOnTextSet = false; m_selectOnTextSet = false;
@ -101,7 +101,7 @@ KttsJobMgrPart::KttsJobMgrPart(TQWidget *tqparent, const char *name) :
KGlobal::locale()->insertCatalogue("kttsd"); KGlobal::locale()->insertCatalogue("kttsd");
// Create a TQVBox to host everything. // Create a TQVBox to host everything.
TQVBox* vBox = new TQVBox(tqparent); TQVBox* vBox = new TQVBox(parent);
vBox->setMargin(6); vBox->setMargin(6);
// Create a splitter to contain the Job List View and the current sentence. // Create a splitter to contain the Job List View and the current sentence.
@ -1013,8 +1013,8 @@ ASYNC KttsJobMgrPart::textRemoved(const TQCString&, const uint jobNum)
autoSelectInJobListView(); autoSelectInJobListView();
} }
KttsJobMgrBrowserExtension::KttsJobMgrBrowserExtension(KttsJobMgrPart *tqparent) KttsJobMgrBrowserExtension::KttsJobMgrBrowserExtension(KttsJobMgrPart *parent)
: KParts::BrowserExtension(tqparent, "KttsJobMgrBrowserExtension") : KParts::BrowserExtension(parent, "KttsJobMgrBrowserExtension")
{ {
} }

@ -42,7 +42,7 @@ public:
KttsJobMgrFactory() {}; KttsJobMgrFactory() {};
virtual ~KttsJobMgrFactory(); virtual ~KttsJobMgrFactory();
virtual TQObject* createObject(TQObject* tqparent = 0, const char* name = 0, virtual TQObject* createObject(TQObject* parent = 0, const char* name = 0,
const char* classname = TQOBJECT_OBJECT_NAME_STRING, const char* classname = TQOBJECT_OBJECT_NAME_STRING,
const TQStringList &args = TQStringList()); const TQStringList &args = TQStringList());
@ -61,7 +61,7 @@ class KttsJobMgrPart:
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
KttsJobMgrPart(TQWidget *tqparent, const char *name); KttsJobMgrPart(TQWidget *parent, const char *name);
virtual ~KttsJobMgrPart(); virtual ~KttsJobMgrPart();
protected: protected:
@ -293,7 +293,7 @@ class KttsJobMgrBrowserExtension : public KParts::BrowserExtension
TQ_OBJECT TQ_OBJECT
friend class KttsJobMgrPart; friend class KttsJobMgrPart;
public: public:
KttsJobMgrBrowserExtension(KttsJobMgrPart *tqparent); KttsJobMgrBrowserExtension(KttsJobMgrPart *parent);
virtual ~KttsJobMgrBrowserExtension(); virtual ~KttsJobMgrBrowserExtension();
}; };

@ -135,7 +135,7 @@ int main (int argc, char *argv[])
/* KttsToolTip class */ /* KttsToolTip class */
KttsToolTip::KttsToolTip ( TQWidget* tqparent ) : TQToolTip(tqparent) KttsToolTip::KttsToolTip ( TQWidget* parent ) : TQToolTip(parent)
{ {
} }
@ -163,10 +163,10 @@ KttsToolTip::KttsToolTip ( TQWidget* tqparent ) : TQToolTip(tqparent)
/* KttsMgrTray class */ /* KttsMgrTray class */
KttsMgrTray::KttsMgrTray(TQWidget *tqparent): KttsMgrTray::KttsMgrTray(TQWidget *parent):
DCOPStub("kttsd", "KSpeech"), DCOPStub("kttsd", "KSpeech"),
DCOPObject("kkttsmgr_kspeechsink"), DCOPObject("kkttsmgr_kspeechsink"),
KSystemTray(tqparent, "kttsmgrsystemtray") KSystemTray(parent, "kttsmgrsystemtray")
{ {
TQPixmap icon = KGlobal::iconLoader()->loadIcon("kttsd", KIcon::Small); TQPixmap icon = KGlobal::iconLoader()->loadIcon("kttsd", KIcon::Small);
setPixmap (icon); setPixmap (icon);
@ -200,7 +200,7 @@ KttsMgrTray::KttsMgrTray(TQWidget *tqparent):
"textFinished(TQCString,uint)", "textFinished(TQCString,uint)",
false); false);
// Install an event filter so we can check when KTTSMgr becomes inconified to the systray. // Install an event filter so we can check when KTTSMgr becomes inconified to the systray.
tqparent->installEventFilter(this); parent->installEventFilter(this);
} }
} }

@ -39,7 +39,7 @@
class KttsToolTip: public TQToolTip class KttsToolTip: public TQToolTip
{ {
public: public:
KttsToolTip ( TQWidget* tqparent ); KttsToolTip ( TQWidget* parent );
protected: protected:
virtual void maybeTip ( const TQPoint & p ); virtual void maybeTip ( const TQPoint & p );
@ -51,7 +51,7 @@ class KttsMgrTray: public KSystemTray, public KSpeech_stub, virtual public KSpee
TQ_OBJECT TQ_OBJECT
public: public:
KttsMgrTray(TQWidget *tqparent=0); KttsMgrTray(TQWidget *parent=0);
~KttsMgrTray(); ~KttsMgrTray();
void setExitWhenFinishedSpeaking(); void setExitWhenFinishedSpeaking();

@ -42,7 +42,7 @@
/** /**
* Constructor * Constructor
*/ */
KttsFilterConf::KttsFilterConf( TQWidget *tqparent, const char *name) : TQWidget(tqparent, name){ KttsFilterConf::KttsFilterConf( TQWidget *parent, const char *name) : TQWidget(parent, name){
// kdDebug() << "KttsFilterConf::KttsFilterConf: Running" << endl; // kdDebug() << "KttsFilterConf::KttsFilterConf: Running" << endl;
TQString systemPath(getenv("PATH")); TQString systemPath(getenv("PATH"));
// kdDebug() << "Path is " << systemPath << endl; // kdDebug() << "Path is " << systemPath << endl;

@ -42,7 +42,7 @@ class KDE_EXPORT KttsFilterConf : public TQWidget{
/** /**
* Constructor * Constructor
*/ */
KttsFilterConf( TQWidget *tqparent = 0, const char *name = 0); KttsFilterConf( TQWidget *parent = 0, const char *name = 0);
/** /**
* Destructor * Destructor

@ -31,8 +31,8 @@
/** /**
* Constructor. * Constructor.
*/ */
KttsFilterProc::KttsFilterProc( TQObject *tqparent, const char *name) : KttsFilterProc::KttsFilterProc( TQObject *parent, const char *name) :
TQObject(tqparent, name) TQObject(parent, name)
{ {
// kdDebug() << "KttsFilterProc::KttsFilterProc: Running" << endl; // kdDebug() << "KttsFilterProc::KttsFilterProc: Running" << endl;
} }

@ -52,7 +52,7 @@ public:
/** /**
* Constructor. * Constructor.
*/ */
KttsFilterProc( TQObject *tqparent, const char *name ); KttsFilterProc( TQObject *parent, const char *name );
/** /**
* Destructor. * Destructor.

@ -67,8 +67,8 @@ public:
virtual void setPeriods(uint periods) {Q_UNUSED(periods); } virtual void setPeriods(uint periods) {Q_UNUSED(periods); }
protected: protected:
Player(TQObject* tqparent = 0, const char* name = 0, const TQStringList& args=TQStringList() ) : Player(TQObject* parent = 0, const char* name = 0, const TQStringList& args=TQStringList() ) :
TQObject(tqparent, name) { TQObject(parent, name) {
Q_UNUSED(args); Q_UNUSED(args);
} }

@ -36,7 +36,7 @@
/** /**
* Constructor * Constructor
*/ */
PlugInConf::PlugInConf( TQWidget *tqparent, const char *name) : TQWidget(tqparent, name){ PlugInConf::PlugInConf( TQWidget *parent, const char *name) : TQWidget(parent, name){
kdDebug() << "PlugInConf::PlugInConf: Running" << endl; kdDebug() << "PlugInConf::PlugInConf: Running" << endl;
KGlobal::locale()->insertCatalogue("kttsd"); KGlobal::locale()->insertCatalogue("kttsd");
TQString systemPath(getenv("PATH")); TQString systemPath(getenv("PATH"));

@ -215,7 +215,7 @@ class KDE_EXPORT PlugInConf : public TQWidget{
/** /**
* Constructor * Constructor
*/ */
PlugInConf( TQWidget *tqparent = 0, const char *name = 0); PlugInConf( TQWidget *parent = 0, const char *name = 0);
/** /**
* Destructor * Destructor

@ -31,7 +31,7 @@
/** /**
* Constructor * Constructor
*/ */
PlugInProc::PlugInProc( TQObject *tqparent, const char *name) : TQObject(tqparent, name){ PlugInProc::PlugInProc( TQObject *parent, const char *name) : TQObject(parent, name){
// kdDebug() << "PlugInProc::PlugInProc: Running" << endl; // kdDebug() << "PlugInProc::PlugInProc: Running" << endl;
} }

@ -242,7 +242,7 @@ class KDE_EXPORT PlugInProc : virtual public TQObject{
/** /**
* Constructor. * Constructor.
*/ */
PlugInProc( TQObject *tqparent = 0, const char *name = 0); PlugInProc( TQObject *parent = 0, const char *name = 0);
/** /**
* Destructor. * Destructor.

@ -45,14 +45,14 @@
#include "selecttalkerdlg.moc" #include "selecttalkerdlg.moc"
SelectTalkerDlg::SelectTalkerDlg( SelectTalkerDlg::SelectTalkerDlg(
TQWidget* tqparent, TQWidget* parent,
const char* name, const char* name,
const TQString& caption, const TQString& caption,
const TQString& talkerCode, const TQString& talkerCode,
bool runningTalkers) : bool runningTalkers) :
KDialogBase( KDialogBase(
tqparent, parent,
name, name,
true, true,
caption, caption,

@ -47,7 +47,7 @@ class KDE_EXPORT SelectTalkerDlg : public KDialogBase
public: public:
/** /**
* Constructor. * Constructor.
* @param tqparent The tqparent for this dialog. * @param parent The parent for this dialog.
* @param name Name for this dialog. * @param name Name for this dialog.
* @param caption Displayed title for this dialog. * @param caption Displayed title for this dialog.
* @param talkerCode A suggested starting Talker Code. * @param talkerCode A suggested starting Talker Code.
@ -56,7 +56,7 @@ class KDE_EXPORT SelectTalkerDlg : public KDialogBase
* (which may not yet have been Applied). * (which may not yet have been Applied).
*/ */
SelectTalkerDlg( SelectTalkerDlg(
TQWidget* tqparent = 0, TQWidget* parent = 0,
const char* name = "selecttalkerdialog", const char* name = "selecttalkerdialog",
const TQString& caption = i18n("Select Talker"), const TQString& caption = i18n("Select Talker"),
const TQString& talkerCode = TQString(), const TQString& talkerCode = TQString(),

@ -34,8 +34,8 @@
/** /**
* Constructor. * Constructor.
*/ */
Stretcher::Stretcher(TQObject *tqparent, const char *name) : Stretcher::Stretcher(TQObject *parent, const char *name) :
TQObject(tqparent, name) TQObject(parent, name)
{ {
m_state = 0; m_state = 0;
m_stretchProc = 0; m_stretchProc = 0;

@ -39,7 +39,7 @@ class KDE_EXPORT Stretcher : public TQObject{
/** /**
* Constructor. * Constructor.
*/ */
Stretcher(TQObject *tqparent = 0, const char *name = 0); Stretcher(TQObject *parent = 0, const char *name = 0);
/** /**
* Destructor. * Destructor.

@ -44,9 +44,9 @@
/** /**
* Constructor. * Constructor.
*/ */
TestPlayer::TestPlayer(TQObject *tqparent, const char *name, TestPlayer::TestPlayer(TQObject *parent, const char *name,
const int playerOption, const float audioStretchFactor, const TQString &sinkName) : const int playerOption, const float audioStretchFactor, const TQString &sinkName) :
TQObject(tqparent, name) TQObject(parent, name)
{ {
m_playerOption = playerOption; m_playerOption = playerOption;
m_audioStretchFactor = audioStretchFactor; m_audioStretchFactor = audioStretchFactor;

@ -40,7 +40,7 @@ class KDE_EXPORT TestPlayer : public TQObject{
* @param playerOption * @param playerOption
* @param audioStretchFactor * @param audioStretchFactor
*/ */
TestPlayer(TQObject *tqparent = 0, const char *name = 0, TestPlayer(TQObject *parent = 0, const char *name = 0,
const int playerOption = 0, const float audioStretchFactor = 1.0, const int playerOption = 0, const float audioStretchFactor = 1.0,
const TQString &sinkName = TQString()); const TQString &sinkName = TQString());

@ -29,8 +29,8 @@ using namespace aKode;
// public methods // public methods
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
aKodePlayer::aKodePlayer(TQObject* tqparent, const char* name, const TQStringList& args) : aKodePlayer::aKodePlayer(TQObject* parent, const char* name, const TQStringList& args) :
Player(tqparent, name, args), Player(parent, name, args),
m_player(0) m_player(0)
{} {}

@ -34,7 +34,7 @@ class KDE_EXPORT aKodePlayer : public Player
TQ_OBJECT TQ_OBJECT
public: public:
aKodePlayer(TQObject* tqparent = 0, const char* name = 0, const TQStringList& args=TQStringList()); aKodePlayer(TQObject* parent = 0, const char* name = 0, const TQStringList& args=TQStringList());
virtual ~aKodePlayer(); virtual ~aKodePlayer();
// virtual void play(const FileHandle &file = FileHandle::null()); // virtual void play(const FileHandle &file = FileHandle::null());

@ -128,8 +128,8 @@ TQString AlsaPlayer::timestamp() const
// public methods // public methods
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
AlsaPlayer::AlsaPlayer(TQObject* tqparent, const char* name, const TQStringList& args) : AlsaPlayer::AlsaPlayer(TQObject* parent, const char* name, const TQStringList& args) :
Player(tqparent, name, args), Player(parent, name, args),
m_currentVolume(1.0), m_currentVolume(1.0),
m_pcmName("default"), m_pcmName("default"),
m_defPeriodSize(128), m_defPeriodSize(128),

@ -69,7 +69,7 @@ class KDE_EXPORT AlsaPlayer : public Player, TQThread
TQ_OBJECT TQ_OBJECT
public: public:
AlsaPlayer(TQObject* tqparent = 0, const char* name = 0, const TQStringList& args=TQStringList()); AlsaPlayer(TQObject* parent = 0, const char* name = 0, const TQStringList& args=TQStringList());
~AlsaPlayer(); ~AlsaPlayer();
virtual void startPlay(const TQString& file); virtual void startPlay(const TQString& file);

@ -40,8 +40,8 @@
// public methods // public methods
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
ArtsPlayer::ArtsPlayer(TQObject* tqparent, const char* name, const TQStringList& args) : ArtsPlayer::ArtsPlayer(TQObject* parent, const char* name, const TQStringList& args) :
Player(tqparent, name, args), Player(parent, name, args),
m_dispatcher(0), m_dispatcher(0),
m_server(0), m_server(0),
m_factory(0), m_factory(0),

@ -46,7 +46,7 @@ class KDE_EXPORT ArtsPlayer : public Player
TQ_OBJECT TQ_OBJECT
public: public:
ArtsPlayer(TQObject* tqparent = 0, const char* name = 0, const TQStringList& args=TQStringList()); ArtsPlayer(TQObject* parent = 0, const char* name = 0, const TQStringList& args=TQStringList());
~ArtsPlayer(); ~ArtsPlayer();
// virtual void play(const FileHandle &file = FileHandle::null()); // virtual void play(const FileHandle &file = FileHandle::null());

@ -29,8 +29,8 @@
// public methods // public methods
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
GStreamerPlayer::GStreamerPlayer(TQObject* tqparent, const char* name, const TQStringList& args) : GStreamerPlayer::GStreamerPlayer(TQObject* parent, const char* name, const TQStringList& args) :
Player(tqparent, name, args), Player(parent, name, args),
m_initialized(false), m_initialized(false),
m_pipeline(0), m_pipeline(0),
m_source(0), m_source(0),

@ -31,7 +31,7 @@ class GStreamerPlayer : public Player
TQ_OBJECT TQ_OBJECT
public: public:
GStreamerPlayer(TQObject* tqparent = 0, const char* name = 0, const TQStringList& args=TQStringList()); GStreamerPlayer(TQObject* parent = 0, const char* name = 0, const TQStringList& args=TQStringList());
virtual ~GStreamerPlayer(); virtual ~GStreamerPlayer();
// virtual void play(const FileHandle &file = FileHandle::null()); // virtual void play(const FileHandle &file = FileHandle::null());

@ -41,8 +41,8 @@
#include "commandconf.h" #include "commandconf.h"
/** Constructor */ /** Constructor */
CommandConf::CommandConf( TQWidget* tqparent, const char* name, const TQStringList& /*args*/) : CommandConf::CommandConf( TQWidget* parent, const char* name, const TQStringList& /*args*/) :
PlugInConf(tqparent, name) PlugInConf(parent, name)
{ {
// kdDebug() << "CommandConf::CommandConf: Running" << endl; // kdDebug() << "CommandConf::CommandConf: Running" << endl;
m_commandProc = 0; m_commandProc = 0;

@ -40,7 +40,7 @@ class CommandConf : public PlugInConf {
public: public:
/** Constructor */ /** Constructor */
CommandConf( TQWidget* tqparent = 0, const char* name = 0, const TQStringList &args = TQStringList()); CommandConf( TQWidget* parent = 0, const char* name = 0, const TQStringList &args = TQStringList());
/** Destructor */ /** Destructor */
~CommandConf(); ~CommandConf();

@ -39,8 +39,8 @@
#include "commandproc.moc" #include "commandproc.moc"
/** Constructor */ /** Constructor */
CommandProc::CommandProc( TQObject* tqparent, const char* name, const TQStringList& /*args*/) : CommandProc::CommandProc( TQObject* parent, const char* name, const TQStringList& /*args*/) :
PlugInProc( tqparent, name ) PlugInProc( parent, name )
{ {
kdDebug() << "CommandProc::CommandProc: Running" << endl; kdDebug() << "CommandProc::CommandProc: Running" << endl;
m_commandProc = 0; m_commandProc = 0;

@ -33,7 +33,7 @@ class CommandProc : public PlugInProc{
public: public:
/** Constructor */ /** Constructor */
CommandProc( TQObject* tqparent = 0, const char* name = 0, CommandProc( TQObject* parent = 0, const char* name = 0,
const TQStringList &args = TQStringList()); const TQStringList &args = TQStringList());
/** Destructor */ /** Destructor */

@ -48,8 +48,8 @@
#include "eposconf.moc" #include "eposconf.moc"
/** Constructor */ /** Constructor */
EposConf::EposConf( TQWidget* tqparent, const char* name, const TQStringList& /*args*/) : EposConf::EposConf( TQWidget* parent, const char* name, const TQStringList& /*args*/) :
PlugInConf(tqparent, name) PlugInConf(parent, name)
{ {
// kdDebug() << "EposConf::EposConf: Running" << endl; // kdDebug() << "EposConf::EposConf: Running" << endl;
m_eposProc = 0; m_eposProc = 0;

@ -47,7 +47,7 @@ class EposConf : public PlugInConf {
public: public:
/** Constructor */ /** Constructor */
EposConf( TQWidget* tqparent = 0, const char* name = 0, const TQStringList &args = TQStringList()); EposConf( TQWidget* parent = 0, const char* name = 0, const TQStringList &args = TQStringList());
/** Destructor */ /** Destructor */
~EposConf(); ~EposConf();

@ -43,8 +43,8 @@
#include "eposproc.moc" #include "eposproc.moc"
/** Constructor */ /** Constructor */
EposProc::EposProc( TQObject* tqparent, const char* name, const TQStringList& ) : EposProc::EposProc( TQObject* parent, const char* name, const TQStringList& ) :
PlugInProc( tqparent, name ){ PlugInProc( parent, name ){
kdDebug() << "EposProc::EposProc: Running" << endl; kdDebug() << "EposProc::EposProc: Running" << endl;
m_state = psIdle; m_state = psIdle;
m_waitingStop = false; m_waitingStop = false;

@ -43,7 +43,7 @@ class EposProc : public PlugInProc{
/** /**
* Constructor * Constructor
*/ */
EposProc( TQObject* tqparent = 0, const char* name = 0, const TQStringList &args = TQStringList()); EposProc( TQObject* parent = 0, const char* name = 0, const TQStringList &args = TQStringList());
/** /**
* Destructor * Destructor

@ -57,8 +57,8 @@
#include "festivalintconf.moc" #include "festivalintconf.moc"
/** Constructor */ /** Constructor */
FestivalIntConf::FestivalIntConf( TQWidget* tqparent, const char* name, const TQStringList& /*args*/) : FestivalIntConf::FestivalIntConf( TQWidget* parent, const char* name, const TQStringList& /*args*/) :
PlugInConf(tqparent, name) PlugInConf(parent, name)
{ {
// kdDebug() << "FestivalIntConf::FestivalIntConf: Running" << endl; // kdDebug() << "FestivalIntConf::FestivalIntConf: Running" << endl;
m_festProc = 0; m_festProc = 0;

@ -60,7 +60,7 @@ class FestivalIntConf : public PlugInConf {
public: public:
/** Constructor */ /** Constructor */
FestivalIntConf( TQWidget* tqparent = 0, const char* name = 0, const TQStringList &args = TQStringList()); FestivalIntConf( TQWidget* parent = 0, const char* name = 0, const TQStringList &args = TQStringList());
/** Destructor */ /** Destructor */
~FestivalIntConf(); ~FestivalIntConf();

@ -43,8 +43,8 @@
#include "festivalintproc.moc" #include "festivalintproc.moc"
/** Constructor */ /** Constructor */
FestivalIntProc::FestivalIntProc( TQObject* tqparent, const char* name, const TQStringList& ) : FestivalIntProc::FestivalIntProc( TQObject* parent, const char* name, const TQStringList& ) :
PlugInProc( tqparent, name ){ PlugInProc( parent, name ){
// kdDebug() << "FestivalIntProc::FestivalIntProc: Running" << endl; // kdDebug() << "FestivalIntProc::FestivalIntProc: Running" << endl;
m_ready = true; m_ready = true;
m_writingStdin = false; m_writingStdin = false;

@ -47,7 +47,7 @@ class FestivalIntProc : public PlugInProc{
/** /**
* Constructor * Constructor
*/ */
FestivalIntProc( TQObject* tqparent = 0, const char* name = 0, const TQStringList &args = TQStringList()); FestivalIntProc( TQObject* parent = 0, const char* name = 0, const TQStringList &args = TQStringList());
/** /**
* Destructor * Destructor

@ -42,8 +42,8 @@
#include "fliteconf.moc" #include "fliteconf.moc"
/** Constructor */ /** Constructor */
FliteConf::FliteConf( TQWidget* tqparent, const char* name, const TQStringList& /*args*/) : FliteConf::FliteConf( TQWidget* parent, const char* name, const TQStringList& /*args*/) :
PlugInConf(tqparent, name) PlugInConf(parent, name)
{ {
// kdDebug() << "FliteConf::FliteConf: Running" << endl; // kdDebug() << "FliteConf::FliteConf: Running" << endl;
m_fliteProc = 0; m_fliteProc = 0;

@ -46,7 +46,7 @@ class FliteConf : public PlugInConf {
public: public:
/** Constructor */ /** Constructor */
FliteConf( TQWidget* tqparent = 0, const char* name = 0, const TQStringList &args = TQStringList()); FliteConf( TQWidget* parent = 0, const char* name = 0, const TQStringList &args = TQStringList());
/** Destructor */ /** Destructor */
~FliteConf(); ~FliteConf();

@ -36,8 +36,8 @@
#include "fliteproc.moc" #include "fliteproc.moc"
/** Constructor */ /** Constructor */
FliteProc::FliteProc( TQObject* tqparent, const char* name, const TQStringList& ) : FliteProc::FliteProc( TQObject* parent, const char* name, const TQStringList& ) :
PlugInProc( tqparent, name ){ PlugInProc( parent, name ){
kdDebug() << "FliteProc::FliteProc: Running" << endl; kdDebug() << "FliteProc::FliteProc: Running" << endl;
m_state = psIdle; m_state = psIdle;
m_waitingStop = false; m_waitingStop = false;

@ -41,7 +41,7 @@ class FliteProc : public PlugInProc{
/** /**
* Constructor * Constructor
*/ */
FliteProc( TQObject* tqparent = 0, const char* name = 0, const TQStringList &args = TQStringList()); FliteProc( TQObject* parent = 0, const char* name = 0, const TQStringList &args = TQStringList());
/** /**
* Destructor * Destructor

@ -40,8 +40,8 @@
#include "freettsconfigwidget.h" #include "freettsconfigwidget.h"
/** Constructor */ /** Constructor */
FreeTTSConf::FreeTTSConf( TQWidget* tqparent, const char* name, const TQStringList&/*args*/) : FreeTTSConf::FreeTTSConf( TQWidget* parent, const char* name, const TQStringList&/*args*/) :
PlugInConf( tqparent, name ) { PlugInConf( parent, name ) {
// kdDebug() << "FreeTTSConf::FreeTTSConf: Running" << endl; // kdDebug() << "FreeTTSConf::FreeTTSConf: Running" << endl;
m_freettsProc = 0; m_freettsProc = 0;

@ -37,7 +37,7 @@ class FreeTTSConf : public PlugInConf {
public: public:
/** Constructor */ /** Constructor */
FreeTTSConf( TQWidget* tqparent = 0, const char* name = 0, const TQStringList &args = TQStringList()); FreeTTSConf( TQWidget* parent = 0, const char* name = 0, const TQStringList &args = TQStringList());
/** Destructor */ /** Destructor */
~FreeTTSConf(); ~FreeTTSConf();

@ -27,8 +27,8 @@
#include "freettsproc.h" #include "freettsproc.h"
/** Constructor */ /** Constructor */
FreeTTSProc::FreeTTSProc( TQObject* tqparent, const char* name, const TQStringList& /*args*/) : FreeTTSProc::FreeTTSProc( TQObject* parent, const char* name, const TQStringList& /*args*/) :
PlugInProc( tqparent, name ) { PlugInProc( parent, name ) {
kdDebug() << "Running: FreeTTSProc::FreeTTSProc" << endl; kdDebug() << "Running: FreeTTSProc::FreeTTSProc" << endl;
m_state = psIdle; m_state = psIdle;
m_waitingStop = false; m_waitingStop = false;

@ -34,7 +34,7 @@ public:
/** /**
* Constructor * Constructor
*/ */
FreeTTSProc( TQObject* tqparent = 0, const char* name = 0, const TQStringList &args = TQStringList()); FreeTTSProc( TQObject* parent = 0, const char* name = 0, const TQStringList &args = TQStringList());
/** /**
* Destructor * Destructor

@ -203,8 +203,8 @@ class HadifixConfPrivate {
}; };
/** Constructor */ /** Constructor */
HadifixConf::HadifixConf( TQWidget* tqparent, const char* name, const TQStringList &) : HadifixConf::HadifixConf( TQWidget* parent, const char* name, const TQStringList &) :
PlugInConf( tqparent, name ){ PlugInConf( parent, name ){
// kdDebug() << "HadifixConf::HadifixConf: Running" << endl; // kdDebug() << "HadifixConf::HadifixConf: Running" << endl;
TQVBoxLayout *tqlayout = new TQVBoxLayout (this, KDialog::marginHint(), KDialog::spacingHint(), "CommandConfigWidgetLayout"); TQVBoxLayout *tqlayout = new TQVBoxLayout (this, KDialog::marginHint(), KDialog::spacingHint(), "CommandConfigWidgetLayout");
tqlayout->tqsetAlignment (TQt::AlignTop); tqlayout->tqsetAlignment (TQt::AlignTop);

@ -16,7 +16,7 @@ class HadifixConf : public PlugInConf {
public: public:
/** Constructor */ /** Constructor */
HadifixConf( TQWidget* tqparent = 0, const char* name = 0, const TQStringList &args = TQStringList()); HadifixConf( TQWidget* parent = 0, const char* name = 0, const TQStringList &args = TQStringList());
/** Destructor */ /** Destructor */
~HadifixConf(); ~HadifixConf();

@ -75,8 +75,8 @@ class HadifixProcPrivate {
}; };
/** Constructor */ /** Constructor */
HadifixProc::HadifixProc( TQObject* tqparent, const char* name, const TQStringList &) : HadifixProc::HadifixProc( TQObject* parent, const char* name, const TQStringList &) :
PlugInProc( tqparent, name ){ PlugInProc( parent, name ){
// kdDebug() << "HadifixProc::HadifixProc: Running" << endl; // kdDebug() << "HadifixProc::HadifixProc: Running" << endl;
d = 0; d = 0;
} }

@ -38,7 +38,7 @@ class HadifixProc : public PlugInProc{
}; };
/** Constructor */ /** Constructor */
HadifixProc( TQObject* tqparent = 0, const char* name = 0, const TQStringList &args = TQStringList()); HadifixProc( TQObject* parent = 0, const char* name = 0, const TQStringList &args = TQStringList());
/** Destructor */ /** Destructor */
~HadifixProc(); ~HadifixProc();

Loading…
Cancel
Save