rename the following methods:

tqparent parent
tqmask mask


git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeedu@1246260 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru
tpearson 12 years ago
parent d8762de953
commit eb57015869

@ -30,7 +30,7 @@ static const int namesFontSize = 25;
class scoresWidget : public TQWidget
{
public:
scoresWidget(TQWidget *tqparent, const TQValueList< TQPair<int, TQString> > &scores);
scoresWidget(TQWidget *parent, const TQValueList< TQPair<int, TQString> > &scores);
TQSize calcSize();
protected:
@ -40,7 +40,7 @@ class scoresWidget : public TQWidget
const TQValueList< TQPair<int, TQString> > &m_scores;
};
scoresWidget::scoresWidget(TQWidget *tqparent, const TQValueList< TQPair<int, TQString> > &scores) : TQWidget(tqparent, 0, WStaticContents | WNoAutoErase), m_scores(scores)
scoresWidget::scoresWidget(TQWidget *parent, const TQValueList< TQPair<int, TQString> > &scores) : TQWidget(parent, 0, WStaticContents | WNoAutoErase), m_scores(scores)
{
}
@ -115,7 +115,7 @@ TQSize scoresWidget::calcSize()
class myTabWidget : public TQTabWidget
{
public:
myTabWidget(TQWidget *tqparent) : TQTabWidget(tqparent) {}
myTabWidget(TQWidget *parent) : TQTabWidget(parent) {}
TQSize tabBarSizeHint() const
{
@ -125,7 +125,7 @@ class myTabWidget : public TQTabWidget
/* highScoreDialog */
highScoreDialog::highScoreDialog(TQWidget *tqparent) : KDialogBase(tqparent, 0, true, i18n("Highscores"), KDialogBase::Close)
highScoreDialog::highScoreDialog(TQWidget *parent) : KDialogBase(parent, 0, true, i18n("Highscores"), KDialogBase::Close)
{
m_tw = new myTabWidget(this);
setMainWidget(m_tw);

@ -20,7 +20,7 @@ class myTabWidget;
class highScoreDialog : private KDialogBase
{
public:
highScoreDialog(TQWidget *tqparent);
highScoreDialog(TQWidget *parent);
bool scoreGoodEnough(int level, int score);
void addScore(int level, int score, const TQString &name);

@ -28,14 +28,14 @@ email : cniehaus@kde.org
#include <tqpixmap.h>
#include <tqrect.h>
DetailedGraphicalOverview::DetailedGraphicalOverview( Element *el, TQWidget *tqparent, const char *name )
: TQWidget( tqparent, name )
DetailedGraphicalOverview::DetailedGraphicalOverview( Element *el, TQWidget *parent, const char *name )
: TQWidget( parent, name )
{
init( el );
}
DetailedGraphicalOverview::DetailedGraphicalOverview( TQWidget *tqparent, const char *name )
: TQWidget( tqparent, name )
DetailedGraphicalOverview::DetailedGraphicalOverview( TQWidget *parent, const char *name )
: TQWidget( parent, name )
{
init( 0L );
}

@ -31,8 +31,8 @@ class DetailedGraphicalOverview : public TQWidget
TQ_OBJECT
public:
DetailedGraphicalOverview( Element *el, TQWidget *tqparent, const char *name=0 );
DetailedGraphicalOverview( TQWidget *tqparent, const char *name=0 );
DetailedGraphicalOverview( Element *el, TQWidget *parent, const char *name=0 );
DetailedGraphicalOverview( TQWidget *parent, const char *name=0 );
/**
* sets the elements whose data will be used to @p el

@ -44,8 +44,8 @@
//TODO add bondxx-radius (H-H-distance for example)
DetailedInfoDlg::DetailedInfoDlg( Element *el , TQWidget *tqparent, const char *name)
: KDialogBase( IconList, name, Help|User1|User2|Close, Close, tqparent, name,
DetailedInfoDlg::DetailedInfoDlg( Element *el , TQWidget *parent, const char *name)
: KDialogBase( IconList, name, Help|User1|User2|Close, Close, parent, name,
false, //non modal
false,
KGuiItem(i18n("Next element", "Next"), "1rightarrow"),

@ -42,7 +42,7 @@ class DetailedInfoDlg : public KDialogBase
TQ_OBJECT
public:
DetailedInfoDlg( Element *el , TQWidget *tqparent=0, const char *name=0);
DetailedInfoDlg( Element *el , TQWidget *parent=0, const char *name=0);
void setElement(Element *el);

@ -30,12 +30,12 @@
#include <tqcheckbox.h>
#include <tqlabel.h>
ElementDataViewer::ElementDataViewer( TQWidget *tqparent, const char* name )
ElementDataViewer::ElementDataViewer( TQWidget *parent, const char* name )
: KDialogBase( KDialogBase::Plain,
i18n( "Plot Data") ,
Help | User1 | Close,
User1,
tqparent, name )
parent, name )
{
d = KalziumDataObject::instance();

@ -99,7 +99,7 @@ class ElementDataViewer : public KDialogBase
TQ_OBJECT
public:
ElementDataViewer( TQWidget *tqparent=0 , const char *name =0 );
ElementDataViewer( TQWidget *parent=0 , const char *name =0 );
/**
* the AxixData for the y-Axis

@ -46,7 +46,7 @@ extern "C" {
char* solve_equation(const char *) { return NULL; }
#endif
eqchemView::eqchemView(TQWidget *tqparent) : TQWidget(tqparent)
eqchemView::eqchemView(TQWidget *parent) : TQWidget(parent)
{
settingsChanged();
@ -104,8 +104,8 @@ void eqchemView::compute()
m_eqResult->add( equation, disp );
}
EQChemDialog::EQChemDialog( TQWidget *tqparent )
: KDialogBase(tqparent, "EQChemDialog", true, i18n( "Solve Chemical Equations" ),
EQChemDialog::EQChemDialog( TQWidget *parent )
: KDialogBase(parent, "EQChemDialog", true, i18n( "Solve Chemical Equations" ),
KDialogBase::Apply|KDialogBase::Close|KDialogBase::Help, KDialogBase::Apply, true )
{
}

@ -48,7 +48,7 @@ public:
/**
* Default constructor
*/
eqchemView(TQWidget *tqparent);
eqchemView(TQWidget *parent);
/**
* Destructor
@ -92,9 +92,9 @@ class EQChemDialog : public KDialogBase
/**
* public constructor
*
* @param tqparent the tqparent widget
* @param parent the parent widget
*/
EQChemDialog( TQWidget *tqparent );
EQChemDialog( TQWidget *parent );
private slots:
/**

@ -89,7 +89,7 @@ void AnswerItem::checkSize()
m_richtext->setWidth( (t1>t2)?t1:t2 );
}
EqResult::EqResult(TQWidget *tqparent) : TQListBox(tqparent)
EqResult::EqResult(TQWidget *parent) : TQListBox(parent)
{
m_alternate_color = false;
setMinimumWidth(140);

@ -75,7 +75,7 @@ class EqResult : public TQListBox
TQ_OBJECT
public:
EqResult(TQWidget *tqparent);
EqResult(TQWidget *parent);
~EqResult();
public slots:

@ -38,7 +38,7 @@
#include <klocale.h>
#include <kstandarddirs.h>
KalziumTip::KalziumTip( TQWidget * tqparent, const char * name, WFlags f ) : TQWidget( tqparent, name, f )
KalziumTip::KalziumTip( TQWidget * parent, const char * name, WFlags f ) : TQWidget( parent, name, f )
{
setFocusPolicy(TQ_NoFocus); //the widget don't get the keyboard focus
setBackgroundMode(NoBackground); // widget has no background
@ -54,8 +54,8 @@ KalziumTip::KalziumTip( TQWidget * tqparent, const char * name, WFlags f ) : TQW
void KalziumTip::showTip( TQPoint mouse, Element* element, int visibleWidth, int visibleHeight )
{
TQWidget *p = 0;
if ( dynamic_cast<TQWidget*>( tqparent() ) )
p = TQT_TQWIDGET( tqparent() );
if ( dynamic_cast<TQWidget*>( parent() ) )
p = TQT_TQWIDGET( parent() );
if ( p )
{
@ -113,7 +113,7 @@ void KalziumTip::paintEvent(TQPaintEvent* e)
void KalziumTip::mouseMoveEvent(TQMouseEvent * e)
{
// delegate the mouse move event to the tqparent (actually the elements table)
// delegate the mouse move event to the parent (actually the elements table)
// so that this tooltip doesn't stop to be updated
e->ignore();
}
@ -172,12 +172,12 @@ void KalziumTip::displayInternal()
int width = textX + textRect.width() + margin;
int textY = (height - textRect.height()) / 2;
//resize pixmap, tqmask and widget
m_tqmask.resize(width, height);
//resize pixmap, mask and widget
m_mask.resize(width, height);
m_pixmap.resize(width, height);
resize(width, height);
// create and set transparency tqmask
// create and set transparency mask
switch(m_maskEffect)
{
case Plain:
@ -218,14 +218,14 @@ void KalziumTip::displayInternal()
void KalziumTip::dissolveMask()
{
TQPainter maskPainter(&m_tqmask);
TQPainter maskPainter(&m_mask);
m_tqmask.fill(TQt::black);
m_mask.fill(TQt::black);
maskPainter.setBrush(TQt::white);
maskPainter.setPen(TQt::white);
maskPainter.drawRoundRect(m_tqmask.rect(), 1600 / m_tqmask.rect().width(),
1600 / m_tqmask.rect().height());
maskPainter.drawRoundRect(m_mask.rect(), 1600 / m_mask.rect().width(),
1600 / m_mask.rect().height());
m_dissolveSize += m_dissolveDelta;
@ -257,7 +257,7 @@ void KalziumTip::dissolveMask()
m_dissolveDelta = 1;
}
setMask(m_tqmask);
setMask(m_mask);
}
void KalziumTip::hide()
@ -269,15 +269,15 @@ void KalziumTip::hide()
void KalziumTip::plainMask()
{
TQPainter maskPainter(&m_tqmask);
TQPainter maskPainter(&m_mask);
m_tqmask.fill(TQt::black);
m_mask.fill(TQt::black);
maskPainter.setBrush(TQt::white);
maskPainter.setPen(TQt::white);
maskPainter.drawRoundRect(m_tqmask.rect(), 1600 / m_tqmask.rect().width(),
1600 / m_tqmask.rect().height());
setMask(m_tqmask);
maskPainter.drawRoundRect(m_mask.rect(), 1600 / m_mask.rect().width(),
1600 / m_mask.rect().height());
setMask(m_mask);
m_frameTimer.stop();
}

@ -45,7 +45,7 @@ class KalziumTip : public TQWidget
public:
enum MaskEffect { Plain, Dissolve };
KalziumTip( TQWidget * tqparent = 0, const char * name = 0, WFlags f = 0 );
KalziumTip( TQWidget * parent = 0, const char * name = 0, WFlags f = 0 );
void showTip( TQPoint, Element* element, int visibleWidth, int visibleHeight ); //show the tip
void hide(); // hide it
@ -55,7 +55,7 @@ class KalziumTip : public TQWidget
void plainMask();
void dissolveMask();
// if the mouse pointer hovers us, send the event to the tqparent
// if the mouse pointer hovers us, send the event to the parent
// so we are some-what 'mouse transparent'
void mouseMoveEvent(TQMouseEvent * e);
void displayInternal();
@ -67,13 +67,13 @@ class KalziumTip : public TQWidget
void internalUpdate();
private:
TQBitmap m_tqmask;
TQBitmap m_mask;
TQPoint m_mousePointer;
TQPixmap m_pixmap;
TQPixmap m_icon; //icon shown on the tip
TQPixmap m_noElemIcon; //icon for element wich have no image
MaskEffect m_maskEffect; //inidicates to show tqmask effect or plain
MaskEffect m_maskEffect; //inidicates to show mask effect or plain
TQSimpleRichText* m_richText;
int m_dissolveSize;

@ -41,8 +41,8 @@
#include <tqtooltip.h>
MolcalcWidget::MolcalcWidget( TQWidget *tqparent, const char *name )
: MolcalcWidgetBase( tqparent, name )
MolcalcWidget::MolcalcWidget( TQWidget *parent, const char *name )
: MolcalcWidgetBase( parent, name )
{
clear();
}

@ -45,10 +45,10 @@ class MolcalcWidget : public MolcalcWidgetBase
public:
/**
* Constructor
* @param tqparent tqparent widget
* @param parent parent widget
* @param name name of this widget
*/
MolcalcWidget( TQWidget *tqparent = 0, const char *name = 0 );
MolcalcWidget( TQWidget *parent = 0, const char *name = 0 );
protected slots:
void slotCalcButtonClicked();

@ -24,7 +24,7 @@
static TQStringList hulllist;
OrbitsWidget::OrbitsWidget( TQWidget *tqparent, const char *name) : TQWidget( tqparent, name )
OrbitsWidget::OrbitsWidget( TQWidget *parent, const char *name) : TQWidget( parent, name )
{
if ( hulllist.count() == 0 )
{

@ -32,7 +32,7 @@ class OrbitsWidget : public TQWidget
TQ_OBJECT
public:
OrbitsWidget( TQWidget *tqparent=0 , const char *name =0 );
OrbitsWidget( TQWidget *parent=0 , const char *name =0 );
void setElementNumber( const int num );

@ -41,8 +41,8 @@
#include <tqcolor.h>
#include <tqrect.h>
PerodicTableView::PerodicTableView(TQWidget *tqparent, const char *name)
: TQWidget(tqparent, name), m_kalziumTip(0), table(0), table2(0)
PerodicTableView::PerodicTableView(TQWidget *parent, const char *name)
: TQWidget(parent, name), m_kalziumTip(0), table(0), table2(0)
{
d = KalziumDataObject::instance();
@ -171,8 +171,8 @@ void PerodicTableView::slotToolTip( int number )
m_tooltipElementNumber = number;
TQWidget *p = 0;
if ( dynamic_cast<TQWidget*>( tqparent() ) )
p = TQT_TQWIDGET( tqparent() );
if ( dynamic_cast<TQWidget*>( parent() ) )
p = TQT_TQWIDGET( parent() );
if( p )
m_kalziumTip->showTip( mapFromGlobal(TQCursor::pos()),

@ -46,10 +46,10 @@ class PerodicTableView : public TQWidget
public:
/**
* Constructor
* @param tqparent tqparent widget
* @param parent parent widget
* @param name name of this widget
*/
PerodicTableView( TQWidget *tqparent = 0, const char *name = 0);
PerodicTableView( TQWidget *parent = 0, const char *name = 0);
~PerodicTableView();
enum SCHEMETYPE

@ -25,9 +25,9 @@ PlotWidget::PlotWidget( double x1,
double x2,
double y1,
double y2,
TQWidget *tqparent,
TQWidget *parent,
const char* name)
: KPlotWidget( x1, x2, y1, y2, tqparent, name )
: KPlotWidget( x1, x2, y1, y2, parent, name )
{
m_connectPoints = false;
}

@ -27,7 +27,7 @@ class PlotWidget : public KPlotWidget
TQ_OBJECT
public:
PlotWidget( double x1 = 0.0, double x2 = 0.0, double y1 = 0.0, double y2 = 0.0, TQWidget *tqparent=0 , const char *name =0 );
PlotWidget( double x1 = 0.0, double x2 = 0.0, double y1 = 0.0, double y2 = 0.0, TQWidget *parent=0 , const char *name =0 );
/**
* toggles if the points will be connected with

@ -30,8 +30,8 @@
#include "prefs.h"
#include "tempunit.h"
SOMWidgetIMPL::SOMWidgetIMPL( TQWidget *tqparent, const char* name )
: SOMWidget( tqparent,name )
SOMWidgetIMPL::SOMWidgetIMPL( TQWidget *parent, const char* name )
: SOMWidget( parent,name )
{
m_list = KalziumDataObject::instance()->ElementList;

@ -33,10 +33,10 @@ class SOMWidgetIMPL : public SOMWidget
public:
/**
* @param tqparent The tqparent of this widget
* @param parent The parent of this widget
* @param name The name of this widget
*/
SOMWidgetIMPL( TQWidget *tqparent = 0, const char* name = 0 );
SOMWidgetIMPL( TQWidget *parent = 0, const char* name = 0 );
public slots:
/**

@ -143,7 +143,7 @@ class Spectrum
TQString bandsAsHtml();
/**
* @return the tqparent element of this spectrum
* @return the parent element of this spectrum
*/
Element* parentElement()
{ return m_parentElement; }

@ -22,8 +22,8 @@
#include "exporter.h"
SpectrumViewImpl::SpectrumViewImpl( TQWidget *tqparent, const char* name )
: SpectrumView( tqparent, name )
SpectrumViewImpl::SpectrumViewImpl( TQWidget *parent, const char* name )
: SpectrumView( parent, name )
{
resize( tqminimumSizeHint() );
// simulating an update

@ -27,10 +27,10 @@ class SpectrumViewImpl : public SpectrumView
public:
/**
* @param tqparent the tqparent widget
* @param parent the parent widget
* @param name the name used internally
*/
SpectrumViewImpl( TQWidget* tqparent, const char* name );
SpectrumViewImpl( TQWidget* parent, const char* name );
/**
* sets the spectrum to @p spec

@ -39,7 +39,7 @@
#include <ieeefp.h>
#endif
SpectrumWidget::SpectrumWidget( TQWidget *tqparent, const char* name ) : TQWidget( tqparent, name )
SpectrumWidget::SpectrumWidget( TQWidget *parent, const char* name ) : TQWidget( parent, name )
{
startValue = 0;
endValue = 0;

@ -37,7 +37,7 @@ class SpectrumWidget : public TQWidget
TQ_OBJECT
public:
SpectrumWidget( TQWidget *tqparent, const char* name = 0 );
SpectrumWidget( TQWidget *parent, const char* name = 0 );
~SpectrumWidget(){}

@ -20,8 +20,8 @@
#include <knuminput.h>
TimeWidgetIMPL::TimeWidgetIMPL( TQWidget *tqparent, const char* name )
: TimeWidget( tqparent, name )
TimeWidgetIMPL::TimeWidgetIMPL( TQWidget *parent, const char* name )
: TimeWidget( parent, name )
{
text->tqsetAlignment( text->tqalignment() | TQt::WordBreak );
text->setTextFormat( TQt::RichText );

@ -26,10 +26,10 @@ class TimeWidgetIMPL : public TimeWidget
public:
/**
* @param tqparent The tqparent of this widget
* @param parent The parent of this widget
* @param name The name of this widget
*/
TimeWidgetIMPL( TQWidget *tqparent = 0, const char* name = 0 );
TimeWidgetIMPL( TQWidget *parent = 0, const char* name = 0 );
public slots:
/**

@ -34,9 +34,9 @@
#include <stdlib.h>
KanagramGame::KanagramGame(TQWidget* tqparent) : m_index(0)
KanagramGame::KanagramGame(TQWidget* parent) : m_index(0)
{
m_parent = tqparent;
m_parent = parent;
loadDefaultVocab();
}

@ -33,7 +33,7 @@ class KanagramGame : public TQObject
Q_OBJECT
TQ_OBJECT
public:
KanagramGame(TQWidget *tqparent);
KanagramGame(TQWidget *parent);
~KanagramGame();
void refreshVocabList();
void loadDefaultVocab();

@ -44,7 +44,7 @@ using namespace std;
// KEduVocDocument
//********************************************************
KEduVocDocument::KEduVocDocument(TQObject * /*tqparent*/)
KEduVocDocument::KEduVocDocument(TQObject * /*parent*/)
{
Init();
}
@ -99,7 +99,7 @@ bool KEduVocDocument::open(const KURL& url, bool /*append*/)
if (!url.isEmpty())
doc_url = url;
// TODO EPT connect( this, TQT_SIGNAL(progressChanged(KEduVocDocument*,int)), tqparent, TQT_SLOT(slotProgress(KEduVocDocument*,int)) );
// TODO EPT connect( this, TQT_SIGNAL(progressChanged(KEduVocDocument*,int)), parent, TQT_SLOT(slotProgress(KEduVocDocument*,int)) );
TQString tmpfile;
if (KIO::NetAccess::download( url, tmpfile, 0 ))
@ -180,9 +180,9 @@ bool KEduVocDocument::open(const KURL& url, bool /*append*/)
}
bool KEduVocDocument::saveAs(TQObject * /*tqparent*/, const KURL & url, FileType ft, const TQString & generator)
bool KEduVocDocument::saveAs(TQObject * /*parent*/, const KURL & url, FileType ft, const TQString & generator)
{
// connect( this, TQT_SIGNAL(progressChanged(KEduVocDocument*,int)), tqparent, TQT_SLOT(slotProgress(KEduVocDocument*,int)) );
// connect( this, TQT_SIGNAL(progressChanged(KEduVocDocument*,int)), parent, TQT_SLOT(slotProgress(KEduVocDocument*,int)) );
KURL tmp (url);
@ -717,7 +717,7 @@ void KEduVocDocument::setLeitnerSystem( LeitnerSystem* system )
{
leitnerSystem = system;
/*KWordQuizApp* app = (KWordQuizApp*) tqparent();
/*KWordQuizApp* app = (KWordQuizApp*) parent();
app->slotLeitnerSystem();*/
}

@ -440,7 +440,7 @@ class KEduVocDocument : public TQObject
* @param url if url is empty (or NULL) actual name is preserved
* @result true if successful
*/
bool saveAs(TQObject *tqparent, const KURL & url, FileType ft, const TQString & generator);
bool saveAs(TQObject *parent, const KURL & url, FileType ft, const TQString & generator);
/** returns count of entries
*/

@ -20,8 +20,8 @@
#include <kdebug.h>
LeitnerSystemView::LeitnerSystemView(TQWidget * tqparent, const char* name, WFlags f)
: TQScrollView(tqparent, name, f)
LeitnerSystemView::LeitnerSystemView(TQWidget * parent, const char* name, WFlags f)
: TQScrollView(parent, name, f)
{
m_highlightedBox = -1;
}

@ -28,7 +28,7 @@ class LeitnerSystemView : public TQScrollView
TQ_OBJECT
public:
LeitnerSystemView(TQWidget* tqparent = 0, const char* name = 0, WFlags f = 0);
LeitnerSystemView(TQWidget* parent = 0, const char* name = 0, WFlags f = 0);
~LeitnerSystemView();

@ -35,11 +35,11 @@
#include "mainsettings.h"
#include "kanagramsettings.h"
MainSettings::MainSettings(TQWidget *tqparent) : MainSettingsWidget(tqparent)
MainSettings::MainSettings(TQWidget *parent) : MainSettingsWidget(parent)
{
m_parent = (KConfigDialog*)tqparent;
m_parent = (KConfigDialog*)parent;
connect(tqparent, TQT_SIGNAL(applyClicked()), this, TQT_SLOT(slotChangeTranslation()));
connect(parent, TQT_SIGNAL(applyClicked()), this, TQT_SLOT(slotChangeTranslation()));
connect(cboxTranslation, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotUpdateParent()));
setupTranslations();

@ -32,7 +32,7 @@ class MainSettings : public MainSettingsWidget
Q_OBJECT
TQ_OBJECT
public:
MainSettings(TQWidget *tqparent);
MainSettings(TQWidget *parent);
~MainSettings();
public slots:

@ -11,7 +11,7 @@
#include "kanagramsettings.h"
#include "newstuffdialog.h"
NewStuff::NewStuff(TQWidget *tqparent) : NewStuffWidget(tqparent)
NewStuff::NewStuff(TQWidget *parent) : NewStuffWidget(parent)
{
connect(btnGetNew, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotGetNewVocabs()));
}

@ -8,7 +8,7 @@ class NewStuff : public NewStuffWidget
Q_OBJECT
TQ_OBJECT
public:
NewStuff(TQWidget *tqparent);
NewStuff(TQWidget *parent);
~NewStuff();
private slots:

@ -41,7 +41,7 @@
#include "kanagramsettings.h"
VocabEdit::VocabEdit(TQWidget *tqparent, TQString fileName) : VocabEditWidget(tqparent), m_fileName("")
VocabEdit::VocabEdit(TQWidget *parent, TQString fileName) : VocabEditWidget(parent), m_fileName("")
{
if(fileName != "")
{

@ -34,8 +34,8 @@ class VocabEdit : public VocabEditWidget
Q_OBJECT
TQ_OBJECT
public:
VocabEdit(TQWidget *tqparent);
VocabEdit(TQWidget *tqparent, TQString fileName);
VocabEdit(TQWidget *parent);
VocabEdit(TQWidget *parent, TQString fileName);
~VocabEdit();
public slots:

@ -16,7 +16,7 @@
#include "keduvocdocument.h"
#include "kanagramsettings.h"
VocabSettings::VocabSettings(TQWidget *tqparent) : VocabSettingsWidget(tqparent)
VocabSettings::VocabSettings(TQWidget *parent) : VocabSettingsWidget(parent)
{
connect(btnCreateNew, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotCreateNew()));
connect(btnEdit, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotEdit()));

@ -8,7 +8,7 @@ class VocabSettings : public VocabSettingsWidget
Q_OBJECT
TQ_OBJECT
public:
VocabSettings(TQWidget *tqparent);
VocabSettings(TQWidget *parent);
~VocabSettings();
void refreshView();

@ -25,8 +25,8 @@
/* ----- public member functions ----- */
/* constructor */
ExerciseBase::ExerciseBase(TQWidget * tqparent, const char * name):
TQWidget(tqparent, name)
ExerciseBase::ExerciseBase(TQWidget * parent, const char * name):
TQWidget(parent, name)
{
#ifdef DEBUG
kdDebug() << "constructor ExerciseBase()" << endl;

@ -40,7 +40,7 @@ class ExerciseBase : public TQWidget
public:
/** constructor */
ExerciseBase(TQWidget * tqparent = 0, const char * name = 0);
ExerciseBase(TQWidget * parent = 0, const char * name = 0);
/** destructor */
~ExerciseBase();

@ -35,8 +35,8 @@
/* ----- public member functions ----- */
/* constructor */
ExerciseCompare::ExerciseCompare(TQWidget * tqparent, const char * name):
ExerciseBase(tqparent, name)
ExerciseCompare::ExerciseCompare(TQWidget * parent, const char * name):
ExerciseBase(parent, name)
{
#ifdef DEBUG
kdDebug() << "constructor ExerciseCompare()" << endl;

@ -49,7 +49,7 @@ class ExerciseCompare : public ExerciseBase
public:
/** constructor */
ExerciseCompare(TQWidget * tqparent = 0, const char * name = 0);
ExerciseCompare(TQWidget * parent = 0, const char * name = 0);
/** destructor */
~ExerciseCompare();

@ -41,8 +41,8 @@
/* ----- public member functions ----- */
/* constructor */
ExerciseConvert::ExerciseConvert(TQWidget * tqparent, const char * name):
ExerciseBase(tqparent, name)
ExerciseConvert::ExerciseConvert(TQWidget * parent, const char * name):
ExerciseBase(parent, name)
{
#ifdef DEBUG
kdDebug() << "constructor ExerciseConvert()" << endl;

@ -47,7 +47,7 @@ class ExerciseConvert : public ExerciseBase
public:
/** constructor */
ExerciseConvert(TQWidget * tqparent = 0, const char * name = 0);
ExerciseConvert(TQWidget * parent = 0, const char * name = 0);
/** destructor */
~ExerciseConvert();

@ -44,8 +44,8 @@
/* ----- public member functions ----- */
/* constructor */
ExerciseFactorize::ExerciseFactorize(TQWidget * tqparent, const char * name):
ExerciseBase(tqparent, name)
ExerciseFactorize::ExerciseFactorize(TQWidget * parent, const char * name):
ExerciseBase(parent, name)
{
TQPalette pal;
TQColorGroup cg;

@ -64,7 +64,7 @@ class ExerciseFactorize : public ExerciseBase
public:
/** constructor */
ExerciseFactorize(TQWidget * tqparent = 0, const char * name = 0);
ExerciseFactorize(TQWidget * parent = 0, const char * name = 0);
/** destructor */
~ExerciseFactorize();

@ -21,8 +21,8 @@
/* these includes are needed for TQt support */
#include <tqpainter.h>
FactorizedWidget::FactorizedWidget(TQWidget * tqparent, const char * name, const uintList para_factors) :
FractionBaseWidget(tqparent, name), m_factors(para_factors)
FactorizedWidget::FactorizedWidget(TQWidget * parent, const char * name, const uintList para_factors) :
FractionBaseWidget(parent, name), m_factors(para_factors)
{
#ifdef DEBUG
kdDebug() << "constructor FactorizedWidget" << endl;

@ -39,7 +39,7 @@ class FactorizedWidget : public FractionBaseWidget
public:
/** constructor */
FactorizedWidget(TQWidget * tqparent, const char * name, const uintList para_factors);
FactorizedWidget(TQWidget * parent, const char * name, const uintList para_factors);
/** destructor */
~FactorizedWidget();

@ -26,8 +26,8 @@
#include "settingsclass.h"
FractionBaseWidget::FractionBaseWidget(TQWidget * tqparent = 0, const char * name = 0) :
TQWidget(tqparent, name)
FractionBaseWidget::FractionBaseWidget(TQWidget * parent = 0, const char * name = 0) :
TQWidget(parent, name)
{
#ifdef DEBUG
kdDebug() << "constructor FractionBaseWidget" << endl;

@ -40,7 +40,7 @@ class FractionBaseWidget : public TQWidget
public:
/** constructor */
FractionBaseWidget(TQWidget * tqparent, const char * name);
FractionBaseWidget(TQWidget * parent, const char * name);
/** destructor */
~FractionBaseWidget();

@ -22,8 +22,8 @@
#include <tqpainter.h>
#include <tqstring.h>
RationalWidget::RationalWidget(TQWidget * tqparent, const char * name, const TQString pnumber, const uint pperiodStart, const uint pperiodLength):
FractionBaseWidget(tqparent, name), m_number(pnumber),
RationalWidget::RationalWidget(TQWidget * parent, const char * name, const TQString pnumber, const uint pperiodStart, const uint pperiodLength):
FractionBaseWidget(parent, name), m_number(pnumber),
m_periodStart(pperiodStart), m_periodLength(pperiodLength)
{
#ifdef DEBUG

@ -38,7 +38,7 @@ class RationalWidget : public FractionBaseWidget
public:
/** constructor */
RationalWidget(TQWidget * tqparent, const char * name, const TQString pnumber, const uint pperiodStart = 1, const uint pperiodLength = 0);
RationalWidget(TQWidget * parent, const char * name, const TQString pnumber, const uint pperiodStart = 1, const uint pperiodLength = 0);
/** destructor */
~RationalWidget();

@ -21,9 +21,9 @@
/* these includes are needed for TQt support */
#include <tqpainter.h>
RatioWidget::RatioWidget(TQWidget * tqparent = 0, const char * name = 0,
RatioWidget::RatioWidget(TQWidget * parent = 0, const char * name = 0,
const ratio para_ratio = *new ratio()) :
FractionBaseWidget(tqparent, name), m_ratio(para_ratio)
FractionBaseWidget(parent, name), m_ratio(para_ratio)
{
#ifdef DEBUG
kdDebug() << "constructor RatioWidget" << endl;

@ -37,7 +37,7 @@ class RatioWidget : public FractionBaseWidget
public:
/** constructor */
RatioWidget(TQWidget * tqparent, const char * name, const ratio para_ratio);
RatioWidget(TQWidget * parent, const char * name, const ratio para_ratio);
/** destructor */
~RatioWidget();

@ -23,9 +23,9 @@
#include "settingsclass.h"
ResultWidget::ResultWidget(TQWidget * tqparent = 0, const char * name = 0,
ResultWidget::ResultWidget(TQWidget * parent = 0, const char * name = 0,
const ratio para_result = *new ratio()) :
FractionBaseWidget(tqparent, name), m_result(para_result)
FractionBaseWidget(parent, name), m_result(para_result)
{
#ifdef DEBUG
kdDebug() << "constructor ResultWidget" << endl;

@ -37,7 +37,7 @@ class ResultWidget : public FractionBaseWidget
public:
/** constructor */
ResultWidget(TQWidget * tqparent, const char * name, const ratio para_result);
ResultWidget(TQWidget * parent, const char * name, const ratio para_result);
/** destructor */
~ResultWidget();

@ -31,8 +31,8 @@
#include "settingsclass.h"
/* constructor */
StatisticsView::StatisticsView(TQWidget * tqparent, const char * name):
TQWidget(tqparent, name), m_count(0), m_correct(0)
StatisticsView::StatisticsView(TQWidget * parent, const char * name):
TQWidget(parent, name), m_count(0), m_correct(0)
{
#ifdef DEBUG
kdDebug() << "constructor StatisticsView()" << endl;

@ -41,7 +41,7 @@ class StatisticsView : public TQWidget
public:
/** constructor */
StatisticsView(TQWidget * tqparent = 0, const char * name = 0);
StatisticsView(TQWidget * parent = 0, const char * name = 0);
/** destructor */
~StatisticsView();

@ -38,9 +38,9 @@
/* ----- public member functions ----- */
/* constructor */
TaskView::TaskView(TQWidget * tqparent, const char * name, bool padd_sub,
TaskView::TaskView(TQWidget * parent, const char * name, bool padd_sub,
bool pmul_div, unsigned int pnr_ratios, unsigned int pmax_md):
ExerciseBase(tqparent, name), add_sub(padd_sub), mul_div(pmul_div),
ExerciseBase(parent, name), add_sub(padd_sub), mul_div(pmul_div),
nr_ratios(pnr_ratios), max_md(pmax_md)
{
#ifdef DEBUG

@ -55,7 +55,7 @@ class TaskView : public ExerciseBase
public:
/** constructor */
TaskView(TQWidget * tqparent = 0, const char * name = 0,