rename the following methods:

tqparent parent
tqmask mask


git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeutils@1246260 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru
tpearson 14 years ago
parent 6335dc5580
commit 625904bd30

@ -390,37 +390,37 @@ bool Arch::processLine( const TQCString &line )
Arch *Arch::archFactory( ArchType aType,
ArkWidget *tqparent, const TQString &filename,
ArkWidget *parent, const TQString &filename,
const TQString &openAsMimeType )
{
switch( aType )
{
case TAR_FORMAT:
return new TarArch( tqparent, filename, openAsMimeType );
return new TarArch( parent, filename, openAsMimeType );
case ZIP_FORMAT:
return new ZipArch( tqparent, filename );
return new ZipArch( parent, filename );
case LHA_FORMAT:
return new LhaArch( tqparent, filename );
return new LhaArch( parent, filename );
case COMPRESSED_FORMAT:
return new CompressedFile( tqparent, filename, openAsMimeType );
return new CompressedFile( parent, filename, openAsMimeType );
case ZOO_FORMAT:
return new ZooArch( tqparent, filename );
return new ZooArch( parent, filename );
case RAR_FORMAT:
return new RarArch( tqparent, filename );
return new RarArch( parent, filename );
case AA_FORMAT:
return new ArArch( tqparent, filename );
return new ArArch( parent, filename );
case SEVENZIP_FORMAT:
return new SevenZipArch( tqparent, filename );
return new SevenZipArch( parent, filename );
case ACE_FORMAT:
return new AceArch( tqparent, filename );
return new AceArch( parent, filename );
case UNKNOWN_FORMAT:
default:

@ -147,7 +147,7 @@ class Arch : public TQObject
void clearShellOutput() { m_lastShellOutput.truncate( 0 ); }
const TQString& getLastShellOutput() const { return m_lastShellOutput; }
static Arch *archFactory( ArchType aType, ArkWidget *tqparent,
static Arch *archFactory( ArchType aType, ArkWidget *parent,
const TQString &filename,
const TQString &openAsMimeType = TQString() );

@ -28,8 +28,8 @@
#include <tqlabel.h>
#include <tqvbox.h>
ArchiveFormatDlg::ArchiveFormatDlg( TQWidget * tqparent, const TQString & defaultType )
:KDialogBase( tqparent, "archiveformatdialog", true,
ArchiveFormatDlg::ArchiveFormatDlg( TQWidget * parent, const TQString & defaultType )
:KDialogBase( parent, "archiveformatdialog", true,
i18n( "Choose Archive Format" ),
KDialogBase::Ok|KDialogBase::Cancel, KDialogBase::Ok),
m_combo( 0 )

@ -30,7 +30,7 @@ class ArchiveFormatDlg: public KDialogBase
Q_OBJECT
TQ_OBJECT
public:
ArchiveFormatDlg( TQWidget * tqparent, const TQString & defaultType );
ArchiveFormatDlg( TQWidget * parent, const TQString & defaultType );
TQString mimeType();
private:

@ -63,9 +63,9 @@ KAboutData *ArkPart::createAboutData()
ArkPart::ArkPart( TQWidget *parentWidget, const char * /*widgetName*/, TQObject *tqparent,
ArkPart::ArkPart( TQWidget *parentWidget, const char * /*widgetName*/, TQObject *parent,
const char *name, const TQStringList &, bool readWrite )
: KParts::ReadWritePart(tqparent, name)
: KParts::ReadWritePart(parent, name)
{
kdDebug(1601)<<"ArkPart::ArkPart"<<endl;
setInstance(ArkFactory::instance());
@ -372,8 +372,8 @@ void ArkPart::cancelTransfer()
}
}
ArkBrowserExtension::ArkBrowserExtension( KParts::ReadOnlyPart * tqparent, const char * name )
: KParts::BrowserExtension( tqparent, name )
ArkBrowserExtension::ArkBrowserExtension( KParts::ReadOnlyPart * parent, const char * name )
: KParts::BrowserExtension( parent, name )
{
}
@ -382,8 +382,8 @@ void ArkBrowserExtension::slotOpenURLRequested( const KURL & url )
emit openURLRequest( url, KParts::URLArgs() );
}
ArkStatusBarExtension::ArkStatusBarExtension( KParts::ReadWritePart * tqparent )
: KParts::StatusBarExtension( tqparent ),
ArkStatusBarExtension::ArkStatusBarExtension( KParts::ReadWritePart * parent )
: KParts::StatusBarExtension( parent ),
m_bBusy( false ),
m_pStatusLabelSelect( 0 ),
m_pStatusLabelTotal( 0 ),

@ -48,7 +48,7 @@ class ArkBrowserExtension: public KParts::BrowserExtension
Q_OBJECT
TQ_OBJECT
public:
ArkBrowserExtension( KParts::ReadOnlyPart * tqparent, const char * name = 0L );
ArkBrowserExtension( KParts::ReadOnlyPart * parent, const char * name = 0L );
public slots:
void slotOpenURLRequested( const KURL & url );
};
@ -58,7 +58,7 @@ class ArkStatusBarExtension: public KParts::StatusBarExtension
Q_OBJECT
TQ_OBJECT
public:
ArkStatusBarExtension( KParts::ReadWritePart * tqparent );
ArkStatusBarExtension( KParts::ReadWritePart * parent );
~ArkStatusBarExtension();
void setProgress( unsigned long progress );
@ -90,7 +90,7 @@ class ArkPart: public KParts::ReadWritePart
Q_OBJECT
TQ_OBJECT
public:
ArkPart( TQWidget *parentWidget, const char *widgetName, TQObject *tqparent,
ArkPart( TQWidget *parentWidget, const char *widgetName, TQObject *parent,
const char *name, const TQStringList &, bool readWrite );
virtual ~ArkPart();

@ -79,7 +79,7 @@ class ArkApplication : public KUniqueApplication
ArkApplication();
private:
TQWidget *m_mainwidget; // to be the tqparent of all ArkWidgets
TQWidget *m_mainwidget; // to be the parent of all ArkWidgets
int m_windowCount;
TQStringList openArksList;

@ -39,7 +39,7 @@ ArkFactory::~ArkFactory()
}
KParts::Part * ArkFactory::createPartObject( TQWidget *parentWidget,
const char *widgetName, TQObject *tqparent,
const char *widgetName, TQObject *parent,
const char *name, const char *classname,
const TQStringList &args )
{
@ -49,7 +49,7 @@ KParts::Part * ArkFactory::createPartObject( TQWidget *parentWidget,
{
readWrite = true;
}
ArkPart* obj = new ArkPart( parentWidget, widgetName, tqparent, name,
ArkPart* obj = new ArkPart( parentWidget, widgetName, parent, name,
args, readWrite );
//kdDebug( 1601 ) << "classname is: " << TQCString( classname ) << endl;
return obj;

@ -30,7 +30,7 @@ public:
virtual ~ArkFactory();
virtual KParts::Part *createPartObject(
TQWidget *parentWidget = 0,const char *widgetName = 0,
TQObject *tqparent = 0, const char *name = 0,
TQObject *parent = 0, const char *name = 0,
const char *classname = "KParts::Part",
const TQStringList &args = TQStringList() );
static KInstance* instance();

@ -36,8 +36,8 @@
#include <tqurl.h>
ArkViewer::ArkViewer( TQWidget * tqparent, const char * name )
: KDialogBase( tqparent, name, false, TQString(), Close ), m_part( 0 )
ArkViewer::ArkViewer( TQWidget * parent, const char * name )
: KDialogBase( parent, name, false, TQString(), Close ), m_part( 0 )
{
m_widget = new TQVBox( this );
m_widget->tqlayout()->setSpacing( 10 );

@ -31,7 +31,7 @@ class ArkViewer : public KDialogBase
TQ_OBJECT
public:
ArkViewer( TQWidget* tqparent = 0, const char * name = 0 );
ArkViewer( TQWidget* parent = 0, const char * name = 0 );
~ArkViewer();
bool view( const KURL& filename );

@ -81,7 +81,7 @@
#include "searchbar.h"
#include "arkviewer.h"
static void viewInExternalViewer( ArkWidget* tqparent, const KURL& filename )
static void viewInExternalViewer( ArkWidget* parent, const KURL& filename )
{
TQString mimetype = KMimeType::findByURL( filename )->name();
bool view = true;
@ -89,7 +89,7 @@ static void viewInExternalViewer( ArkWidget* tqparent, const KURL& filename )
if ( KRun::isExecutable( mimetype ) )
{
TQString text = i18n( "The file you're trying to view may be an executable. Running untrusted executables may compromise your system's security.\nAre you sure you want to run that file?" );
view = ( KMessageBox::warningContinueCancel( tqparent, text, TQString(), i18n("Run Nevertheless") ) == KMessageBox::Continue );
view = ( KMessageBox::warningContinueCancel( parent, text, TQString(), i18n("Run Nevertheless") ) == KMessageBox::Continue );
}
if ( view )
@ -103,8 +103,8 @@ static void viewInExternalViewer( ArkWidget* tqparent, const KURL& filename )
//
//----------------------------------------------------------------------
ArkWidget::ArkWidget( TQWidget *tqparent, const char *name )
: TQVBox(tqparent, name), m_bBusy( false ), m_bBusyHold( false ),
ArkWidget::ArkWidget( TQWidget *parent, const char *name )
: TQVBox(parent, name), m_bBusy( false ), m_bBusyHold( false ),
m_extractOnly( false ), m_extractRemote(false),
m_openAsMimeType(TQString()), m_pTempAddList(NULL),
m_bArchivePopupEnabled( false ),

@ -61,7 +61,7 @@ class ArkWidget : public TQVBox
Q_OBJECT
TQ_OBJECT
public:
ArkWidget( TQWidget *tqparent=0, const char *name=0 );
ArkWidget( TQWidget *parent=0, const char *name=0 );
virtual ~ArkWidget();
bool isArchiveOpen() const { return m_bIsArchiveOpen; }

@ -51,12 +51,12 @@
#include "arkutils.h"
#include "settings.h"
ExtractionDialog::ExtractionDialog( TQWidget *tqparent, const char *name,
ExtractionDialog::ExtractionDialog( TQWidget *parent, const char *name,
bool enableSelected,
const KURL& defaultExtractionDir,
const TQString &prefix,
const TQString &archiveName )
: KDialogBase( tqparent, name, true, i18n( "Extract" ), Ok | Cancel, Ok ),
: KDialogBase( parent, name, true, i18n( "Extract" ), Ok | Cancel, Ok ),
m_selectedButton( 0 ), m_allButton( 0 ),
m_selectedOnly( enableSelected ), m_extractionDirectory( defaultExtractionDir ),
m_defaultExtractionDir( defaultExtractionDir.prettyURL() ), m_prefix( prefix )

@ -46,7 +46,7 @@ class ExtractionDialog : public KDialogBase
/**
* Constructor.
*/
ExtractionDialog( TQWidget *tqparent = 0, const char *name = 0,
ExtractionDialog( TQWidget *parent = 0, const char *name = 0,
bool enableSelected = true,
const KURL &defaultExtractionDir = KURL(),
const TQString &prefix = TQString(),

@ -170,9 +170,9 @@ void FileLVI::setText( int column, const TQString &text )
TQListViewItem::setText(column, text);
}
static FileLVI* folderLVI( KListViewItem *tqparent, const TQString& name )
static FileLVI* folderLVI( KListViewItem *parent, const TQString& name )
{
FileLVI *folder = new FileLVI( tqparent );
FileLVI *folder = new FileLVI( parent );
folder->setText( 0, name );
@ -181,9 +181,9 @@ static FileLVI* folderLVI( KListViewItem *tqparent, const TQString& name )
return folder;
}
static FileLVI* folderLVI( KListView *tqparent, const TQString& name )
static FileLVI* folderLVI( KListView *parent, const TQString& name )
{
FileLVI *folder = new FileLVI( tqparent );
FileLVI *folder = new FileLVI( parent );
folder->setText( 0, name );
folder->setPixmap( 0, KMimeType::mimeType( "inode/directory" )->pixmap( KIcon::Small ) );
return folder;
@ -194,8 +194,8 @@ static FileLVI* folderLVI( KListView *tqparent, const TQString& name )
/////////////////////////////////////////////////////////////////////
FileListView::FileListView(TQWidget *tqparent, const char* name)
: KListView(tqparent, name)
FileListView::FileListView(TQWidget *parent, const char* name)
: KListView(parent, name)
{
TQWhatsThis::add( this,
i18n( "This area is for displaying information about the files contained within an archive." )
@ -274,14 +274,14 @@ TQStringList FileListView::selectedFilenames()
* is a bit different: as we already dealt with all the tqchildren,
* the "next item" is the next sibling of the current item, not
* its first child. If the current item has no siblings, then
* the next item is the next sibling of its tqparent, and so on.
* the next item is the next sibling of its parent, and so on.
*/
FileLVI *nitem = static_cast<FileLVI*>( item->nextSibling() );
while ( !nitem && item->tqparent() )
while ( !nitem && item->parent() )
{
item = static_cast<FileLVI*>( item->tqparent() );
if ( item->tqparent() )
nitem = static_cast<FileLVI*>( item->tqparent()->nextSibling() );
item = static_cast<FileLVI*>( item->parent() );
if ( item->parent() )
nitem = static_cast<FileLVI*>( item->parent()->nextSibling() );
}
item = nitem;
continue;
@ -385,9 +385,9 @@ FileListView::item(const TQString& filename) const
void FileListView::addItem( const TQStringList & entries )
{
FileLVI *flvi, *tqparent = findParent( entries[0] );
if ( tqparent )
flvi = new FileLVI( tqparent );
FileLVI *flvi, *parent = findParent( entries[0] );
if ( parent )
flvi = new FileLVI( parent );
else
flvi = new FileLVI( this );
@ -508,7 +508,7 @@ FileLVI* FileListView::findParent( const TQString& fullname )
name = name.left( name.length() -1 );
if ( name.startsWith( "/" ) )
name = name.mid( 1 );
// Checks if this entry needs a tqparent
// Checks if this entry needs a parent
if ( !name.contains( '/' ) )
return static_cast< FileLVI* >( 0 );
@ -538,8 +538,8 @@ FileLVI* FileListView::findParent( const TQString& fullname )
{
TQString name = ancestorList[0];
FileLVI *tqparent = static_cast< FileLVI*>( item );
item = tqparent->firstChild();
FileLVI *parent = static_cast< FileLVI*>( item );
item = parent->firstChild();
while ( item )
{
if ( item->text(0) == name )
@ -549,7 +549,7 @@ FileLVI* FileListView::findParent( const TQString& fullname )
if ( !item )
{
item = folderLVI( tqparent, name );
item = folderLVI( parent, name );
}
ancestorList.pop_front();
@ -559,12 +559,12 @@ FileLVI* FileListView::findParent( const TQString& fullname )
return static_cast< FileLVI* >( item );
}
TQStringList FileListView::tqchildrenOf( FileLVI* tqparent )
TQStringList FileListView::tqchildrenOf( FileLVI* parent )
{
Q_ASSERT( tqparent );
Q_ASSERT( parent );
TQStringList tqchildren;
FileLVI *item = static_cast<FileLVI*>( tqparent->firstChild() );
FileLVI *item = static_cast<FileLVI*>( parent->firstChild() );
while ( item )
{

@ -76,7 +76,7 @@ class FileListView: public KListView
Q_OBJECT
TQ_OBJECT
public:
FileListView( TQWidget *tqparent = 0, const char* name = 0 );
FileListView( TQWidget *parent = 0, const char* name = 0 );
FileLVI *currentItem() {return ((FileLVI *) KListView::currentItem());}
@ -153,7 +153,7 @@ class FileListView: public KListView
private:
FileLVI* findParent( const TQString& fullname );
TQStringList tqchildrenOf( FileLVI* tqparent );
TQStringList tqchildrenOf( FileLVI* parent );
TQMap<int, columnName> m_columnMap;
bool m_pressed;

@ -45,7 +45,7 @@
#include "archiveformatinfo.h"
#include "arkwidget.h"
MainWindow::MainWindow( TQWidget * /*tqparent*/, const char *name )
MainWindow::MainWindow( TQWidget * /*parent*/, const char *name )
: KParts::MainWindow(), progressDialog( 0 )
{
setXMLFile( "arkui.rc" );

@ -43,7 +43,7 @@ MainWindow: public KParts::MainWindow
Q_OBJECT
TQ_OBJECT
public:
MainWindow( TQWidget *tqparent=0, const char *name=0 );
MainWindow( TQWidget *parent=0, const char *name=0 );
virtual ~MainWindow();
void setExtractOnly ( bool b );

@ -32,12 +32,12 @@
#include <tqapplication.h>
#include <tqvaluelist.h>
SearchBar::SearchBar( TQWidget* tqparent, KActionCollection* aC, const char * name )
: KListViewSearchLine( tqparent, 0, name )
SearchBar::SearchBar( TQWidget* parent, KActionCollection* aC, const char * name )
: KListViewSearchLine( parent, 0, name )
{
KAction *resetSearch = new KAction( i18n( "Reset Search" ), TQApplication::reverseLayout() ? "clear_left" : "locationbar_erase", 0, TQT_TQOBJECT(this), TQT_SLOT( clear() ), aC, "reset_search" );
resetSearch->plug( tqparent );
resetSearch->plug( parent );
resetSearch->setWhatsThis( i18n( "Reset Search\n"
"Resets the search bar, so that all archive entries are shown again." ) );
}

@ -34,7 +34,7 @@ class SearchBar: public KListViewSearchLine
Q_OBJECT
TQ_OBJECT
public:
SearchBar( TQWidget* tqparent, KActionCollection* aC, const char * name = 0 );
SearchBar( TQWidget* parent, KActionCollection* aC, const char * name = 0 );
~SearchBar();
};

@ -78,8 +78,8 @@ static char *makeAccessString(mode_t mode)
return buffer;
}
TarListingThread::TarListingThread( TQObject *tqparent, const TQString& filename )
: TQThread(), m_parent( tqparent )
TarListingThread::TarListingThread( TQObject *parent, const TQString& filename )
: TQThread(), m_parent( parent )
{
Q_ASSERT( m_parent );
m_archive = new KTar( filename );

@ -47,7 +47,7 @@ class ListingEvent: public TQCustomEvent
class TarListingThread: public TQThread
{
public:
TarListingThread( TQObject *tqparent, const TQString& filename );
TarListingThread( TQObject *parent, const TQString& filename );
~TarListingThread();
protected:

@ -41,12 +41,12 @@ 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("kcharselectapplet");
return new CharSelectApplet(configFile, KPanelApplet::Normal,
KPanelApplet::About | KPanelApplet::Preferences,
tqparent, "kcharselectapplet");
parent, "kcharselectapplet");
}
}
@ -55,8 +55,8 @@ static int cell_height = 16;
static int char_count = 0;
CharSelectApplet::CharSelectApplet(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),
_aboutData(0), _configDialog(0)
{
// read configuration
@ -151,8 +151,8 @@ void CharSelectApplet::about()
dialog.exec();
}
CharTable::CharTable(TQWidget* tqparent, const char* name)
: TQFrame(tqparent, name), _rows(2), _cols(2),
CharTable::CharTable(TQWidget* parent, const char* name)
: TQFrame(parent, name), _rows(2), _cols(2),
_activeRow(-1), _activeCol(-1),
_cWidth(cell_width), _cHeight(cell_height)
{
@ -336,8 +336,8 @@ void CharTable::clearCell()
}
ConfigDialog::ConfigDialog(TQWidget* tqparent, const char* name)
: KDialogBase(tqparent, name, true, i18n("Configuration"),
ConfigDialog::ConfigDialog(TQWidget* parent, const char* name)
: KDialogBase(parent, name, true, i18n("Configuration"),
Ok | Cancel, Ok, true)
{
TQVBox *page = makeVBoxMainWidget();

@ -39,7 +39,7 @@ class ConfigDialog : public KDialogBase
TQ_OBJECT
public:
ConfigDialog(TQWidget* tqparent = 0, const char* name = 0);
ConfigDialog(TQWidget* parent = 0, const char* name = 0);
void setCharacters(const TQString& s) { _characterInput->setText(s); }
void setCellWidth(int w) { _widthSpinBox->setValue(w); }
@ -61,7 +61,7 @@ class CharTable : public TQFrame
TQ_OBJECT
public:
CharTable(TQWidget* tqparent = 0, const char* name = 0);
CharTable(TQWidget* parent = 0, const char* name = 0);
void setRowsAndColumns(int, int);
@ -101,7 +101,7 @@ class CharSelectApplet : public KPanelApplet
public:
CharSelectApplet(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;

@ -34,9 +34,9 @@
DispLogic::DispLogic(TQWidget *tqparent, const char *name,
DispLogic::DispLogic(TQWidget *parent, const char *name,
KActionCollection *coll)
:KCalcDisplay(tqparent,name), _history_index(0)
:KCalcDisplay(parent,name), _history_index(0)
{
KNumber::setDefaultFloatOutput(true);
KNumber::setDefaultFractionalInput(true);

@ -41,7 +41,7 @@ Q_OBJECT
TQ_OBJECT
public:
DispLogic(TQWidget *tqparent, const char *name,
DispLogic(TQWidget *parent, const char *name,
KActionCollection *coll);
~DispLogic();

@ -78,8 +78,8 @@ static const char description[] = I18N_NOOP("KDE Calculator");
static const char version[] = KCALCVERSION;
KCalculator::KCalculator(TQWidget *tqparent, const char *name)
: KMainWindow(tqparent, name), inverse(false),
KCalculator::KCalculator(TQWidget *parent, const char *name)
: KMainWindow(parent, name), inverse(false),
hyp_mode(false), memory_num(0.0), calc_display(NULL),
mInternalSpacing(4), core()
{
@ -471,12 +471,12 @@ void KCalculator::setupStatusbar(void)
statusBar()->setItemAlignment(3, AlignCenter);
}
TQWidget* KCalculator::setupNumericKeys(TQWidget *tqparent)
TQWidget* KCalculator::setupNumericKeys(TQWidget *parent)
{
Q_CHECK_PTR(mSmallPage);
Q_CHECK_PTR(mLargePage);
TQWidget *thisPage = new TQWidget(tqparent);
TQWidget *thisPage = new TQWidget(parent);
KCalcButton *tmp_pb;
@ -741,33 +741,33 @@ TQWidget* KCalculator::setupNumericKeys(TQWidget *tqparent)
return thisPage;
}
void KCalculator::setupLogicKeys(TQWidget *tqparent)
void KCalculator::setupLogicKeys(TQWidget *parent)
{
Q_CHECK_PTR(tqparent);
Q_CHECK_PTR(parent);
KCalcButton *tmp_pb;
tmp_pb = new KCalcButton("AND", tqparent, "AND-Button", i18n("Bitwise AND"));
tmp_pb = new KCalcButton("AND", parent, "AND-Button", i18n("Bitwise AND"));
pbLogic.insert("AND", tmp_pb);
tmp_pb->setAccel(Key_Ampersand);
connect(TQT_TQOBJECT(this), TQT_SIGNAL(switchShowAccels(bool)),
tmp_pb, TQT_SLOT(slotSetAccelDisplayMode(bool)));
connect(tmp_pb, TQT_SIGNAL(clicked(void)), TQT_SLOT(slotANDclicked(void)));
tmp_pb = new KCalcButton("OR", tqparent, "OR-Button", i18n("Bitwise OR"));
tmp_pb = new KCalcButton("OR", parent, "OR-Button", i18n("Bitwise OR"));
pbLogic.insert("OR", tmp_pb);
tmp_pb->setAccel(Key_Bar);
connect(TQT_TQOBJECT(this), TQT_SIGNAL(switchShowAccels(bool)),
tmp_pb, TQT_SLOT(slotSetAccelDisplayMode(bool)));
connect(tmp_pb, TQT_SIGNAL(clicked(void)), TQT_SLOT(slotORclicked(void)));
tmp_pb = new KCalcButton("XOR", tqparent, "XOR-Button", i18n("Bitwise XOR"));
tmp_pb = new KCalcButton("XOR", parent, "XOR-Button", i18n("Bitwise XOR"));
pbLogic.insert("XOR", tmp_pb);
connect(TQT_TQOBJECT(this), TQT_SIGNAL(switchShowAccels(bool)),
tmp_pb, TQT_SLOT(slotSetAccelDisplayMode(bool)));
connect(tmp_pb, TQT_SIGNAL(clicked(void)), TQT_SLOT(slotXORclicked(void)));
tmp_pb = new KCalcButton("Cmp", tqparent, "One-Complement-Button",
tmp_pb = new KCalcButton("Cmp", parent, "One-Complement-Button",
i18n("One's complement"));
pbLogic.insert("One-Complement", tmp_pb);
tmp_pb->setAccel(Key_AsciiTilde);
@ -775,7 +775,7 @@ void KCalculator::setupLogicKeys(TQWidget *tqparent)
tmp_pb, TQT_SLOT(slotSetAccelDisplayMode(bool)));
connect(tmp_pb, TQT_SIGNAL(clicked(void)), TQT_SLOT(slotNegateclicked(void)));
tmp_pb = new KCalcButton("Lsh", tqparent, "LeftBitShift-Button",
tmp_pb = new KCalcButton("Lsh", parent, "LeftBitShift-Button",
i18n("Left bit shift"));
tmp_pb->setAccel(Key_Less);
pbLogic.insert("LeftShift", tmp_pb);
@ -784,7 +784,7 @@ void KCalculator::setupLogicKeys(TQWidget *tqparent)
connect(tmp_pb, TQT_SIGNAL(clicked(void)),
TQT_SLOT(slotLeftShiftclicked(void)));
tmp_pb = new KCalcButton("Rsh", tqparent, "RightBitShift-Button",
tmp_pb = new KCalcButton("Rsh", parent, "RightBitShift-Button",
i18n("Right bit shift"));
tmp_pb->setAccel(Key_Greater);
pbLogic.insert("RightShift", tmp_pb);
@ -794,13 +794,13 @@ void KCalculator::setupLogicKeys(TQWidget *tqparent)
TQT_SLOT(slotRightShiftclicked(void)));
}
void KCalculator::setupScientificKeys(TQWidget *tqparent)
void KCalculator::setupScientificKeys(TQWidget *parent)
{
Q_CHECK_PTR(tqparent);
Q_CHECK_PTR(parent);
KCalcButton *tmp_pb;
tmp_pb = new KCalcButton("Hyp", tqparent, "Hyp-Button", i18n("Hyperbolic mode"));
tmp_pb = new KCalcButton("Hyp", parent, "Hyp-Button", i18n("Hyperbolic mode"));
pbScientific.insert("HypMode", tmp_pb);
tmp_pb->setAccel(Key_H);
connect(TQT_TQOBJECT(this), TQT_SIGNAL(switchShowAccels(bool)),
@ -808,7 +808,7 @@ void KCalculator::setupScientificKeys(TQWidget *tqparent)
connect(tmp_pb, TQT_SIGNAL(toggled(bool)), TQT_SLOT(slotHyptoggled(bool)));
tmp_pb->setToggleButton(true);
tmp_pb = new KCalcButton(tqparent, "Sin-Button");
tmp_pb = new KCalcButton(parent, "Sin-Button");
pbScientific.insert("Sine", tmp_pb);
tmp_pb->addMode(ModeNormal, "Sin", i18n("Sine"));
tmp_pb->addMode(ModeInverse, "Asin", i18n("Arc sine"));
@ -822,7 +822,7 @@ void KCalculator::setupScientificKeys(TQWidget *tqparent)
tmp_pb, TQT_SLOT(slotSetMode(ButtonModeFlags,bool)));
connect(tmp_pb, TQT_SIGNAL(clicked(void)), TQT_SLOT(slotSinclicked(void)));
tmp_pb = new KCalcButton(tqparent, "Cos-Button");
tmp_pb = new KCalcButton(parent, "Cos-Button");
pbScientific.insert("Cosine", tmp_pb);
tmp_pb->addMode(ModeNormal, "Cos", i18n("Cosine"));
tmp_pb->addMode(ModeInverse, "Acos", i18n("Arc cosine"));
@ -836,7 +836,7 @@ void KCalculator::setupScientificKeys(TQWidget *tqparent)
tmp_pb, TQT_SLOT(slotSetMode(ButtonModeFlags,bool)));
connect(tmp_pb, TQT_SIGNAL(clicked(void)), TQT_SLOT(slotCosclicked(void)));
tmp_pb = new KCalcButton(tqparent, "Tan-Button");
tmp_pb = new KCalcButton(parent, "Tan-Button");
pbScientific.insert("Tangent", tmp_pb);
tmp_pb->addMode(ModeNormal, "Tan", i18n("Tangent"));
tmp_pb->addMode(ModeInverse, "Atan", i18n("Arc tangent"));
@ -850,7 +850,7 @@ void KCalculator::setupScientificKeys(TQWidget *tqparent)
tmp_pb, TQT_SLOT(slotSetMode(ButtonModeFlags,bool)));
connect(tmp_pb, TQT_SIGNAL(clicked(void)),TQT_SLOT(slotTanclicked(void)));
tmp_pb = new KCalcButton(tqparent, "Ln-Button");
tmp_pb = new KCalcButton(parent, "Ln-Button");
tmp_pb->addMode(ModeNormal, "Ln", i18n("Natural log"));
tmp_pb->addMode(ModeInverse, "e<sup> x </sup>", i18n("Exponential function"),
true);
@ -862,7 +862,7 @@ void KCalculator::setupScientificKeys(TQWidget *tqparent)
tmp_pb, TQT_SLOT(slotSetMode(ButtonModeFlags,bool)));
connect(tmp_pb, TQT_SIGNAL(clicked(void)), TQT_SLOT(slotLnclicked(void)));
tmp_pb = new KCalcButton(tqparent, "Log-Button");
tmp_pb = new KCalcButton(parent, "Log-Button");
tmp_pb->addMode(ModeNormal, "Log", i18n("Logarithm to base 10"));
tmp_pb->addMode(ModeInverse, "10<sup> x </sup>", i18n("10 to the power of x"),
true);
@ -876,13 +876,13 @@ void KCalculator::setupScientificKeys(TQWidget *tqparent)
}
void KCalculator::setupStatisticKeys(TQWidget *tqparent)
void KCalculator::setupStatisticKeys(TQWidget *parent)
{
Q_CHECK_PTR(tqparent);
Q_CHECK_PTR(parent);
KCalcButton *tmp_pb;
tmp_pb = new KCalcButton(tqparent, "Stat.NumData-Button");
tmp_pb = new KCalcButton(parent, "Stat.NumData-Button");
tmp_pb->addMode(ModeNormal, "N", i18n("Number of data entered"));
tmp_pb->addMode(ModeInverse, TQString::fromUtf8("\xce\xa3")
+ "x", i18n("Sum of all data items"));
@ -894,7 +894,7 @@ void KCalculator::setupStatisticKeys(TQWidget *tqparent)
tmp_pb, TQT_SLOT(slotSetMode(ButtonModeFlags,bool)));
connect(tmp_pb, TQT_SIGNAL(clicked(void)), TQT_SLOT(slotStatNumclicked(void)));
tmp_pb = new KCalcButton(tqparent, "Stat.Median-Button");
tmp_pb = new KCalcButton(parent, "Stat.Median-Button");
tmp_pb->addMode(ModeNormal, "Med", i18n("Median"));
pbStat.insert("Median", tmp_pb);
mStatButtonList.append(tmp_pb);
@ -903,7 +903,7 @@ void KCalculator::setupStatisticKeys(TQWidget *tqparent)
tmp_pb, TQT_SLOT(slotSetAccelDisplayMode(bool)));
connect(tmp_pb, TQT_SIGNAL(clicked(void)), TQT_SLOT(slotStatMedianclicked(void)));
tmp_pb = new KCalcButton(tqparent, "Stat.Mean-Button");
tmp_pb = new KCalcButton(parent, "Stat.Mean-Button");
tmp_pb->addMode(ModeNormal, "Mea", i18n("Mean"));
tmp_pb->addMode(ModeInverse, TQString::fromUtf8("\xce\xa3")
+ "x<sup>2</sup>",
@ -916,7 +916,7 @@ void KCalculator::setupStatisticKeys(TQWidget *tqparent)
tmp_pb, TQT_SLOT(slotSetMode(ButtonModeFlags,bool)));
connect(tmp_pb, TQT_SIGNAL(clicked(void)), TQT_SLOT(slotStatMeanclicked(void)));
tmp_pb = new KCalcButton(tqparent, "Stat.StandardDeviation-Button");
tmp_pb = new KCalcButton(parent, "Stat.StandardDeviation-Button");
tmp_pb->addMode(ModeNormal, TQString::fromUtf8("ฯƒ",-1) + "<sub>N-1</sub>",
i18n("Sample standard deviation"), true);
tmp_pb->addMode(ModeInverse, TQString::fromUtf8("ฯƒ",-1) + "<sub>N</sub>",
@ -929,7 +929,7 @@ void KCalculator::setupStatisticKeys(TQWidget *tqparent)
tmp_pb, TQT_SLOT(slotSetMode(ButtonModeFlags,bool)));
connect(tmp_pb, TQT_SIGNAL(clicked(void)), TQT_SLOT(slotStatStdDevclicked(void)));
tmp_pb = new KCalcButton(tqparent, "Stat.DataInput-Button");
tmp_pb = new KCalcButton(parent, "Stat.DataInput-Button");
tmp_pb->addMode(ModeNormal, "Dat", i18n("Enter data"));
tmp_pb->addMode(ModeInverse, "CDat", i18n("Delete last data item"));
pbStat.insert("InputData", tmp_pb);
@ -940,7 +940,7 @@ void KCalculator::setupStatisticKeys(TQWidget *tqparent)
tmp_pb, TQT_SLOT(slotSetMode(ButtonModeFlags,bool)));
connect(tmp_pb, TQT_SIGNAL(clicked(void)), TQT_SLOT(slotStatDataInputclicked(void)));
tmp_pb = new KCalcButton(tqparent, "Stat.ClearData-Button");
tmp_pb = new KCalcButton(parent, "Stat.ClearData-Button");
tmp_pb->addMode(ModeNormal, "CSt", i18n("Clear data store"));
pbStat.insert("ClearData", tmp_pb);
mStatButtonList.append(tmp_pb);
@ -949,16 +949,16 @@ void KCalculator::setupStatisticKeys(TQWidget *tqparent)
connect(tmp_pb, TQT_SIGNAL(clicked(void)), TQT_SLOT(slotStatClearDataclicked(void)));
}
void KCalculator::setupConstantsKeys(TQWidget *tqparent)
void KCalculator::setupConstantsKeys(TQWidget *parent)
{
Q_CHECK_PTR(tqparent);
Q_CHECK_PTR(parent);
ConstButtonGroup = new TQButtonGroup(0, "Const-Button-Group");
connect(ConstButtonGroup, TQT_SIGNAL(clicked(int)), TQT_SLOT(slotConstclicked(int)));
KCalcConstButton *tmp_pb;
tmp_pb = new KCalcConstButton(tqparent, 0, "C1");
tmp_pb = new KCalcConstButton(parent, 0, "C1");
tmp_pb->setAccel(ALT + Key_1);
pbConstant[0] = tmp_pb;
connect(TQT_TQOBJECT(this), TQT_SIGNAL(switchShowAccels(bool)),
@ -967,7 +967,7 @@ void KCalculator::setupConstantsKeys(TQWidget *tqparent)
tmp_pb, TQT_SLOT(slotSetMode(ButtonModeFlags,bool)));
ConstButtonGroup->insert(tmp_pb, 0);
tmp_pb = new KCalcConstButton(tqparent, 1, "C2");
tmp_pb = new KCalcConstButton(parent, 1, "C2");
tmp_pb->setAccel(ALT + Key_2);
pbConstant[1] = tmp_pb;
connect(TQT_TQOBJECT(this), TQT_SIGNAL(switchShowAccels(bool)),
@ -976,7 +976,7 @@ void KCalculator::setupConstantsKeys(TQWidget *tqparent)
tmp_pb, TQT_SLOT(slotSetMode(ButtonModeFlags,bool)));
ConstButtonGroup->insert(tmp_pb, 1);
tmp_pb = new KCalcConstButton(tqparent, 2, "C3");
tmp_pb = new KCalcConstButton(parent, 2, "C3");
tmp_pb->setAccel(ALT + Key_3);
pbConstant[2] = tmp_pb;
connect(TQT_TQOBJECT(this), TQT_SIGNAL(switchShowAccels(bool)),
@ -985,7 +985,7 @@ void KCalculator::setupConstantsKeys(TQWidget *tqparent)
tmp_pb, TQT_SLOT(slotSetMode(ButtonModeFlags,bool)));
ConstButtonGroup->insert(tmp_pb, 2);
tmp_pb = new KCalcConstButton(tqparent, 3, "C4");
tmp_pb = new KCalcConstButton(parent, 3, "C4");
tmp_pb->setAccel(ALT + Key_4);
pbConstant[3] = tmp_pb;
connect(TQT_TQOBJECT(this), TQT_SIGNAL(switchShowAccels(bool)),
@ -994,7 +994,7 @@ void KCalculator::setupConstantsKeys(TQWidget *tqparent)
tmp_pb, TQT_SLOT(slotSetMode(ButtonModeFlags,bool)));
ConstButtonGroup->insert(tmp_pb, 3);
tmp_pb = new KCalcConstButton(tqparent, 4, "C5");
tmp_pb = new KCalcConstButton(parent, 4, "C5");
tmp_pb->setAccel(ALT + Key_5);
pbConstant[4] = tmp_pb;
connect(TQT_TQOBJECT(this), TQT_SIGNAL(switchShowAccels(bool)),
@ -1003,7 +1003,7 @@ void KCalculator::setupConstantsKeys(TQWidget *tqparent)
tmp_pb, TQT_SLOT(slotSetMode(ButtonModeFlags,bool)));
ConstButtonGroup->insert(tmp_pb, 4);
tmp_pb = new KCalcConstButton(tqparent, 5, "C6");
tmp_pb = new KCalcConstButton(parent, 5, "C6");
tmp_pb->setAccel(ALT + Key_6);
pbConstant[5] = tmp_pb;
connect(TQT_TQOBJECT(this), TQT_SIGNAL(switchShowAccels(bool)),

@ -64,7 +64,7 @@ class KCalculator : public KMainWindow
TQ_OBJECT
public:
KCalculator(TQWidget *tqparent = 0, const char *name = 0);
KCalculator(TQWidget *parent = 0, const char *name = 0);
~KCalculator();
signals:
@ -77,11 +77,11 @@ private:
void updateGeometry();
void setupMainActions(void);
void setupStatusbar(void);
TQWidget *setupNumericKeys(TQWidget *tqparent);
void setupLogicKeys(TQWidget *tqparent);
void setupScientificKeys(TQWidget *tqparent);
void setupStatisticKeys(TQWidget *tqparent);
void setupConstantsKeys(TQWidget *tqparent);
TQWidget *setupNumericKeys(TQWidget *parent);
void setupLogicKeys(TQWidget *parent);
void setupScientificKeys(TQWidget *parent);
void setupStatisticKeys(TQWidget *parent);
void setupConstantsKeys(TQWidget *parent);
void keyPressEvent(TQKeyEvent *e);
void keyReleaseEvent(TQKeyEvent *e);
void set_precision();

@ -30,16 +30,16 @@
#include "kcalc_button.h"
KCalcButton::KCalcButton(TQWidget * tqparent, const char * name)
: KPushButton(tqparent, name), _show_accel_mode(false),
KCalcButton::KCalcButton(TQWidget * parent, const char * name)
: KPushButton(parent, name), _show_accel_mode(false),
_mode_flags(ModeNormal)
{
setAutoDefault(false);
}
KCalcButton::KCalcButton(const TQString &label, TQWidget * tqparent,
KCalcButton::KCalcButton(const TQString &label, TQWidget * parent,
const char * name, const TQString &tooltip)
: KPushButton(label, tqparent, name), _show_accel_mode(false), _mode_flags(ModeNormal)
: KPushButton(label, parent, name), _show_accel_mode(false), _mode_flags(ModeNormal)
{
setAutoDefault(false);
addMode(ModeNormal, label, tooltip);

@ -64,8 +64,8 @@ Q_OBJECT
TQ_OBJECT
public:
KCalcButton(TQWidget *tqparent, const char * name = 0);
KCalcButton(const TQString &label, TQWidget *tqparent, const char * name = 0,
KCalcButton(TQWidget *parent, const char * name = 0);
KCalcButton(const TQString &label, TQWidget *parent, const char * name = 0,
const TQString &tooltip = TQString());
void addMode(ButtonModeFlags mode, TQString label, TQString tooltip, bool is_label_richtext = false);
@ -93,11 +93,11 @@ Q_OBJECT
TQ_OBJECT
public:
KSquareButton(TQWidget *tqparent, const char * name = 0)
: KCalcButton(tqparent, name) { };
KSquareButton(const TQString &label, TQWidget *tqparent, const char * name = 0,
KSquareButton(TQWidget *parent, const char * name = 0)
: KCalcButton(parent, name) { };
KSquareButton(const TQString &label, TQWidget *parent, const char * name = 0,
const TQString &tooltip = TQString())
: KCalcButton(label, tqparent, name, tooltip) { };
: KCalcButton(label, parent, name, tooltip) { };
protected:
virtual void drawButtonLabel(TQPainter *paint);

@ -31,8 +31,8 @@
#include "kcalc_settings.h"
KCalcConstButton::KCalcConstButton(TQWidget *tqparent, int but_num, const char * name)
: KCalcButton(tqparent, name), _button_num(but_num)
KCalcConstButton::KCalcConstButton(TQWidget *parent, int but_num, const char * name)
: KCalcButton(parent, name), _button_num(but_num)
{
addMode(ModeInverse, "Store", i18n("Write display data into memory"));
@ -40,9 +40,9 @@ KCalcConstButton::KCalcConstButton(TQWidget *tqparent, int but_num, const char *
}
KCalcConstButton::KCalcConstButton(const TQString &label, TQWidget *tqparent, int but_num,
KCalcConstButton::KCalcConstButton(const TQString &label, TQWidget *parent, int but_num,
const char * name, const TQString &tooltip)
: KCalcButton(label, tqparent, name, tooltip), _button_num(but_num)
: KCalcButton(label, parent, name, tooltip), _button_num(but_num)
{
addMode(ModeInverse, "Store", i18n("Write display data into memory"));

@ -35,9 +35,9 @@ Q_OBJECT
public:
KCalcConstButton(TQWidget *tqparent, int but_num, const char * name = 0);
KCalcConstButton(TQWidget *parent, int but_num, const char * name = 0);
KCalcConstButton(const TQString &label, TQWidget *tqparent, int but_num, const char * name = 0,
KCalcConstButton(const TQString &label, TQWidget *parent, int but_num, const char * name = 0,
const TQString &tooltip = TQString());
TQString constant(void) const;

@ -49,8 +49,8 @@ const struct science_constant KCalcConstMenu::Constants[] = {
{"N_A", I18N_NOOP("Avogadro's Number"), "", "6.0221415e23", Thermodynamics}
};
KCalcConstMenu::KCalcConstMenu(TQWidget * tqparent, const char * name)
: TQPopupMenu(tqparent, name)
KCalcConstMenu::KCalcConstMenu(TQWidget * parent, const char * name)
: TQPopupMenu(parent, name)
{
TQPopupMenu *math_menu = new TQPopupMenu(this, "mathematical constants");
TQPopupMenu *em_menu = new TQPopupMenu(this, "electromagnetic constants");

@ -42,7 +42,7 @@ class KCalcConstMenu : public TQPopupMenu
TQ_OBJECT
public:
KCalcConstMenu(TQWidget * tqparent = 0, const char * name = 0);
KCalcConstMenu(TQWidget * parent = 0, const char * name = 0);
static const struct science_constant Constants[];

@ -39,8 +39,8 @@
#include "kcalcdisplay.moc"
KCalcDisplay::KCalcDisplay(TQWidget *tqparent, const char *name)
:TQLabel(tqparent,name), _beep(false), _groupdigits(false), _button(0), _lit(false),
KCalcDisplay::KCalcDisplay(TQWidget *parent, const char *name)
:TQLabel(parent,name), _beep(false), _groupdigits(false), _button(0), _lit(false),
_num_base(NB_DECIMAL), _precision(9),
_fixed_precision(-1), _display_amount(0),
selection_timer(new TQTimer)

@ -82,7 +82,7 @@ Q_OBJECT
TQ_OBJECT
public:
KCalcDisplay(TQWidget *tqparent=0, const char *name=0);
KCalcDisplay(TQWidget *parent=0, const char *name=0);
~KCalcDisplay();
protected:

@ -21,10 +21,10 @@
/******************************************************************/
//==================================================================
KCharSelectDia::KCharSelectDia(TQWidget *tqparent,const char *name,
KCharSelectDia::KCharSelectDia(TQWidget *parent,const char *name,
const TQChar &_chr,const TQString &_font,
int _tableNum, bool direction)
: KMainWindow(tqparent,name), vChr(_chr), vFont(_font)
: KMainWindow(parent,name), vChr(_chr), vFont(_font)
{