rename the following methods:

tqparent parent
tqmask mask


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

@ -562,14 +562,14 @@ void Amor::restack()
#endif
Window sibling = mTargetWin;
Window dw, tqparent = None, *wins;
Window dw, parent = None, *wins;
do {
unsigned int nwins = 0;
// We must use the target window's tqparent as our sibling.
// Is there a faster way to get tqparent window than XQueryTree?
if (XQueryTree(qt_xdisplay(), sibling, &dw, &tqparent, &wins, &nwins))
// We must use the target window's parent as our sibling.
// Is there a faster way to get parent window than XQueryTree?
if (XQueryTree(qt_xdisplay(), sibling, &dw, &parent, &wins, &nwins))
{
if (nwins)
{
@ -577,9 +577,9 @@ void Amor::restack()
}
}
if (tqparent != None && tqparent != dw )
sibling = tqparent;
} while ( tqparent != None && tqparent != dw );
if (parent != None && parent != dw )
sibling = parent;
} while ( parent != None && parent != dw );
// Set animation's stacking order to be above the window manager's
// decoration of target window.

@ -99,7 +99,7 @@ void AmorBubble::setMessage(const TQString& message)
//---------------------------------------------------------------------------
//
// Calculates the size, position and tqmask of the bubble
// Calculates the size, position and mask of the bubble
//
void AmorBubble::calcGeometry()
{
@ -141,7 +141,7 @@ void AmorBubble::calcGeometry()
setGeometry(xpos, ypos, w, h);
mBrowser->setGeometry( mBound );
// create and apply the tqshape tqmask
// create and apply the tqshape mask
mMask.resize(w, h);
mMask.fill(color0);
TQPainter maskPainter(&mMask);

@ -70,7 +70,7 @@ protected:
int mOriginX; // X origin of bubble arrow
int mOriginY; // Y origin of bubble arrow
TQRect mBound; // bounds of the text
TQBitmap mMask; // tqshape tqmask
TQBitmap mMask; // tqshape mask
VertPos mArrowVert; // vertical position of the arrow
HorzPos mArrowHorz; // horizontal position of the arrow
TQTextBrowser *mBrowser; // displays the message

@ -60,10 +60,10 @@ void AmorWidget::setPixmap(const TQPixmap *pixmap)
if (mPixmap)
{
if (mPixmap->tqmask())
if (mPixmap->mask())
{
XShapeCombineMask( x11Display(), winId(), ShapeBounding, 0, 0,
mPixmap->tqmask()->handle(), ShapeSet );
mPixmap->mask()->handle(), ShapeSet );
tqrepaint(false);
}

@ -33,17 +33,17 @@
extern "C"
{
KDE_EXPORT KPanelApplet* init(TQWidget *tqparent, const TQString& configFile)
KDE_EXPORT KPanelApplet* init(TQWidget *parent, const TQString& configFile)
{
KGlobal::locale()->insertCatalogue("keyesapplet");
EyesApplet *applet = new EyesApplet(configFile, KPanelApplet::Normal, 0, tqparent, "keyesapplet");
EyesApplet *applet = new EyesApplet(configFile, KPanelApplet::Normal, 0, parent, "keyesapplet");
return applet;
}
}
EyesApplet::EyesApplet(const TQString& configFile, Type t, int actions,
TQWidget *tqparent, const char *name)
: KPanelApplet( configFile, t, actions, tqparent, name )
TQWidget *parent, const char *name)
: KPanelApplet( configFile, t, actions, parent, name )
{
setWFlags(WNoAutoErase);
setBackgroundOrigin(AncestorOrigin);

@ -29,7 +29,7 @@ class EyesApplet : public KPanelApplet
public:
EyesApplet(const TQString& configFile, Type t = Normal, int actions = 0,
TQWidget *tqparent = 0, const char *name = 0);
TQWidget *parent = 0, const char *name = 0);
int widthForHeight(int height) const;
int heightForWidth(int width) const;

@ -38,17 +38,17 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
extern "C"
{
KDE_EXPORT KPanelApplet* init(TQWidget *tqparent, const TQString& configFile)
KDE_EXPORT KPanelApplet* init(TQWidget *parent, const TQString& configFile)
{
KGlobal::locale()->insertCatalogue("kfifteenapplet");
return new FifteenApplet(configFile, KPanelApplet::Normal,
KPanelApplet::About, tqparent, "kfifteenapplet");
KPanelApplet::About, parent, "kfifteenapplet");
}
}
FifteenApplet::FifteenApplet(const TQString& configFile, Type type, int actions,
TQWidget *tqparent, const char *name)
: KPanelApplet(configFile, type, actions, tqparent, name), _aboutData(0)
TQWidget *parent, const char *name)
: KPanelApplet(configFile, type, actions, parent, name), _aboutData(0)
{
// setup table
_table = new PiecesTable(this);
@ -87,8 +87,8 @@ void FifteenApplet::about()
dialog.exec();
}
PiecesTable::PiecesTable(TQWidget* tqparent, const char* name )
: QtTableView(tqparent, name), _activeRow(-1), _activeCol(-1), _randomized(false)
PiecesTable::PiecesTable(TQWidget* parent, const char* name )
: QtTableView(parent, name), _activeRow(-1), _activeCol(-1), _randomized(false)
{
_menu = new TQPopupMenu(this);
_menu->insertItem(i18n("R&andomize Pieces"), this, TQT_SLOT(randomizeMap()));

@ -38,7 +38,7 @@ class PiecesTable : public QtTableView
TQ_OBJECT
public:
PiecesTable(TQWidget* tqparent = 0, const char* name = 0);
PiecesTable(TQWidget* parent = 0, const char* name = 0);
TQPopupMenu* popup() { return _menu; }
protected:
@ -71,7 +71,7 @@ class FifteenApplet : public KPanelApplet
public:
FifteenApplet(const TQString& configFile, Type t = Stretch, int actions = 0,
TQWidget *tqparent = 0, const char *name = 0);
TQWidget *parent = 0, const char *name = 0);
int widthForHeight(int height) const;
int heightForWidth(int width) const;

@ -45,8 +45,8 @@ public:
void paintEvent( TQPaintEvent * );
};
QCornerSquare::QCornerSquare( TQWidget *tqparent, const char *name )
: TQWidget( tqparent, name )
QCornerSquare::QCornerSquare( TQWidget *parent, const char *name )
: TQWidget( parent, name )
{
}
@ -125,7 +125,7 @@ void QCornerSquare::paintEvent( TQPaintEvent * )
/*!
Constructs a table view. The \a tqparent, \a name and \f arguments
Constructs a table view. The \a parent, \a name and \f arguments
are passed to the TQFrame constructor.
The \link setTableFlags() table flags\endlink are all cleared (set to 0).
@ -144,8 +144,8 @@ void QCornerSquare::paintEvent( TQPaintEvent * )
*/
QtTableView::QtTableView( TQWidget *tqparent, const char *name, WFlags f )
: TQFrame( tqparent, name, f )
QtTableView::QtTableView( TQWidget *parent, const char *name, WFlags f )
: TQFrame( parent, name, f )
{
nRows = nCols = 0; // zero rows/cols
xCellOffs = yCellOffs = 0; // zero offset

@ -39,7 +39,7 @@ public:
void tqrepaint( const TQRect &, bool erase=TRUE );
protected:
QtTableView( TQWidget *tqparent=0, const char *name=0, WFlags f=0 );
QtTableView( TQWidget *parent=0, const char *name=0, WFlags f=0 );
~QtTableView();
int numRows() const;

@ -53,18 +53,18 @@ const char *description = I18N_NOOP("Moon Phase Indicator for KDE");
extern "C"
{
KDE_EXPORT KPanelApplet *init(TQWidget *tqparent, const TQString& configFile)
KDE_EXPORT KPanelApplet *init(TQWidget *parent, const TQString& configFile)
{
KGlobal::locale()->insertCatalogue("kmoon");
return new MoonPAWidget(configFile, KPanelApplet::Normal,
KPanelApplet::About|KPanelApplet::Preferences,
tqparent, "kmoonapplet");
parent, "kmoonapplet");
}
}
MoonPAWidget::MoonPAWidget(const TQString& configFile, Type type, int actions,
TQWidget *tqparent, const char *name)
: KPanelApplet(configFile, type, actions, tqparent, name)
TQWidget *parent, const char *name)
: KPanelApplet(configFile, type, actions, parent, name)
{
KConfig *config = KGlobal::config();
config->setGroup("General");
@ -123,7 +123,7 @@ void MoonPAWidget::showAbout()
void MoonPAWidget::settings()
{
KMoonDlg dlg(moon->angle(), moon->northHemi(), moon->tqmask(),
KMoonDlg dlg(moon->angle(), moon->northHemi(), moon->mask(),
this, "moondlg");
if (dlg.exec() == KMoonDlg::Accepted) {
moon->setAngle(dlg.getAngle());
@ -133,7 +133,7 @@ void MoonPAWidget::settings()
config->setGroup("General");
config->writeEntry("Rotation", moon->angle());
config->writeEntry("Northern", moon->northHemi());
config->writeEntry("Mask", moon->tqmask());
config->writeEntry("Mask", moon->mask());
config->sync();
}
tqrepaint();

@ -41,7 +41,7 @@ class MoonPAWidget : public KPanelApplet
public:
MoonPAWidget(const TQString& configFile, Type t = Normal, int actions = 0,
TQWidget *tqparent = 0, const char *name = 0);
TQWidget *parent = 0, const char *name = 0);
~MoonPAWidget();
int widthForHeight(int height) const { return height; }

@ -29,9 +29,9 @@
#include "kmoondlg.h"
#include "kmoonwidget.h"
KMoonDlg::KMoonDlg(int a, bool n, bool m, TQWidget *tqparent, const char *name)
: KDialogBase(tqparent, name, true, i18n("Change View"),
Ok|Cancel|Help), angle(a), north(n), tqmask(m)
KMoonDlg::KMoonDlg(int a, bool n, bool m, TQWidget *parent, const char *name)
: KDialogBase(parent, name, true, i18n("Change View"),
Ok|Cancel|Help), angle(a), north(n), mask(m)
{
TQWidget *page = new TQWidget( this );
setMainWidget(page);
@ -72,7 +72,7 @@ KMoonDlg::KMoonDlg(int a, bool n, bool m, TQWidget *tqparent, const char *name)
connect(hemitoggle, TQT_SIGNAL(clicked()), TQT_SLOT(toggleHemi()));
masktoggle = new TQPushButton(hbox2);
masktoggle->setText(tqmask ? i18n("Switch Masking Off") :
masktoggle->setText(mask ? i18n("Switch Masking Off") :
i18n("Switch Masking On"));
connect(masktoggle, TQT_SIGNAL(clicked()), TQT_SLOT(toggleMask()));
@ -105,9 +105,9 @@ void KMoonDlg::toggleHemi() {
}
void KMoonDlg::toggleMask() {
moon->setMask(!moon->tqmask());
tqmask = moon->tqmask();
masktoggle->setText(tqmask ? i18n("Switch Masking Off") :
moon->setMask(!moon->mask());
mask = moon->mask();
masktoggle->setText(mask ? i18n("Switch Masking Off") :
i18n("Switch Masking On"));
}

@ -32,17 +32,17 @@ class KMoonDlg : public KDialogBase {
TQ_OBJECT
public:
KMoonDlg(int angle, bool north, bool tqmask, TQWidget *tqparent, const char *name);
KMoonDlg(int angle, bool north, bool mask, TQWidget *parent, const char *name);
int getAngle() const { return angle; }
bool getNorthHemi() const { return north; }
bool getMask() const { return tqmask; }
bool getMask() const { return mask; }
private:
TQSlider *slider;
MoonWidget *moon;
int angle;
bool north;
bool tqmask;
bool mask;
TQPushButton *hemitoggle;
TQPushButton *masktoggle;

@ -50,8 +50,8 @@
extern double moonphasebylunation(int lun, int phi);
extern time_t JDtoDate(double jd, struct tm *event_date);
MoonWidget::MoonWidget(TQWidget *tqparent, const char *name)
: TQWidget(tqparent, name)
MoonWidget::MoonWidget(TQWidget *parent, const char *name)
: TQWidget(parent, name)
{
struct tm * t;
time_t clock;
@ -61,10 +61,10 @@ MoonWidget::MoonWidget(TQWidget *tqparent, const char *name)
config->setGroup("General");
_angle = config->readNumEntry("Rotation", 0);
_north = config->readBoolEntry("Northern", true);
_tqmask = config->readBoolEntry("Mask", true);
_mask = config->readBoolEntry("Mask", true);
old_angle = old_w = old_h = old_counter = -1;
old_north = false;
old_tqmask = false;
old_mask = false;
startTimer(1000 * 60 * 20);
time(&clock);
@ -250,7 +250,7 @@ void MoonWidget::setNorthHemi(bool n)
void MoonWidget::setMask(bool value)
{
_tqmask = value;
_mask = value;
renderGraphic();
tqrepaint();
}
@ -328,7 +328,7 @@ void MoonWidget::renderGraphic()
} else {
dest = im.smoothScale(mw, mw).convertDepth(32);
}
if (_tqmask) {
if (_mask) {
// generate alpha-channel
int dmw = mw*2;
TQBitmap dMask(dmw, dmw);

@ -34,7 +34,7 @@ class MoonWidget : public TQWidget
TQ_OBJECT
public:
MoonWidget(TQWidget *tqparent = 0, const char *name = 0);
MoonWidget(TQWidget *parent = 0, const char *name = 0);
~MoonWidget();
void calctqStatus( time_t time );
@ -45,14 +45,14 @@ public:
bool northHemi() const { return _north; }
void setNorthHemi(bool b);
bool tqmask() const { return _tqmask; }
bool mask() const { return _mask; }
void setMask(bool b);
protected:
int old_w, old_h;
int counter, old_counter;
int _angle, old_angle;
int _tqmask, old_tqmask;
int _mask, old_mask;
bool old_north, _north;
TQPixmap pixmap;

@ -168,7 +168,7 @@ double torad(double x)
** int phi: another phase parameter, selecting the phase of the
** moon. 0 = New, 1 = First TQtr, 2 = Full, 3 = Last TQtr
**
** Return: Aptqparent JD of the needed phase
** Return: Apparent JD of the needed phase
*/
#include <stdio.h>

@ -25,8 +25,8 @@
#include "kimagenumber.h"
KImageNumber::KImageNumber(const TQString& font, TQWidget* tqparent,const char* name) :
TQFrame(tqparent,name),
KImageNumber::KImageNumber(const TQString& font, TQWidget* parent,const char* name) :
TQFrame(parent,name),
m_value(0)
{
fontPix = new TQPixmap(font);

@ -35,7 +35,7 @@ class KImageNumber : public TQFrame
TQ_OBJECT
TQ_PROPERTY( double m_value READ value WRITE setValue )
public:
KImageNumber(const TQString& font, TQWidget* tqparent=0, const char* name=0);
KImageNumber(const TQString& font, TQWidget* parent=0, const char* name=0);
virtual ~KImageNumber();

@ -42,8 +42,8 @@ static struct conversionEntry ConversionTable[MAX_UNIT] = {
* Note that we use installEventFilter on the two KImageNumber's
* to make clicks on them bring up the context-menu.
*/
Kodometer::Kodometer(TQWidget* tqparent, const char* name)
: TQFrame(tqparent, name),
Kodometer::Kodometer(TQWidget* parent, const char* name)
: TQFrame(parent, name),
dontRefresh(false),
speed(0.0),
lastDistance(0.0),

@ -25,14 +25,14 @@ TQString int2time(int time)
}
TeaListItem::TeaListItem(TQListView * tqparent)
:TQListViewItem(tqparent)
TeaListItem::TeaListItem(TQListView * parent)
:TQListViewItem(parent)
{
}
TeaListItem::TeaListItem(TQListView * tqparent, TQListViewItem *after)
:TQListViewItem(tqparent, after)
TeaListItem::TeaListItem(TQListView * parent, TQListViewItem *after)
:TQListViewItem(parent, after)
{
}

@ -18,8 +18,8 @@ class TeaListItem : public TQListViewItem
{
public:
TeaListItem(TQListView *tqparent);
TeaListItem(TQListView *tqparent, TQListViewItem *after);
TeaListItem(TQListView *parent);
TeaListItem(TQListView *parent, TQListViewItem *after);
~TeaListItem();
int time();

@ -13,8 +13,8 @@
#include "timeedit.h"
#include "timeedit.moc"
WrappingSpinBox::WrappingSpinBox(int minValue, int maxValue, int step, TQWidget *tqparent, const char *name)
: TQSpinBox(minValue, maxValue, step, tqparent, name)
WrappingSpinBox::WrappingSpinBox(int minValue, int maxValue, int step, TQWidget *parent, const char *name)
: TQSpinBox(minValue, maxValue, step, parent, name)
{
}
@ -49,8 +49,8 @@ void WrappingSpinBox::stepDown()
// -------------------------------------------------------------------------
TimeEdit::TimeEdit(TQWidget* tqparent, const char* name)
: TQWidget(tqparent, name)
TimeEdit::TimeEdit(TQWidget* parent, const char* name)
: TQWidget(parent, name)
{
tqlayout = new TQHBoxLayout(this);
minuteBox = new TQSpinBox(0, 300, 1, this);

@ -24,7 +24,7 @@ class WrappingSpinBox : public TQSpinBox
TQ_OBJECT
public:
WrappingSpinBox(int minValue, int maxValue, int step = 1, TQWidget *tqparent=0, const char *name=0);
WrappingSpinBox(int minValue, int maxValue, int step = 1, TQWidget *parent=0, const char *name=0);
~WrappingSpinBox();
void stepUp();
@ -46,7 +46,7 @@ class TimeEdit : public TQWidget
TQ_OBJECT
public:
TimeEdit(TQWidget* tqparent = 0, const char* name = 0);
TimeEdit(TQWidget* parent = 0, const char* name = 0);
~TimeEdit();
void setValue(int value);

@ -251,15 +251,15 @@ void TopLevel::paintEvent(TQPaintEvent *)
// overlay pie chart onto tray icon
TQPixmap base(*pm); // make copy of base pixmap
if (useTrayVis && running) {
// extend tqmask
TQBitmap tqmask = *(base.tqmask());
TQPainter pm(&tqmask);
// extend mask
TQBitmap mask = *(base.mask());
TQPainter pm(&mask);
pm.setBrush(TQt::color1); // fill with "foreground-colour"
pm.setPen(TQt::NoPen); // no border needed/wanted
pm.drawPie(0+1, ((float) width()/(float) 2.44444444444)+1, (width()/2), (width()/2), 90*16, -360*16); // full circle of small size
pm.drawPie(0, ((float) width()/(float) 2.44444444444), ((float) width()/(float) 1.69230769231), ((float) width()/(float) 1.69230769231), 90*16, percentDone*16); // pie part of big size
pm.end();
base.setMask(tqmask);
base.setMask(mask);
// draw pie chart
TQPainter px(&base);

@ -43,8 +43,8 @@ extern "C"
//-----------------------------------------------------------------------------
KSpriteSetup::KSpriteSetup( TQWidget *tqparent, const char *name )
: TQDialog( tqparent, name, TRUE )
KSpriteSetup::KSpriteSetup( TQWidget *parent, const char *name )
: TQDialog( parent, name, TRUE )
{
KGlobal::locale()->insertCatalogue("ktux");
saver = 0;

@ -52,7 +52,7 @@ class KSpriteSetup : public TQDialog
Q_OBJECT
TQ_OBJECT
public:
KSpriteSetup( TQWidget *tqparent = NULL, const char *name = NULL );
KSpriteSetup( TQWidget *parent = NULL, const char *name = NULL );
~KSpriteSetup();
protected:

@ -30,8 +30,8 @@
#include <kglobalsettings.h>
#include <klocale.h>
dockwidget::dockwidget(const TQString &location, TQWidget *tqparent,
const char *name) : TQWidget(tqparent,name), m_locationCode( location ), m_orientation(Qt::Horizontal )
dockwidget::dockwidget(const TQString &location, TQWidget *parent,
const char *name) : TQWidget(parent,name), m_locationCode( location ), m_orientation(Qt::Horizontal )
{
m_font = KGlobalSettings::generalFont();
setBackgroundOrigin( AncestorOrigin );

@ -34,7 +34,7 @@ class dockwidget : public TQWidget
TQ_OBJECT
public:
dockwidget(const TQString &location, TQWidget *tqparent=0, const char *name=0);
dockwidget(const TQString &location, TQWidget *parent=0, const char *name=0);
~dockwidget();
enum {ShowIconOnly=1, ShowTempOnly=2, ShowAll=3 };

@ -43,14 +43,14 @@
extern "C"
{
KDE_EXPORT KCModule *create_weather( TQWidget *tqparent, const char * )
KDE_EXPORT KCModule *create_weather( TQWidget *parent, const char * )
{
return new KCMWeather( tqparent, "kweather" );
return new KCMWeather( parent, "kweather" );
}
}
KCMWeather::KCMWeather( TQWidget *tqparent, const char *name )
: KCModule( tqparent, name )
KCMWeather::KCMWeather( TQWidget *parent, const char *name )
: KCModule( parent, name )
{
mWeatherService = new WeatherService_stub( "KWeatherService",
"WeatherService" );

@ -33,7 +33,7 @@ class KCMWeather : public KCModule
TQ_OBJECT
public:
KCMWeather( TQWidget *tqparent = 0, const char *name = 0 );
KCMWeather( TQWidget *parent = 0, const char *name = 0 );
~KCMWeather();
virtual void load();

@ -33,13 +33,13 @@
extern "C"
{
KDE_EXPORT KCModule *create_weatherservice( TQWidget *tqparent, const char * ) {
return new KCMWeatherService( tqparent, "kweather" );
KDE_EXPORT KCModule *create_weatherservice( TQWidget *parent, const char * ) {
return new KCMWeatherService( parent, "kweather" );
}
}
KCMWeatherService::KCMWeatherService( TQWidget *tqparent, const char *name )
: KCModule( tqparent, name )
KCMWeatherService::KCMWeatherService( TQWidget *parent, const char *name )
: KCModule( parent, name )
{
TQVBoxLayout *tqlayout = new TQVBoxLayout( this );
mWidget = new ServiceConfigWidget( this );

@ -34,7 +34,7 @@ class KCMWeatherService : public KCModule
TQ_OBJECT
public:
KCMWeatherService( TQWidget *tqparent = 0, const char *name = 0 );
KCMWeatherService( TQWidget *parent = 0, const char *name = 0 );
virtual void load();
virtual void save();

@ -40,18 +40,18 @@
extern "C"
{
KDE_EXPORT KPanelApplet* init(TQWidget *tqparent, const TQString& configFile)
KDE_EXPORT KPanelApplet* init(TQWidget *parent, const TQString& configFile)
{
KGlobal::locale()->insertCatalogue("kweather");
kweather *theApplet = new kweather(configFile, KPanelApplet::Normal,
0, tqparent, "kweather");
0, parent, "kweather");
return theApplet;
}
}
kweather::kweather(const TQString& configFile, Type t, int actions,
TQWidget *tqparent, const char *name):
KPanelApplet(configFile, t, actions, tqparent, name), weatherIface(),
TQWidget *parent, const char *name):
KPanelApplet(configFile, t, actions, parent, name), weatherIface(),
mFirstRun( false ), mReport( 0 ), mClient( 0 ),
mContextMenu( 0 ), mWeatherService( 0 ), settingsDialog( 0 ), mTextColor(TQt::black)
{

@ -36,7 +36,7 @@ class kweather : public KPanelApplet, public weatherIface
TQ_OBJECT
public:
kweather(const TQString& configFile, Type t = Normal, int actions = 0, TQWidget *tqparent = 0, const char *name = 0);
kweather(const TQString& configFile, Type t = Normal, int actions = 0, TQWidget *parent = 0, const char *name = 0);
~kweather();
void help();
void resizeEvent(TQResizeEvent*);

@ -55,7 +55,7 @@ reportView::reportView(const TQString &reportLocation)
reportView::~reportView(){
delete m_weatherService;
// we do not have to delete m_reportView because this class is
// the tqparent of the TQVBox, and that is the tqparent of the KHTMLPart.
// the parent of the TQVBox, and that is the parent of the KHTMLPart.
KConfig config( "weather_panelappletrc" );
config.setGroup( "General Options" );

@ -55,8 +55,8 @@ class StationItem : public TQListViewItem
static void parseStationEntry( const TQString &line, TQString &name, TQString &uid );
ServiceConfigWidget::ServiceConfigWidget( TQWidget *tqparent, const char *name )
: wsPrefs( tqparent, name ), mService(0)
ServiceConfigWidget::ServiceConfigWidget( TQWidget *parent, const char *name )
: wsPrefs( parent, name ), mService(0)
{
mService = new WeatherService_stub( "KWeatherService", "WeatherService" );
connect( mAllStations, TQT_SIGNAL( doubleClicked ( TQListViewItem *, const TQPoint &, int ) ), TQT_SLOT( addStation() ) );

@ -31,7 +31,7 @@ class ServiceConfigWidget : public wsPrefs
TQ_OBJECT
public:
ServiceConfigWidget( TQWidget *tqparent, const char *name = 0 );
ServiceConfigWidget( TQWidget *parent, const char *name = 0 );
virtual ~ServiceConfigWidget();
signals:

@ -22,8 +22,8 @@
#include "sidebarwidget.h"
#include <tqscrollview.h>
sidebarwidget::sidebarwidget(TQWidget* tqparent, const char* name) :
sidebarwidgetbase(tqparent,name)
sidebarwidget::sidebarwidget(TQWidget* parent, const char* name) :
sidebarwidgetbase(parent,name)
{
view = new TQVBox(reportGrid->viewport());
reportGrid->addChild(view);

@ -31,7 +31,7 @@ class sidebarwidget : public sidebarwidgetbase
Q_OBJECT
TQ_OBJECT
public:
sidebarwidget(TQWidget* tqparent, const char* name = 0);
sidebarwidget(TQWidget* parent, const char* name = 0);
virtual ~sidebarwidget();
void addWidget(TQWidget *w, const TQString &s);
TQWidget *viewport();

@ -282,7 +282,7 @@ static int __sunriset__( int year, int month, int day, double lon, double lat,
double sr; /* Solar distance, astronomical units */
double sRA; /* Sun's Right Ascension */
double sdec; /* Sun's declination */
double sradius; /* Sun's aptqparent radius */
double sradius; /* Sun's apparent radius */
double t; /* Diurnal arc */
double tsouth; /* Time when Sun is at south */
double sidtime; /* Local sidereal time */
@ -303,7 +303,7 @@ static int __sunriset__( int year, int month, int day, double lon, double lat,
/* Compute time when Sun is at south - in hours UT */
tsouth = 12.0 - rev180(sidtime - sRA) / 15.0;
/* Compute the Sun's aptqparent radius, degrees */
/* Compute the Sun's apparent radius, degrees */
sradius = 0.2666 / sr;
/* Do correction to upper limb, if necessary */

@ -36,11 +36,11 @@
#include <dcopref.h>
KonqSidebarWeather::KonqSidebarWeather(KInstance* inst, TQObject* tqparent,
KonqSidebarWeather::KonqSidebarWeather(KInstance* inst, TQObject* parent,
TQWidget* widgetParent,
TQString& desktopName, const char* name)
: KonqSidebarPlugin(inst, tqparent, widgetParent, desktopName, name),
: KonqSidebarPlugin(inst, parent, widgetParent, desktopName, name),
DCOPObject(name)
{

@ -40,7 +40,7 @@ class KonqSidebarWeather: public KonqSidebarPlugin, virtual public DCOPObject
TQ_OBJECT
K_DCOP
public:
KonqSidebarWeather(KInstance* inst, TQObject* tqparent, TQWidget* widgetParent,
KonqSidebarWeather(KInstance* inst, TQObject* parent, TQWidget* widgetParent,
TQString& desktopName_, const char* name = 0);
~KonqSidebarWeather();

@ -29,8 +29,8 @@
#include <kipc.h>
#include <kstandarddirs.h>
WeatherButton::WeatherButton( TQWidget *tqparent, const char *name )
: TQButton( tqparent, name ), m_highlight( false )
WeatherButton::WeatherButton( TQWidget *parent, const char *name )
: TQButton( parent, name ), m_highlight( false )
{
setBackgroundOrigin( AncestorOrigin );

@ -29,7 +29,7 @@ class WeatherButton : public TQButton
TQ_OBJECT
public:
WeatherButton( TQWidget *tqparent, const char *name );
WeatherButton( TQWidget *parent, const char *name );
void setPixmap( const TQPixmap &pix );
protected:

@ -77,8 +77,8 @@ void WeatherLib::Data::clear()
}
}
WeatherLib::WeatherLib(StationDatabase *stationDB, TQObject *tqparent, const char *name)
: TQObject (tqparent, name)
WeatherLib::WeatherLib(StationDatabase *stationDB, TQObject *parent, const char *name)
: TQObject (parent, name)
{
KGlobal::locale()->insertCatalogue("kweather");

@ -37,7 +37,7 @@ class WeatherLib : public TQObject
public:
class Data;
WeatherLib(StationDatabase *stationDB, TQObject *tqparent =0L, const char *name =0L);
WeatherLib(StationDatabase *stationDB, TQObject *parent =0L, const char *name =0L);
virtual ~WeatherLib();
TQString temperature(const TQString &stationID);

@ -31,7 +31,7 @@
#include "stationdatabase.h"
#include "sun.h"
WeatherService::WeatherService(TQObject *tqparent, const char *name) : TQObject (tqparent, name), DCOPObject("WeatherService")
WeatherService::WeatherService(TQObject *parent, const char *name) : TQObject (parent, name), DCOPObject("WeatherService")
{
kdDebug(12006) << "Starting new service... " << endl;

@ -44,7 +44,7 @@ class WeatherService : public TQObject, public DCOPObject
void slotStationRemoved(const TQString &stationID);
public:
WeatherService(TQObject *tqparent, const char *name);
WeatherService(TQObject *parent, const char *name);
~WeatherService();
k_dcop_signals:

@ -42,20 +42,20 @@
extern "C"
{
KDE_EXPORT KPanelApplet *init(TQWidget *tqparent, const TQString& configFile)
KDE_EXPORT KPanelApplet *init(TQWidget *parent, const TQString& configFile)
{
KGlobal::locale()->insertCatalogue("kworldclock");
KGlobal::locale()->insertCatalogue("timezones"); // For time zone translation
return new KWWApplet(configFile, KPanelApplet::Normal,
0,
tqparent, "kwwapplet");
parent, "kwwapplet");
}
}
KWWApplet::KWWApplet(const TQString& configFile, Type type, int actions,
TQWidget *tqparent, const char *name)
: KPanelApplet(configFile, type, actions, tqparent, name)
TQWidget *parent, const char *name)
: KPanelApplet(configFile, type, actions, parent, name)
{
// make use of the icons installed for ksaferppp
KGlobal::iconLoader()->addAppDir("kworldwatch");

@ -47,7 +47,7 @@ class KWWApplet : public KPanelApplet
public:
KWWApplet(const TQString& configFile, Type t = Normal, int actions = 0,
TQWidget *tqparent = 0, const char *name = 0);
TQWidget *parent = 0, const char *name = 0);
~KWWApplet();
int widthForHeight(int height) const;

@ -7,7 +7,7 @@
long jdate(struct tm *);
double jtime(struct tm *);
double kepler(double m, double ecc);
void sunpos(double jd, int aptqparent, double *ra, double *dec, double *rv, double *slong);
void sunpos(double jd, int apparent, double *ra, double *dec, double *rv, double *slong);
double gmst(double jd);
/* JDATE -- Convert internal GMT date and time to Julian day
@ -65,19 +65,19 @@ double m, ecc;
/* SUNPOS -- Calculate position of the Sun. JD is the Julian date
of the instant for which the position is desired and
APPARENT should be nonzero if the aptqparent position
APPARENT should be nonzero if the apparent position
(corrected for nutation and aberration) is desired.
The Sun's co-ordinates are returned in RA and DEC,
both specified in degrees (divide RA by 15 to obtain
hours). The radius vector to the Sun in astronomical
units is returned in RV and the Sun's longitude (true
or aptqparent, as desired) is returned as degrees in
or apparent, as desired) is returned as degrees in
SLONG. */
void
sunpos(jd, aptqparent, ra, dec, rv, slong)
sunpos(jd, apparent, ra, dec, rv, slong)
double jd;
int aptqparent;
int apparent;
double *ra, *dec, *rv, *slong;
{
double t, t2, t3, l, m, e, ea, v, theta, omega,
@ -119,9 +119,9 @@ double *ra, *dec, *rv, *slong;
eps = 23.452294 - 0.0130125 * t - 0.00000164 * t2 + 0.000000503 * t3;
/* Corrections for Sun's aptqparent longitude, if desired. */
/* Corrections for Sun's apparent longitude, if desired. */
if (aptqparent) {
if (apparent) {
omega = fixangle(259.18 - 1934.142 * t);
theta = theta - 0.00569 - 0.00479 * sin(dtr(omega));
eps += 0.00256 * cos(dtr(omega));

@ -34,7 +34,7 @@
extern "C" {
double jtime(struct tm *t);
double kepler(double m, double ecc);
void sunpos(double jd, int aptqparent, double *ra, double *dec, double *rv, double *slong);
void sunpos(double jd, int apparent, double *ra, double *dec, double *rv, double *slong);
void projillum(short *wtab, int xdots, int ydots, double dec);
}

@ -39,7 +39,7 @@ FlagList::FlagList()
_flags.setAutoDelete(true);
_flagPixmap = TQPixmap(locate("data", "kworldclock/pics/flag.png"));
_flagMask = TQPixmap(locate("data", "kworldclock/pics/flag-tqmask.xpm"), 0, TQPixmap::ThresholdDither);
_flagMask = TQPixmap(locate("data", "kworldclock/pics/flag-mask.xpm"), 0, TQPixmap::ThresholdDither);
_flagMask.setMask(_flagMask.createHeuristicMask());
}

@ -21,12 +21,12 @@
class SimpleFlow : public TQLayout
{
public:
SimpleFlow( TQWidget *tqparent, int border=0, int space=-1,
SimpleFlow( TQWidget *parent, int border=0, int space=-1,
const char *name=0 )
: TQLayout( tqparent, border, space, name ),
: TQLayout( parent, border, space, name ),
cached_width(0), cached_hfw(0) {}
SimpleFlow( TQLayout* tqparent, int space=-1, const char *name=0 )
: TQLayout( tqparent, space, name ),
SimpleFlow( TQLayout* parent, int space=-1, const char *name=0 )
: TQLayout( parent, space, name ),
cached_width(0), cached_hfw(0) {}
SimpleFlow( int space=-1, const char *name=0 )
: TQLayout( space, name ),

@ -48,8 +48,8 @@
#include "zoneclock.h"
WorldWideWatch::WorldWideWatch(bool restore, TQWidget *tqparent, const char *name)
: KMainWindow(tqparent, name)
WorldWideWatch::WorldWideWatch(bool restore, TQWidget *parent, const char *name)
: KMainWindow(parent, name)
{
KGlobal::locale()->insertCatalogue("timezones"); // For time zone translation

@ -44,7 +44,7 @@ class WorldWideWatch : public KMainWindow
public:
WorldWideWatch(bool restore=false, TQWidget *tqparent=0, const char *name=0);
WorldWideWatch(bool restore=false, TQWidget *parent=0, const char *name=0);
void save(KConfig *config);
void load(KConfig *load);

@ -56,8 +56,8 @@
#include "mapwidget.moc"
MapWidget::MapWidget(bool applet, bool restore, TQWidget *tqparent, const char *name)
: TQWidget(tqparent, name), _loader(), _illumination(true), _cities(true), _flags(true), _cityList(0),
MapWidget::MapWidget(bool applet, bool restore, TQWidget *parent, const char *name)
: TQWidget(parent, name), _loader(), _illumination(true), _cities(true), _flags(true), _cityList(0),
_applet(applet), _width(0), _height(0)
{
// this ugly construction is necessary so we don't load

@ -60,7 +60,7 @@ class MapWidget : public TQWidget
public:
MapWidget(bool applet=false, bool restore=false, TQWidget *tqparent=0, const char *name=0);
MapWidget(bool applet=false, bool restore=false, TQWidget *parent=0, const char *name=0);
~MapWidget();
void setTheme(const TQString &theme);

@ -51,8 +51,8 @@
#include "zoneclock.moc"
#include <kdebug.h>
ZoneClock::ZoneClock(const TQString &zone, const TQString &name, TQWidget *tqparent, const char *n)
: TQFrame(tqparent, n), _zone(zone), _name(name)
ZoneClock::ZoneClock(const TQString &zone, const TQString &name, TQWidget *parent, const char *n)
: TQFrame(parent, n), _zone(zone), _name(name)
{
setFrameStyle(TQFrame::Panel | TQFrame::Raised);
TQHBoxLayout *hbox = new TQHBoxLayout(this, 2,2);
@ -162,8 +162,8 @@ void ZoneClock::updateTime()
}
ZoneClockPanel::ZoneClockPanel(TQWidget *tqparent, const char *name)
: TQFrame(tqparent, name), _dlg(0)
ZoneClockPanel::ZoneClockPanel(TQWidget *parent, const char *name)
: TQFrame(parent, name), _dlg(0)
{
_flow = new SimpleFlow(this,1,1);

@ -50,7 +50,7 @@ class ZoneClock : public TQFrame
public:
ZoneClock(const TQString &zone, const TQString &name, TQWidget *tqparent=0, const char *n=0);
ZoneClock(const TQString &zone, const TQString &name, TQWidget *parent=0, const char *n=0);
TQString zone() const { return _zone; };
@ -102,7 +102,7 @@ class ZoneClockPanel : public TQFrame
public:
ZoneClockPanel(TQWidget *tqparent=0, const char *name=0);
ZoneClockPanel(TQWidget *parent=0, const char *name=0);
void addClock(const TQString &zone, const TQString &name);

Loading…
Cancel
Save