rename the following methods:

tqparent parent
tqmask mask


git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/krusader@1246260 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru
tpearson 13 years ago
parent acd0828c7a
commit c5bf17eba3

@ -131,13 +131,13 @@ struct hs_primary_descriptor {
char root_directory_record [ISODCL (181, 214)]; /* 9.1 */ char root_directory_record [ISODCL (181, 214)]; /* 9.1 */
}; };
/* We use this to help us look up the tqparent inode numbers. */ /* We use this to help us look up the parent inode numbers. */
struct iso_path_table{ struct iso_path_table{
char name_len[1]; /* 711 */ char name_len[1]; /* 711 */
char ext_attr_length[1]; /* 711 */ char ext_attr_length[1]; /* 711 */
char extent[4]; /* 731 */ char extent[4]; /* 731 */
char tqparent[2]; /* 721 */ char parent[2]; /* 721 */
char name[1]; char name[1];
}; };

@ -45,7 +45,7 @@ typedef struct _rr_entry {
int serno; int serno;
int dev_major; int dev_major;
int dev_minor; int dev_minor;
int pl; /* tqparent location */ int pl; /* parent location */
int cl; /* child location */ int cl; /* child location */
int re; /* relocated */ int re; /* relocated */
char z_algo[2]; /* zizofs algorithm */ char z_algo[2]; /* zizofs algorithm */
@ -62,7 +62,7 @@ typedef struct _iso_vol_desc {
typedef struct _boot_entry { typedef struct _boot_entry {
struct _boot_entry *next; struct _boot_entry *next;
struct _boot_entry *prev; struct _boot_entry *prev;
struct _boot_entry *tqparent; struct _boot_entry *parent;
struct _boot_entry *child; struct _boot_entry *child;
char data[32]; char data[32];
} }

@ -888,10 +888,10 @@ UDSEntryList* kio_krarcProtocol::addNewDir(TQString path){
dir = dirDict.find(path); dir = dirDict.find(path);
if(dir != 0) return dir; // dir exists- return it ! if(dir != 0) return dir; // dir exists- return it !
// set dir to the tqparent dir // set dir to the parent dir
dir = addNewDir(path.left(path.findRev("/",-2)+1)); dir = addNewDir(path.left(path.findRev("/",-2)+1));
// add a new entry in the tqparent dir // add a new entry in the parent dir
TQString name = path.mid(path.findRev("/",-2)+1); TQString name = path.mid(path.findRev("/",-2)+1);
name = name.left(name.length()-1); name = name.left(name.length()-1);

@ -20,8 +20,8 @@
#include "../UserAction/useraction.h" #include "../UserAction/useraction.h"
ActionMan::ActionMan( TQWidget * tqparent ) ActionMan::ActionMan( TQWidget * parent )
: KDialogBase( tqparent, "ActionMan", true /*modal*/, "ActionMan - Manage your useractions", KDialogBase::Apply | KDialogBase::Close ) : KDialogBase( parent, "ActionMan", true /*modal*/, "ActionMan - Manage your useractions", KDialogBase::Apply | KDialogBase::Close )
{ {
setPlainCaption(i18n("ActionMan - Manage Your Useractions")); setPlainCaption(i18n("ActionMan - Manage Your Useractions"));

@ -21,7 +21,7 @@ class ActionMan : public KDialogBase {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
ActionMan( TQWidget* tqparent=0 ); ActionMan( TQWidget* parent=0 );
~ActionMan(); ~ActionMan();
protected slots: protected slots:

@ -35,8 +35,8 @@
#define ICON(N) KGlobal::iconLoader()->loadIcon(N, KIcon::Small) #define ICON(N) KGlobal::iconLoader()->loadIcon(N, KIcon::Small)
ActionProperty::ActionProperty( TQWidget *tqparent, const char *name, KrAction *action ) ActionProperty::ActionProperty( TQWidget *parent, const char *name, KrAction *action )
: ActionPropertyBase( tqparent, name ), _modified(false) : ActionPropertyBase( parent, name ), _modified(false)
{ {
if ( action ) { if ( action ) {
_action = action; _action = action;

@ -26,7 +26,7 @@ class ActionProperty : public ActionPropertyBase {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
ActionProperty( TQWidget *tqparent=0, const char *name=0, KrAction *action=0 ); ActionProperty( TQWidget *parent=0, const char *name=0, KrAction *action=0 );
~ActionProperty(); ~ActionProperty();
/** /**

@ -37,11 +37,11 @@
#include "klistbox.h" #include "klistbox.h"
/* /*
* Constructs a ActionPropertyBase as a child of 'tqparent', with the * Constructs a ActionPropertyBase as a child of 'parent', with the
* name 'name' and widget flags set to 'f'. * name 'name' and widget flags set to 'f'.
*/ */
ActionPropertyBase::ActionPropertyBase( TQWidget* tqparent, const char* name, WFlags fl ) ActionPropertyBase::ActionPropertyBase( TQWidget* parent, const char* name, WFlags fl )
: TQWidget( tqparent, name, fl ) : TQWidget( parent, name, fl )
{ {
if ( !name ) if ( !name )
setName( "ActionPropertyBase" ); setName( "ActionPropertyBase" );

@ -44,7 +44,7 @@
#define EXECUTABLE_ID 0xFFFF #define EXECUTABLE_ID 0xFFFF
AddPlaceholderPopup::AddPlaceholderPopup( TQWidget *tqparent ) : KPopupMenu( tqparent ) { AddPlaceholderPopup::AddPlaceholderPopup( TQWidget *parent ) : KPopupMenu( parent ) {
_activeSub = new KPopupMenu( this ); _activeSub = new KPopupMenu( this );
_otherSub = new KPopupMenu( this ); _otherSub = new KPopupMenu( this );
@ -132,7 +132,7 @@ TQString AddPlaceholderPopup::getPlaceholder( const TQPoint& pos ) {
/////////////////////////////// ParameterDialog //////////////////////////////////// /////////////////////////////// ParameterDialog ////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////////////////
ParameterDialog::ParameterDialog( const exp_placeholder* currentPlaceholder, TQWidget *tqparent ) : KDialogBase( Plain, i18n("User Action Parameter Dialog"), Default | Ok, Ok, tqparent ) { ParameterDialog::ParameterDialog( const exp_placeholder* currentPlaceholder, TQWidget *parent ) : KDialogBase( Plain, i18n("User Action Parameter Dialog"), Default | Ok, Ok, parent ) {
_parameter.clear(); _parameter.clear();
_parameterCount = currentPlaceholder->parameterCount(); _parameterCount = currentPlaceholder->parameterCount();
@ -219,7 +219,7 @@ void ParameterDialog::slotOk() {
} }
///////////// ParameterText ///////////// ParameterText
ParameterText::ParameterText( const exp_parameter& parameter, TQWidget* tqparent ) : ParameterBase( parameter, tqparent ) { ParameterText::ParameterText( const exp_parameter& parameter, TQWidget* parent ) : ParameterBase( parameter, parent ) {
TQVBoxLayout* tqlayout = new TQVBoxLayout( this ); TQVBoxLayout* tqlayout = new TQVBoxLayout( this );
tqlayout->setAutoAdd( true ); tqlayout->setAutoAdd( true );
tqlayout->setSpacing( 6 ); tqlayout->setSpacing( 6 );
@ -246,7 +246,7 @@ bool ParameterText::valid() {
} }
///////////// ParameterPlaceholder ///////////// ParameterPlaceholder
ParameterPlaceholder::ParameterPlaceholder( const exp_parameter& parameter, TQWidget* tqparent ) : ParameterBase( parameter, tqparent ) { ParameterPlaceholder::ParameterPlaceholder( const exp_parameter& parameter, TQWidget* parent ) : ParameterBase( parameter, parent ) {
TQVBoxLayout* tqlayout = new TQVBoxLayout( this ); TQVBoxLayout* tqlayout = new TQVBoxLayout( this );
tqlayout->setAutoAdd( true ); tqlayout->setAutoAdd( true );
tqlayout->setSpacing( 6 ); tqlayout->setSpacing( 6 );
@ -283,7 +283,7 @@ void ParameterPlaceholder::addPlaceholder() {
} }
///////////// ParameterYes ///////////// ParameterYes
ParameterYes::ParameterYes( const exp_parameter& parameter, TQWidget* tqparent ) : ParameterBase( parameter, tqparent ) { ParameterYes::ParameterYes( const exp_parameter& parameter, TQWidget* parent ) : ParameterBase( parameter, parent ) {
TQVBoxLayout* tqlayout = new TQVBoxLayout( this ); TQVBoxLayout* tqlayout = new TQVBoxLayout( this );
tqlayout->setAutoAdd( true ); tqlayout->setAutoAdd( true );
tqlayout->setSpacing( 6 ); tqlayout->setSpacing( 6 );
@ -309,7 +309,7 @@ bool ParameterYes::valid() {
} }
///////////// ParameterNo ///////////// ParameterNo
ParameterNo::ParameterNo( const exp_parameter& parameter, TQWidget* tqparent ) : ParameterBase( parameter, tqparent ) { ParameterNo::ParameterNo( const exp_parameter& parameter, TQWidget* parent ) : ParameterBase( parameter, parent ) {
TQVBoxLayout* tqlayout = new TQVBoxLayout( this ); TQVBoxLayout* tqlayout = new TQVBoxLayout( this );
tqlayout->setAutoAdd( true ); tqlayout->setAutoAdd( true );
tqlayout->setSpacing( 6 ); tqlayout->setSpacing( 6 );
@ -335,7 +335,7 @@ bool ParameterNo::valid() {
} }
///////////// ParameterFile ///////////// ParameterFile
ParameterFile::ParameterFile( const exp_parameter& parameter, TQWidget* tqparent ) : ParameterBase( parameter, tqparent ) { ParameterFile::ParameterFile( const exp_parameter& parameter, TQWidget* parent ) : ParameterBase( parameter, parent ) {
TQVBoxLayout* tqlayout = new TQVBoxLayout( this ); TQVBoxLayout* tqlayout = new TQVBoxLayout( this );
tqlayout->setAutoAdd( true ); tqlayout->setAutoAdd( true );
tqlayout->setSpacing( 6 ); tqlayout->setSpacing( 6 );
@ -371,7 +371,7 @@ void ParameterFile::addFile() {
} }
///////////// ParameterChoose ///////////// ParameterChoose
ParameterChoose::ParameterChoose( const exp_parameter& parameter, TQWidget* tqparent ) : ParameterBase( parameter, tqparent ) { ParameterChoose::ParameterChoose( const exp_parameter& parameter, TQWidget* parent ) : ParameterBase( parameter, parent ) {
TQVBoxLayout* tqlayout = new TQVBoxLayout( this ); TQVBoxLayout* tqlayout = new TQVBoxLayout( this );
tqlayout->setAutoAdd( true ); tqlayout->setAutoAdd( true );
tqlayout->setSpacing( 6 ); tqlayout->setSpacing( 6 );
@ -395,7 +395,7 @@ bool ParameterChoose::valid() {
} }
///////////// ParameterSelect ///////////// ParameterSelect
ParameterSelect::ParameterSelect( const exp_parameter& parameter, TQWidget* tqparent ) : ParameterBase( parameter, tqparent ) { ParameterSelect::ParameterSelect( const exp_parameter& parameter, TQWidget* parent ) : ParameterBase( parameter, parent ) {
TQVBoxLayout* tqlayout = new TQVBoxLayout( this ); TQVBoxLayout* tqlayout = new TQVBoxLayout( this );
tqlayout->setAutoAdd( true ); tqlayout->setAutoAdd( true );
tqlayout->setSpacing( 6 ); tqlayout->setSpacing( 6 );
@ -427,7 +427,7 @@ bool ParameterSelect::valid() {
} }
///////////// ParameterGoto ///////////// ParameterGoto
ParameterGoto::ParameterGoto( const exp_parameter& parameter, TQWidget* tqparent ) : ParameterBase( parameter, tqparent ) { ParameterGoto::ParameterGoto( const exp_parameter& parameter, TQWidget* parent ) : ParameterBase( parameter, parent ) {
TQVBoxLayout* tqlayout = new TQVBoxLayout( this ); TQVBoxLayout* tqlayout = new TQVBoxLayout( this );
tqlayout->setAutoAdd( true ); tqlayout->setAutoAdd( true );
tqlayout->setSpacing( 6 ); tqlayout->setSpacing( 6 );
@ -473,7 +473,7 @@ void ParameterGoto::addPlaceholder() {
} }
///////////// ParameterSyncprofile ///////////// ParameterSyncprofile
ParameterSyncprofile::ParameterSyncprofile( const exp_parameter& parameter, TQWidget* tqparent ) : ParameterBase( parameter, tqparent ) { ParameterSyncprofile::ParameterSyncprofile( const exp_parameter& parameter, TQWidget* parent ) : ParameterBase( parameter, parent ) {
TQVBoxLayout* tqlayout = new TQVBoxLayout( this ); TQVBoxLayout* tqlayout = new TQVBoxLayout( this );
tqlayout->setAutoAdd( true ); tqlayout->setAutoAdd( true );
tqlayout->setSpacing( 6 ); tqlayout->setSpacing( 6 );
@ -498,7 +498,7 @@ bool ParameterSyncprofile::valid() {
} }
///////////// ParameterSearch ///////////// ParameterSearch
ParameterSearch::ParameterSearch( const exp_parameter& parameter, TQWidget* tqparent ) : ParameterBase( parameter, tqparent ) { ParameterSearch::ParameterSearch( const exp_parameter& parameter, TQWidget* parent ) : ParameterBase( parameter, parent ) {
TQVBoxLayout* tqlayout = new TQVBoxLayout( this ); TQVBoxLayout* tqlayout = new TQVBoxLayout( this );
tqlayout->setAutoAdd( true ); tqlayout->setAutoAdd( true );
tqlayout->setSpacing( 6 ); tqlayout->setSpacing( 6 );
@ -523,7 +523,7 @@ bool ParameterSearch::valid() {
} }
///////////// ParameterPanelprofile ///////////// ParameterPanelprofile
ParameterPanelprofile::ParameterPanelprofile( const exp_parameter& parameter, TQWidget* tqparent ) : ParameterBase( parameter, tqparent ) { ParameterPanelprofile::ParameterPanelprofile( const exp_parameter& parameter, TQWidget* parent ) : ParameterBase( parameter, parent ) {
TQVBoxLayout* tqlayout = new TQVBoxLayout( this ); TQVBoxLayout* tqlayout = new TQVBoxLayout( this );
tqlayout->setAutoAdd( true ); tqlayout->setAutoAdd( true );
tqlayout->setSpacing( 6 ); tqlayout->setSpacing( 6 );
@ -548,7 +548,7 @@ bool ParameterPanelprofile::valid() {
} }
///////////// ParameterInt ///////////// ParameterInt
ParameterInt::ParameterInt( const exp_parameter& parameter, TQWidget* tqparent ) : ParameterBase( parameter, tqparent ) { ParameterInt::ParameterInt( const exp_parameter& parameter, TQWidget* parent ) : ParameterBase( parameter, parent ) {
TQHBoxLayout* tqlayout = new TQHBoxLayout( this ); TQHBoxLayout* tqlayout = new TQHBoxLayout( this );
tqlayout->setAutoAdd( true ); tqlayout->setAutoAdd( true );
tqlayout->setSpacing( 6 ); tqlayout->setSpacing( 6 );

@ -34,7 +34,7 @@ class KIntSpinBox;
class AddPlaceholderPopup : public KPopupMenu { class AddPlaceholderPopup : public KPopupMenu {
public: public:
AddPlaceholderPopup( TQWidget *tqparent ); AddPlaceholderPopup( TQWidget *parent );
/** /**
* Use this to exec the popup. * Use this to exec the popup.
@ -66,7 +66,7 @@ private:
*/ */
class ParameterBase : public TQWidget { class ParameterBase : public TQWidget {
public: public:
inline ParameterBase( const exp_parameter& parameter, TQWidget* tqparent ) : TQWidget( tqparent ) { _nessesary = parameter.nessesary(); } inline ParameterBase( const exp_parameter& parameter, TQWidget* parent ) : TQWidget( parent ) { _nessesary = parameter.nessesary(); }
/** /**
* @return the text for the parameter * @return the text for the parameter
*/ */
@ -97,7 +97,7 @@ private:
*/ */
class ParameterText : public ParameterBase { class ParameterText : public ParameterBase {
public: public:
ParameterText( const exp_parameter& parameter, TQWidget* tqparent ); ParameterText( const exp_parameter& parameter, TQWidget* parent );
TQString text(); TQString text();
TQString preset(); TQString preset();
void reset(); void reset();
@ -115,7 +115,7 @@ class ParameterPlaceholder : public ParameterBase {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
ParameterPlaceholder( const exp_parameter& parameter, TQWidget* tqparent ); ParameterPlaceholder( const exp_parameter& parameter, TQWidget* parent );
TQString text(); TQString text();
TQString preset(); TQString preset();
void reset(); void reset();
@ -133,7 +133,7 @@ private slots:
*/ */
class ParameterYes : public ParameterBase { class ParameterYes : public ParameterBase {
public: public:
ParameterYes( const exp_parameter& parameter, TQWidget* tqparent ); ParameterYes( const exp_parameter& parameter, TQWidget* parent );
TQString text(); TQString text();
TQString preset(); TQString preset();
void reset(); void reset();
@ -148,7 +148,7 @@ private:
*/ */
class ParameterNo : public ParameterBase { class ParameterNo : public ParameterBase {
public: public:
ParameterNo( const exp_parameter& parameter, TQWidget* tqparent ); ParameterNo( const exp_parameter& parameter, TQWidget* parent );
TQString text(); TQString text();
TQString preset(); TQString preset();
void reset(); void reset();
@ -165,7 +165,7 @@ class ParameterFile : public ParameterBase {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
ParameterFile( const exp_parameter& parameter, TQWidget* tqparent ); ParameterFile( const exp_parameter& parameter, TQWidget* parent );
TQString text(); TQString text();
TQString preset(); TQString preset();
void reset(); void reset();
@ -183,7 +183,7 @@ private slots:
*/ */
class ParameterChoose : public ParameterBase { class ParameterChoose : public ParameterBase {
public: public:
ParameterChoose( const exp_parameter& parameter, TQWidget* tqparent ); ParameterChoose( const exp_parameter& parameter, TQWidget* parent );
TQString text(); TQString text();
TQString preset(); TQString preset();
void reset(); void reset();
@ -198,7 +198,7 @@ private:
*/ */
class ParameterSelect : public ParameterBase { class ParameterSelect : public ParameterBase {
public: public:
ParameterSelect( const exp_parameter& parameter, TQWidget* tqparent ); ParameterSelect( const exp_parameter& parameter, TQWidget* parent );
TQString text(); TQString text();
TQString preset(); TQString preset();
void reset(); void reset();
@ -215,7 +215,7 @@ class ParameterGoto : public ParameterBase {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
ParameterGoto( const exp_parameter& parameter, TQWidget* tqparent ); ParameterGoto( const exp_parameter& parameter, TQWidget* parent );
TQString text(); TQString text();
TQString preset(); TQString preset();
void reset(); void reset();
@ -234,7 +234,7 @@ private slots:
*/ */
class ParameterSyncprofile : public ParameterBase { class ParameterSyncprofile : public ParameterBase {
public: public:
ParameterSyncprofile( const exp_parameter& parameter, TQWidget* tqparent ); ParameterSyncprofile( const exp_parameter& parameter, TQWidget* parent );
TQString text(); TQString text();
TQString preset(); TQString preset();
void reset(); void reset();
@ -249,7 +249,7 @@ private:
*/ */
class ParameterPanelprofile : public ParameterBase { class ParameterPanelprofile : public ParameterBase {
public: public:
ParameterPanelprofile( const exp_parameter& parameter, TQWidget* tqparent ); ParameterPanelprofile( const exp_parameter& parameter, TQWidget* parent );
TQString text(); TQString text();
TQString preset(); TQString preset();
void reset(); void reset();
@ -264,7 +264,7 @@ private:
*/ */
class ParameterSearch : public ParameterBase { class ParameterSearch : public ParameterBase {
public: public:
ParameterSearch( const exp_parameter& parameter, TQWidget* tqparent ); ParameterSearch( const exp_parameter& parameter, TQWidget* parent );
TQString text(); TQString text();
TQString preset(); TQString preset();
void reset(); void reset();
@ -279,7 +279,7 @@ private:
*/ */
class ParameterInt : public ParameterBase { class ParameterInt : public ParameterBase {
public: public:
ParameterInt( const exp_parameter& parameter, TQWidget* tqparent ); ParameterInt( const exp_parameter& parameter, TQWidget* parent );
TQString text(); TQString text();
TQString preset(); TQString preset();
void reset(); void reset();
@ -301,7 +301,7 @@ class ParameterDialog : public KDialogBase {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
ParameterDialog( const exp_placeholder* currentPlaceholder, TQWidget *tqparent ); ParameterDialog( const exp_placeholder* currentPlaceholder, TQWidget *parent );
/** /**
* Use this to execute the dialog. * Use this to execute the dialog.

@ -28,8 +28,8 @@
///////////////////////////// UserActionListView ///////////////////////////////////// ///////////////////////////// UserActionListView /////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////
UserActionListView::UserActionListView( TQWidget * tqparent, const char * name ) UserActionListView::UserActionListView( TQWidget * parent, const char * name )
: KListView( tqparent, name ) : KListView( parent, name )
{ {
addColumn( i18n("Title") ); addColumn( i18n("Title") );
//addColumn( i18n("Identifier") ); //addColumn( i18n("Identifier") );
@ -190,7 +190,7 @@ UserActionListViewItem::UserActionListViewItem( TQListViewItem* item, KrAction *
UserActionListViewItem::~UserActionListViewItem() { UserActionListViewItem::~UserActionListViewItem() {
/* // remove category-item if the last member ofthiscategory disappears /* // remove category-item if the last member ofthiscategory disappears
if ( TQListViewItem* item = dynamic_cast<TQListViewItem*>( tqparent() ) ) { if ( TQListViewItem* item = dynamic_cast<TQListViewItem*>( parent() ) ) {
if ( item->childCount() <= 1 ) if ( item->childCount() <= 1 )
item->deleteLater(); // not possible since not inherited from TQObject item->deleteLater(); // not possible since not inherited from TQObject
}*/ }*/

@ -24,7 +24,7 @@ class TQDomDocument;
*/ */
class UserActionListView : public KListView { class UserActionListView : public KListView {
public: public:
UserActionListView( TQWidget* tqparent = 0, const char* name = 0 ); UserActionListView( TQWidget* parent = 0, const char* name = 0 );
~UserActionListView(); ~UserActionListView();
virtual TQSize tqsizeHint() const; virtual TQSize tqsizeHint() const;

@ -34,8 +34,8 @@
static const char* FILE_FILTER = I18N_NOOP("*.xml|xml-files\n*|all files"); static const char* FILE_FILTER = I18N_NOOP("*.xml|xml-files\n*|all files");
UserActionPage::UserActionPage( TQWidget* tqparent ) UserActionPage::UserActionPage( TQWidget* parent )
: TQWidget( tqparent, "UserActionPage" ) : TQWidget( parent, "UserActionPage" )
{ {
TQVBoxLayout* tqlayout = new TQVBoxLayout( this, 0, 6, "UserActionPageLayout" ); // 0px margin, 6px item-spacing TQVBoxLayout* tqlayout = new TQVBoxLayout( this, 0, 6, "UserActionPageLayout" ); // 0px margin, 6px item-spacing
@ -83,7 +83,7 @@ UserActionPage::UserActionPage( TQWidget* tqparent )
// ======== pseudo-toolbar end ======== // ======== pseudo-toolbar end ========
/* This seems obsolete now! /* This seems obsolete now!
// Display some help // Display some help
KMessageBox::information( this, // tqparent KMessageBox::information( this, // parent
i18n( "When you apply changes to an action, the modifications " i18n( "When you apply changes to an action, the modifications "
"become available in the current session immediately.\n" "become available in the current session immediately.\n"
"When closing ActionMan, you will be asked to save the changes permanently." "When closing ActionMan, you will be asked to save the changes permanently."
@ -199,7 +199,7 @@ void UserActionPage::slotRemoveAction() {
if ( ! dynamic_cast<UserActionListViewItem*>( actionTree->currentItem() ) ) if ( ! dynamic_cast<UserActionListViewItem*>( actionTree->currentItem() ) )
return; return;
int messageDelete = KMessageBox::warningContinueCancel ( this, //tqparent int messageDelete = KMessageBox::warningContinueCancel ( this, //parent
i18n("Are you sure that you want to remove all selected actions?"), //text i18n("Are you sure that you want to remove all selected actions?"), //text
i18n("Remove selected actions?"), //caption i18n("Remove selected actions?"), //caption
i18n("Remove"), //Label for the continue-button i18n("Remove"), //Label for the continue-button
@ -242,7 +242,7 @@ void UserActionPage::slotExport() {
int answer = 0; int answer = 0;
if( file.open( IO_ReadOnly ) ) { // getting here, means the file already exists an can be read if( file.open( IO_ReadOnly ) ) { // getting here, means the file already exists an can be read
if( doc.setContent( &file ) ) // getting here means the file exists and already contains an UserAction-XML-tree if( doc.setContent( &file ) ) // getting here means the file exists and already contains an UserAction-XML-tree
answer = KMessageBox::warningYesNoCancel( this, //tqparent answer = KMessageBox::warningYesNoCancel( this, //parent
i18n("This file already contains some useractions.\nDo you want to overwrite it or should it be merged with the selected actions?"), //text i18n("This file already contains some useractions.\nDo you want to overwrite it or should it be merged with the selected actions?"), //text
i18n("Overwrite or merge?"), //caption i18n("Overwrite or merge?"), //caption
i18n("Overwrite"), //label for Yes-Button i18n("Overwrite"), //label for Yes-Button
@ -251,7 +251,7 @@ void UserActionPage::slotExport() {
file.close(); file.close();
} }
if ( answer == 0 && file.exists() ) if ( answer == 0 && file.exists() )
answer = KMessageBox::warningContinueCancel( this, //tqparent answer = KMessageBox::warningContinueCancel( this, //parent
i18n("This file already exists. Do you want to overwrite it?"), //text i18n("This file already exists. Do you want to overwrite it?"), //text
i18n("Overwrite existing file?"), //caption i18n("Overwrite existing file?"), //caption
i18n("Overwrite") //label for Continue-Button i18n("Overwrite") //label for Continue-Button

@ -25,7 +25,7 @@ class UserActionPage : public TQWidget {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
UserActionPage( TQWidget* tqparent ); UserActionPage( TQWidget* parent );
~UserActionPage(); ~UserActionPage();
/** /**

@ -9,9 +9,9 @@
#include <kiconloader.h> #include <kiconloader.h>
#include <kdebug.h> #include <kdebug.h>
KrAddBookmarkDlg::KrAddBookmarkDlg(TQWidget *tqparent, KURL url): KrAddBookmarkDlg::KrAddBookmarkDlg(TQWidget *parent, KURL url):
KDialogBase(KDialogBase::Swallow, i18n("Add Bookmark"), KDialogBase(KDialogBase::Swallow, i18n("Add Bookmark"),
KDialogBase::User1 | KDialogBase::Ok | KDialogBase::Cancel, KDialogBase::Ok, tqparent) { KDialogBase::User1 | KDialogBase::Ok | KDialogBase::Cancel, KDialogBase::Ok, parent) {
// create the 'new folder' button // create the 'new folder' button
setButtonText(KDialogBase::User1, i18n("New Folder")); setButtonText(KDialogBase::User1, i18n("New Folder"));
showButton(KDialogBase::User1, false); // hide it until _createIn is shown showButton(KDialogBase::User1, false); // hide it until _createIn is shown
@ -87,10 +87,10 @@ void KrAddBookmarkDlg::createInSelection(TQListViewItem *item) {
} }
} }
void KrAddBookmarkDlg::populateCreateInWidget(KrBookmark *root, KListViewItem *tqparent) { void KrAddBookmarkDlg::populateCreateInWidget(KrBookmark *root, KListViewItem *parent) {
for (KrBookmark *bm = root->tqchildren().first(); bm; bm = root->tqchildren().next()) { for (KrBookmark *bm = root->tqchildren().first(); bm; bm = root->tqchildren().next()) {
if (bm->isFolder()) { if (bm->isFolder()) {
KListViewItem *item = new KListViewItem(tqparent, bm->text()); KListViewItem *item = new KListViewItem(parent, bm->text());
item->setOpen(true); item->setOpen(true);
_xr[item] = bm; _xr[item] = bm;
populateCreateInWidget(bm, item); populateCreateInWidget(bm, item);

@ -14,14 +14,14 @@ class KrAddBookmarkDlg: public KDialogBase {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
KrAddBookmarkDlg(TQWidget *tqparent, KURL url = 0); KrAddBookmarkDlg(TQWidget *parent, KURL url = 0);
KURL url() const { return vfs::fromPathOrURL(_url->text()); } KURL url() const { return vfs::fromPathOrURL(_url->text()); }
TQString name() const { return _name->text(); } TQString name() const { return _name->text(); }
KrBookmark *folder() const { return _xr[static_cast<KListViewItem*>(_createIn->selectedItem())]; } KrBookmark *folder() const { return _xr[static_cast<KListViewItem*>(_createIn->selectedItem())]; }
protected: protected:
TQWidget *createInWidget(); TQWidget *createInWidget();
void populateCreateInWidget(KrBookmark *root, KListViewItem *tqparent); void populateCreateInWidget(KrBookmark *root, KListViewItem *parent);
protected slots: protected slots:
void toggleCreateIn(bool show); void toggleCreateIn(bool show);

@ -16,8 +16,8 @@ static const char* NAME_DEVICES = I18N_NOOP("Devices");
static const char* NAME_VIRTUAL = I18N_NOOP("Virtual Filesystem"); static const char* NAME_VIRTUAL = I18N_NOOP("Virtual Filesystem");
static const char* NAME_LAN = I18N_NOOP("Local Network"); static const char* NAME_LAN = I18N_NOOP("Local Network");
KrBookmark::KrBookmark(TQString name, KURL url, KActionCollection *tqparent, TQString icon, TQString actionName ): KrBookmark::KrBookmark(TQString name, KURL url, KActionCollection *parent, TQString icon, TQString actionName ):
KAction(name, 0, 0, 0, tqparent, actionName.isNull() ? BM_NAME(name).latin1() : BM_NAME(actionName).latin1()), KAction(name, 0, 0, 0, parent, actionName.isNull() ? BM_NAME(name).latin1() : BM_NAME(actionName).latin1()),
_url(url), _folder(false), _separator(false) { _url(url), _folder(false), _separator(false) {
connect(this, TQT_SIGNAL(activated()), this, TQT_SLOT(activatedProxy())); connect(this, TQT_SIGNAL(activated()), this, TQT_SLOT(activatedProxy()));
// do we have an icon? // do we have an icon?

@ -11,7 +11,7 @@ class KrBookmark: public KAction {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
KrBookmark(TQString name, KURL url, KActionCollection *tqparent, TQString icon = "", TQString actionName = TQString() ); KrBookmark(TQString name, KURL url, KActionCollection *parent, TQString icon = "", TQString actionName = TQString() );
KrBookmark(TQString name, TQString icon = ""); // creates a folder KrBookmark(TQString name, TQString icon = ""); // creates a folder
// text() and setText() to change the name of the bookmark // text() and setText() to change the name of the bookmark
// icon() and setIcon() to change icons (by name) // icon() and setIcon() to change icons (by name)

@ -8,7 +8,7 @@
#include <kpopupmenu.h> #include <kpopupmenu.h>
#include <kdebug.h> #include <kdebug.h>
KrBookmarkButton::KrBookmarkButton(TQWidget *tqparent): TQToolButton(tqparent) { KrBookmarkButton::KrBookmarkButton(TQWidget *parent): TQToolButton(parent) {
TQPixmap icon = krLoader->loadIcon("bookmark", KIcon::Toolbar, 16); TQPixmap icon = krLoader->loadIcon("bookmark", KIcon::Toolbar, 16);
setFixedSize(icon.width() + 4, icon.height() + 4); setFixedSize(icon.width() + 4, icon.height() + 4);
setPixmap(icon); setPixmap(icon);

@ -8,7 +8,7 @@ class KrBookmarkButton: public TQToolButton {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
KrBookmarkButton(TQWidget *tqparent); KrBookmarkButton(TQWidget *parent);
void openPopup(); void openPopup();
signals: signals:

@ -22,7 +22,7 @@
#define CONNECT_BM(X) { disconnect(X, TQT_SIGNAL(activated(const KURL&)), 0, 0); connect(X, TQT_SIGNAL(activated(const KURL&)), this, TQT_SLOT(slotActivated(const KURL&))); } #define CONNECT_BM(X) { disconnect(X, TQT_SIGNAL(activated(const KURL&)), 0, 0); connect(X, TQT_SIGNAL(activated(const KURL&)), this, TQT_SLOT(slotActivated(const KURL&))); }
KrBookmarkHandler::KrBookmarkHandler(): TQObject(0), _middleClick(false), _mainBookmarkPopup( 0 ), _specialBookmarkIDs(), _bookmarkIDTable() { KrBookmarkHandler::KrBookmarkHandler(): TQObject(0), _middleClick(false), _mainBookmarkPopup( 0 ), _specialBookmarkIDs(), _bookmarkIDTable() {
// create our own action collection and make the shortcuts apply only to tqparent // create our own action collection and make the shortcuts apply only to parent
_privateCollection = new KActionCollection(krApp, "private collection"); _privateCollection = new KActionCollection(krApp, "private collection");
_collection = krApp->actionCollection(); _collection = krApp->actionCollection();
@ -116,18 +116,18 @@ void KrBookmarkHandler::exportToFileBookmark(TQDomDocument &doc, TQDomElement &w
} }
} }
void KrBookmarkHandler::exportToFileFolder(TQDomDocument &doc, TQDomElement &tqparent, KrBookmark *folder) { void KrBookmarkHandler::exportToFileFolder(TQDomDocument &doc, TQDomElement &parent, KrBookmark *folder) {
for (KrBookmark *bm = folder->tqchildren().first(); bm; bm = folder->tqchildren().next()) { for (KrBookmark *bm = folder->tqchildren().first(); bm; bm = folder->tqchildren().next()) {
if (bm->isFolder()) { if (bm->isFolder()) {
TQDomElement newFolder = doc.createElement("folder"); TQDomElement newFolder = doc.createElement("folder");
newFolder.setAttribute("icon", bm->icon()); newFolder.setAttribute("icon", bm->icon());
tqparent.appendChild(newFolder); parent.appendChild(newFolder);
TQDomElement title = doc.createElement("title"); TQDomElement title = doc.createElement("title");
title.appendChild(doc.createTextNode(bm->text())); title.appendChild(doc.createTextNode(bm->text()));
newFolder.appendChild(title); newFolder.appendChild(title);
exportToFileFolder(doc, newFolder, bm); exportToFileFolder(doc, newFolder, bm);
} else { } else {
exportToFileBookmark(doc, tqparent, bm); exportToFileBookmark(doc, parent, bm);
} }
} }
} }
@ -173,7 +173,7 @@ void KrBookmarkHandler::exportToFile() {
} }
} }
bool KrBookmarkHandler::importFromFileBookmark(TQDomElement &e, KrBookmark *tqparent, TQString path, TQString *errorMsg) { bool KrBookmarkHandler::importFromFileBookmark(TQDomElement &e, KrBookmark *parent, TQString path, TQString *errorMsg) {
TQString url, name, icon; TQString url, name, icon;
// verify tag // verify tag
if (e.tagName() != "bookmark") { if (e.tagName() != "bookmark") {
@ -199,19 +199,19 @@ bool KrBookmarkHandler::importFromFileBookmark(TQDomElement &e, KrBookmark *tqpa
KrBookmark *bm = KrBookmark::getExistingBookmark(path+name, _collection); KrBookmark *bm = KrBookmark::getExistingBookmark(path+name, _collection);
if (!bm) { if (!bm) {
bm = new KrBookmark(name, vfs::fromPathOrURL( url ), _collection, icon, path+name); bm = new KrBookmark(name, vfs::fromPathOrURL( url ), _collection, icon, path+name);
tqparent->tqchildren().append(bm); parent->tqchildren().append(bm);
} }
return true; return true;
} }
bool KrBookmarkHandler::importFromFileFolder(TQDomNode &first, KrBookmark *tqparent, TQString path, TQString *errorMsg) { bool KrBookmarkHandler::importFromFileFolder(TQDomNode &first, KrBookmark *parent, TQString path, TQString *errorMsg) {
TQString name; TQString name;
TQDomNode n = first; TQDomNode n = first;
while (!n.isNull()) { while (!n.isNull()) {
TQDomElement e = n.toElement(); TQDomElement e = n.toElement();
if (e.tagName() == "bookmark") { if (e.tagName() == "bookmark") {
if (!importFromFileBookmark(e, tqparent, path, errorMsg)) if (!importFromFileBookmark(e, parent, path, errorMsg))
return false; return false;
} else if (e.tagName() == "folder") { } else if (e.tagName() == "folder") {
TQString iconName = ""; TQString iconName = "";
@ -223,13 +223,13 @@ bool KrBookmarkHandler::importFromFileFolder(TQDomNode &first, KrBookmark *tqpar
return false; return false;
} else name = tmp.text(); } else name = tmp.text();
KrBookmark *folder = new KrBookmark(name, iconName); KrBookmark *folder = new KrBookmark(name, iconName);
tqparent->tqchildren().append(folder); parent->tqchildren().append(folder);
TQDomNode nextOne = tmp.nextSibling(); TQDomNode nextOne = tmp.nextSibling();
if (!importFromFileFolder(nextOne, folder, path + name + "/", errorMsg)) if (!importFromFileFolder(nextOne, folder, path + name + "/", errorMsg))
return false; return false;
} else if (e.tagName() == "separator") { } else if (e.tagName() == "separator") {
tqparent->tqchildren().append(KrBookmark::separator()); parent->tqchildren().append(KrBookmark::separator());
} }
n = n.nextSibling(); n = n.nextSibling();
} }
@ -279,12 +279,12 @@ void KrBookmarkHandler::populate(KPopupMenu *menu) {
buildMenu(_root, menu); buildMenu(_root, menu);
} }
void KrBookmarkHandler::buildMenu(KrBookmark *tqparent, KPopupMenu *menu) { void KrBookmarkHandler::buildMenu(KrBookmark *parent, KPopupMenu *menu) {
static int inSecondaryMenu = 0; // used to know if we're on the top menu static int inSecondaryMenu = 0; // used to know if we're on the top menu
// run the loop twice, in order to put the folders on top. stupid but easy :-) // run the loop twice, in order to put the folders on top. stupid but easy :-)
// note: this code drops the separators put there by the user // note: this code drops the separators put there by the user
for (KrBookmark *bm = tqparent->tqchildren().first(); bm; bm = tqparent->tqchildren().next()) { for (KrBookmark *bm = parent->tqchildren().first(); bm; bm = parent->tqchildren().next()) {
if (!bm->isFolder()) continue; if (!bm->isFolder()) continue;
KPopupMenu *newMenu = new KPopupMenu(menu); KPopupMenu *newMenu = new KPopupMenu(menu);
int id = menu->insertItem(TQIconSet(krLoader->loadIcon(bm->icon(), KIcon::Small)), int id = menu->insertItem(TQIconSet(krLoader->loadIcon(bm->icon(), KIcon::Small)),
@ -298,7 +298,7 @@ void KrBookmarkHandler::buildMenu(KrBookmark *tqparent, KPopupMenu *menu) {
buildMenu(bm, newMenu); buildMenu(bm, newMenu);
--inSecondaryMenu; --inSecondaryMenu;
} }
for (KrBookmark *bm = tqparent->tqchildren().first(); bm; bm = tqparent->tqchildren().next()) { for (KrBookmark *bm = parent->tqchildren().first(); bm; bm = parent->tqchildren().next()) {
if (bm->isFolder()) continue; if (bm->isFolder()) continue;
if (bm->isSeparator() ) { if (bm->isSeparator() ) {
menu->insertSeparator(); menu->insertSeparator();

@ -23,19 +23,19 @@ public:
KrBookmarkHandler(); KrBookmarkHandler();
~KrBookmarkHandler(); ~KrBookmarkHandler();
void populate(KPopupMenu *menu); void populate(KPopupMenu *menu);
void addBookmark(KrBookmark *bm, KrBookmark *tqparent = 0); void addBookmark(KrBookmark *bm, KrBookmark *parent = 0);
void bookmarkCurrent(KURL url); void bookmarkCurrent(KURL url);
protected: protected:
void deleteBookmark(KrBookmark *bm); void deleteBookmark(KrBookmark *bm);
void importFromFile(); void importFromFile();
bool importFromFileBookmark(TQDomElement &e, KrBookmark *tqparent, TQString path, TQString *errorMsg); bool importFromFileBookmark(TQDomElement &e, KrBookmark *parent, TQString path, TQString *errorMsg);
bool importFromFileFolder(TQDomNode &first, KrBookmark *tqparent, TQString path, TQString *errorMsg); bool importFromFileFolder(TQDomNode &first, KrBookmark *parent, TQString path, TQString *errorMsg);
void exportToFile(); void exportToFile();
void exportToFileFolder(TQDomDocument &doc, TQDomElement &tqparent, KrBookmark *folder); void exportToFileFolder(TQDomDocument &doc, TQDomElement &parent, KrBookmark *folder);
void exportToFileBookmark(TQDomDocument &doc, TQDomElement &where, KrBookmark *bm); void exportToFileBookmark(TQDomDocument &doc, TQDomElement &where, KrBookmark *bm);
void clearBookmarks(KrBookmark *root); void clearBookmarks(KrBookmark *root);
void buildMenu(KrBookmark *tqparent, KPopupMenu *menu); void buildMenu(KrBookmark *parent, KPopupMenu *menu);
bool eventFilter( TQObject *obj, TQEvent *ev ); bool eventFilter( TQObject *obj, TQEvent *ev );

@ -130,9 +130,9 @@ KURL KChooseDir::getDir(TQString text,const KURL& url, const KURL& cwd, bool &pr
return u; return u;
} }
KURLRequesterDlgForCopy::KURLRequesterDlgForCopy( const TQString& urlName, const TQString& _text, bool presAttrs, TQWidget *tqparent, KURLRequesterDlgForCopy::KURLRequesterDlgForCopy( const TQString& urlName, const TQString& _text, bool presAttrs, TQWidget *parent,
const char *name, bool modal, KURL baseURL ) const char *name, bool modal, KURL baseURL )
: KDialogBase( Plain, TQString(), Ok|Cancel|User1, Ok, tqparent, name, modal, true, KStdGuiItem::clear() ), : KDialogBase( Plain, TQString(), Ok|Cancel|User1, Ok, parent, name, modal, true, KStdGuiItem::clear() ),
baseUrlCombo( 0 ), copyDirStructureCB( 0 ) { baseUrlCombo( 0 ), copyDirStructureCB( 0 ) {
TQVBoxLayout * topLayout = new TQVBoxLayout( plainPage(), 0, spacingHint() ); TQVBoxLayout * topLayout = new TQVBoxLayout( plainPage(), 0, spacingHint() );
@ -228,7 +228,7 @@ KURL KURLRequesterDlgForCopy::baseURL() const {
return vfs::fromPathOrURL( baseUrlCombo->currentText() ); return vfs::fromPathOrURL( baseUrlCombo->currentText() );
} }
KRGetDate::KRGetDate(TQDate date, TQWidget *tqparent, const char *name) : KDialog(tqparent, name,true,WStyle_DialogBorder) { KRGetDate::KRGetDate(TQDate date, TQWidget *parent, const char *name) : KDialog(parent, name,true,WStyle_DialogBorder) {
dateWidget = new KDatePicker(this, date); dateWidget = new KDatePicker(this, date);
dateWidget->resize(dateWidget->tqsizeHint()); dateWidget->resize(dateWidget->tqsizeHint());
setMinimumSize(dateWidget->tqsizeHint()); setMinimumSize(dateWidget->tqsizeHint());

@ -79,7 +79,7 @@ class KURLRequesterDlgForCopy : public KDialogBase {
TQ_OBJECT TQ_OBJECT
public: public:
KURLRequesterDlgForCopy( const TQString& url, const TQString& text, bool presAttrs, KURLRequesterDlgForCopy( const TQString& url, const TQString& text, bool presAttrs,
TQWidget *tqparent, const char *name, bool modal=true, KURL baseURL = KURL() ); TQWidget *parent, const char *name, bool modal=true, KURL baseURL = KURL() );
KURLRequesterDlgForCopy(); KURLRequesterDlgForCopy();
KURL selectedURL() const; KURL selectedURL() const;
@ -103,7 +103,7 @@ class KRGetDate : public KDialog {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
KRGetDate(TQDate date=TQDate::tqcurrentDate(), TQWidget *tqparent = 0, const char *name = 0); KRGetDate(TQDate date=TQDate::tqcurrentDate(), TQWidget *parent = 0, const char *name = 0);
TQDate getDate(); TQDate getDate();
private slots: private slots:

@ -29,13 +29,13 @@
static const char* FILE_FILTER = I18N_NOOP("*.keymap|Krusader keymaps\n*|all files"); static const char* FILE_FILTER = I18N_NOOP("*.keymap|Krusader keymaps\n*|all files");
KrKeyDialog::KrKeyDialog( TQWidget * tqparent ) : KKeyDialog( false /* allow letter shortcuts */, tqparent ) { KrKeyDialog::KrKeyDialog( TQWidget * parent ) : KKeyDialog( false /* allow letter shortcuts */, parent ) {
insert( krApp->actionCollection() ); insert( krApp->actionCollection() );
// HACK This fetches the tqlayout of the buttonbox from KDialogBase, although it is not accessable with KDialogBase's API // HACK This fetches the tqlayout of the buttonbox from KDialogBase, although it is not accessable with KDialogBase's API
// None the less it's quite save to use since this implementation hasn't changed since KDE-3.3 (I haven't looked at earlier // None the less it's quite save to use since this implementation hasn't changed since KDE-3.3 (I haven't looked at earlier
// versions since we don't support them) and now all work is done in KDE-4. // versions since we don't support them) and now all work is done in KDE-4.
TQWidget* buttonBox = TQT_TQWIDGET( actionButton(KDialogBase::Ok)->tqparent() ); TQWidget* buttonBox = TQT_TQWIDGET( actionButton(KDialogBase::Ok)->parent() );
TQBoxLayout* buttonBoxLayout = static_cast<TQBoxLayout*>( buttonBox->tqlayout() ); TQBoxLayout* buttonBoxLayout = static_cast<TQBoxLayout*>( buttonBox->tqlayout() );
KPushButton* importButton = new KPushButton( i18n("Import shortcuts"), buttonBox ); KPushButton* importButton = new KPushButton( i18n("Import shortcuts"), buttonBox );
@ -67,7 +67,7 @@ void KrKeyDialog::slotImportShortcuts() {
KConfig conf( filename, true /*read only*/, false /*no KDEGlobal*/ ); KConfig conf( filename, true /*read only*/, false /*no KDEGlobal*/ );
if ( ! conf.hasGroup("Shortcuts") ) { if ( ! conf.hasGroup("Shortcuts") ) {
int answer = KMessageBox::warningContinueCancel( this, //tqparent int answer = KMessageBox::warningContinueCancel( this, //parent
i18n("This file does not seem to be a valid keymap.\n" i18n("This file does not seem to be a valid keymap.\n"
"It may be a keymap using a legacy format. The import can't be undone!"), //text "It may be a keymap using a legacy format. The import can't be undone!"), //text
i18n("Try to import legacy format?"), //caption i18n("Try to import legacy format?"), //caption
@ -118,7 +118,7 @@ void KrKeyDialog::importLegacyShortcuts( const TQString& file ) {
} }
f.close(); f.close();
KMessageBox::information( this, // tqparent KMessageBox::information( this, // parent
i18n("Please restart this dialog in order to see the changes"), // text i18n("Please restart this dialog in order to see the changes"), // text
i18n("Legacy import completed") // caption i18n("Legacy import completed") // caption
); );

@ -23,7 +23,7 @@ class KrKeyDialog : protected KKeyDialog
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
KrKeyDialog( TQWidget* tqparent = 0 ); KrKeyDialog( TQWidget* parent = 0 );
~KrKeyDialog(); ~KrKeyDialog();
private slots: private slots:

@ -43,14 +43,14 @@
#include <tqlineedit.h> #include <tqlineedit.h>
/* /*
* Constructs a KRMaskChoice which is a child of 'tqparent', with the * Constructs a KRMaskChoice which is a child of 'parent', with the
* name 'name' and widget flags set to 'f' * name 'name' and widget flags set to 'f'
* *
* The dialog will by default be modeless, unless you set 'modal' to * The dialog will by default be modeless, unless you set 'modal' to
* TRUE to construct a modal dialog. * TRUE to construct a modal dialog.
*/ */
KRMaskChoice::KRMaskChoice( TQWidget* tqparent, const char* name, bool modal, WFlags fl ) KRMaskChoice::KRMaskChoice( TQWidget* parent, const char* name, bool modal, WFlags fl )
: TQDialog( tqparent, name, modal, fl ) : TQDialog( parent, name, modal, fl )
{ {
if ( !name ) if ( !name )
setName( "KRMaskChoice" ); setName( "KRMaskChoice" );
@ -94,7 +94,7 @@ KRMaskChoice::KRMaskChoice( TQWidget* tqparent, const char* name, bool modal, W
preSelections = new TQListBox( Layout6, "preSelections" ); preSelections = new TQListBox( Layout6, "preSelections" );
preSelections->setVScrollBarMode( TQListBox::AlwaysOn ); preSelections->setVScrollBarMode( TQListBox::AlwaysOn );
TQWhatsThis::add( preSelections, i18n( "A predefined selection is a file-tqmask which you use often.\nSome examples are: \"*.c, *.h\", \"*.c, *.o\", etc.\nYou can add these masks to the list by typing them and pressing the Add button.\nDelete removes a predefined selection and Clear removes all of them.\nNotice that the line in which you edit the tqmask has it's own history, you can scroll it, if needed." ) ); TQWhatsThis::add( preSelections, i18n( "A predefined selection is a file-mask which you use often.\nSome examples are: \"*.c, *.h\", \"*.c, *.o\", etc.\nYou can add these masks to the list by typing them and pressing the Add button.\nDelete removes a predefined selection and Clear removes all of them.\nNotice that the line in which you edit the mask has it's own history, you can scroll it, if needed." ) );
hbox_2->addWidget( preSelections ); hbox_2->addWidget( preSelections );
vbox = new TQVBoxLayout; vbox = new TQVBoxLayout;

@ -47,7 +47,7 @@ class KRMaskChoice : public TQDialog
TQ_OBJECT TQ_OBJECT
public: public:
KRMaskChoice( TQWidget* tqparent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 ); KRMaskChoice( TQWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
~KRMaskChoice(); ~KRMaskChoice();
TQComboBox* selection; TQComboBox* selection;

@ -64,8 +64,8 @@ TQColor KRPie::colors[ 12 ] = {TQt::red, TQt::blue, TQt::green, TQt::cyan, TQt::
/////////////// KRFSDisplay - Filesystem / Freespace Display ///////////////// /////////////// KRFSDisplay - Filesystem / Freespace Display /////////////////
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
// This is the full constructor: use it for a mounted filesystem // This is the full constructor: use it for a mounted filesystem
KRFSDisplay::KRFSDisplay( TQWidget *tqparent, TQString _alias, TQString _realName, KRFSDisplay::KRFSDisplay( TQWidget *parent, TQString _alias, TQString _realName,
KIO::filesize_t _total, KIO::filesize_t _free ) : TQWidget( tqparent ), totalSpace( _total ), KIO::filesize_t _total, KIO::filesize_t _free ) : TQWidget( parent ), totalSpace( _total ),
freeSpace( _free ), alias( _alias ), realName( _realName ), mounted( true ), freeSpace( _free ), alias( _alias ), realName( _realName ), mounted( true ),
empty( false ), supermount( false ) { empty( false ), supermount( false ) {
resize( 150, 200 ); resize( 150, 200 );
@ -73,8 +73,8 @@ empty( false ), supermount( false ) {
} }
// Use this one for an unmounted filesystem // Use this one for an unmounted filesystem
KRFSDisplay::KRFSDisplay( TQWidget *tqparent, TQString _alias, TQString _realName, bool sm ) : KRFSDisplay::KRFSDisplay( TQWidget *parent, TQString _alias, TQString _realName, bool sm ) :
TQWidget( tqparent ), alias( _alias ), realName( _realName ), mounted( false ), TQWidget( parent ), alias( _alias ), realName( _realName ), mounted( false ),
empty( false ), supermount( sm ) { empty( false ), supermount( sm ) {
resize( 150, 200 ); resize( 150, 200 );
show(); show();
@ -82,7 +82,7 @@ empty( false ), supermount( sm ) {
// This is used only when an empty widget needs to be displayed (for example: // This is used only when an empty widget needs to be displayed (for example:
// when filesystem statistics haven't been calculated yet) // when filesystem statistics haven't been calculated yet)
KRFSDisplay::KRFSDisplay( TQWidget *tqparent ) : TQWidget( tqparent ), empty( true ) { KRFSDisplay::KRFSDisplay( TQWidget *parent ) : TQWidget( parent ), empty( true ) {
resize( 150, 200 ); resize( 150, 200 );
show(); show();
} }
@ -146,7 +146,7 @@ void KRFSDisplay::paintEvent( TQPaintEvent * ) {
} }
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
KRPie::KRPie( KIO::filesize_t _totalSize, TQWidget *tqparent ) : TQWidget( tqparent, 0 ), totalSize( _totalSize ) { KRPie::KRPie( KIO::filesize_t _totalSize, TQWidget *parent ) : TQWidget( parent, 0 ), totalSize( _totalSize ) {
slices.setAutoDelete( true ); // kill items when they are removed slices.setAutoDelete( true ); // kill items when they are removed
slices.append( new KRPieSlice( 100, TQt::yellow, "DEFAULT" ) ); slices.append( new KRPieSlice( 100, TQt::yellow, "DEFAULT" ) );
sizeLeft = totalSize; sizeLeft = totalSize;
@ -204,7 +204,7 @@ void KRPie::addSlice( KIO::filesize_t size, TQString label ) {
//////////////////////////////////////////////////// ////////////////////////////////////////////////////
/////////////////// KrQuickSearch ///////////////// /////////////////// KrQuickSearch /////////////////
//////////////////////////////////////////////////// ////////////////////////////////////////////////////
KrQuickSearch::KrQuickSearch( TQWidget *tqparent, const char * name ) : KLineEdit( tqparent, name ) {} KrQuickSearch::KrQuickSearch( TQWidget *parent, const char * name ) : KLineEdit( parent, name ) {}
void KrQuickSearch::myKeyPressEvent( TQKeyEvent *e ) { void KrQuickSearch::myKeyPressEvent( TQKeyEvent *e ) {
switch ( e->key() ) { switch ( e->key() ) {

@ -46,7 +46,7 @@ class KRPie : public TQWidget {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
KRPie( KIO::filesize_t _totalSize, TQWidget *tqparent = 0 ); KRPie( KIO::filesize_t _totalSize, TQWidget *parent = 0 );
void addSlice( KIO::filesize_t size, TQString label ); void addSlice( KIO::filesize_t size, TQString label );
protected: protected:
@ -63,12 +63,12 @@ class KRFSDisplay : public TQWidget {
TQ_OBJECT TQ_OBJECT
public: public:
// this constructor is used for a mounted filesystem // this constructor is used for a mounted filesystem
KRFSDisplay( TQWidget *tqparent, TQString _alias, TQString _realName, KRFSDisplay( TQWidget *parent, TQString _alias, TQString _realName,
KIO::filesize_t _total, KIO::filesize_t _free ); KIO::filesize_t _total, KIO::filesize_t _free );
// this one is for an unmounted/supermount file system // this one is for an unmounted/supermount file system
KRFSDisplay( TQWidget *tqparent, TQString _alias, TQString _realName, bool sm = false ); KRFSDisplay( TQWidget *parent, TQString _alias, TQString _realName, bool sm = false );
// the last one is used inside MountMan(R), when no filesystem is selected // the last one is used inside MountMan(R), when no filesystem is selected
KRFSDisplay( TQWidget *tqparent ); KRFSDisplay( TQWidget *parent );
inline void setTotalSpace( KIO::filesize_t t ) { totalSpace = t; } inline void setTotalSpace( KIO::filesize_t t ) { totalSpace = t; }
inline void setFreeSpace( KIO::filesize_t t ) { freeSpace = t; } inline void setFreeSpace( KIO::filesize_t t ) { freeSpace = t; }
inline void setAlias( TQString a ) { alias = a; } inline void setAlias( TQString a ) { alias = a; }
@ -106,7 +106,7 @@ class KrQuickSearch: public KLineEdit {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
KrQuickSearch(TQWidget *tqparent, const char * name = 0); KrQuickSearch(TQWidget *parent, const char * name = 0);
void addText(const TQString &str) { setText(text()+str); } void addText(const TQString &str) { setText(text()+str); }
void myKeyPressEvent(TQKeyEvent *e); void myKeyPressEvent(TQKeyEvent *e);
void myIMStartEvent(TQIMEvent* e) { void myIMStartEvent(TQIMEvent* e) {

@ -229,11 +229,11 @@ void KRMaskChoiceSub::acceptFromList(TQListBoxItem *i) {
////////////////////////// QuickNavLineEdit //////////////////// ////////////////////////// QuickNavLineEdit ////////////////////
QuickNavLineEdit::QuickNavLineEdit(const TQString &string, TQWidget *tqparent, const char *name): QuickNavLineEdit::QuickNavLineEdit(const TQString &string, TQWidget *parent, const char *name):
KLineEdit(string, tqparent, name) { init(); } KLineEdit(string, parent, name) { init(); }
QuickNavLineEdit::QuickNavLineEdit(TQWidget *tqparent, const char *name): QuickNavLineEdit::QuickNavLineEdit(TQWidget *parent, const char *name):
KLineEdit(tqparent, name) { init(); } KLineEdit(parent, name) { init(); }
int QuickNavLineEdit::findCharFromPos(const TQString & str, const TQFontMetrics & metrics, int pos) int QuickNavLineEdit::findCharFromPos(const TQString & str, const TQFontMetrics & metrics, int pos)
{ {

@ -48,7 +48,7 @@ class KRSpWidgets {
public: public:
KRSpWidgets(); KRSpWidgets();
static KRQuery getMask( TQString caption, bool nameOnly=false ); // get file-tqmask for (un)selecting files static KRQuery getMask( TQString caption, bool nameOnly=false ); // get file-mask for (un)selecting files
static KURL newFTP(); static KURL newFTP();
private: private:
@ -89,8 +89,8 @@ protected:
class QuickNavLineEdit: public KLineEdit { class QuickNavLineEdit: public KLineEdit {
public: public:
QuickNavLineEdit(const TQString &string, TQWidget *tqparent, const char *name=0); QuickNavLineEdit(const TQString &string, TQWidget *parent, const char *name=0);
QuickNavLineEdit(TQWidget *tqparent=0, const char *name=0); QuickNavLineEdit(TQWidget *parent=0, const char *name=0);
virtual ~QuickNavLineEdit() {} virtual ~QuickNavLineEdit() {}
static int findCharFromPos(const TQString &, const TQFontMetrics &, int pos); static int findCharFromPos(const TQString &, const TQFontMetrics &, int pos);
protected: protected:

@ -3,8 +3,8 @@
#include <kurldrag.h> #include <kurldrag.h>
#include <tqtooltip.h> #include <tqtooltip.h>
KrSqueezedTextLabel::KrSqueezedTextLabel(TQWidget *tqparent, const char *name): KrSqueezedTextLabel::KrSqueezedTextLabel(TQWidget *parent, const char *name):
KSqueezedTextLabel(tqparent, name), acceptDrops( false ), _index(-1), _length(-1) { KSqueezedTextLabel(parent, name), acceptDrops( false ), _index(-1), _length(-1) {
} }

@ -18,7 +18,7 @@ class KrSqueezedTextLabel : public KSqueezedTextLabel {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
KrSqueezedTextLabel(TQWidget *tqparent = 0, const char *name = 0); KrSqueezedTextLabel(TQWidget *parent = 0, const char *name = 0);
~KrSqueezedTextLabel(); ~KrSqueezedTextLabel();
void enableDrops( bool flag ); void enableDrops( bool flag );

@ -41,7 +41,7 @@
#define DELETE_ITEM_ID 100 #define DELETE_ITEM_ID 100
KURLListRequester::KURLListRequester( TQWidget *tqparent, const char * name ) : TQWidget( tqparent, name ) KURLListRequester::KURLListRequester( TQWidget *parent, const char * name ) : TQWidget( parent, name )
{ {
KIconLoader *iconLoader = new KIconLoader(); KIconLoader *iconLoader = new KIconLoader();
TQPixmap imageAdd = iconLoader->loadIcon( "1downarrow", KIcon::Panel, 16 ); TQPixmap imageAdd = iconLoader->loadIcon( "1downarrow", KIcon::Panel, 16 );

@ -44,7 +44,7 @@ class KURLListRequester : public TQWidget
TQ_OBJECT TQ_OBJECT
public: public:
KURLListRequester( TQWidget *tqparent = 0, const char * name = 0 ); KURLListRequester( TQWidget *parent = 0, const char * name = 0 );
KURL::List urlList(); KURL::List urlList();
void setUrlList( KURL::List ); void setUrlList( KURL::List );

@ -28,7 +28,7 @@
/* /*
* Constructs a newFTPGUI which is a child of 'tqparent', with the * Constructs a newFTPGUI which is a child of 'parent', with the
* name 'name' and widget flags set to 'f' * name 'name' and widget flags set to 'f'
* *
* The dialog will by default be modeless, unless you set 'modal' to * The dialog will by default be modeless, unless you set 'modal' to
@ -37,8 +37,8 @@
#define SIZE_MINIMUM TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0 ) #define SIZE_MINIMUM TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0 )
newFTPGUI::newFTPGUI( TQWidget* tqparent, const char* name, bool modal, WFlags fl ) newFTPGUI::newFTPGUI( TQWidget* parent, const char* name, bool modal, WFlags fl )
: TQDialog( tqparent, name, modal, fl ){ : TQDialog( parent, name, modal, fl ){
TQVBoxLayout * tqlayout = new TQVBoxLayout( this, 11, 6, "newFTPGUI_layout" ); TQVBoxLayout * tqlayout = new TQVBoxLayout( this, 11, 6, "newFTPGUI_layout" );
tqlayout->setAutoAdd(true); tqlayout->setAutoAdd(true);

@ -25,7 +25,7 @@ class newFTPGUI : public TQDialog {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
newFTPGUI( TQWidget* tqparent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 ); newFTPGUI( TQWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
~newFTPGUI(); ~newFTPGUI();
TQLabel* TextLabel1; TQLabel* TextLabel1;

@ -53,14 +53,14 @@
#include "../krusader.h" #include "../krusader.h"
/* /*
* Constructs a PackGUIBase which is a child of 'tqparent', with the * Constructs a PackGUIBase which is a child of 'parent', with the
* name 'name' and widget flags set to 'f' * name 'name' and widget flags set to 'f'
* *
* The dialog will by default be modeless, unless you set 'modal' to * The dialog will by default be modeless, unless you set 'modal' to
* TRUE to construct a modal dialog. * TRUE to construct a modal dialog.
*/ */
PackGUIBase::PackGUIBase( TQWidget* tqparent, const char* name, bool modal, WFlags fl ) PackGUIBase::PackGUIBase( TQWidget* parent, const char* name, bool modal, WFlags fl )
: TQDialog( tqparent, name, modal, fl ), expanded( false ) : TQDialog( parent, name, modal, fl ), expanded( false )
{ {
if ( !name ) if ( !name )
setName( "PackGUIBase" ); setName( "PackGUIBase" );

@ -54,7 +54,7 @@ class PackGUIBase : public TQDialog
TQ_OBJECT TQ_OBJECT
public: public:
PackGUIBase( TQWidget* tqparent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 ); PackGUIBase( TQWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
~PackGUIBase(); ~PackGUIBase();
TQLabel* TextLabel3; TQLabel* TextLabel3;

@ -35,7 +35,7 @@
class PercentalSplitterToolTip : public TQToolTip { class PercentalSplitterToolTip : public TQToolTip {
public: public:
PercentalSplitterToolTip( TQWidget * tqparent ) : TQToolTip( tqparent ) { PercentalSplitterToolTip( TQWidget * parent ) : TQToolTip( parent ) {
} }
virtual ~PercentalSplitterToolTip() { virtual ~PercentalSplitterToolTip() {
@ -63,7 +63,7 @@ public:
} }
}; };
PercentalSplitter::PercentalSplitter( TQWidget * tqparent, const char * name ) : TQSplitter( tqparent, name ), label( 0 ), opaqueOldPos( -1 ) { PercentalSplitter::PercentalSplitter( TQWidget * parent, const char * name ) : TQSplitter( parent, name ), label( 0 ), opaqueOldPos( -1 ) {
toolTip = new PercentalSplitterToolTip( this ); toolTip = new PercentalSplitterToolTip( this );
} }

@ -41,7 +41,7 @@ class PercentalSplitter : public TQSplitter {
TQ_OBJECT TQ_OBJECT
public: public:
PercentalSplitter( TQWidget * tqparent = 0, const char * name = 0 ); PercentalSplitter( TQWidget * parent = 0, const char * name = 0 );
virtual ~PercentalSplitter(); virtual ~PercentalSplitter();
TQString toolTipString( int p = -1 ); TQString toolTipString( int p = -1 );

@ -16,7 +16,7 @@
#define INCREASE 2 #define INCREASE 2
#define DECREASE 1 #define DECREASE 1
PopularUrls::PopularUrls(TQObject *tqparent, const char *name) : TQObject(tqparent, name), PopularUrls::PopularUrls(TQObject *parent, const char *name) : TQObject(parent, name),
head(0), tail(0), count(0) { head(0), tail(0), count(0) {
dlg = new PopularUrlsDlg(); dlg = new PopularUrlsDlg();
} }

@ -30,7 +30,7 @@ class PopularUrls : public TQObject {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
PopularUrls(TQObject *tqparent = 0, const char *name = 0); PopularUrls(TQObject *parent = 0, const char *name = 0);
~PopularUrls(); ~PopularUrls();
void save(); void save();
void load(); void load();

@ -76,10 +76,10 @@
#define MAX_FILENUM 100 #define MAX_FILENUM 100
LoaderWidget::LoaderWidget( TQWidget *tqparent, const char *name ) : TQScrollView( tqparent, name ), cancelled( false ) LoaderWidget::LoaderWidget( TQWidget *parent, const char *name ) : TQScrollView( parent, name ), cancelled( false )
{ {
viewport()->setEraseColor( TQt::white ); viewport()->setEraseColor( TQt::white );
widget = new TQWidget( tqparent ); widget = new TQWidget( parent );
TQGridLayout *loaderLayout = new TQGridLayout( widget ); TQGridLayout *loaderLayout = new TQGridLayout( widget );
loaderLayout->setSpacing( 0 ); loaderLayout->setSpacing( 0 );
@ -196,7 +196,7 @@ void LoaderWidget::slotCancelled()
cancelled = true; cancelled = true;
} }
DiskUsage::DiskUsage( TQString confGroup, TQWidget *tqparent, char *name ) : TQWidgetStack( tqparent, name ), DiskUsage::DiskUsage( TQString confGroup, TQWidget *parent, char *name ) : TQWidgetStack( parent, name ),
currentDirectory( 0 ), root( 0 ), configGroup( confGroup ), loading( false ), currentDirectory( 0 ), root( 0 ), configGroup( confGroup ), loading( false ),
abortLoading( false ), clearAfterAbort( false ), deleting( false ), searchVfs( 0 ) abortLoading( false ), clearAfterAbort( false ), deleting( false ), searchVfs( 0 )
{ {
@ -402,13 +402,13 @@ void DiskUsage::dirUp()
{ {
if( currentDirectory != 0 ) if( currentDirectory != 0 )
{ {
if ( currentDirectory->tqparent() != 0 ) if ( currentDirectory->parent() != 0 )
changeDirectory( (Directory *)(currentDirectory->tqparent()) ); changeDirectory( (Directory *)(currentDirectory->parent()) );
else else
{ {
KURL up = baseURL.upURL(); KURL up = baseURL.upURL();
if( KMessageBox::questionYesNo( this, i18n( "Stepping into the tqparent directory requires " if( KMessageBox::questionYesNo( this, i18n( "Stepping into the parent directory requires "
"loading the content of the \"%1\" URL. Do you wish " "loading the content of the \"%1\" URL. Do you wish "
"to continue?" ) "to continue?" )
.tqarg( vfs::pathOrURL( up ) ), .tqarg( vfs::pathOrURL( up ) ),
@ -623,7 +623,7 @@ int DiskUsage::del( File *file, bool calcPercents, int depth )
deleteNr += del( *it, false, depth + 1 ); deleteNr += del( *it, false, depth + 1 );
TQString path; TQString path;
for( const Directory *d = (Directory*)file; d != root && d && d->tqparent() != 0; d = d->tqparent() ) for( const Directory *d = (Directory*)file; d != root && d && d->parent() != 0; d = d->parent() )
{ {
if( !path.isEmpty() ) if( !path.isEmpty() )
path = "/" + path; path = "/" + path;
@ -664,7 +664,7 @@ int DiskUsage::del( File *file, bool calcPercents, int depth )
releaseKeyboard(); releaseKeyboard();
deleting = false; deleting = false;
((Directory *)(file->tqparent()))->remove( file ); ((Directory *)(file->parent()))->remove( file );
delete file; delete file;
if( depth == 0 ) if( depth == 0 )

@ -66,7 +66,7 @@ class DiskUsage : public TQWidgetStack
TQ_OBJECT TQ_OBJECT
public: public:
DiskUsage( TQString confGroup, TQWidget *tqparent = 0, char *name = 0); DiskUsage( TQString confGroup, TQWidget *parent = 0, char *name = 0);
~DiskUsage(); ~DiskUsage();
void load( KURL dirName ); void load( KURL dirName );
@ -180,7 +180,7 @@ class LoaderWidget : public TQScrollView
TQ_OBJECT TQ_OBJECT
public: public:
LoaderWidget( TQWidget *tqparent = 0, const char *name = 0 ); LoaderWidget( TQWidget *parent = 0, const char *name = 0 );
void init(); void init();
void setCurrentURL( KURL url ); void setCurrentURL( KURL url );

@ -39,8 +39,8 @@
#include <klocale.h> #include <klocale.h>
#include <tqtooltip.h> #include <tqtooltip.h>
DiskUsageGUI::DiskUsageGUI( KURL openDir, TQWidget* tqparent, const char *name ) DiskUsageGUI::DiskUsageGUI( KURL openDir, TQWidget* parent, const char *name )
: TQDialog( tqparent, name, false, 0 ), exitAtFailure( true ) : TQDialog( parent, name, false, 0 ), exitAtFailure( true )
{ {
setCaption( i18n("Krusader::Disk Usage") ); setCaption( i18n("Krusader::Disk Usage") );

@ -45,7 +45,7 @@ class DiskUsageGUI : public TQDialog
TQ_OBJECT TQ_OBJECT
public: public:
DiskUsageGUI( KURL openDir, TQWidget* tqparent=0, const char *name = 0 ); DiskUsageGUI( KURL openDir, TQWidget* parent=0, const char *name = 0 );
~DiskUsageGUI(); ~DiskUsageGUI();

@ -44,11 +44,11 @@
class DULinesItem : public TQListViewItem class DULinesItem : public TQListViewItem
{ {
public: public:
DULinesItem( DiskUsage *diskUsageIn, File *fileItem, TQListView * tqparent, TQString label1, DULinesItem( DiskUsage *diskUsageIn, File *fileItem, TQListView * parent, TQString label1,
TQString label2, TQString label3, unsigned int italicPos ) : TQListViewItem( tqparent, label1, label2, label3 ), TQString label2, TQString label3, unsigned int italicPos ) : TQListViewItem( parent, label1, label2, label3 ),
diskUsage( diskUsageIn ), file( fileItem ), isTruncated( false ), italicTextPos( italicPos ) {} diskUsage( diskUsageIn ), file( fileItem ), isTruncated( false ), italicTextPos( italicPos ) {}
DULinesItem( DiskUsage *diskUsageIn, File *fileItem, TQListView * tqparent, TQListViewItem * after, DULinesItem( DiskUsage *diskUsageIn, File *fileItem, TQListView * parent, TQListViewItem * after,
TQString label1, TQString label2, TQString label3, unsigned int italicPos ) : TQListViewItem( tqparent, after, label1, TQString label1, TQString label2, TQString label3, unsigned int italicPos ) : TQListViewItem( parent, after, label1,
label2, label3 ), diskUsage( diskUsageIn ), file( fileItem ), isTruncated( false ), italicTextPos( italicPos ) {} label2, label3 ), diskUsage( diskUsageIn ), file( fileItem ), isTruncated( false ), italicTextPos( italicPos ) {}
virtual int compare ( TQListViewItem * i, int col, bool ascending ) const virtual int compare ( TQListViewItem * i, int col, bool ascending ) const
@ -176,7 +176,7 @@ private:
class DULinesToolTip : public TQToolTip class DULinesToolTip : public TQToolTip
{ {
public: public:
DULinesToolTip( DiskUsage *usage, TQWidget *tqparent, TQListView *lv ); DULinesToolTip( DiskUsage *usage, TQWidget *parent, TQListView *lv );
void maybeTip( const TQPoint &pos ); void maybeTip( const TQPoint &pos );
virtual ~DULinesToolTip() {} virtual ~DULinesToolTip() {}
@ -185,8 +185,8 @@ private:
DiskUsage *diskUsage; DiskUsage *diskUsage;
}; };
DULinesToolTip::DULinesToolTip( DiskUsage *usage, TQWidget *tqparent, TQListView *lv ) DULinesToolTip::DULinesToolTip( DiskUsage *usage, TQWidget *parent, TQListView *lv )
: TQToolTip( tqparent ), view( lv ), diskUsage( usage ) : TQToolTip( parent ), view( lv ), diskUsage( usage )
{ {
} }
@ -276,7 +276,7 @@ void DULines::slotDirChanged( Directory *dirEntry )
TQListViewItem * lastItem = 0; TQListViewItem * lastItem = 0;
if( ! ( dirEntry->tqparent() == 0 ) ) if( ! ( dirEntry->parent() == 0 ) )
{ {
lastItem = new TQListViewItem( this, ".." ); lastItem = new TQListViewItem( this, ".." );
lastItem->setPixmap( 0, FL_LOADICON( "up" ) ); lastItem->setPixmap( 0, FL_LOADICON( "up" ) );
@ -398,7 +398,7 @@ bool DULines::doubleClicked( TQListViewItem * item )
} }
else else
{ {
Directory *upDir = (Directory *)diskUsage->getCurrentDir()->tqparent(); Directory *upDir = (Directory *)diskUsage->getCurrentDir()->parent();
if( upDir ) if( upDir )
diskUsage->changeDirectory( upDir ); diskUsage->changeDirectory( upDir );

@ -111,11 +111,11 @@ DUListView::~ DUListView()
krConfig->writeEntry("D Group Width", columnWidth( 8 ) ); krConfig->writeEntry("D Group Width", columnWidth( 8 ) );
} }
void DUListView::addDirectory( Directory *dirEntry, TQListViewItem *tqparent ) void DUListView::addDirectory( Directory *dirEntry, TQListViewItem *parent )
{ {
TQListViewItem * lastItem = 0; TQListViewItem * lastItem = 0;
if( tqparent == 0 && ! ( dirEntry->tqparent() == 0 ) ) if( parent == 0 && ! ( dirEntry->parent() == 0 ) )
{ {
lastItem = new TQListViewItem( this, ".." ); lastItem = new TQListViewItem( this, ".." );
lastItem->setPixmap( 0, FL_LOADICON( "up" ) ); lastItem->setPixmap( 0, FL_LOADICON( "up" ) );
@ -138,17 +138,17 @@ void DUListView::addDirectory( Directory *dirEntry, TQListViewItem *tqparent )
TQString ownSize = KRpermHandler::parseSize( item->ownSize() ) + " "; TQString ownSize = KRpermHandler::parseSize( item->ownSize() ) + " ";
TQString percent = item->percent(); TQString percent = item->percent();
if( lastItem == 0 && tqparent == 0 ) if( lastItem == 0 && parent == 0 )
lastItem = new DUListViewItem( diskUsage, item, this, item->name(), percent, totalSize, ownSize, lastItem = new DUListViewItem( diskUsage, item, this, item->name(), percent, totalSize, ownSize,
mime, date, item->perm(), item->owner(), item->group() ); mime, date, item->perm(), item->owner(), item->group() );
else if ( lastItem == 0 ) else if ( lastItem == 0 )
lastItem = new DUListViewItem( diskUsage, item, tqparent, item->name(), percent, totalSize, ownSize, lastItem = new DUListViewItem( diskUsage, item, parent, item->name(), percent, totalSize, ownSize,
mime, date, item->perm(), item->owner(), item->group() ); mime, date, item->perm(), item->owner(), item->group() );
else if ( tqparent == 0 ) else if ( parent == 0 )
lastItem = new DUListViewItem( diskUsage, item, this, lastItem, item->name(), percent, totalSize, lastItem = new DUListViewItem( diskUsage, item, this, lastItem, item->name(), percent, totalSize,
ownSize, mime, date, item->perm(), item->owner(), item->group() ); ownSize, mime, date, item->perm(), item->owner(), item->group() );
else else
lastItem = new DUListViewItem( diskUsage, item, tqparent, lastItem, item->name(), percent, totalSize, lastItem = new DUListViewItem( diskUsage, item, parent, lastItem, item->name(), percent, totalSize,
ownSize, mime, date, item->perm(), item->owner(), item->group() ); ownSize, mime, date, item->perm(), item->owner(), item->group() );
if( item->isExcluded() ) if( item->isExcluded() )
@ -227,7 +227,7 @@ bool DUListView::doubleClicked( TQListViewItem * item )
} }
else else
{ {
Directory *upDir = (Directory *)diskUsage->getCurrentDir()->tqparent(); Directory *upDir = (Directory *)diskUsage->getCurrentDir()->parent();
if( upDir ) if( upDir )
diskUsage->changeDirectory( upDir ); diskUsage->changeDirectory( upDir );

@ -37,37 +37,37 @@
class DUListViewItem : public TQListViewItem class DUListViewItem : public TQListViewItem
{ {
public: public:
DUListViewItem( DiskUsage *diskUsageIn, File *fileIn, TQListView * tqparent, TQString label1, DUListViewItem( DiskUsage *diskUsageIn, File *fileIn, TQListView * parent, TQString label1,
TQString label2, TQString label3, TQString label4, TQString label5, TQString label6, TQString label2, TQString label3, TQString label4, TQString label5, TQString label6,
TQString label7, TQString label8, TQString label9 ) TQString label7, TQString label8, TQString label9 )
: TQListViewItem( tqparent, label1, label2, label3, label4, label5, label6, label7, label8), : TQListViewItem( parent, label1, label2, label3, label4, label5, label6, label7, label8),
diskUsage( diskUsageIn ), file( fileIn ) diskUsage( diskUsageIn ), file( fileIn )
{ {
setText( 8, label9 ); setText( 8, label9 );
diskUsage->addProperty( file, "ListView-Ref", this ); diskUsage->addProperty( file, "ListView-Ref", this );
} }
DUListViewItem( DiskUsage *diskUsageIn, File *fileIn, TQListViewItem * tqparent, TQString label1, DUListViewItem( DiskUsage *diskUsageIn, File *fileIn, TQListViewItem * parent, TQString label1,
TQString label2, TQString label3, TQString label4, TQString label5, TQString label6, TQString label2, TQString label3, TQString label4, TQString label5, TQString label6,
TQString label7, TQString label8, TQString label9 ) TQString label7, TQString label8, TQString label9 )
: TQListViewItem( tqparent, label1, label2, label3, label4, label5, label6, label7, label8), : TQListViewItem( parent, label1, label2, label3, label4, label5, label6, label7, label8),
diskUsage( diskUsageIn ), file( fileIn ) diskUsage( diskUsageIn ), file( fileIn )
{ {
setText( 8, label9 ); setText( 8, label9 );
diskUsage->addProperty( file, "ListView-Ref", this ); diskUsage->addProperty( file, "ListView-Ref", this );
} }
DUListViewItem( DiskUsage *diskUsageIn, File *fileIn, TQListView * tqparent, TQListViewItem * after, DUListViewItem( DiskUsage *diskUsageIn, File *fileIn, TQListView * parent, TQListViewItem * after,
TQString label1, TQString label2, TQString label3, TQString label4, TQString label5, TQString label1, TQString label2, TQString label3, TQString label4, TQString label5,
TQString label6, TQString label7, TQString label8, TQString label9 ) TQString label6, TQString label7, TQString label8, TQString label9 )
: TQListViewItem( tqparent, after, label1, label2, label3, label4, label5, label6, label7, label8), : TQListViewItem( parent, after, label1, label2, label3, label4, label5, label6, label7, label8),
diskUsage( diskUsageIn ), file( fileIn ) diskUsage( diskUsageIn ), file( fileIn )
{ {
setText( 8, label9 ); setText( 8, label9 );
diskUsage->addProperty( file, "ListView-Ref", this ); diskUsage->addProperty( file, "ListView-Ref", this );
} }
DUListViewItem( DiskUsage *diskUsageIn, File *fileIn, TQListViewItem * tqparent, TQListViewItem * after, DUListViewItem( DiskUsage *diskUsageIn, File *fileIn, TQListViewItem * parent, TQListViewItem * after,
TQString label1, TQString label2, TQString label3, TQString label4, TQString label5, TQString label1, TQString label2, TQString label3, TQString label4, TQString label5,
TQString label6, TQString label7, TQString label8, TQString label9 ) TQString label6, TQString label7, TQString label8, TQString label9 )
: TQListViewItem( tqparent, after, label1, label2, label3, label4, label5, label6, label7, label8), : TQListViewItem( parent, after, label1, label2, label3, label4, label5, label6, label7, label8),
diskUsage( diskUsageIn ), file( fileIn ) diskUsage( diskUsageIn ), file( fileIn )
{ {
setText( 8, label9 ); setText( 8, label9 );
@ -137,7 +137,7 @@ protected:
virtual void keyPressEvent( TQKeyEvent *e ); virtual void keyPressEvent( TQKeyEvent *e );
private: private:
void addDirectory( Directory *dirEntry, TQListViewItem *tqparent ); void addDirectory( Directory *dirEntry, TQListViewItem *parent );
bool doubleClicked( TQListViewItem * item ); bool doubleClicked( TQListViewItem * item );
}; };

@ -19,7 +19,7 @@ File::fullPath( const Directory *root /*= 0*/ ) const
const File *d; const File *d;
for( d = this; d != root && d && d->tqparent() != 0; d = d->tqparent() ) for( d = this; d != root && d && d->parent() != 0; d = d->parent() )
{ {
if( !path.isEmpty() ) if( !path.isEmpty() )
path = "/" + path; path = "/" + path;
@ -29,8 +29,8 @@ File::fullPath( const Directory *root /*= 0*/ ) const
if( d ) if( d )
{ {
while( d->tqparent() ) while( d->parent() )
d = d->tqparent(); d = d->parent();
if( d->directory().endsWith( "/" ) ) if( d->directory().endsWith( "/" ) )
return d->directory() + path; return d->directory() + path;

@ -212,7 +212,7 @@ public:
buf.sprintf( "%d.%02d%%", m_percent / 100, m_percent % 100 ); buf.sprintf( "%d.%02d%%", m_percent / 100, m_percent % 100 );
return buf;} return buf;}
inline void setPercent( int p ) {m_percent = p;} inline void setPercent( int p ) {m_percent = p;}
inline const Directory* tqparent() const {return m_parent;} inline const Directory* parent() const {return m_parent;}
inline void setSizes( KIO::filesize_t totalSize, KIO::filesize_t ownSize ) inline void setSizes( KIO::filesize_t totalSize, KIO::filesize_t ownSize )
{ {
@ -257,11 +257,11 @@ public:
{ {
++m_fileCount; ++m_fileCount;
Directory *tqparent = m_parent; Directory *parent = m_parent;
while( tqparent ) while( parent )
{ {
tqparent->m_fileCount++; parent->m_fileCount++;
tqparent = tqparent->m_parent; parent = parent->m_parent;
} }
Chain<File>::append( p ); Chain<File>::append( p );
@ -275,11 +275,11 @@ public:
{ {
--m_fileCount; --m_fileCount;
Directory *tqparent = m_parent; Directory *parent = m_parent;
while( tqparent ) while( parent )
{ {
tqparent->m_fileCount--; parent->m_fileCount--;
tqparent = tqparent->m_parent; parent = parent->m_parent;
} }
it.remove(); it.remove();

@ -81,7 +81,7 @@ RadialMap::Widget::paintExplodedLabels( TQPainter &paint ) const
p != m_tree; p != m_tree;
++startLevel ) //startLevel is the level above whatever m_focus is in ++startLevel ) //startLevel is the level above whatever m_focus is in
{ {
p = p->tqparent(); p = p->parent();
} }
//range=2 means 2 levels to draw labels for //range=2 means 2 levels to draw labels for

@ -17,8 +17,8 @@
RadialMap::Widget::Widget( TQWidget *tqparent, const char *name ) RadialMap::Widget::Widget( TQWidget *parent, const char *name )
: TQWidget( tqparent, name, TQt::WNoAutoErase ) : TQWidget( parent, name, TQt::WNoAutoErase )
, m_tree( 0 ) , m_tree( 0 )
, m_focus( 0 ) , m_focus( 0 )
, m_tip( KCursor::handCursor().bitmap()->height() ) //needs to know cursor height , m_tip( KCursor::handCursor().bitmap()->height() ) //needs to know cursor height

@ -126,7 +126,7 @@ RadialMap::Widget::mouseMoveEvent( TQMouseEvent *e )
tqrepaint( false ); tqrepaint( false );
} }
m_tip.moveto( e->globalPos(), *this, ( p.y() < 0 ) ); //updates tooltip psuedo-trantqparent background m_tip.moveto( e->globalPos(), *this, ( p.y() < 0 ) ); //updates tooltip psuedo-tranparent background
} }
else if( oldFocus && oldFocus->file() != m_tree ) else if( oldFocus && oldFocus->file() != m_tree )
{ {

@ -46,7 +46,7 @@
#define USERSFILE TQString("/etc/passwd") #define USERSFILE TQString("/etc/passwd")
#define GROUPSFILE TQString("/etc/group") #define GROUPSFILE TQString("/etc/group")
AdvancedFilter::AdvancedFilter( FilterTabs *tabs, TQWidget *tqparent, const char *name ) : TQWidget( tqparent, name ), fltTabs( tabs ) AdvancedFilter::AdvancedFilter( FilterTabs *tabs, TQWidget *parent, const char *name ) : TQWidget( parent, name ), fltTabs( tabs )
{ {
TQGridLayout *filterLayout = new TQGridLayout( this ); TQGridLayout *filterLayout = new TQGridLayout( this );
filterLayout->setSpacing( 6 ); filterLayout->setSpacing( 6 );

@ -47,7 +47,7 @@ class AdvancedFilter : public TQWidget, public FilterBase
TQ_OBJECT TQ_OBJECT
public: public:
AdvancedFilter( FilterTabs *tabs, TQWidget *tqparent = 0, const char *name = 0 ); AdvancedFilter( FilterTabs *tabs, TQWidget *parent = 0, const char *name = 0 );
virtual void queryAccepted() {} virtual void queryAccepted() {}
virtual bool fillQuery( KRQuery *query ); virtual bool fillQuery( KRQuery *query );

@ -34,8 +34,8 @@
#include <klocale.h> #include <klocale.h>
FilterDialog::FilterDialog( TQWidget *tqparent, const char *name ) FilterDialog::FilterDialog( TQWidget *parent, const char *name )
: KDialogBase( tqparent, name, true, i18n("Krusader::Choose Files"), Ok|Cancel ) : KDialogBase( parent, name, true, i18n("Krusader::Choose Files"), Ok|Cancel )
{ {
TQGridLayout *filterGrid = new TQGridLayout( this->tqlayout() ); TQGridLayout *filterGrid = new TQGridLayout( this->tqlayout() );
filterGrid->setSpacing( 6 ); filterGrid->setSpacing( 6 );

@ -43,7 +43,7 @@ class FilterDialog : public KDialogBase
TQ_OBJECT TQ_OBJECT
public: public:
FilterDialog( TQWidget *tqparent = 0, const char *name = 0 ); FilterDialog( TQWidget *parent = 0, const char *name = 0 );
KRQuery getQuery(); KRQuery getQuery();
public slots: public slots:

@ -35,8 +35,8 @@
#include <klocale.h> #include <klocale.h>
FilterTabs::FilterTabs( int properties, TQTabWidget *tabWidget, TQObject *tqparent ) : FilterTabs::FilterTabs( int properties, TQTabWidget *tabWidget, TQObject *parent ) :
TQObject( tqparent, 0 ) TQObject( parent, 0 )
{ {
this->tabWidget = tabWidget; this->tabWidget = tabWidget;
@ -123,9 +123,9 @@ FilterBase * FilterTabs::get( TQString name )
return 0; return 0;
} }
KRQuery FilterTabs::getQuery( TQWidget *tqparent, const char *name ) KRQuery FilterTabs::getQuery( TQWidget *parent, const char *name )
{ {
FilterDialog dialog( tqparent, name ); FilterDialog dialog( parent, name );
return dialog.getQuery(); return dialog.getQuery();
} }

@ -55,7 +55,7 @@ class FilterTabs : public TQObject
}; };
static FilterTabs * addTo( TQTabWidget *tabWidget, int props = FilterTabs::Default ); static FilterTabs * addTo( TQTabWidget *tabWidget, int props = FilterTabs::Default );
static KRQuery getQuery( TQWidget *tqparent = 0, const char *name = 0 ); static KRQuery getQuery( TQWidget *parent = 0, const char *name = 0 );
FilterBase *get( TQString name ); FilterBase *get( TQString name );
@ -69,7 +69,7 @@ class FilterTabs : public TQObject
void closeRequest( bool accept = true ); void closeRequest( bool accept = true );
private: private:
FilterTabs( int properties, TQTabWidget *tabWidget, TQObject *tqparent ); FilterTabs( int properties, TQTabWidget *tabWidget, TQObject *parent );
void acceptQuery(); void acceptQuery();
TQPtrList<FilterBase> filterList; TQPtrList<FilterBase> filterList;

@ -40,7 +40,7 @@
#include <tqwhatsthis.h> #include <tqwhatsthis.h>
#include <tqpushbutton.h> #include <tqpushbutton.h>
GeneralFilter::GeneralFilter( FilterTabs *tabs, int properties, TQWidget *tqparent, const char *name ) : TQWidget( tqparent, name ), GeneralFilter::GeneralFilter( FilterTabs *tabs, int properties, TQWidget *parent, const char *name ) : TQWidget( parent, name ),
profileManager( 0 ), fltTabs( tabs ) profileManager( 0 ), fltTabs( tabs )
{ {
TQGridLayout *filterLayout = new TQGridLayout( this ); TQGridLayout *filterLayout = new TQGridLayout( this );

@ -51,7 +51,7 @@ class GeneralFilter : public TQWidget, public FilterBase
TQ_OBJECT TQ_OBJECT
public: public:
GeneralFilter( FilterTabs *tabs, int properties, TQWidget *tqparent = 0, const char *name = 0 ); GeneralFilter( FilterTabs *tabs, int properties, TQWidget *parent = 0, const char *name = 0 );
~GeneralFilter(); ~GeneralFilter();
virtual bool fillQuery( KRQuery *query ); virtual bool fillQuery( KRQuery *query );

@ -26,7 +26,7 @@
#include <kdebug.h> #include <kdebug.h>
DirHistoryButton::DirHistoryButton( DirHistoryQueue* hQ, TQWidget *tqparent, const char *name ) : TQToolButton( tqparent, name ) { DirHistoryButton::DirHistoryButton( DirHistoryQueue* hQ, TQWidget *parent, const char *name ) : TQToolButton( parent, name ) {
KIconLoader * iconLoader = new KIconLoader(); KIconLoader * iconLoader = new KIconLoader();
TQPixmap icon = iconLoader->loadIcon( "history", KIcon::Toolbar, 16 ); TQPixmap icon = iconLoader->loadIcon( "history", KIcon::Toolbar, 16 );

@ -33,7 +33,7 @@ class DirHistoryButton : public TQToolButton {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
DirHistoryButton(DirHistoryQueue* hQ, TQWidget *tqparent=0, const char *name=0); DirHistoryButton(DirHistoryQueue* hQ, TQWidget *parent=0, const char *name=0);
~DirHistoryButton(); ~DirHistoryButton();
void openPopup(); void openPopup();

@ -57,7 +57,7 @@
#include <tqsizepolicy.h> #include <tqsizepolicy.h>
#include <ktempfile.h> #include <ktempfile.h>
KCMDLine::KCMDLine( TQWidget *tqparent, const char *name ) : TQWidget( tqparent, name ) { KCMDLine::KCMDLine( TQWidget *parent, const char *name ) : TQWidget( parent, name ) {
TQGridLayout * tqlayout = new TQGridLayout( this, 1, 4 ); TQGridLayout * tqlayout = new TQGridLayout( this, 1, 4 );
path = new TQLabel( this ); path = new TQLabel( this );
TQWhatsThis::add TQWhatsThis::add

@ -53,7 +53,7 @@ class KrHistoryCombo: public KHistoryCombo {
TQ_OBJECT TQ_OBJECT
public: public:
KrHistoryCombo(TQWidget *tqparent): KHistoryCombo(tqparent) {} KrHistoryCombo(TQWidget *parent): KHistoryCombo(parent) {}
protected: protected:
void keyPressEvent( TQKeyEvent *e ); void keyPressEvent( TQKeyEvent *e );
@ -66,7 +66,7 @@ class KCMDLine : public TQWidget, KrActionBase {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
KCMDLine( TQWidget *tqparent = 0, const char *name = 0 ); KCMDLine( TQWidget *parent = 0, const char *name = 0 );
~KCMDLine(); ~KCMDLine();
void setCurrent( const TQString & ); void setCurrent( const TQString & );
//virtual methods from KrActionBase //virtual methods from KrActionBase

@ -32,7 +32,7 @@
#include <kdebug.h> #include <kdebug.h>
KCMDModeButton::KCMDModeButton( TQWidget *tqparent, const char *name ) : TQToolButton( tqparent, name ) { KCMDModeButton::KCMDModeButton( TQWidget *parent, const char *name ) : TQToolButton( parent, name ) {
setFixedSize( 22, 20 ); setFixedSize( 22, 20 );
/* // from the old terminal-button: /* // from the old terminal-button:
setTextLabel( i18n( "If pressed, Krusader executes command line in a terminal." ) ); setTextLabel( i18n( "If pressed, Krusader executes command line in a terminal." ) );

@ -39,7 +39,7 @@ class KCMDModeButton : public TQToolButton {
TQ_OBJECT TQ_OBJECT
public: public:
/** Constructor. Sets up the menu, and the icon */ /** Constructor. Sets up the menu, and the icon */
KCMDModeButton(TQWidget *tqparent=0, const char *name=0); KCMDModeButton(TQWidget *parent=0, const char *name=0);
~KCMDModeButton(); ~KCMDModeButton();
/** Shows the popup menu. Called when clicked to the button */ /** Shows the popup menu. Called when clicked to the button */

@ -38,7 +38,7 @@
#include "../defaults.h" #include "../defaults.h"
#include "../krslots.h" #include "../krslots.h"
KFnKeys::KFnKeys(TQWidget *tqparent, char *name): TQWidget(tqparent,name) { KFnKeys::KFnKeys(TQWidget *parent, char *name): TQWidget(parent,name) {
krConfig->setGroup("Look&Feel"); krConfig->setGroup("Look&Feel");
//////////////////////////////// ////////////////////////////////
#define SETUP(TARGET) {\ #define SETUP(TARGET) {\

@ -44,7 +44,7 @@ class KFnKeys : public TQWidget {
public: public:
// constructor // constructor
KFnKeys(TQWidget *tqparent, char *name=0); KFnKeys(TQWidget *parent, char *name=0);
void updateShortcuts(); void updateShortcuts();
private: private:

@ -43,8 +43,8 @@
#define DATA_KEY TQString::tqfromLatin1("Charset") #define DATA_KEY TQString::tqfromLatin1("Charset")
KrRemoteEncodingMenu::KrRemoteEncodingMenu(const TQString &text, const TQString &icon, TQObject *tqparent, const char *name) : KrRemoteEncodingMenu::KrRemoteEncodingMenu(const TQString &text, const TQString &icon, TQObject *parent, const char *name) :
KActionMenu( text, icon, tqparent, name ), settingsLoaded( false ) KActionMenu( text, icon, parent, name ), settingsLoaded( false )
{ {
connect(popupMenu(), TQT_SIGNAL(aboutToShow()), this, TQT_SLOT(slotAboutToShow())); connect(popupMenu(), TQT_SIGNAL(aboutToShow()), this, TQT_SLOT(slotAboutToShow()));
} }

@ -42,7 +42,7 @@ class KrRemoteEncodingMenu: public KActionMenu
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
KrRemoteEncodingMenu (const TQString &text, const TQString &icon, TQObject *tqparent=0, const char *name=0); KrRemoteEncodingMenu (const TQString &text, const TQString &icon, TQObject *parent=0, const char *name=0);
virtual int plug( TQWidget *widget, int index = -1); virtual int plug( TQWidget *widget, int index = -1);

@ -34,8 +34,8 @@
#include "../resources.h" #include "../resources.h"
KrusadertqStatus::KrusadertqStatus(TQWidget *tqparent, const char *name ): KrusadertqStatus::KrusadertqStatus(TQWidget *parent, const char *name ):
KStatusBar(tqparent,name){ KStatusBar(parent,name){
insertItem(i18n("Ready."), S_READY_ID); insertItem(i18n("Ready."), S_READY_ID);
setMaximumHeight(TQFontMetrics(font()).height()+2); setMaximumHeight(TQFontMetrics(font()).height()+2);
} }

@ -46,7 +46,7 @@ class KrusadertqStatus : public KStatusBar {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
KrusadertqStatus(TQWidget *tqparent=0, const char *name=0); KrusadertqStatus(TQWidget *parent=0, const char *name=0);
~KrusadertqStatus(); ~KrusadertqStatus();
private: private:

@ -70,7 +70,7 @@
MediaButton::MediaButton( TQWidget *tqparent, const char *name ) : TQToolButton( tqparent, name ), MediaButton::MediaButton( TQWidget *parent, const char *name ) : TQToolButton( parent, name ),
popupMenu( 0 ), rightMenu( 0 ), hasMedia( false ), waitingForMount( -1 ), mountCheckerTimer() popupMenu( 0 ), rightMenu( 0 ), hasMedia( false ), waitingForMount( -1 ), mountCheckerTimer()
{ {
KIconLoader * iconLoader = new KIconLoader(); KIconLoader * iconLoader = new KIconLoader();

@ -50,7 +50,7 @@ class MediaButton : public TQToolButton {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
MediaButton(TQWidget *tqparent=0, const char *name=0); MediaButton(TQWidget *parent=0, const char *name=0);
~MediaButton(); ~MediaButton();
TQString detectType( KMountPoint *mp ); TQString detectType( KMountPoint *mp );

@ -38,8 +38,8 @@
#include <kinputdialog.h> #include <kinputdialog.h>
#include <kiconloader.h> #include <kiconloader.h>
ProfileManager::ProfileManager( TQString profileType, TQWidget * tqparent, const char * name ) ProfileManager::ProfileManager( TQString profileType, TQWidget * parent, const char * name )
: TQPushButton( tqparent, name ) : TQPushButton( parent, name )
{ {
setText( "" ); setText( "" );
KIconLoader *iconLoader = new KIconLoader(); KIconLoader *iconLoader = new KIconLoader();

@ -40,7 +40,7 @@ class ProfileManager : public TQPushButton
TQ_OBJECT TQ_OBJECT
public: public:
ProfileManager( TQString profileType, TQWidget * tqparent = 0, const char * name = 0 ); ProfileManager( TQString profileType, TQWidget * parent = 0, const char * name = 0 );
/** /**
* @param profileType Type of the profile (sync, search, ...) * @param profileType Type of the profile (sync, search, ...)

@ -32,7 +32,7 @@ The current version only manages sync-browse and got no mode-switch options.
//#include <kdebug.h> //#include <kdebug.h>
SyncBrowseButton::SyncBrowseButton(TQWidget *tqparent, const char *name) : TQToolButton(tqparent,name) SyncBrowseButton::SyncBrowseButton(TQWidget *parent, const char *name) : TQToolButton(parent,name)
{ {
KIconLoader *iconLoader = new KIconLoader(); KIconLoader *iconLoader = new KIconLoader();
_icon_on = iconLoader->loadIcon( "kr_syncbrowse_on", KIcon::Toolbar, 16 ); _icon_on = iconLoader->loadIcon( "kr_syncbrowse_on", KIcon::Toolbar, 16 );

@ -50,7 +50,7 @@ class SyncBrowseButton : public TQToolButton {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
SyncBrowseButton(TQWidget *tqparent=0, const char *name=0); SyncBrowseButton(TQWidget *parent=0, const char *name=0);
~SyncBrowseButton(); ~SyncBrowseButton();
int state(); int state();

@ -34,8 +34,8 @@
#include "../Panel/panelfunc.h" #include "../Panel/panelfunc.h"
#include "diskusageviewer.h" #include "diskusageviewer.h"
DiskUsageViewer::DiskUsageViewer( TQWidget *tqparent, char *name ) DiskUsageViewer::DiskUsageViewer( TQWidget *parent, char *name )
: TQWidget( tqparent, name ), diskUsage( 0 ), statusLabel( 0 ) : TQWidget( parent, name ), diskUsage( 0 ), statusLabel( 0 )
{ {
tqlayout = new TQGridLayout( this, 1, 1 ); tqlayout = new TQGridLayout( this, 1, 1 );
} }

@ -42,7 +42,7 @@ class DiskUsageViewer : public TQWidget
TQ_OBJECT TQ_OBJECT
public: public:
DiskUsageViewer( TQWidget *tqparent = 0, char *name = 0 ); DiskUsageViewer( TQWidget *parent = 0, char *name = 0 );
~DiskUsageViewer(); ~DiskUsageViewer();
void openURL( KURL url ); void openURL( KURL url );

@ -29,8 +29,8 @@
/**** KrusaderImageFilePreview ****/ /**** KrusaderImageFilePreview ****/
KrusaderImageFilePreview::KrusaderImageFilePreview( TQWidget *tqparent ) KrusaderImageFilePreview::KrusaderImageFilePreview( TQWidget *parent )
: KPreviewWidgetBase( tqparent ), : KPreviewWidgetBase( parent ),
m_job( 0L ) { m_job( 0L ) {
TQVBoxLayout *vb = new TQVBoxLayout( this, KDialog::marginHint() ); TQVBoxLayout *vb = new TQVBoxLayout( this, KDialog::marginHint() );

@ -31,7 +31,7 @@ class KrusaderImageFilePreview : public KPreviewWidgetBase {
TQ_OBJECT TQ_OBJECT
public: public:
KrusaderImageFilePreview( TQWidget *tqparent ); KrusaderImageFilePreview( TQWidget *parent );
~KrusaderImageFilePreview(); ~KrusaderImageFilePreview();
virtual TQSize tqsizeHint() const; virtual TQSize tqsizeHint() const;

@ -52,8 +52,8 @@
TQPtrList<KrViewer> KrViewer::viewers; TQPtrList<KrViewer> KrViewer::viewers;
KrViewer::KrViewer( TQWidget *tqparent, const char *name ) : KrViewer::KrViewer( TQWidget *parent, const char *name ) :
KParts::MainWindow( tqparent, name ), manager( this, TQT_TQOBJECT(this) ), tabBar( this ), returnFocusTo( 0 ), returnFocusTab( 0 ), KParts::MainWindow( parent, name ), manager( this, TQT_TQOBJECT(this) ), tabBar( this ), returnFocusTo( 0 ), returnFocusTab( 0 ),
reservedKeys(), reservedKeyIDs() { reservedKeys(), reservedKeyIDs() {
//setWFlags(WType_TopLevel | WDestructiveClose); //setWFlags(WType_TopLevel | WDestructiveClose);
@ -235,7 +235,7 @@ KrViewer* KrViewer::getViewer(bool new_window){
} }
} }
void KrViewer::view( KURL url, TQWidget * tqparent ) { void KrViewer::view( KURL url, TQWidget * parent ) {
Mode defaultMode = Generic; Mode defaultMode = Generic;
bool defaultWindow = false; bool defaultWindow = false;
@ -248,25 +248,25 @@ void KrViewer::view( KURL url, TQWidget * tqparent ) {
else if( modeString == "text" ) defaultMode = Text; else if( modeString == "text" ) defaultMode = Text;
else if( modeString == "hex" ) defaultMode = Hex; else if( modeString == "hex" ) defaultMode = Hex;
view(url,defaultMode,defaultWindow, tqparent ); view(url,defaultMode,defaultWindow, parent );
} }
void KrViewer::view( KURL url, Mode mode, bool new_window, TQWidget * tqparent ) { void KrViewer::view( KURL url, Mode mode, bool new_window, TQWidget * parent ) {
KrViewer* viewer = getViewer(new_window); KrViewer* viewer = getViewer(new_window);
PanelViewerBase* viewWidget = new PanelViewer(&viewer->tabBar); PanelViewerBase* viewWidget = new PanelViewer(&viewer->tabBar);
KParts::Part* part = viewWidget->openURL(url,mode); KParts::Part* part = viewWidget->openURL(url,mode);
viewer->addTab(viewWidget,i18n( "Viewing" ),VIEW_ICON,part); viewer->addTab(viewWidget,i18n( "Viewing" ),VIEW_ICON,part);
viewer->returnFocusTo = tqparent; viewer->returnFocusTo = parent;
viewer->returnFocusTab = viewWidget; viewer->returnFocusTab = viewWidget;
} }
void KrViewer::edit( KURL url, TQWidget * tqparent ) { void KrViewer::edit( KURL url, TQWidget * parent ) {
edit( url, Text, -1, tqparent ); edit( url, Text, -1, parent );
} }
void KrViewer::edit( KURL url, Mode mode, int new_window, TQWidget * tqparent ) { void KrViewer::edit( KURL url, Mode mode, int new_window, TQWidget * parent ) {
krConfig->setGroup( "General" ); krConfig->setGroup( "General" );
TQString edit = krConfig->readEntry( "Editor", _Editor ); TQString edit = krConfig->readEntry( "Editor", _Editor );
@ -291,7 +291,7 @@ void KrViewer::edit( KURL url, Mode mode, int new_window, TQWidget * tqparent )
KParts::Part* part = editWidget->openURL(url,mode); KParts::Part* part = editWidget->openURL(url,mode);
viewer->addTab(editWidget,i18n("Editing"),EDIT_ICON,part); viewer->addTab(editWidget,i18n("Editing"),EDIT_ICON,part);
viewer->returnFocusTo = tqparent; viewer->returnFocusTo = parent;
viewer->returnFocusTab = editWidget; viewer->returnFocusTab = editWidget;
} }

@ -45,10 +45,10 @@ public:
enum Mode{Generic,Text,Hex}; enum Mode{Generic,Text,Hex};
static void view( KURL url, TQWidget * tqparent = krApp ); static void view( KURL url, TQWidget * parent = krApp );
static void view( KURL url, Mode mode, bool new_window, TQWidget * tqparent = krApp ); static void view( KURL url, Mode mode, bool new_window, TQWidget * parent = krApp );
static void edit( KURL url, TQWidget * tqparent ); static void edit( KURL url, TQWidget * parent );
static void edit( KURL url, Mode mode=Text, int new_window=-1, TQWidget * tqparent = krApp ); static void edit( KURL url, Mode mode=Text, int new_window=-1, TQWidget * parent = krApp );
virtual bool eventFilter ( TQObject * watched, TQEvent * e ); virtual bool eventFilter ( TQObject * watched, TQEvent * e );
@ -83,7 +83,7 @@ protected:
virtual void focusInEvent( TQFocusEvent * ){ if( viewers.remove( this ) ) viewers.prepend( this ); } // move to first virtual void focusInEvent( TQFocusEvent * ){ if( viewers.remove( this ) ) viewers.prepend( this ); } // move to first
private: private:
KrViewer( TQWidget *tqparent = 0, const char *name = 0 ); KrViewer( TQWidget *parent = 0, const char *name = 0 );
void addTab(PanelViewerBase* pvb, TQString msg,TQString iconName, KParts::Part* part); void addTab(PanelViewerBase* pvb, TQString msg,TQString iconName, KParts::Part* part);
PanelViewerBase * getPanelViewerBase( KParts::Part* part); PanelViewerBase * getPanelViewerBase( KParts::Part* part);
void updateActions( PanelViewerBase * base ); void updateActions( PanelViewerBase * base );

@ -23,8 +23,8 @@
/* ----==={ PanelViewerBase }===---- */ /* ----==={ PanelViewerBase }===---- */
PanelViewerBase::PanelViewerBase( TQWidget *tqparent ) : PanelViewerBase::PanelViewerBase( TQWidget *parent ) :
TQWidgetStack( tqparent ), mimes( 0 ), cpart( 0 ) { TQWidgetStack( parent ), mimes( 0 ), cpart( 0 ) {
tqsetSizePolicy( TQSizePolicy( TQSizePolicy::Preferred, TQSizePolicy::Ignored ) ); tqsetSizePolicy( TQSizePolicy( TQSizePolicy::Preferred, TQSizePolicy::Ignored ) );
mimes = new TQDict<KParts::ReadOnlyPart>( DICTSIZE, false ); mimes = new TQDict<KParts::ReadOnlyPart>( DICTSIZE, false );
@ -46,8 +46,8 @@ PanelViewerBase::~PanelViewerBase() {
/* ----==={ PanelViewer }===---- */ /* ----==={ PanelViewer }===---- */
PanelViewer::PanelViewer( TQWidget *tqparent ) : PanelViewer::PanelViewer( TQWidget *parent ) :
PanelViewerBase( tqparent ) { PanelViewerBase( parent ) {
} }
PanelViewer::~PanelViewer() { PanelViewer::~PanelViewer() {
@ -196,8 +196,8 @@ void PanelViewer::oldHexViewer(KTempFile& tmpFile) {
/* ----==={ PanelEditor }===---- */ /* ----==={ PanelEditor }===---- */
PanelEditor::PanelEditor( TQWidget *tqparent ) : PanelEditor::PanelEditor( TQWidget *parent ) :
PanelViewerBase( tqparent ) { PanelViewerBase( parent ) {
} }
PanelEditor::~PanelEditor() { PanelEditor::~PanelEditor() {

@ -18,7 +18,7 @@ class PanelViewerBase: public TQWidgetStack {
TQ_OBJECT TQ_OBJECT
public: public:
PanelViewerBase( TQWidget *tqparent = 0 ); PanelViewerBase( TQWidget *parent = 0 );
virtual ~PanelViewerBase(); virtual ~PanelViewerBase();
inline KURL url() const { return curl; } inline KURL url() const { return curl; }
inline void setUrl( KURL url ) { emit urlChanged( this, url ); curl = url; } inline void setUrl( KURL url ) { emit urlChanged( this, url ); curl = url; }
@ -53,7 +53,7 @@ public slots:
bool closeURL(); bool closeURL();
public: public:
PanelViewer( TQWidget *tqparent = 0 ); PanelViewer( TQWidget *parent = 0 );
~PanelViewer(); ~PanelViewer();
virtual bool isEditor() { return false; } virtual bool isEditor() { return false; }
@ -78,7 +78,7 @@ public slots:
void slotStatResult( KIO::Job* job ); void slotStatResult( KIO::Job* job );
public: public:
PanelEditor( TQWidget *tqparent = 0 ); PanelEditor( TQWidget *parent = 0 );
~PanelEditor(); ~PanelEditor();
protected: protected:

@ -37,15 +37,15 @@
#include <kdeversion.h> #include <kdeversion.h>
#include <kprotocolinfo.h> #include <kprotocolinfo.h>
KgAdvanced::KgAdvanced( bool first, TQWidget* tqparent, const char* name ) : KgAdvanced::KgAdvanced( bool first, TQWidget* parent, const char* name ) :
KonfiguratorPage( first, tqparent, name ) KonfiguratorPage( first, parent, name )
{ {
TQGridLayout *kgAdvancedLayout = new TQGridLayout( tqparent ); TQGridLayout *kgAdvancedLayout = new TQGridLayout( parent );
kgAdvancedLayout->setSpacing( 6 ); kgAdvancedLayout->setSpacing( 6 );
// -------------------------- GENERAL GROUPBOX ---------------------------------- // -------------------------- GENERAL GROUPBOX ----------------------------------
TQGroupBox *generalGrp = createFrame( i18n( "General" ), tqparent, "kgAdvGeneralGrp" ); TQGroupBox *generalGrp = createFrame( i18n( "General" ), parent, "kgAdvGeneralGrp" );
TQGridLayout *generalGrid = createGridLayout( generalGrp->tqlayout() ); TQGridLayout *generalGrid = createGridLayout( generalGrp->tqlayout() );
#if KDE_IS_VERSION( 3,5,1 ) #if KDE_IS_VERSION( 3,5,1 )
@ -85,7 +85,7 @@ KgAdvanced::KgAdvanced( bool first, TQWidget* tqparent, const char* name ) :
// ----------------------- CONFIRMATIONS GROUPBOX ------------------------------- // ----------------------- CONFIRMATIONS GROUPBOX -------------------------------
TQGroupBox *confirmGrp = createFrame( i18n( "Confirmations" ), tqparent, "confirmGrp" ); TQGroupBox *confirmGrp = createFrame( i18n( "Confirmations" ), parent, "confirmGrp" );
TQGridLayout *confirmGrid = createGridLayout( confirmGrp->tqlayout() ); TQGridLayout *confirmGrid = createGridLayout( confirmGrp->tqlayout() );
addLabel( confirmGrid, 0, 0, "\n"+i18n( "Request user confirmation for the following operations:" )+"\n", addLabel( confirmGrid, 0, 0, "\n"+i18n( "Request user confirmation for the following operations:" )+"\n",
@ -109,7 +109,7 @@ KgAdvanced::KgAdvanced( bool first, TQWidget* tqparent, const char* name ) :
// ------------------------ FINE-TUNING GROUPBOX -------------------------------- // ------------------------ FINE-TUNING GROUPBOX --------------------------------
TQGroupBox *fineTuneGrp = createFrame( i18n( "Fine-Tuning" ), tqparent, "kgFineTuneGrp" ); TQGroupBox *fineTuneGrp = createFrame( i18n( "Fine-Tuning" ), parent, "kgFineTuneGrp" );
TQGridLayout *fineTuneGrid = createGridLayout( fineTuneGrp->tqlayout() ); TQGridLayout *fineTuneGrid = createGridLayout( fineTuneGrp->tqlayout() );
fineTuneGrid->tqsetAlignment( TQt::AlignLeft | TQt::AlignTop ); fineTuneGrid->tqsetAlignment( TQt::AlignLeft | TQt::AlignTop );

@ -39,7 +39,7 @@ class KgAdvanced : public KonfiguratorPage
TQ_OBJECT TQ_OBJECT
public: public:
KgAdvanced( bool first, TQWidget* tqparent=0, const char* name=0 ); KgAdvanced( bool first, TQWidget* parent=0, const char* name=0 );
}; };
#endif /* __KGADVANCED_H__ */ #endif /* __KGADVANCED_H__ */

@ -40,15 +40,15 @@
#include "../krusader.h" #include "../krusader.h"
#include "../VFS/krarchandler.h" #include "../VFS/krarchandler.h"
KgArchives::KgArchives( bool first, TQWidget* tqparent, const char* name ) : KgArchives::KgArchives( bool first, TQWidget* parent, const char* name ) :
KonfiguratorPage( first, tqparent, name ) KonfiguratorPage( first, parent, name )
{ {
TQGridLayout *kgArchivesLayout = new TQGridLayout( tqparent ); TQGridLayout *kgArchivesLayout = new TQGridLayout( parent );
kgArchivesLayout->setSpacing( 6 ); kgArchivesLayout->setSpacing( 6 );
// -------------------------- GENERAL GROUPBOX ---------------------------------- // -------------------------- GENERAL GROUPBOX ----------------------------------
TQGroupBox *generalGrp = createFrame( i18n( "General" ), tqparent, "generalGrp" ); TQGroupBox *generalGrp = createFrame( i18n( "General" ), parent, "generalGrp" );
TQGridLayout *generalGrid = createGridLayout( generalGrp->tqlayout() ); TQGridLayout *generalGrid = createGridLayout( generalGrp->tqlayout() );
addLabel( generalGrid, 0, 0, i18n( "Krusader transparently handles the following types of archives:" ), addLabel( generalGrid, 0, 0, i18n( "Krusader transparently handles the following types of archives:" ),
@ -86,7 +86,7 @@ KgArchives::KgArchives( bool first, TQWidget* tqparent, const char* name ) :
// ------------------------ FINE-TUNING GROUPBOX -------------------------------- // ------------------------ FINE-TUNING GROUPBOX --------------------------------
TQGroupBox *fineTuneGrp = createFrame( i18n( "Fine-Tuning" ), tqparent, "fineTuneGrp" ); TQGroupBox *fineTuneGrp = createFrame( i18n( "Fine-Tuning" ), parent, "fineTuneGrp" );
TQGridLayout *fineTuneGrid = createGridLayout( fineTuneGrp->tqlayout() ); TQGridLayout *fineTuneGrid = createGridLayout( fineTuneGrp->tqlayout() );
KONFIGURATOR_CHECKBOX_PARAM finetuners[] = KONFIGURATOR_CHECKBOX_PARAM finetuners[] =

@ -39,7 +39,7 @@ class KgArchives : public KonfiguratorPage
TQ_OBJECT TQ_OBJECT
public: public:
KgArchives( bool first, TQWidget* tqparent=0, const char* name=0 ); KgArchives( bool first, TQWidget* parent=0, const char* name=0 );
virtual bool apply(); virtual bool apply();
virtual void setDefaults(); virtual void setDefaults();

@ -40,15 +40,15 @@
#include <tqheader.h> #include <tqheader.h>
#include <tqtabwidget.h> #include <tqtabwidget.h>
KgColors::KgColors( bool first, TQWidget* tqparent, const char* name ) : KgColors::KgColors( bool first, TQWidget* parent, const char* name ) :
KonfiguratorPage( first, tqparent, name ), offset( 0 ) KonfiguratorPage( first, parent, name ), offset( 0 )
{ {
TQGridLayout *kgColorsLayout = new TQGridLayout( tqparent ); TQGridLayout *kgColorsLayout = new TQGridLayout( parent );
kgColorsLayout->setSpacing( 6 ); kgColorsLayout->setSpacing( 6 );
// -------------------------- GENERAL GROUPBOX ---------------------------------- // -------------------------- GENERAL GROUPBOX ----------------------------------
TQGroupBox *generalGrp = createFrame( i18n( "General" ), tqparent, "kgColorsGeneralGrp" ); TQGroupBox *generalGrp = createFrame( i18n( "General" ), parent, "kgColorsGeneralGrp" );
TQGridLayout *generalGrid = createGridLayout( generalGrp->tqlayout() ); TQGridLayout *generalGrid = createGridLayout( generalGrp->tqlayout() );
generalGrid->setSpacing( 0 ); generalGrid->setSpacing( 0 );
@ -72,7 +72,7 @@ KgColors::KgColors( bool first, TQWidget* tqparent, const char* name ) :
connect( generals->find( "Dim Inactive Colors" ), TQT_SIGNAL( stateChanged( int ) ), this, TQT_SLOT( slotDisable() ) ); connect( generals->find( "Dim Inactive Colors" ), TQT_SIGNAL( stateChanged( int ) ), this, TQT_SLOT( slotDisable() ) );
kgColorsLayout->addMultiCellWidget( generalGrp, 0 ,0, 0, 2 ); kgColorsLayout->addMultiCellWidget( generalGrp, 0 ,0, 0, 2 );
TQHBox *hbox = new TQHBox( tqparent ); TQHBox *hbox = new TQHBox( parent );
// -------------------------- COLORS GROUPBOX ---------------------------------- // -------------------------- COLORS GROUPBOX ----------------------------------
@ -225,11 +225,11 @@ KgColors::KgColors( bool first, TQWidget* tqparent, const char* name ) :
kgColorsLayout->addMultiCellWidget( hbox, 1 ,1, 0, 2 ); kgColorsLayout->addMultiCellWidget( hbox, 1 ,1, 0, 2 );
importBtn = new KPushButton(i18n("Import color-scheme"),tqparent); importBtn = new KPushButton(i18n("Import color-scheme"),parent);
kgColorsLayout->addWidget(importBtn,2,0); kgColorsLayout->addWidget(importBtn,2,0);
exportBtn = new KPushButton(i18n("Export color-scheme"),tqparent); exportBtn = new KPushButton(i18n("Export color-scheme"),parent);
kgColorsLayout->addWidget(exportBtn,2,1); kgColorsLayout->addWidget(exportBtn,2,1);
kgColorsLayout->addWidget(createSpacer(tqparent, ""), 2,2); kgColorsLayout->addWidget(createSpacer(parent, ""), 2,2);
connect(importBtn, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotImportColors())); connect(importBtn, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotImportColors()));
connect(exportBtn, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotExportColors())); connect(exportBtn, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotExportColors()));

@ -43,7 +43,7 @@ class KgColors : public KonfiguratorPage
TQ_OBJECT TQ_OBJECT
public: public:
KgColors( bool first, TQWidget* tqparent=0, const char* name=0 ); KgColors( bool first, TQWidget* parent=0, const char* name=0 );
bool apply(); bool apply();
@ -109,7 +109,7 @@ private:
TQString label; TQString label;
public: public:
PreviewItem( TQListView * tqparent, TQString name ) : TQListViewItem( tqparent, name ) PreviewItem( TQListView * parent, TQString name ) : TQListViewItem( parent, name )
{ {
defaultBackground = TQColor( 255, 255, 255 ); defaultBackground = TQColor( 255, 255, 255 );
defaultForeground = TQColor( 0, 0, 0 ); defaultForeground = TQColor( 0, 0, 0 );

@ -40,14 +40,14 @@
#define PAGE_PACKERS 1 #define PAGE_PACKERS 1
#define PAGE_CHECKSUM 2 #define PAGE_CHECKSUM 2
KgDependencies::KgDependencies( bool first, TQWidget* tqparent, const char* name ) : KgDependencies::KgDependencies( bool first, TQWidget* parent, const char* name ) :
KonfiguratorPage( first, tqparent, name ) KonfiguratorPage( first, parent, name )
{ {
TQGridLayout *kgDependenciesLayout = new TQGridLayout( tqparent ); TQGridLayout *kgDependenciesLayout = new TQGridLayout( parent );
kgDependenciesLayout->setSpacing( 6 ); kgDependenciesLayout->setSpacing( 6 );
// ---------------------------- GENERAL TAB ------------------------------------- // ---------------------------- GENERAL TAB -------------------------------------
tabWidget = new TQTabWidget( tqparent, "tabWidget" ); tabWidget = new TQTabWidget( parent, "tabWidget" );
TQWidget *general_tab = new TQWidget( tabWidget, "tab" ); TQWidget *general_tab = new TQWidget( tabWidget, "tab" );
tabWidget->insertTab( general_tab, i18n( "General" ) ); tabWidget->insertTab( general_tab, i18n( "General" ) );
@ -119,7 +119,7 @@ KgDependencies::KgDependencies( bool first, TQWidget* tqparent, const char* nam
kgDependenciesLayout->addWidget( tabWidget, 0, 0 ); kgDependenciesLayout->addWidget( tabWidget, 0, 0 );
} }
void KgDependencies::addApplication( TQString name, TQGridLayout *grid, int row, TQWidget *tqparent, int page, TQString additionalList ) void KgDependencies::addApplication( TQString name, TQGridLayout *grid, int row, TQWidget *parent, int page, TQString additionalList )
{ {
TQString dflt = KrServices::fullPathName( name ); /* try to autodetect the full path name */ TQString dflt = KrServices::fullPathName( name ); /* try to autodetect the full path name */
@ -132,9 +132,9 @@ void KgDependencies::addApplication( TQString name, TQGridLayout *grid, int row,
} }
} }
addLabel( grid, row, 0, name, tqparent, (TQString( "label:" )+name).ascii() ); addLabel( grid, row, 0, name, parent, (TQString( "label:" )+name).ascii() );
KonfiguratorURLRequester *fullPath = createURLRequester( "Dependencies", name, dflt, tqparent, false, page ); KonfiguratorURLRequester *fullPath = createURLRequester( "Dependencies", name, dflt, parent, false, page );
connect( fullPath->extension(), TQT_SIGNAL( applyManually( TQObject *, TQString, TQString ) ), connect( fullPath->extension(), TQT_SIGNAL( applyManually( TQObject *, TQString, TQString ) ),
this, TQT_SLOT( slotApply( TQObject *, TQString, TQString ) ) ); this, TQT_SLOT( slotApply( TQObject *, TQString, TQString ) ) );
grid->addWidget( fullPath, row, 1 ); grid->addWidget( fullPath, row, 1 );

@ -42,12 +42,12 @@ class KgDependencies : public KonfiguratorPage
TQ_OBJECT TQ_OBJECT
public: public:
KgDependencies( bool first, TQWidget* tqparent=0, const char* name=0 ); KgDependencies( bool first, TQWidget* parent=0, const char* name=0 );
virtual int activeSubPage(); virtual int activeSubPage();
private: private:
void addApplication( TQString name, TQGridLayout *grid, int row, TQWidget *tqparent, int page, TQString additionalList=TQString() ); void addApplication( TQString name, TQGridLayout *grid, int row, TQWidget *parent, int page, TQString additionalList=TQString() );
public slots: public slots:
void slotApply( TQObject *obj, TQString cls, TQString name ); void slotApply( TQObject *obj, TQString cls, TQString name );

@ -41,18 +41,18 @@
#include "../krusader.h" #include "../krusader.h"
#include "../kicons.h" #include "../kicons.h"
KgGeneral::KgGeneral( bool first, TQWidget* tqparent, const char* name ) : KgGeneral::KgGeneral( bool first, TQWidget* parent, const char* name ) :
KonfiguratorPage( first, tqparent, name ) KonfiguratorPage( first, parent, name )
{ {
if( first ) if( first )
slotFindTools(); slotFindTools();
TQGridLayout *kgGeneralLayout = new TQGridLayout( tqparent ); TQGridLayout *kgGeneralLayout = new TQGridLayout( parent );
kgGeneralLayout->setSpacing( 6 ); kgGeneralLayout->setSpacing( 6 );
// -------------------------- GENERAL GROUPBOX ---------------------------------- // -------------------------- GENERAL GROUPBOX ----------------------------------
TQGroupBox *generalGrp = createFrame( i18n( "General" ), tqparent, "kgGenGeneralGrp" ); TQGroupBox *generalGrp = createFrame( i18n( "General" ), parent, "kgGenGeneralGrp" );
TQGridLayout *generalGrid = createGridLayout( generalGrp->tqlayout() ); TQGridLayout *generalGrid = createGridLayout( generalGrp->tqlayout() );
KONFIGURATOR_NAME_VALUE_TIP deleteMode[] = KONFIGURATOR_NAME_VALUE_TIP deleteMode[] =

@ -39,7 +39,7 @@ class KgGeneral : public KonfiguratorPage
TQ_OBJECT TQ_OBJECT
public: public:
KgGeneral( bool first, TQWidget* tqparent=0, const char* name=0 ); KgGeneral( bool first, TQWidget* parent=0, const char* name=0 );
public slots: public slots:
void applyTempDir(TQObject *,TQString, TQString); void applyTempDir(TQObject *,TQString, TQString);

@ -49,13 +49,13 @@
#define PAGE_PANELTOOLBAR 2 #define PAGE_PANELTOOLBAR 2
#define PAGE_MOUSE 3 #define PAGE_MOUSE 3
KgLookFeel::KgLookFeel( bool first, TQWidget* tqparent, const char* name ) : KgLookFeel::KgLookFeel( bool first, TQWidget* parent, const char* name ) :
KonfiguratorPage( first, tqparent, name ) KonfiguratorPage( first, parent, name )
{ {
TQGridLayout *kgLookAndFeelLayout = new TQGridLayout( tqparent ); TQGridLayout *kgLookAndFeelLayout = new TQGridLayout( parent );
kgLookAndFeelLayout->setSpacing( 6 ); kgLookAndFeelLayout->setSpacing( 6 );
tabWidget = new TQTabWidget( tqparent, "tabWidget" ); tabWidget = new TQTabWidget( parent, "tabWidget" );
setupOperationTab(); setupOperationTab();
setupPanelTab(); setupPanelTab();
@ -208,7 +208,7 @@ void KgLookFeel::setupPanelToolbarTab() {
{"Look&Feel", "Clear Location Bar Visible", _ClearLocation, i18n( "Clear location bar button" ), true , i18n( "Clears the location bar" ) }, {"Look&Feel", "Clear Location Bar Visible", _ClearLocation, i18n( "Clear location bar button" ), true , i18n( "Clears the location bar" ) },
{"Look&Feel", "Open Button Visible", _Open, i18n( "Open button" ), true , i18n( "Opens the directory browser." ) }, {"Look&Feel", "Open Button Visible", _Open, i18n( "Open button" ), true , i18n( "Opens the directory browser." ) },
{"Look&Feel", "Equal Button Visible", _cdOther, i18n( "Equal button (=)" ),true , i18n( "Changes the panel directory to the other panel directory." ) }, {"Look&Feel", "Equal Button Visible", _cdOther, i18n( "Equal button (=)" ),true , i18n( "Changes the panel directory to the other panel directory." ) },
{"Look&Feel", "Up Button Visible", _cdUp, i18n( "Up button (..)" ), true , i18n( "Changes the panel directory to the tqparent directory." ) }, {"Look&Feel", "Up Button Visible", _cdUp, i18n( "Up button (..)" ), true , i18n( "Changes the panel directory to the parent directory." ) },
{"Look&Feel", "Home Button Visible", _cdHome, i18n( "Home button (~)" ), true , i18n( "Changes the panel directory to the home directory." ) }, {"Look&Feel", "Home Button Visible", _cdHome, i18n( "Home button (~)" ), true , i18n( "Changes the panel directory to the home directory." ) },
{"Look&Feel", "Root Button Visible", _cdRoot, i18n( "Root button (/)" ), true , i18n( "Changes the panel directory to the root directory." ) }, {"Look&Feel", "Root Button Visible", _cdRoot, i18n( "Root button (/)" ), true , i18n( "Changes the panel directory to the root directory." ) },
{"Look&Feel", "SyncBrowse Button Visible", _syncBrowseButton, i18n( "Toggle-button for sync-browsing" ), true , i18n( "Each directory change in the panel is also performed in the other panel." ) }, {"Look&Feel", "SyncBrowse Button Visible", _syncBrowseButton, i18n( "Toggle-button for sync-browsing" ), true , i18n( "Each directory change in the panel is also performed in the other panel." ) },

@ -41,7 +41,7 @@ class KgLookFeel : public KonfiguratorPage
TQ_OBJECT TQ_OBJECT
public: public:
KgLookFeel( bool first, TQWidget* tqparent=0, const char* name=0 ); KgLookFeel( bool first, TQWidget* parent=0, const char* name=0 );
virtual int activeSubPage(); virtual int activeSubPage();

@ -56,15 +56,15 @@ TQString KgProtocols::defaultTarMimes = "application/x-tar,application/x-tarz,
"application/x-compressed-tar," "application/x-compressed-tar,"
"application/x-tbz,application/x-tgz"; "application/x-tbz,application/x-tgz";
KgProtocols::KgProtocols( bool first, TQWidget* tqparent, const char* name ) : KgProtocols::KgProtocols( bool first, TQWidget* parent, const char* name ) :
KonfiguratorPage( first, tqparent, name ) KonfiguratorPage( first, parent, name )
{ {
TQGridLayout *KgProtocolsLayout = new TQGridLayout( tqparent ); TQGridLayout *KgProtocolsLayout = new TQGridLayout( parent );
KgProtocolsLayout->setSpacing( 6 ); KgProtocolsLayout->setSpacing( 6 );
// -------------------------- LINK VIEW ---------------------------------- // -------------------------- LINK VIEW ----------------------------------
TQGroupBox *linkGrp = createFrame( i18n( "Links" ), tqparent, "linkGrp" ); TQGroupBox *linkGrp = createFrame( i18n( "Links" ), parent, "linkGrp" );
TQGridLayout *linkGrid = createGridLayout( linkGrp->tqlayout() ); TQGridLayout *linkGrid = createGridLayout( linkGrp->tqlayout() );
linkList = new TQListView( linkGrp, "linkList" ); linkList = new TQListView( linkGrp, "linkList" );
@ -77,7 +77,7 @@ KgProtocols::KgProtocols( bool first, TQWidget* tqparent, const char* name ) :
// -------------------------- BUTTONS ---------------------------------- // -------------------------- BUTTONS ----------------------------------
TQVBox *vbox1 = new TQVBox( tqparent, "vbox1" ) ; TQVBox *vbox1 = new TQVBox( parent, "vbox1" ) ;
addSpacer( vbox1 ); addSpacer( vbox1 );
btnAddProtocol = new TQPushButton( vbox1, "btnAddProtocolButton" ); btnAddProtocol = new TQPushButton( vbox1, "btnAddProtocolButton" );
@ -90,7 +90,7 @@ KgProtocols::KgProtocols( bool first, TQWidget* tqparent, const char* name ) :
KgProtocolsLayout->addWidget( vbox1, 0 ,1 ); KgProtocolsLayout->addWidget( vbox1, 0 ,1 );
TQVBox *vbox2 = new TQVBox( tqparent, "vbox2" ) ; TQVBox *vbox2 = new TQVBox( parent, "vbox2" ) ;
addSpacer( vbox2 ); addSpacer( vbox2 );
btnAddMime = new TQPushButton( vbox2, "btnAddMimeButton" ); btnAddMime = new TQPushButton( vbox2, "btnAddMimeButton" );
@ -105,7 +105,7 @@ KgProtocols::KgProtocols( bool first, TQWidget* tqparent, const char* name ) :
// -------------------------- PROTOCOLS LISTBOX ---------------------------------- // -------------------------- PROTOCOLS LISTBOX ----------------------------------
TQGroupBox *protocolGrp = createFrame( i18n( "Protocols" ), tqparent, "protocolGrp" ); TQGroupBox *protocolGrp = createFrame( i18n( "Protocols" ), parent, "protocolGrp" );
TQGridLayout *protocolGrid = createGridLayout( protocolGrp->tqlayout() ); TQGridLayout *protocolGrid = createGridLayout( protocolGrp->tqlayout() );
protocolList = new TQListBox( protocolGrp, "protocolList" ); protocolList = new TQListBox( protocolGrp, "protocolList" );
@ -116,7 +116,7 @@ KgProtocols::KgProtocols( bool first, TQWidget* tqparent, const char* name ) :
// -------------------------- MIMES LISTBOX ---------------------------------- // -------------------------- MIMES LISTBOX ----------------------------------
TQGroupBox *mimeGrp = createFrame( i18n( "Mimes" ), tqparent, "mimeGrp" ); TQGroupBox *mimeGrp = createFrame( i18n( "Mimes" ), parent, "mimeGrp" );
TQGridLayout *mimeGrid = createGridLayout( mimeGrp->tqlayout() ); TQGridLayout *mimeGrid = createGridLayout( mimeGrp->tqlayout() );
mimeList = new TQListBox( mimeGrp, "protocolList" ); mimeList = new TQListBox( mimeGrp, "protocolList" );
@ -140,9 +140,9 @@ KgProtocols::KgProtocols( bool first, TQWidget* tqparent, const char* name ) :
slotDisableButtons(); slotDisableButtons();
} }
TQWidget* KgProtocols::addSpacer( TQWidget *tqparent, const char *widgetName ) TQWidget* KgProtocols::addSpacer( TQWidget *parent, const char *widgetName )
{ {
TQWidget *widget = new TQWidget( tqparent, widgetName ); TQWidget *widget = new TQWidget( parent, widgetName );
TQVBoxLayout *vboxtqlayout = new TQVBoxLayout( widget ); TQVBoxLayout *vboxtqlayout = new TQVBoxLayout( widget );
TQSpacerItem* spacer = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding ); TQSpacerItem* spacer = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
vboxtqlayout->addItem( spacer ); vboxtqlayout->addItem( spacer );
@ -180,10 +180,10 @@ void KgProtocols::slotDisableButtons()
{ {
btnAddProtocol->setEnabled( protocolList->selectedItem() != 0 ); btnAddProtocol->setEnabled( protocolList->selectedItem() != 0 );
TQListViewItem *listViewItem = linkList->currentItem(); TQListViewItem *listViewItem = linkList->currentItem();
bool isProtocolSelected = ( listViewItem == 0 ? false : listViewItem->tqparent() == 0 ); bool isProtocolSelected = ( listViewItem == 0 ? false : listViewItem->parent() == 0 );
btnRemoveProtocol->setEnabled( isProtocolSelected ); btnRemoveProtocol->setEnabled( isProtocolSelected );
btnAddMime->setEnabled( listViewItem != 0 && mimeList->selectedItem() != 0 ); btnAddMime->setEnabled( listViewItem != 0 && mimeList->selectedItem() != 0 );
btnRemoveMime->setEnabled( listViewItem == 0 ? false : listViewItem->tqparent() != 0 ); btnRemoveMime->setEnabled( listViewItem == 0 ? false : listViewItem->parent() != 0 );
if( linkList->currentItem() == 0 && linkList->firstChild() != 0 ) if( linkList->currentItem() == 0 && linkList->firstChild() != 0 )
linkList->setCurrentItem( linkList->firstChild() ); linkList->setCurrentItem( linkList->firstChild() );
@ -247,8 +247,8 @@ void KgProtocols::slotAddMime()
if( item && linkList->currentItem() != 0 ) if( item && linkList->currentItem() != 0 )
{ {
TQListViewItem *itemToAdd = linkList->currentItem(); TQListViewItem *itemToAdd = linkList->currentItem();
if( itemToAdd->tqparent() ) if( itemToAdd->parent() )
itemToAdd = itemToAdd->tqparent(); itemToAdd = itemToAdd->parent();
addMime( item->text(), itemToAdd->text( 0 ) ); addMime( item->text(), itemToAdd->text( 0 ) );
slotDisableButtons(); slotDisableButtons();
@ -261,7 +261,7 @@ void KgProtocols::addMime( TQString name, TQString protocol )
TQListBoxItem *item = mimeList->findItem( name, ExactMatch ); TQListBoxItem *item = mimeList->findItem( name, ExactMatch );
TQListViewItem *currentListItem = linkList->findItem( protocol, 0 ); TQListViewItem *currentListItem = linkList->findItem( protocol, 0 );
if( item && currentListItem && currentListItem->tqparent() == 0 ) if( item && currentListItem && currentListItem->parent() == 0 )
{ {
mimeList->removeItem( mimeList->index( item ) ); mimeList->removeItem( mimeList->index( item ) );
TQListViewItem *listViewItem = new TQListViewItem( currentListItem, name ); TQListViewItem *listViewItem = new TQListViewItem( currentListItem, name );
@ -285,11 +285,11 @@ void KgProtocols::removeMime( TQString name )
{ {
TQListViewItem *currentMimeItem = linkList->findItem( name, 0 ); TQListViewItem *currentMimeItem = linkList->findItem( name, 0 );
if( currentMimeItem && currentMimeItem->tqparent() != 0 ) if( currentMimeItem && currentMimeItem->parent() != 0 )
{ {
mimeList->insertItem( currentMimeItem->text( 0 ) ); mimeList->insertItem( currentMimeItem->text( 0 ) );
mimeList->sort(); mimeList->sort();
currentMimeItem->tqparent()->takeItem( currentMimeItem ); currentMimeItem->parent()->takeItem( currentMimeItem );
} }
} }

@ -42,7 +42,7 @@ class KgProtocols : public KonfiguratorPage
TQ_OBJECT TQ_OBJECT
public: public:
KgProtocols( bool first, TQWidget* tqparent=0, const char* name=0 ); KgProtocols( bool first, TQWidget* parent=0, const char* name=0 );
virtual void loadInitialValues(); virtual void loadInitialValues();
virtual void setDefaults(); virtual void setDefaults();
@ -61,7 +61,7 @@ public slots:
protected: protected:
void loadListCapableProtocols(); void loadListCapableProtocols();
void loadMimes(); void loadMimes();
TQWidget* addSpacer( TQWidget *tqparent, const char *widgetName = 0); TQWidget* addSpacer( TQWidget *parent, const char *widgetName = 0);
void addProtocol( TQString name, bool changeCurrent = false ); void addProtocol( TQString name, bool changeCurrent = false );
void removeProtocol( TQString name ); void removeProtocol( TQString name );

@ -36,15 +36,15 @@
#include <klineedit.h> #include <klineedit.h>
#include <tqwhatsthis.h> #include <tqwhatsthis.h>
KgStartup::KgStartup( bool first, TQWidget* tqparent, const char* name ) : KgStartup::KgStartup( bool first, TQWidget* parent, const char* name ) :
KonfiguratorPage( first, tqparent, name ), profileCombo( 0 ) KonfiguratorPage( first, parent, name ), profileCombo( 0 )
{ {
TQGridLayout *kgStartupLayout = new TQGridLayout( tqparent ); TQGridLayout *kgStartupLayout = new TQGridLayout( parent );
kgStartupLayout->setSpacing( 6 ); kgStartupLayout->setSpacing( 6 );
// --------------------------- PANELS GROUPBOX ---------------------------------- // --------------------------- PANELS GROUPBOX ----------------------------------
TQGroupBox *panelsGrp = createFrame( i18n( "General" ), tqparent, "panelsGrp" ); TQGroupBox *panelsGrp = createFrame( i18n( "General" ), parent, "panelsGrp" );
TQGridLayout *panelsGrid = createGridLayout( panelsGrp->tqlayout() ); TQGridLayout *panelsGrid = createGridLayout( panelsGrp->tqlayout() );
TQString s = "<p><img src='toolbar|kr_profile'></p>" + i18n( "Defines the panel profile used at startup. A panel profile contains:<ul><li>all the tabs paths</li><li>the current tab</li><li>the active panel</li></ul><b>&lt;Last session&gt;</b> is a special panel profile which is saved automatically when Krusader is closed."); TQString s = "<p><img src='toolbar|kr_profile'></p>" + i18n( "Defines the panel profile used at startup. A panel profile contains:<ul><li>all the tabs paths</li><li>the current tab</li><li>the active panel</li></ul><b>&lt;Last session&gt;</b> is a special panel profile which is saved automatically when Krusader is closed.");
@ -80,7 +80,7 @@ KgStartup::KgStartup( bool first, TQWidget* tqparent, const char* name ) :
// ------------------------ USERINTERFACE GROUPBOX ------------------------------ // ------------------------ USERINTERFACE GROUPBOX ------------------------------
TQGroupBox *uiGrp = createFrame( i18n( "User Interface" ), tqparent, "uiGrp" ); TQGroupBox *uiGrp = createFrame( i18n( "User Interface" ), parent, "uiGrp" );
TQGridLayout *uiGrid = createGridLayout( uiGrp->tqlayout() ); TQGridLayout *uiGrid = createGridLayout( uiGrp->tqlayout() );
KONFIGURATOR_CHECKBOX_PARAM uiCheckBoxes[] = KONFIGURATOR_CHECKBOX_PARAM uiCheckBoxes[] =

@ -39,7 +39,7 @@ class KgStartup : public KonfiguratorPage
TQ_OBJECT TQ_OBJECT
public: public:
KgStartup( bool first, TQWidget* tqparent=0, const char* name=0 ); KgStartup( bool first, TQWidget* parent=0, const char* name=0 );
public slots: public slots:
void slotDisable(); void slotDisable();

@ -38,14 +38,14 @@
#include <kdebug.h> #include <kdebug.h>
KgUserActions::KgUserActions( bool first, TQWidget* tqparent, const char* name ) : KgUserActions::KgUserActions( bool first, TQWidget* parent, const char* name ) :
KonfiguratorPage( first, tqparent, name ) KonfiguratorPage( first, parent, name )
{ {
TQGridLayout *kgUserActionLayout = new TQGridLayout( tqparent, 2, 1, TQGridLayout *kgUserActionLayout = new TQGridLayout( parent, 2, 1,
0 /* margin */, 6 /* spacing */, "kgUserActionLayout" ); 0 /* margin */, 6 /* spacing */, "kgUserActionLayout" );
// ============= Info Group ============= // ============= Info Group =============
TQGroupBox *InfoGroup = createFrame( i18n( "Information" ), tqparent, "kgUserActionInfoGroup" ); TQGroupBox *InfoGroup = createFrame( i18n( "Information" ), parent, "kgUserActionInfoGroup" );
TQGridLayout *InfoGrid = createGridLayout( InfoGroup->tqlayout() ); TQGridLayout *InfoGrid = createGridLayout( InfoGroup->tqlayout() );
// terminal for the UserActions // terminal for the UserActions
@ -61,7 +61,7 @@ KgUserActions::KgUserActions( bool first, TQWidget* tqparent, const char* name
kgUserActionLayout->addWidget( InfoGroup, 0 ,0 ); kgUserActionLayout->addWidget( InfoGroup, 0 ,0 );
// ============= Terminal Group ============= // ============= Terminal Group =============
TQGroupBox *terminalGroup = createFrame( i18n( "Terminal execution" ), tqparent, "kgUserActionTerminalGroup" ); TQGroupBox *terminalGroup = createFrame( i18n( "Terminal execution" ), parent, "kgUserActionTerminalGroup" );
TQGridLayout *terminalGrid = createGridLayout( terminalGroup->tqlayout() ); TQGridLayout *terminalGrid = createGridLayout( terminalGroup->tqlayout() );
// terminal for the UserActions // terminal for the UserActions
@ -75,7 +75,7 @@ KgUserActions::KgUserActions( bool first, TQWidget* tqparent, const char* name
kgUserActionLayout->addWidget( terminalGroup, 1 ,0 ); kgUserActionLayout->addWidget( terminalGroup, 1 ,0 );
// ============= Outputcollection Group ============= // ============= Outputcollection Group =============
TQGroupBox *outputGroup = createFrame( i18n( "Output collection" ), tqparent, "kgUserActionOutputGroup" ); TQGroupBox *outputGroup = createFrame( i18n( "Output collection" ), parent, "kgUserActionOutputGroup" );
TQGridLayout *outputGrid = createGridLayout( outputGroup->tqlayout() ); TQGridLayout *outputGrid = createGridLayout( outputGroup->tqlayout() );
TQHBox *hbox; TQHBox *hbox;
@ -99,7 +99,7 @@ KgUserActions::KgUserActions( bool first, TQWidget* tqparent, const char* name
} }
void KgUserActions::startActionMan() { void KgUserActions::startActionMan() {
ActionMan actionMan( TQT_TQWIDGET(tqparent()) ); ActionMan actionMan( TQT_TQWIDGET(parent()) );
} }

@ -43,7 +43,7 @@ class KgUserActions : public KonfiguratorPage
TQ_OBJECT TQ_OBJECT
public: public:
KgUserActions( bool first, TQWidget* tqparent=0, const char* name=0 ); KgUserActions( bool first, TQWidget* parent=0, const char* name=0 );
public slots: public slots:
void startActionMan(); void startActionMan();

@ -31,16 +31,16 @@
#include "kgwelcome.h" #include "kgwelcome.h"
#include <kstandarddirs.h> #include <kstandarddirs.h>
KgWelcome::KgWelcome( bool first, TQWidget* tqparent, const char* name ) : KgWelcome::KgWelcome( bool first, TQWidget* parent, const char* name ) :
KonfiguratorPage( first, tqparent, name ) KonfiguratorPage( first, parent, name )
{ {
TQGridLayout *kgWelcomeLayout = new TQGridLayout( tqparent ); TQGridLayout *kgWelcomeLayout = new TQGridLayout( parent );
kgWelcomeLayout->setSpacing( 6 ); kgWelcomeLayout->setSpacing( 6 );
TQString pix=KGlobal::dirs()->findResource("appdata","konfig_small.jpg"); TQString pix=KGlobal::dirs()->findResource("appdata","konfig_small.jpg");
TQPixmap image0( pix ); TQPixmap image0( pix );
TQLabel *pixmapLabel = new TQLabel( tqparent, "pixmapLabel" ); TQLabel *pixmapLabel = new TQLabel( parent, "pixmapLabel" );
pixmapLabel->setPixmap( image0 ); pixmapLabel->setPixmap( image0 );
pixmapLabel->setScaledContents( TRUE ); pixmapLabel->setScaledContents( TRUE );

@ -39,7 +39,7 @@ class KgWelcome : public KonfiguratorPage
TQ_OBJECT TQ_OBJECT
public: public:
KgWelcome( bool first, TQWidget* tqparent=0, const char* name=0 ); KgWelcome( bool first, TQWidget* parent=0, const char* name=0 );
}; };
#endif /* __KGWELCOME_H__ */ #endif /* __KGWELCOME_H__ */

@ -92,7 +92,7 @@ bool KonfiguratorExtension::isChanged()
/////////////////////////////// ///////////////////////////////
KonfiguratorCheckBox::KonfiguratorCheckBox( TQString cls, TQString name, bool dflt, TQString text, KonfiguratorCheckBox::KonfiguratorCheckBox( TQString cls, TQString name, bool dflt, TQString text,
TQWidget *tqparent, const char *widgetName, bool rst, int pg ) : TQCheckBox( text, tqparent, widgetName ), TQWidget *parent, const char *widgetName, bool rst, int pg ) : TQCheckBox( text, parent, widgetName ),
defaultValue( dflt ) defaultValue( dflt )
{ {
ext = new KonfiguratorExtension( TQT_TQOBJECT(this), cls, name, rst, pg ); ext = new KonfiguratorExtension( TQT_TQOBJECT(this), cls, name, rst, pg );
@ -132,7 +132,7 @@ void KonfiguratorCheckBox::slotSetDefaults(TQObject *)
/////////////////////////////// ///////////////////////////////
KonfiguratorSpinBox::KonfiguratorSpinBox( TQString cls, TQString name, int dflt, int min, int max, KonfiguratorSpinBox::KonfiguratorSpinBox( TQString cls, TQString name, int dflt, int min, int max,
TQWidget *tqparent, const char *widgetName, bool rst, int pg ) : TQSpinBox( tqparent, widgetName ), TQWidget *parent, const char *widgetName, bool rst, int pg ) : TQSpinBox( parent, widgetName ),
defaultValue( dflt ) defaultValue( dflt )
{ {
ext = new KonfiguratorExtension( TQT_TQOBJECT(this), cls, name, rst, pg ); ext = new KonfiguratorExtension( TQT_TQOBJECT(this), cls, name, rst, pg );
@ -204,8 +204,8 @@ KonfiguratorCheckBox * KonfiguratorCheckBoxGroup::find( TQString name )
/////////////////////////////// ///////////////////////////////
KonfiguratorRadioButtons::KonfiguratorRadioButtons( TQString cls, TQString name, KonfiguratorRadioButtons::KonfiguratorRadioButtons( TQString cls, TQString name,
TQString dflt, TQWidget *tqparent, const char *widgetName, bool rst, int pg ) : TQString dflt, TQWidget *parent, const char *widgetName, bool rst, int pg ) :
TQButtonGroup( tqparent, widgetName ), defaultValue( dflt ) TQButtonGroup( parent, widgetName ), defaultValue( dflt )
{ {
ext = new KonfiguratorExtension( TQT_TQOBJECT(this), cls, name, rst, pg ); ext = new KonfiguratorExtension( TQT_TQOBJECT(this), cls, name, rst, pg );
connect( ext, TQT_SIGNAL( applyAuto(TQObject *,TQString, TQString) ), TQT_TQOBJECT(this), TQT_SLOT( slotApply(TQObject *,TQString, TQString) ) ); connect( ext, TQT_SIGNAL( applyAuto(TQObject *,TQString, TQString) ), TQT_TQOBJECT(this), TQT_SLOT( slotApply(TQObject *,TQString, TQString) ) );
@ -299,7 +299,7 @@ void KonfiguratorRadioButtons::slotSetDefaults(TQObject *)
/////////////////////////////// ///////////////////////////////
KonfiguratorEditBox::KonfiguratorEditBox( TQString cls, TQString name, TQString dflt, KonfiguratorEditBox::KonfiguratorEditBox( TQString cls, TQString name, TQString dflt,
TQWidget *tqparent, const char *widgetName, bool rst, int pg ) : TQLineEdit( tqparent, widgetName ), TQWidget *parent, const char *widgetName, bool rst, int pg ) : TQLineEdit( parent, widgetName ),
defaultValue( dflt ) defaultValue( dflt )
{ {
ext = new KonfiguratorExtension( TQT_TQOBJECT(this), cls, name, rst, pg ); ext = new KonfiguratorExtension( TQT_TQOBJECT(this), cls, name, rst, pg );
@ -341,7 +341,7 @@ void KonfiguratorEditBox::slotSetDefaults(TQObject *)
/////////////////////////////// ///////////////////////////////
KonfiguratorURLRequester::KonfiguratorURLRequester( TQString cls, TQString name, TQString dflt, KonfiguratorURLRequester::KonfiguratorURLRequester( TQString cls, TQString name, TQString dflt,
TQWidget *tqparent, const char *widgetName, bool rst, int pg ) : KURLRequester( tqparent, widgetName ), TQWidget *parent, const char *widgetName, bool rst, int pg ) : KURLRequester( parent, widgetName ),
defaultValue( dflt ) defaultValue( dflt )
{ {
ext = new KonfiguratorExtension( TQT_TQOBJECT(this), cls, name, rst, pg ); ext = new KonfiguratorExtension( TQT_TQOBJECT(this), cls, name, rst, pg );
@ -383,7 +383,7 @@ void KonfiguratorURLRequester::slotSetDefaults(TQObject *)
/////////////////////////////// ///////////////////////////////
KonfiguratorFontChooser::KonfiguratorFontChooser( TQString cls, TQString name, TQFont *dflt, KonfiguratorFontChooser::KonfiguratorFontChooser( TQString cls, TQString name, TQFont *dflt,
TQWidget *tqparent, const char *widgetName, bool rst, int pg ) : TQHBox ( tqparent, widgetName ), TQWidget *parent, const char *widgetName, bool rst, int pg ) : TQHBox ( parent, widgetName ),
defaultValue( dflt ) defaultValue( dflt )
{ {
ext = new KonfiguratorExtension( TQT_TQOBJECT(this), cls, name, rst, pg ); ext = new KonfiguratorExtension( TQT_TQOBJECT(this), cls, name, rst, pg );
@ -446,8 +446,8 @@ void KonfiguratorFontChooser::slotBrowseFont()
/////////////////////////////// ///////////////////////////////
KonfiguratorComboBox::KonfiguratorComboBox( TQString cls, TQString name, TQString dflt, KonfiguratorComboBox::KonfiguratorComboBox( TQString cls, TQString name, TQString dflt,
KONFIGURATOR_NAME_VALUE_PAIR *listIn, int listInLen, TQWidget *tqparent, KONFIGURATOR_NAME_VALUE_PAIR *listIn, int listInLen, TQWidget *parent,
const char *widgetName, bool rst, bool editable, int pg ) : TQComboBox ( tqparent, widgetName ), const char *widgetName, bool rst, bool editable, int pg ) : TQComboBox ( parent, widgetName ),
defaultValue( dflt ), listLen( listInLen ) defaultValue( dflt ), listLen( listInLen )
{ {
list = new KONFIGURATOR_NAME_VALUE_PAIR[ listInLen ]; list = new KONFIGURATOR_NAME_VALUE_PAIR[ listInLen ];
@ -525,8 +525,8 @@ void KonfiguratorComboBox::slotSetDefaults(TQObject *)
/////////////////////////////// ///////////////////////////////
KonfiguratorColorChooser::KonfiguratorColorChooser( TQString cls, TQString name, TQColor dflt, KonfiguratorColorChooser::KonfiguratorColorChooser( TQString cls, TQString name, TQColor dflt,
TQWidget *tqparent, const char *widgetName, bool rst, ADDITIONAL_COLOR *addColPtr, TQWidget *parent, const char *widgetName, bool rst, ADDITIONAL_COLOR *addColPtr,
int addColNum, int pg ) : TQComboBox ( tqparent, widgetName ), int addColNum, int pg ) : TQComboBox ( parent, widgetName ),
defaultValue( dflt ), disableColorChooser( true ) defaultValue( dflt ), disableColorChooser( true )
{ {
ext = new KonfiguratorExtension( TQT_TQOBJECT(this), cls, name, rst, pg ); ext = new KonfiguratorExtension( TQT_TQOBJECT(this), cls, name, rst, pg );
@ -739,7 +739,7 @@ TQColor KonfiguratorColorChooser::getColor()
/////////////////////////////// ///////////////////////////////
KonfiguratorListBox::KonfiguratorListBox( TQString cls, TQString name, TQStringList dflt, KonfiguratorListBox::KonfiguratorListBox( TQString cls, TQString name, TQStringList dflt,
TQWidget *tqparent, const char *widgetName, bool rst, int pg ) : TQListBox( tqparent, widgetName ), TQWidget *parent, const char *widgetName, bool rst, int pg ) : TQListBox( parent, widgetName ),
defaultValue( dflt ) defaultValue( dflt )
{ {
ext = new KonfiguratorExtension( TQT_TQOBJECT(this), cls, name, rst, pg ); ext = new KonfiguratorExtension( TQT_TQOBJECT(this), cls, name, rst, pg );

@ -110,7 +110,7 @@ class KonfiguratorCheckBox : public TQCheckBox
public: public:
KonfiguratorCheckBox( TQString cls, TQString name, bool dflt, TQString text, KonfiguratorCheckBox( TQString cls, TQString name, bool dflt, TQString text,
TQWidget *tqparent=0, const char *widgetName=0, bool rst=false, int pg=FIRST_PAGE ); TQWidget *parent=0, const char *widgetName=0, bool rst=false, int pg=FIRST_PAGE );
~KonfiguratorCheckBox(); ~KonfiguratorCheckBox();
inline KonfiguratorExtension *extension() {return ext;} inline KonfiguratorExtension *extension() {return ext;}
@ -135,7 +135,7 @@ class KonfiguratorSpinBox : public TQSpinBox
public: public:
KonfiguratorSpinBox( TQString cls, TQString name, int dflt, int min, int max, KonfiguratorSpinBox( TQString cls, TQString name, int dflt, int min, int max,
TQWidget *tqparent=0, const char *widgetName=0, bool rst=false, int pg=FIRST_PAGE ); TQWidget *parent=0, const char *widgetName=0, bool rst=false, int pg=FIRST_PAGE );
~KonfiguratorSpinBox(); ~KonfiguratorSpinBox();
inline KonfiguratorExtension *extension() {return ext;} inline KonfiguratorExtension *extension() {return ext;}
@ -156,8 +156,8 @@ protected:
class KonfiguratorCheckBoxGroup : public TQWidget class KonfiguratorCheckBoxGroup : public TQWidget
{ {
public: public:
KonfiguratorCheckBoxGroup( TQWidget * tqparent = 0, const char * name = 0 ) : KonfiguratorCheckBoxGroup( TQWidget * parent = 0, const char * name = 0 ) :
TQWidget( tqparent, name ) {}; TQWidget( parent, name ) {};
void add( KonfiguratorCheckBox * ); void add( KonfiguratorCheckBox * );
KonfiguratorCheckBox * find( int index ); KonfiguratorCheckBox * find( int index );
@ -176,7 +176,7 @@ class KonfiguratorRadioButtons : public TQButtonGroup
TQ_OBJECT TQ_OBJECT
public: public:
KonfiguratorRadioButtons( TQString cls, TQString name, TQString dflt, TQWidget *tqparent=0, KonfiguratorRadioButtons( TQString cls, TQString name, TQString dflt, TQWidget *parent=0,
const char *widgetName=0, bool rst=false, int pg=FIRST_PAGE ); const char *widgetName=0, bool rst=false, int pg=FIRST_PAGE );
~KonfiguratorRadioButtons(); ~KonfiguratorRadioButtons();
@ -214,7 +214,7 @@ class KonfiguratorEditBox : public TQLineEdit
TQ_OBJECT TQ_OBJECT
public: public:
KonfiguratorEditBox( TQString cls, TQString name, TQString dflt, TQWidget *tqparent=0, KonfiguratorEditBox( TQString cls, TQString name, TQString dflt, TQWidget *parent=0,
const char *widgetName=0, bool rst=false, int pg=FIRST_PAGE ); const char *widgetName=0, bool rst=false, int pg=FIRST_PAGE );
~KonfiguratorEditBox(); ~KonfiguratorEditBox();
@ -240,7 +240,7 @@ class KonfiguratorURLRequester : public KURLRequester
TQ_OBJECT TQ_OBJECT
public: public:
KonfiguratorURLRequester( TQString cls, TQString name, TQString dflt, TQWidget *tqparent=0, KonfiguratorURLRequester( TQString cls, TQString name, TQString dflt, TQWidget *parent=0,
const char *widgetName=0, bool rst=false, int pg=FIRST_PAGE ); const char *widgetName=0, bool rst=false, int pg=FIRST_PAGE );
~KonfiguratorURLRequester(); ~KonfiguratorURLRequester();
@ -265,7 +265,7 @@ class KonfiguratorFontChooser : public TQHBox
TQ_OBJECT TQ_OBJECT
public: public:
KonfiguratorFontChooser( TQString cls, TQString name, TQFont *dflt, TQWidget *tqparent=0, KonfiguratorFontChooser( TQString cls, TQString name, TQFont *dflt, TQWidget *parent=0,
const char *widgetName=0, bool rst=false, int pg=FIRST_PAGE ); const char *widgetName=0, bool rst=false, int pg=FIRST_PAGE );
~KonfiguratorFontChooser(); ~KonfiguratorFontChooser();
@ -318,7 +318,7 @@ class KonfiguratorComboBox : public TQComboBox
public: public:
KonfiguratorComboBox( TQString cls, TQString name, TQString dflt, KonfiguratorComboBox( TQString cls, TQString name, TQString dflt,
KONFIGURATOR_NAME_VALUE_PAIR *listIn, int listInLen, KONFIGURATOR_NAME_VALUE_PAIR *listIn, int listInLen,
TQWidget *tqparent=0, const char *widgetName=0, TQWidget *parent=0, const char *widgetName=0,
bool rst=false, bool editable=false, int pg=FIRST_PAGE ); bool rst=false, bool editable=false, int pg=FIRST_PAGE );
~KonfiguratorComboBox(); ~KonfiguratorComboBox();
@ -356,7 +356,7 @@ class KonfiguratorColorChooser : public TQComboBox
public: public:
KonfiguratorColorChooser( TQString cls, TQString name, TQColor dflt, KonfiguratorColorChooser( TQString cls, TQString name, TQColor dflt,
TQWidget *tqparent=0, const char *widgetName=0, bool rst=false, TQWidget *parent=0, const char *widgetName=0, bool rst=false,
ADDITIONAL_COLOR *addColPtr = 0, int addColNum = 0, int pg=FIRST_PAGE ); ADDITIONAL_COLOR *addColPtr = 0, int addColNum = 0, int pg=FIRST_PAGE );
~KonfiguratorColorChooser(); ~KonfiguratorColorChooser();
@ -402,7 +402,7 @@ class KonfiguratorListBox : public TQListBox
public: public:
KonfiguratorListBox( TQString cls, TQString name, TQStringList dflt, KonfiguratorListBox( TQString cls, TQString name, TQStringList dflt,
TQWidget *tqparent=0, const char *widgetName=0, TQWidget *parent=0, const char *widgetName=0,
bool rst=false, int pg=FIRST_PAGE ); bool rst=false, int pg=FIRST_PAGE );
~KonfiguratorListBox(); ~KonfiguratorListBox();

@ -33,8 +33,8 @@
#include "../krusader.h" #include "../krusader.h"
#include <tqwhatsthis.h> #include <tqwhatsthis.h>
KonfiguratorPage::KonfiguratorPage( bool firstTime, TQWidget* tqparent, const char* name ) : KonfiguratorPage::KonfiguratorPage( bool firstTime, TQWidget* parent, const char* name ) :
TQFrame( tqparent, name ), firstCall( firstTime ) TQFrame( parent, name ), firstCall( firstTime )
{ {
} }
@ -96,10 +96,10 @@ bool KonfiguratorPage::isChanged()
} }
KonfiguratorCheckBox* KonfiguratorPage::createCheckBox( TQString cls, TQString name, KonfiguratorCheckBox* KonfiguratorPage::createCheckBox( TQString cls, TQString name,
bool dflt, TQString text, TQWidget *tqparent, bool rst, TQString toolTip, int pg ) bool dflt, TQString text, TQWidget *parent, bool rst, TQString toolTip, int pg )
{ {
KonfiguratorCheckBox *checkBox = new KonfiguratorCheckBox( cls, name, dflt, text, KonfiguratorCheckBox *checkBox = new KonfiguratorCheckBox( cls, name, dflt, text,
tqparent, TQString(cls + "/" + name).ascii(), rst, pg ); parent, TQString(cls + "/" + name).ascii(), rst, pg );
if( !toolTip.isEmpty() ) if( !toolTip.isEmpty() )
TQWhatsThis::add( checkBox, toolTip ); TQWhatsThis::add( checkBox, toolTip );
@ -108,19 +108,19 @@ KonfiguratorCheckBox* KonfiguratorPage::createCheckBox( TQString cls, TQString n
} }
KonfiguratorSpinBox* KonfiguratorPage::createSpinBox( TQString cls, TQString name, KonfiguratorSpinBox* KonfiguratorPage::createSpinBox( TQString cls, TQString name,
int dflt, int min, int max, TQWidget *tqparent, bool rst, int pg ) int dflt, int min, int max, TQWidget *parent, bool rst, int pg )
{ {
KonfiguratorSpinBox *spinBox = new KonfiguratorSpinBox( cls, name, dflt, min, max, KonfiguratorSpinBox *spinBox = new KonfiguratorSpinBox( cls, name, dflt, min, max,
tqparent, TQString(cls + "/" + name).ascii(), rst, pg ); parent, TQString(cls + "/" + name).ascii(), rst, pg );
registerObject( spinBox->extension() ); registerObject( spinBox->extension() );
return spinBox; return spinBox;
} }
KonfiguratorEditBox* KonfiguratorPage::createEditBox( TQString cls, TQString name, KonfiguratorEditBox* KonfiguratorPage::createEditBox( TQString cls, TQString name,
TQString dflt, TQWidget *tqparent, bool rst, int pg ) TQString dflt, TQWidget *parent, bool rst, int pg )
{ {
KonfiguratorEditBox *editBox = new KonfiguratorEditBox( cls, name, dflt, tqparent, KonfiguratorEditBox *editBox = new KonfiguratorEditBox( cls, name, dflt, parent,
TQString(cls + "/" + name).ascii(), rst, pg ); TQString(cls + "/" + name).ascii(), rst, pg );
registerObject( editBox->extension() ); registerObject( editBox->extension() );
@ -128,9 +128,9 @@ KonfiguratorEditBox* KonfiguratorPage::createEditBox( TQString cls, TQString na
} }
KonfiguratorListBox* KonfiguratorPage::createListBox( TQString cls, TQString name, KonfiguratorListBox* KonfiguratorPage::createListBox( TQString cls, TQString name,
TQStringList dflt, TQWidget *tqparent, bool rst, int pg ) TQStringList dflt, TQWidget *parent, bool rst, int pg )
{ {
KonfiguratorListBox *listBox = new KonfiguratorListBox( cls, name, dflt, tqparent, KonfiguratorListBox *listBox = new KonfiguratorListBox( cls, name, dflt, parent,
TQString(cls + "/" + name).ascii(), rst, pg ); TQString(cls + "/" + name).ascii(), rst, pg );
registerObject( listBox->extension() ); registerObject( listBox->extension() );
@ -138,19 +138,19 @@ KonfiguratorListBox* KonfiguratorPage::createListBox( TQString cls, TQString na
} }
KonfiguratorURLRequester* KonfiguratorPage::createURLRequester( TQString cls, TQString name, KonfiguratorURLRequester* KonfiguratorPage::createURLRequester( TQString cls, TQString name,
TQString dflt, TQWidget *tqparent, bool rst, int pg ) TQString dflt, TQWidget *parent, bool rst, int pg )
{ {
KonfiguratorURLRequester *urlRequester = new KonfiguratorURLRequester( cls, name, dflt, KonfiguratorURLRequester *urlRequester = new KonfiguratorURLRequester( cls, name, dflt,
tqparent, TQString(cls + "/" + name).ascii(), rst, pg ); parent, TQString(cls + "/" + name).ascii(), rst, pg );
registerObject( urlRequester->extension() ); registerObject( urlRequester->extension() );
return urlRequester; return urlRequester;
} }
TQGroupBox* KonfiguratorPage::createFrame( TQString text, TQWidget *tqparent, TQGroupBox* KonfiguratorPage::createFrame( TQString text, TQWidget *parent,
const char *widgetName ) const char *widgetName )
{ {
TQGroupBox *groupBox = new TQGroupBox( tqparent, widgetName ); TQGroupBox *groupBox = new TQGroupBox( parent, widgetName );
groupBox->setFrameShape( TQGroupBox::Box ); groupBox->setFrameShape( TQGroupBox::Box );
groupBox->setFrameShadow( TQGroupBox::Sunken ); groupBox->setFrameShadow( TQGroupBox::Sunken );
if( !text.isNull() ) if( !text.isNull() )
@ -161,9 +161,9 @@ TQGroupBox* KonfiguratorPage::createFrame( TQString text, TQWidget *tqparent,
return groupBox; return groupBox;
} }
TQGridLayout* KonfiguratorPage::createGridLayout( TQLayout *tqparent ) TQGridLayout* KonfiguratorPage::createGridLayout( TQLayout *parent )
{ {
TQGridLayout *gridLayout = new TQGridLayout( tqparent ); TQGridLayout *gridLayout = new TQGridLayout( parent );
gridLayout->tqsetAlignment( TQt::AlignTop ); gridLayout->tqsetAlignment( TQt::AlignTop );
gridLayout->setSpacing( 6 ); gridLayout->setSpacing( 6 );
gridLayout->setMargin( 11 ); gridLayout->setMargin( 11 );
@ -171,16 +171,16 @@ TQGridLayout* KonfiguratorPage::createGridLayout( TQLayout *tqparent )
} }
TQLabel* KonfiguratorPage::addLabel( TQGridLayout *tqlayout, int x, int y, TQString label, TQLabel* KonfiguratorPage::addLabel( TQGridLayout *tqlayout, int x, int y, TQString label,
TQWidget *tqparent, const char *widgetName ) TQWidget *parent, const char *widgetName )
{ {
TQLabel *lbl = new TQLabel( label, tqparent, widgetName ); TQLabel *lbl = new TQLabel( label, parent, widgetName );
tqlayout->addWidget( lbl, x, y ); tqlayout->addWidget( lbl, x, y );
return lbl; return lbl;
} }
TQWidget* KonfiguratorPage::createSpacer( TQWidget *tqparent, const char *widgetName ) TQWidget* KonfiguratorPage::createSpacer( TQWidget *parent, const char *widgetName )
{ {
TQWidget *widget = new TQWidget( tqparent, widgetName ); TQWidget *widget = new TQWidget( parent, widgetName );
TQHBoxLayout *hboxtqlayout = new TQHBoxLayout( widget ); TQHBoxLayout *hboxtqlayout = new TQHBoxLayout( widget );
TQSpacerItem* spacer = new TQSpacerItem( 40, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum ); TQSpacerItem* spacer = new TQSpacerItem( 40, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
hboxtqlayout->addItem( spacer ); hboxtqlayout->addItem( spacer );
@ -188,10 +188,10 @@ TQWidget* KonfiguratorPage::createSpacer( TQWidget *tqparent, const char *widget
} }
KonfiguratorCheckBoxGroup* KonfiguratorPage::createCheckBoxGroup( int sizex, int sizey, KonfiguratorCheckBoxGroup* KonfiguratorPage::createCheckBoxGroup( int sizex, int sizey,
KONFIGURATOR_CHECKBOX_PARAM *params, int paramNum, TQWidget *tqparent, KONFIGURATOR_CHECKBOX_PARAM *params, int paramNum, TQWidget *parent,
const char *widgetName, int pg ) const char *widgetName, int pg )
{ {
KonfiguratorCheckBoxGroup *groupWidget = new KonfiguratorCheckBoxGroup( tqparent, widgetName ); KonfiguratorCheckBoxGroup *groupWidget = new KonfiguratorCheckBoxGroup( parent, widgetName );
TQGridLayout *tqlayout = new TQGridLayout( groupWidget ); TQGridLayout *tqlayout = new TQGridLayout( groupWidget );
tqlayout->setSpacing( 6 ); tqlayout->setSpacing( 6 );
tqlayout->setMargin( 0 ); tqlayout->setMargin( 0 );
@ -224,9 +224,9 @@ KonfiguratorCheckBoxGroup* KonfiguratorPage::createCheckBoxGroup( int sizex, int
KonfiguratorRadioButtons* KonfiguratorPage::createRadioButtonGroup( TQString cls, KonfiguratorRadioButtons* KonfiguratorPage::createRadioButtonGroup( TQString cls,
TQString name, TQString dflt, int sizex, int sizey, KONFIGURATOR_NAME_VALUE_TIP *params, TQString name, TQString dflt, int sizex, int sizey, KONFIGURATOR_NAME_VALUE_TIP *params,
int paramNum, TQWidget *tqparent, const char *widgetName, bool rst, int pg ) int paramNum, TQWidget *parent, const char *widgetName, bool rst, int pg )
{ {
KonfiguratorRadioButtons *radioWidget = new KonfiguratorRadioButtons( cls, name, dflt, tqparent, widgetName, rst, pg ); KonfiguratorRadioButtons *radioWidget = new KonfiguratorRadioButtons( cls, name, dflt, parent, widgetName, rst, pg );
radioWidget->setFrameShape( TQButtonGroup::NoFrame ); radioWidget->setFrameShape( TQButtonGroup::NoFrame );
radioWidget->setFrameShadow( TQButtonGroup::Sunken ); radioWidget->setFrameShadow( TQButtonGroup::Sunken );
radioWidget->setTitle( "" ); radioWidget->setTitle( "" );
@ -271,9 +271,9 @@ KonfiguratorRadioButtons* KonfiguratorPage::createRadioButtonGroup( TQString cls
} }
KonfiguratorFontChooser *KonfiguratorPage::createFontChooser( TQString cls, TQString name, KonfiguratorFontChooser *KonfiguratorPage::createFontChooser( TQString cls, TQString name,
TQFont *dflt, TQWidget *tqparent, bool rst, int pg ) TQFont *dflt, TQWidget *parent, bool rst, int pg )
{ {
KonfiguratorFontChooser *fontChooser = new KonfiguratorFontChooser( cls, name, dflt, tqparent, KonfiguratorFontChooser *fontChooser = new KonfiguratorFontChooser( cls, name, dflt, parent,
TQString(cls + "/" + name).ascii(), rst, pg ); TQString(cls + "/" + name).ascii(), rst, pg );
registerObject( fontChooser->extension() ); registerObject( fontChooser->extension() );
@ -281,19 +281,19 @@ KonfiguratorFontChooser *KonfiguratorPage::createFontChooser( TQString cls, TQSt
} }
KonfiguratorComboBox *KonfiguratorPage::createComboBox( TQString cls, TQString name, TQString dflt, KonfiguratorComboBox *KonfiguratorPage::createComboBox( TQString cls, TQString name, TQString dflt,
KONFIGURATOR_NAME_VALUE_PAIR *params, int paramNum, TQWidget *tqparent, bool rst, bool editable, int pg ) KONFIGURATOR_NAME_VALUE_PAIR *params, int paramNum, TQWidget *parent, bool rst, bool editable, int pg )
{ {
KonfiguratorComboBox *comboBox = new KonfiguratorComboBox( cls, name, dflt, params, KonfiguratorComboBox *comboBox = new KonfiguratorComboBox( cls, name, dflt, params,
paramNum, tqparent, TQString(cls + "/" + name).ascii(), paramNum, parent, TQString(cls + "/" + name).ascii(),
rst, editable, pg ); rst, editable, pg );
registerObject( comboBox->extension() ); registerObject( comboBox->extension() );
return comboBox; return comboBox;
} }
TQFrame* KonfiguratorPage::createLine( TQWidget *tqparent, const char *widgetName, bool vertical ) TQFrame* KonfiguratorPage::createLine( TQWidget *parent, const char *widgetName, bool vertical )
{ {
TQFrame *line = new TQFrame( tqparent, widgetName ); TQFrame *line = new TQFrame( parent, widgetName );
line->setFrameStyle( ( vertical ? TQFrame::VLine : TQFrame::HLine ) | TQFrame::Sunken ); line->setFrameStyle( ( vertical ? TQFrame::VLine : TQFrame::HLine ) | TQFrame::Sunken );
return line; return line;
} }
@ -321,10 +321,10 @@ void KonfiguratorPage::removeObject( KonfiguratorExtension *item )
} }
KonfiguratorColorChooser *KonfiguratorPage::createColorChooser( TQString cls, TQString name, TQColor dflt, KonfiguratorColorChooser *KonfiguratorPage::createColorChooser( TQString cls, TQString name, TQColor dflt,
TQWidget *tqparent, bool rst, TQWidget *parent, bool rst,
ADDITIONAL_COLOR *addColPtr, int addColNum, int pg ) ADDITIONAL_COLOR *addColPtr, int addColNum, int pg )
{ {
KonfiguratorColorChooser *colorChooser = new KonfiguratorColorChooser( cls, name, dflt, tqparent, KonfiguratorColorChooser *colorChooser = new KonfiguratorColorChooser( cls, name, dflt, parent,
TQString(cls + "/" + name).ascii(), rst, addColPtr, addColNum, pg ); TQString(cls + "/" + name).ascii(), rst, addColPtr, addColNum, pg );
registerObject( colorChooser->extension() ); registerObject( colorChooser->extension() );

@ -58,10 +58,10 @@ public:
* The constructor of the KonfiguratorPage class. * The constructor of the KonfiguratorPage class.
* *
* @param firstTime this parameter is true if it is the first call of Konfigurator * @param firstTime this parameter is true if it is the first call of Konfigurator
* @param tqparent reference to the tqparent widget * @param parent reference to the parent widget
* @param name name of the newly generated Konfigurator page widget * @param name name of the newly generated Konfigurator page widget
*/ */
KonfiguratorPage( bool firstTime, TQWidget* tqparent, const char* name ); KonfiguratorPage( bool firstTime, TQWidget* parent, const char* name );
/** /**
* Applies the changes in the Konfigurator page. * Applies the changes in the Konfigurator page.
@ -127,7 +127,7 @@ public:
* @param name The item name used in KConfig (ex. "Do Tar") * @param name The item name used in KConfig (ex. "Do Tar")
* @param dflt The default value of the checkbox * @param dflt The default value of the checkbox
* @param text The text field of the checkbox * @param text The text field of the checkbox
* @param tqparent Reference to the tqparent widget * @param parent Reference to the parent widget
* @param rst The change of this parameter requires Krusader restart * @param rst The change of this parameter requires Krusader restart
* @param toolTip Tooltip used for this checkbox * @param toolTip Tooltip used for this checkbox
* @param pg The subpage of a Konfigurator page (because of setDefaults) * @param pg The subpage of a Konfigurator page (because of setDefaults)
@ -135,7 +135,7 @@ public:
* @return reference to the newly created checkbox * @return reference to the newly created checkbox
*/ */
KonfiguratorCheckBox *createCheckBox( TQString cls, TQString name, bool dflt, KonfiguratorCheckBox *createCheckBox( TQString cls, TQString name, bool dflt,
TQString text, TQWidget *tqparent=0, bool rst=false, TQString text, TQWidget *parent=0, bool rst=false,
TQString toolTip = TQString(), int pg=FIRST_PAGE ); TQString toolTip = TQString(), int pg=FIRST_PAGE );
/** /**
@ -151,14 +151,14 @@ public:
* @param dflt The default value of the spinbox * @param dflt The default value of the spinbox
* @param min The minimum value of the spinbox * @param min The minimum value of the spinbox
* @param max The maximum value of the spinbox * @param max The maximum value of the spinbox
* @param tqparent Reference to the tqparent widget * @param parent Reference to the parent widget
* @param rst The change of this parameter requires Krusader restart * @param rst The change of this parameter requires Krusader restart
* @param pg The subpage of a Konfigurator page (because of setDefaults) * @param pg The subpage of a Konfigurator page (because of setDefaults)
* *
* @return reference to the newly created spinbox * @return reference to the newly created spinbox
*/ */
KonfiguratorSpinBox *createSpinBox( TQString cls, TQString name, int dflt, int min, KonfiguratorSpinBox *createSpinBox( TQString cls, TQString name, int dflt, int min,
int max, TQWidget *tqparent = 0, bool rst = false, int pg=FIRST_PAGE ); int max, TQWidget *parent = 0, bool rst = false, int pg=FIRST_PAGE );
/** /**
* Adds a new editbox item to the page. * Adds a new editbox item to the page.
@ -171,14 +171,14 @@ public:
* @param cls The class name used in KConfig (ex. "Archives") * @param cls The class name used in KConfig (ex. "Archives")
* @param name The itemname used in KConfig (ex. "Do Tar") * @param name The itemname used in KConfig (ex. "Do Tar")
* @param dflt The default value of the editbox * @param dflt The default value of the editbox
* @param tqparent Reference to the tqparent widget * @param parent Reference to the parent widget
* @param rst The change of this parameter requires Krusader restart * @param rst The change of this parameter requires Krusader restart
* @param pg The subpage of a Konfigurator page (because of setDefaults) * @param pg The subpage of a Konfigurator page (because of setDefaults)
* *
* @return reference to the newly created editbox * @return reference to the newly created editbox
*/ */
KonfiguratorEditBox *createEditBox( TQString cls, TQString name, TQString dflt, KonfiguratorEditBox *createEditBox( TQString cls, TQString name, TQString dflt,
TQWidget *tqparent=0, bool rst=false, int pg=FIRST_PAGE ); TQWidget *parent=0, bool rst=false, int pg=FIRST_PAGE );
/** /**
* Adds a new listbox item to the page. * Adds a new listbox item to the page.
@ -193,14 +193,14 @@ public:
* @param cls The class name used in KConfig (ex. "Archives") * @param cls The class name used in KConfig (ex. "Archives")
* @param name The itemname used in KConfig (ex. "Do Tar") * @param name The itemname used in KConfig (ex. "Do Tar")
* @param dflt The default value of the listbox * @param dflt The default value of the listbox
* @param tqparent Reference to the tqparent widget * @param parent Reference to the parent widget
* @param rst The change of this parameter requires Krusader restart * @param rst The change of this parameter requires Krusader restart
* @param pg The subpage of a Konfigurator page (because of setDefaults) * @param pg The subpage of a Konfigurator page (because of setDefaults)
* *
* @return reference to the newly created editbox * @return reference to the newly created editbox
*/ */
KonfiguratorListBox *createListBox( TQString cls, TQString name, TQStringList dflt, KonfiguratorListBox *createListBox( TQString cls, TQString name, TQStringList dflt,
TQWidget *tqparent=0, bool rst=false, int pg=FIRST_PAGE ); TQWidget *parent=0, bool rst=false, int pg=FIRST_PAGE );
/** /**
* Adds a new URL requester item to the page. * Adds a new URL requester item to the page.
@ -214,14 +214,14 @@ public:
* @param name The itemname used in KConfig (ex. "Do Tar") * @param name The itemname used in KConfig (ex. "Do Tar")
* @param dflt The default value of the URL requester * @param dflt The default value of the URL requester
* @param text The text field of the URL requester * @param text The text field of the URL requester
* @param tqparent Reference to the tqparent widget * @param parent Reference to the parent widget
* @param rst The change of this parameter requires Krusader restart * @param rst The change of this parameter requires Krusader restart
* @param pg The subpage of a Konfigurator page (because of setDefaults) * @param pg The subpage of a Konfigurator page (because of setDefaults)
* *
* @return reference to the newly created URL requester * @return reference to the newly created URL requester
*/ */
KonfiguratorURLRequester *createURLRequester( TQString cls, TQString name, KonfiguratorURLRequester *createURLRequester( TQString cls, TQString name,
TQString dflt, TQWidget *tqparent, bool rst, int pg=FIRST_PAGE ); TQString dflt, TQWidget *parent, bool rst, int pg=FIRST_PAGE );
/** /**
* Adds a new font chooser item to the page. * Adds a new font chooser item to the page.
@ -234,14 +234,14 @@ public:
* @param cls The class name used in KConfig (ex. "Archives") * @param cls The class name used in KConfig (ex. "Archives")
* @param name The item name used in KConfig (ex. "Do Tar") * @param name The item name used in KConfig (ex. "Do Tar")
* @param dflt The default value of the font chooser * @param dflt The default value of the font chooser
* @param tqparent Reference to the tqparent widget * @param parent Reference to the parent widget
* @param rst The change of this parameter requires Krusader restart * @param rst The change of this parameter requires Krusader restart
* @param pg The subpage of a Konfigurator page (because of setDefaults) * @param pg The subpage of a Konfigurator page (because of setDefaults)
* *
* @return reference to the newly created font chooser * @return reference to the newly created font chooser
*/ */
KonfiguratorFontChooser *createFontChooser( TQString cls, TQString name, TQFont *dflt, KonfiguratorFontChooser *createFontChooser( TQString cls, TQString name, TQFont *dflt,
TQWidget *tqparent=0, bool rst=false, int pg=FIRST_PAGE ); TQWidget *parent=0, bool rst=false, int pg=FIRST_PAGE );
/** /**
* Adds a new combobox item to the page. * Adds a new combobox item to the page.
@ -261,7 +261,7 @@ public:
* @param params Pointer to the name-value pair array (combo elements) * @param params Pointer to the name-value pair array (combo elements)
* @param paramNum Number of the combobox elements * @param paramNum Number of the combobox elements
* @param text The text field of the combobox * @param text The text field of the combobox
* @param tqparent Reference to the tqparent widget * @param parent Reference to the parent widget
* @param rst The change of this parameter requires Krusader restart * @param rst The change of this parameter requires Krusader restart
* @param editable Flag indicates that the combo can be edited * @param editable Flag indicates that the combo can be edited
* @param pg The subpage of a Konfigurator page (because of setDefaults) * @param pg The subpage of a Konfigurator page (because of setDefaults)
@ -270,7 +270,7 @@ public:
*/ */
KonfiguratorComboBox *createComboBox( TQString cls, TQString name, TQString dflt, KonfiguratorComboBox *createComboBox( TQString cls, TQString name, TQString dflt,
KONFIGURATOR_NAME_VALUE_PAIR *params, int paramNum, KONFIGURATOR_NAME_VALUE_PAIR *params, int paramNum,
TQWidget *tqparent=0, bool rst=false, bool editable=false, int pg=FIRST_PAGE ); TQWidget *parent=0, bool rst=false, bool editable=false, int pg=FIRST_PAGE );
/** /**
* Creates a frame on the page. * Creates a frame on the page.
@ -280,12 +280,12 @@ public:
* myLayout->addWidget( myGroup, 0, 0 ); * myLayout->addWidget( myGroup, 0, 0 );
* *
* @param text The text written out onto the frame * @param text The text written out onto the frame
* @param tqparent Reference to the tqparent widget * @param parent Reference to the parent widget
* @param widgetName The name of the widget * @param widgetName The name of the widget
* *
* @return reference to the newly created frame * @return reference to the newly created frame
*/ */
TQGroupBox *createFrame( TQString text = TQString(), TQWidget *tqparent=0, TQGroupBox *createFrame( TQString text = TQString(), TQWidget *parent=0,
const char *widgetName=0 ); const char *widgetName=0 );
/** /**
@ -296,11 +296,11 @@ public:
* TQGridLayout *myLayout = createGridLayout( myGroup->tqlayout() );<br> * TQGridLayout *myLayout = createGridLayout( myGroup->tqlayout() );<br>
* myLayout->addWidget( myGroup, 0, 0 ); * myLayout->addWidget( myGroup, 0, 0 );
* *
* @param tqparent Reference to the tqparent tqlayout * @param parent Reference to the parent tqlayout
* *
* @return reference to the newly created TQGridLayout * @return reference to the newly created TQGridLayout
*/ */
TQGridLayout *createGridLayout( TQLayout *tqparent ); TQGridLayout *createGridLayout( TQLayout *parent );
/** /**
* Adds a new label to a grid tqlayout. * Adds a new label to a grid tqlayout.
@ -315,13 +315,13 @@ public:
* @param x the column to which the label will be placed * @param x the column to which the label will be placed
* @param y the row to which the label will be placed * @param y the row to which the label will be placed
* @param label the text of the label * @param label the text of the label
* @param tqparent Reference to the tqparent widget * @param parent Reference to the parent widget
* @param widgetName The name of the newly generated label widget * @param widgetName The name of the newly generated label widget
* *
* @return reference to the newly created label * @return reference to the newly created label
*/ */
TQLabel *addLabel( TQGridLayout *tqlayout, int x, int y, TQString label, TQLabel *addLabel( TQGridLayout *tqlayout, int x, int y, TQString label,
TQWidget *tqparent=0, const char *widgetName=0 ); TQWidget *parent=0, const char *widgetName=0 );
/** /**
* Creates a spacer object (for justifying in TQHBox). * Creates a spacer object (for justifying in TQHBox).
@ -332,12 +332,12 @@ public:
* createSpacer( hbox, "mySpacer" );<br> * createSpacer( hbox, "mySpacer" );<br>
* myLayout->addWidget( hbox, 0, 0 ); * myLayout->addWidget( hbox, 0, 0 );
* *
* @param tqparent Reference to the tqparent widget * @param parent Reference to the parent widget
* @param widgetName The name of the newly generated label widget * @param widgetName The name of the newly generated label widget
* *
* @return reference to the newly created spacer widget * @return reference to the newly created spacer widget
*/ */
TQWidget *createSpacer( TQWidget *tqparent=0, const char *widgetName=0 ); TQWidget *createSpacer( TQWidget *parent=0, const char *widgetName=0 );
/** /**
* Creates a separator line. * Creates a separator line.
@ -346,13 +346,13 @@ public:
* TQFrame *myLine = createLine( myParent, "myLine" );<br> * TQFrame *myLine = createLine( myParent, "myLine" );<br>
* myLayout->addWidget( myLine, 1, 0 );<br> * myLayout->addWidget( myLine, 1, 0 );<br>
* *
* @param tqparent Reference to the tqparent widget * @param parent Reference to the parent widget
* @param widgetName The name of the newly generated label widget * @param widgetName The name of the newly generated label widget
* @param vertical Means vertical line * @param vertical Means vertical line
* *
* @return reference to the newly created spacer widget * @return reference to the newly created spacer widget
*/ */
TQFrame *createLine( TQWidget *tqparent=0, const char *widgetName=0, bool vertical = false ); TQFrame *createLine( TQWidget *parent=0, const char *widgetName=0, bool vertical = false );
/** /**
* Creates a checkbox group. A checkbox group contains a lot of checkboxes. * Creates a checkbox group. A checkbox group contains a lot of checkboxes.
@ -378,7 +378,7 @@ public:
* @param sizey the maximum row number at vertical placing * @param sizey the maximum row number at vertical placing
* @param params pointer to the checkbox array * @param params pointer to the checkbox array
* @param paramNum number of the checkbox elements * @param paramNum number of the checkbox elements
* @param tqparent Reference to the tqparent widget * @param parent Reference to the parent widget
* @param widgetName The name of the newly created checkbox group widget * @param widgetName The name of the newly created checkbox group widget
* @param pg The subpage of a Konfigurator page (because of setDefaults) * @param pg The subpage of a Konfigurator page (because of setDefaults)
* *
@ -386,7 +386,7 @@ public:
*/ */
KonfiguratorCheckBoxGroup *createCheckBoxGroup( int sizex, int sizey, KonfiguratorCheckBoxGroup *createCheckBoxGroup( int sizex, int sizey,
KONFIGURATOR_CHECKBOX_PARAM *params, int paramNum, KONFIGURATOR_CHECKBOX_PARAM *params, int paramNum,
TQWidget *tqparent=0, const char *widgetName=0, int pg=FIRST_PAGE ); TQWidget *parent=0, const char *widgetName=0, int pg=FIRST_PAGE );
/** /**
* Creates a radio button group. A radio button group contains a lot of radio buttons. * Creates a radio button group. A radio button group contains a lot of radio buttons.
* The grouped buttons are embedded into one widget, which can be placed anywhere * The grouped buttons are embedded into one widget, which can be placed anywhere
@ -414,7 +414,7 @@ public:
* @param sizey the maximum row number at vertical placing * @param sizey the maximum row number at vertical placing
* @param params pointer to the checkbox array * @param params pointer to the checkbox array
* @param paramNum number of the checkbox elements * @param paramNum number of the checkbox elements
* @param tqparent Reference to the tqparent widget * @param parent Reference to the parent widget
* @param widgetName The name of the newly created button group widget * @param widgetName The name of the newly created button group widget
* @param rst The change of this parameter requires Krusader restart * @param rst The change of this parameter requires Krusader restart
* @param pg The subpage of a Konfigurator page (because of setDefaults) * @param pg The subpage of a Konfigurator page (because of setDefaults)
@ -424,7 +424,7 @@ public:
KonfiguratorRadioButtons *createRadioButtonGroup( TQString cls, TQString name, KonfiguratorRadioButtons *createRadioButtonGroup( TQString cls, TQString name,
TQString dflt, int sizex, int sizey, TQString dflt, int sizex, int sizey,
KONFIGURATOR_NAME_VALUE_TIP *params, int paramNum, KONFIGURATOR_NAME_VALUE_TIP *params, int paramNum,
TQWidget *tqparent=0, const char *widgetName=0, bool rst=false, int pg=FIRST_PAGE ); TQWidget *parent=0, const char *widgetName=0, bool rst=false, int pg=FIRST_PAGE );
/** /**
* This function is used to insert new, unknown items into KonfiguratorPage. The * This function is used to insert new, unknown items into KonfiguratorPage. The
@ -463,7 +463,7 @@ public:
* @param cls The class name used in KConfig (ex. "Archives") * @param cls The class name used in KConfig (ex. "Archives")
* @param name The item name used in KConfig (ex. "Do Tar") * @param name The item name used in KConfig (ex. "Do Tar")
* @param dflt The default value of the color chooser * @param dflt The default value of the color chooser
* @param tqparent Reference to the tqparent widget * @param parent Reference to the parent widget
* @param rst The change of this parameter requires Krusader restart * @param rst The change of this parameter requires Krusader restart
* @param addColPtr The additional color values * @param addColPtr The additional color values
* @param rst Number of additional colors * @param rst Number of additional colors
@ -472,7 +472,7 @@ public:
* @return reference to the newly created combobox * @return reference to the newly created combobox
*/ */
KonfiguratorColorChooser *createColorChooser( TQString cls, TQString name, TQColor dflt, KonfiguratorColorChooser *createColorChooser( TQString cls, TQString name, TQColor dflt,
TQWidget *tqparent=0, bool rst=false, TQWidget *parent=0, bool rst=false,
ADDITIONAL_COLOR *addColPtr = 0, int addColNum = 0, int pg=FIRST_PAGE ); ADDITIONAL_COLOR *addColPtr = 0, int addColNum = 0, int pg=FIRST_PAGE );
signals: signals:
/** /**

@ -34,8 +34,8 @@ using namespace std;
#define PS(x) _supported.contains(x)>0 #define PS(x) _supported.contains(x)>0
KrResultTable::KrResultTable(TQWidget* tqparent) KrResultTable::KrResultTable(TQWidget* parent)
: TQWidget(tqparent), : TQWidget(parent),
_numRows(1) _numRows(1)
{ {
} }
@ -94,8 +94,8 @@ void KrResultTable::adjustRow(TQGridLayout* grid)
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
KrArchiverResultTable::KrArchiverResultTable(TQWidget* tqparent) KrArchiverResultTable::KrArchiverResultTable(TQWidget* parent)
: KrResultTable(tqparent) : KrResultTable(parent)
{ {
_supported = KRarcHandler::supportedPackers(); // get list of available packers _supported = KRarcHandler::supportedPackers(); // get list of available packers
@ -241,8 +241,8 @@ void KrArchiverResultTable::website(const TQString& url)
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
KrToolResultTable::KrToolResultTable(TQWidget* tqparent) KrToolResultTable::KrToolResultTable(TQWidget* parent)
: KrResultTable(tqparent) : KrResultTable(parent)
{ {
_supported = Krusader::supportedTools(); // get list of available tools _supported = Krusader::supportedTools(); // get list of available tools

@ -59,7 +59,7 @@
class KrResultTable : public TQWidget class KrResultTable : public TQWidget
{ {
public: public:
KrResultTable(TQWidget* tqparent); KrResultTable(TQWidget* parent);
virtual ~KrResultTable(); virtual ~KrResultTable();
/** /**
@ -107,7 +107,7 @@ class KrArchiverResultTable : public KrResultTable
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
KrArchiverResultTable(TQWidget* tqparent); KrArchiverResultTable(TQWidget* parent);
virtual ~KrArchiverResultTable(); virtual ~KrArchiverResultTable();
bool addRow(SearchObject* search, TQGridLayout* grid); bool addRow(SearchObject* search, TQGridLayout* grid);
@ -127,7 +127,7 @@ class KrToolResultTable : public KrResultTable
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
KrToolResultTable(TQWidget* tqparent); KrToolResultTable(TQWidget* parent);
virtual ~KrToolResultTable(); virtual ~KrToolResultTable();
bool addRow(SearchObject* search, TQGridLayout* grid); bool addRow(SearchObject* search, TQGridLayout* grid);

@ -30,10 +30,10 @@
#include "krresulttabledialog.h" #include "krresulttabledialog.h"
KrResultTableDialog::KrResultTableDialog( TQWidget *tqparent, DialogType type, KrResultTableDialog::KrResultTableDialog( TQWidget *parent, DialogType type,
const TQString& caption, const TQString& heading, const TQString& headerIcon, const TQString& caption, const TQString& heading, const TQString& headerIcon,
const TQString& hint) const TQString& hint)
: KDialogBase( tqparent, "KrSearchResultDialog", true, caption, KDialogBase::Help|KDialogBase::Ok, : KDialogBase( parent, "KrSearchResultDialog", true, caption, KDialogBase::Help|KDialogBase::Ok,
KDialogBase::Ok, false ) KDialogBase::Ok, false )
{ {

@ -60,7 +60,7 @@ public:
Tool = 2 Tool = 2
}; };
KrResultTableDialog(TQWidget *tqparent, DialogType type, const TQString& caption, const TQString& heading, const TQString& headerIcon=TQString(), const TQString& hint=TQString()); KrResultTableDialog(TQWidget *parent, DialogType type, const TQString& caption, const TQString& heading, const TQString& headerIcon=TQString(), const TQString& hint=TQString());
virtual ~KrResultTableDialog(); virtual ~KrResultTableDialog();
const TQString& getHeading() const { return _heading; } const TQString& getHeading() const { return _heading; }

@ -60,7 +60,7 @@ bool KrJS::runFile(const TQString & filename) {
krOut << "JavaScript: Uncaught " << type << " exception at line " << line << " in " << filename << endl; krOut << "JavaScript: Uncaught " << type << " exception at line " << line << " in " << filename << endl;
krOut << message << endl; krOut << message << endl;
KMessageBox::error ( 0, //tqparent KMessageBox::error ( 0, //parent
( line < 0 ? ( line < 0 ?
TQString( i18n("In %1:\nUncaught JavaScript exception '%2'\n%3") ).tqarg(filename).tqarg(type).tqarg(message) : TQString( i18n("In %1:\nUncaught JavaScript exception '%2'\n%3") ).tqarg(filename).tqarg(type).tqarg(message) :
TQString( i18n("In %1:\nUncaught JavaScript exception '%2' at line %3\n%4") ).tqarg(filename).tqarg(type).tqarg(line).tqarg(message) TQString( i18n("In %1:\nUncaught JavaScript exception '%2' at line %3\n%4") ).tqarg(filename).tqarg(type).tqarg(line).tqarg(message)
@ -68,7 +68,7 @@ bool KrJS::runFile(const TQString & filename) {
i18n("JavaScript error"), //caption i18n("JavaScript error"), //caption
KMessageBox::Dangerous) ; KMessageBox::Dangerous) ;
#else #else
KMessageBox::error ( 0, //tqparent KMessageBox::error ( 0, //parent
TQString(i18n("In %1:\nThere is an error in the JavaScript")).tqarg(filename), //text TQString(i18n("In %1:\nThere is an error in the JavaScript")).tqarg(filename), //text
i18n("JavaScript error"), //caption i18n("JavaScript error"), //caption
KMessageBox::Dangerous) ; KMessageBox::Dangerous) ;

@ -68,7 +68,7 @@
class LocateListView : public KListView class LocateListView : public KListView
{ {
public: public:
LocateListView( TQWidget * tqparent, const char * name = 0 ) : KListView( tqparent, name ) LocateListView( TQWidget * parent, const char * name = 0 ) : KListView( parent, name )
{ {
} }

@ -42,8 +42,8 @@
/*************************************************************************** /***************************************************************************
* constructor * constructor
**/ **/
KDiskFreeSp::KDiskFreeSp(TQObject *tqparent, const char *name) KDiskFreeSp::KDiskFreeSp(TQObject *parent, const char *name)
: TQObject(tqparent,name) : TQObject(parent,name)
{ {
dfProc = new KProcess(); Q_CHECK_PTR(dfProc); dfProc = new KProcess(); Q_CHECK_PTR(dfProc);
dfProc->setEnvironment("LANGUAGE", "C"); dfProc->setEnvironment("LANGUAGE", "C");

@ -40,7 +40,7 @@ class KDiskFreeSp : public TQObject
{ Q_OBJECT { Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
KDiskFreeSp( TQObject *tqparent=0, const char *name=0 ); KDiskFreeSp( TQObject *parent=0, const char *name=0 );
/** /**
* Destructor - this object autodeletes itself when it's done * Destructor - this object autodeletes itself when it's done
*/ */

@ -50,7 +50,7 @@ YP YD 88 YD ~Y8888P' `8888Y' YP YP Y8888D' Y88888P 88 YD
class KrBriefViewToolTip : public TQToolTip class KrBriefViewToolTip : public TQToolTip
{ {
public: public:
KrBriefViewToolTip( KrBriefView *view, TQWidget *tqparent ); KrBriefViewToolTip( KrBriefView *view, TQWidget *parent );
void maybeTip( const TQPoint &pos ); void maybeTip( const TQPoint &pos );
virtual ~KrBriefViewToolTip() {} virtual ~KrBriefViewToolTip() {}
@ -58,8 +58,8 @@ private:
KrBriefView *view; KrBriefView *view;
}; };
KrBriefViewToolTip::KrBriefViewToolTip( KrBriefView *lv, TQWidget *tqparent ) KrBriefViewToolTip::KrBriefViewToolTip( KrBriefView *lv, TQWidget *parent )
: TQToolTip( tqparent ), view( lv ) : TQToolTip( parent ), view( lv )
{ {
} }
@ -79,8 +79,8 @@ void KrBriefViewToolTip::maybeTip( const TQPoint &pos )
} }
KrBriefView::KrBriefView( TQHeader * headerIn, TQWidget *tqparent, bool &left, KConfig *cfg, const char *name ): KrBriefView::KrBriefView( TQHeader * headerIn, TQWidget *parent, bool &left, KConfig *cfg, const char *name ):
KIconView(tqparent, name), KrView( cfg ), header( headerIn ), _currDragItem( 0 ), KIconView(parent, name), KrView( cfg ), header( headerIn ), _currDragItem( 0 ),
currentlyRenamedItem( 0 ), pressedItem( 0 ), mouseEvent( 0 ) { currentlyRenamedItem( 0 ), pressedItem( 0 ), mouseEvent( 0 ) {
setWidget( this ); setWidget( this );
_nameInKConfig = TQString( "KrBriefView" ) + TQString( ( left ? "Left" : "Right" ) ); _nameInKConfig = TQString( "KrBriefView" ) + TQString( ( left ? "Left" : "Right" ) );

@ -58,7 +58,7 @@ class KrBriefView: public KIconView, public KrView {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
KrBriefView( TQHeader *header, TQWidget *tqparent, bool &left, KConfig *cfg = krConfig, const char *name = 0 ); KrBriefView( TQHeader *header, TQWidget *parent, bool &left, KConfig *cfg = krConfig, const char *name = 0 );
virtual ~KrBriefView(); virtual ~KrBriefView();
virtual inline KrViewItem *getFirst() { return dynamic_cast<KrViewItem*>( firstItem() ); } virtual inline KrViewItem *getFirst() { return dynamic_cast<KrViewItem*>( firstItem() ); }
virtual inline KrViewItem *getLast() { return dynamic_cast<KrViewItem*>( lastItem() ); } virtual inline KrViewItem *getLast() { return dynamic_cast<KrViewItem*>( lastItem() ); }

@ -17,8 +17,8 @@
int KrBriefViewItem::expHeight = 0; int KrBriefViewItem::expHeight = 0;
#endif // FASTER #endif // FASTER
KrBriefViewItem::KrBriefViewItem(KrBriefView *tqparent, TQIconViewItem *after, vfile *vf): KrBriefViewItem::KrBriefViewItem(KrBriefView *parent, TQIconViewItem *after, vfile *vf):
KIconViewItem(tqparent, after), KrViewItem(vf, tqparent->properties()) { KIconViewItem(parent, after), KrViewItem(vf, parent->properties()) {
#ifdef FASTER #ifdef FASTER
initiated = false; initiated = false;
// get the expected height of an item - should be done only once // get the expected height of an item - should be done only once

@ -46,7 +46,7 @@ class KrBriefViewItem : public KIconViewItem, public KrViewItem {
friend class KrBriefView; friend class KrBriefView;
friend class KrCalcSpaceDialog; friend class KrCalcSpaceDialog;
public: public:
KrBriefViewItem(KrBriefView *tqparent, TQIconViewItem *after, vfile *vf); KrBriefViewItem(KrBriefView *parent, TQIconViewItem *after, vfile *vf);
inline bool isSelected() const { return KIconViewItem::isSelected(); } inline bool isSelected() const { return KIconViewItem::isSelected(); }
inline void setSelected(bool s) { KIconViewItem::setSelected(s); } inline void setSelected(bool s) { KIconViewItem::setSelected(s); }
inline void cancelRename() { removeRenameBox(); } inline void cancelRename() { removeRenameBox(); }

@ -44,9 +44,9 @@ A
#include "../VFS/krpermhandler.h" #include "../VFS/krpermhandler.h"
/* --=={ Patch by Heiner <h.eichmann@gmx.de> }==-- */ /* --=={ Patch by Heiner <h.eichmann@gmx.de> }==-- */
KrCalcSpaceDialog::CalcThread::CalcThread(KrCalcSpaceDialog * tqparent, ListPanel * panel, const TQStringList & items) KrCalcSpaceDialog::CalcThread::CalcThread(KrCalcSpaceDialog * parent, ListPanel * panel, const TQStringList & items)
: m_totalSize(0), m_currentSize(0), m_totalFiles(0), m_totalDirs(0), m_items(items), m_files(panel->func->files()), : m_totalSize(0), m_currentSize(0), m_totalFiles(0), m_totalDirs(0), m_items(items), m_files(panel->func->files()),
m_view(panel->view), m_parent(tqparent), m_threadInUse(true), m_stop(false) {} m_view(panel->view), m_parent(parent), m_threadInUse(true), m_stop(false) {}
void KrCalcSpaceDialog::CalcThread::cleanUp(){ void KrCalcSpaceDialog::CalcThread::cleanUp(){
if (m_threadInUse || !finished()) if (m_threadInUse || !finished())
@ -91,8 +91,8 @@ void KrCalcSpaceDialog::CalcThread::stop(){
m_stop = true; m_stop = true;
} }
KrCalcSpaceDialog::KrCalcSpaceDialog(TQWidget *tqparent, ListPanel * files, const TQStringList & items, bool autoclose) : KrCalcSpaceDialog::KrCalcSpaceDialog(TQWidget *parent, ListPanel * files, const TQStringList & items, bool autoclose) :
KDialogBase(tqparent, "KrCalcSpaceDialog", true, i18n("Calculate Occupied Space"), Ok|Cancel), KDialogBase(parent, "KrCalcSpaceDialog", true, i18n("Calculate Occupied Space"), Ok|Cancel),
m_autoClose(autoclose), m_canceled(false), m_timerCounter(0){ m_autoClose(autoclose), m_canceled(false), m_timerCounter(0){
// the dialog: The Ok button is hidden until it is needed // the dialog: The Ok button is hidden until it is needed
showButtonOK(false); showButtonOK(false);

@ -74,7 +74,7 @@ class KrCalcSpaceDialog : public KDialogBase{
unsigned long getTotalFiles() const {return m_totalFiles;} // the result unsigned long getTotalFiles() const {return m_totalFiles;} // the result
unsigned long getTotalDirs() const {return m_totalDirs;} // the result unsigned long getTotalDirs() const {return m_totalDirs;} // the result
const TQStringList & getItems() const {return m_items;} // list of directories to calculate const TQStringList & getItems() const {return m_items;} // list of directories to calculate
CalcThread(KrCalcSpaceDialog * tqparent, ListPanel * panel, const TQStringList & items); CalcThread(KrCalcSpaceDialog * parent, ListPanel * panel, const TQStringList & items);
void deleteInstance(); // thread is no longer needed. void deleteInstance(); // thread is no longer needed.
void run(); // start calculation void run(); // start calculation
void stop(); // stop it. Thread continues until vfs_calcSpace returns void stop(); // stop it. Thread continues until vfs_calcSpace returns
@ -93,7 +93,7 @@ protected slots:
void slotCancel(); // cancel was pressed void slotCancel(); // cancel was pressed
public: public:
// autoclose: wait 3 sec. before showing the dialog. Close it, when done // autoclose: wait 3 sec. before showing the dialog. Close it, when done
KrCalcSpaceDialog(TQWidget *tqparent, ListPanel * panel, const TQStringList & items, bool autoclose); KrCalcSpaceDialog(TQWidget *parent, ListPanel * panel, const TQStringList & items, bool autoclose);
~KrCalcSpaceDialog(); ~KrCalcSpaceDialog();
KIO::filesize_t getTotalSize() const {return m_thread->getTotalSize();} // the result KIO::filesize_t getTotalSize() const {return m_thread->getTotalSize();} // the result
unsigned long getTotalFiles() const {return m_thread->getTotalFiles();} // the result unsigned long getTotalFiles() const {return m_thread->getTotalFiles();} // the result

@ -87,8 +87,8 @@ YP YD 88 YD ~Y8888P' `8888Y' YP YP Y8888D' Y88888P 88 YD
TQString KrDetailedView::ColumnName[ KrDetailedViewProperties::MAX_COLUMNS ]; TQString KrDetailedView::ColumnName[ KrDetailedViewProperties::MAX_COLUMNS ];
KrDetailedView::KrDetailedView( TQWidget *tqparent, bool &left, KConfig *cfg, const char *name ) : KrDetailedView::KrDetailedView( TQWidget *parent, bool &left, KConfig *cfg, const char *name ) :
KListView( tqparent, name ), KrView( cfg ), _currDragItem( 0L ), currentlyRenamedItem( 0 ), KListView( parent, name ), KrView( cfg ), _currDragItem( 0L ), currentlyRenamedItem( 0 ),
pressedItem( 0 ) { pressedItem( 0 ) {
setWidget( this ); setWidget( this );
_nameInKConfig=TQString( "KrDetailedView" ) + TQString( ( left ? "Left" : "Right" ) ) ; _nameInKConfig=TQString( "KrDetailedView" ) + TQString( ( left ? "Left" : "Right" ) ) ;

@ -75,7 +75,7 @@ class KrDetailedView : public KListView, public KrView {
friend class KrDetailedViewItem; friend class KrDetailedViewItem;
public: public:
KrDetailedView( TQWidget *tqparent, bool &left, KConfig *cfg = krConfig, const char *name = 0 ); KrDetailedView( TQWidget *parent, bool &left, KConfig *cfg = krConfig, const char *name = 0 );
virtual ~KrDetailedView(); virtual ~KrDetailedView();
virtual int column( KrDetailedViewProperties::ColumnType type ); virtual int column( KrDetailedViewProperties::ColumnType type );
virtual inline KrViewItem *getFirst() { return dynamic_cast<KrViewItem*>( firstChild() ); } virtual inline KrViewItem *getFirst() { return dynamic_cast<KrViewItem*>( firstChild() ); }

@ -57,8 +57,8 @@
int KrDetailedViewItem::expHeight = 0; int KrDetailedViewItem::expHeight = 0;
#endif // FASTER #endif // FASTER
KrDetailedViewItem::KrDetailedViewItem(KrDetailedView *tqparent, TQListViewItem *after, vfile *vf): KrDetailedViewItem::KrDetailedViewItem(KrDetailedView *parent, TQListViewItem *after, vfile *vf):
KListViewItem(tqparent, after), KrViewItem(vf, tqparent->properties()) { KListViewItem(parent, after), KrViewItem(vf, parent->properties()) {
#ifdef FASTER #ifdef FASTER
initiated = false; initiated = false;
// get the expected height of an item - should be done only once // get the expected height of an item - should be done only once

@ -46,7 +46,7 @@ class KrDetailedViewItem : public KListViewItem, public KrViewItem {
friend class KrDetailedView; friend class KrDetailedView;
friend class KrCalcSpaceDialog; friend class KrCalcSpaceDialog;
public: public:
KrDetailedViewItem(KrDetailedView *tqparent, TQListViewItem *after, vfile *vf); KrDetailedViewItem(KrDetailedView *parent, TQListViewItem *after, vfile *vf);
inline bool isSelected() const { return KListViewItem::isSelected(); } inline bool isSelected() const { return KListViewItem::isSelected(); }
inline void setSelected(bool s) { KListViewItem::setSelected(s); } inline void setSelected(bool s) { KListViewItem::setSelected(s); }
int compare(TQListViewItem *i,int col,bool ascending ) const; int compare(TQListViewItem *i,int col,bool ascending ) const;

@ -38,7 +38,7 @@ void KrPopupMenu::run(const TQPoint &pos, ListPanel *panel) {
menu.performAction(result); menu.performAction(result);
} }
KrPopupMenu::KrPopupMenu(ListPanel *thePanel, TQWidget *tqparent) : KPopupMenu(tqparent), panel(thePanel), empty(false), KrPopupMenu::KrPopupMenu(ListPanel *thePanel, TQWidget *parent) : KPopupMenu(parent), panel(thePanel), empty(false),
multipleSelections(false),actions(0) { multipleSelections(false),actions(0) {
#ifdef __LIBKONTQ__ #ifdef __LIBKONTQ__
konqMenu = 0; konqMenu = 0;

@ -20,7 +20,7 @@ public:
static void run(const TQPoint &pos, ListPanel *panel); static void run(const TQPoint &pos, ListPanel *panel);
protected: protected:
KrPopupMenu(ListPanel *thePanel, TQWidget *tqparent=0); KrPopupMenu(ListPanel *thePanel, TQWidget *parent=0);
~KrPopupMenu(); ~KrPopupMenu();
void performAction(int id); void performAction(int id);
void addEmptyMenuEntries(); // adds the choices for a menu without selected items void addEmptyMenuEntries(); // adds the choices for a menu without selected items

@ -119,10 +119,10 @@ TQPixmap KrView::getIcon( vfile *vf /*, KRListItem::cmpColor color*/ ) {
* this function ADDs a list of selected item names into 'names'. * this function ADDs a list of selected item names into 'names'.
* it assumes the list is ready and doesn't initialize it, or clears it * it assumes the list is ready and doesn't initialize it, or clears it
*/ */
void KrView::getItemsByMask( TQString tqmask, TQStringList* names, bool dirs, bool files ) { void KrView::getItemsByMask( TQString mask, TQStringList* names, bool dirs, bool files ) {
for ( KrViewItem * it = getFirst(); it != 0; it = getNext( it ) ) { for ( KrViewItem * it = getFirst(); it != 0; it = getNext( it ) ) {
if ( ( it->name() == ".." ) || !TQDir::match( tqmask, it->name() ) ) continue; if ( ( it->name() == ".." ) || !TQDir::match( mask, it->name() ) ) continue;
// if we got here, than the item fits the tqmask // if we got here, than the item fits the mask
if ( it->getVfile()->vfile_isDir() && !dirs ) continue; // do we need to skip folders? if ( it->getVfile()->vfile_isDir() && !dirs ) continue; // do we need to skip folders?
if ( !it->getVfile()->vfile_isDir() && !files ) continue; // do we need to skip files if ( !it->getVfile()->vfile_isDir() && !files ) continue; // do we need to skip files
names->append( it->name() ); names->append( it->name() );

@ -192,7 +192,7 @@ public:
virtual uint count() const { return _count; } virtual uint count() const { return _count; }
virtual KIO::filesize_t countSize() const { return _countSize; } virtual KIO::filesize_t countSize() const { return _countSize; }
virtual void getSelectedItems(TQStringList* names); virtual void getSelectedItems(TQStringList* names);
virtual void getItemsByMask(TQString tqmask, TQStringList* names, bool dirs = true, bool files = true); virtual void getItemsByMask(TQString mask, TQStringList* names, bool dirs = true, bool files = true);
virtual void getSelectedKrViewItems(KrViewItemList *items); virtual void getSelectedKrViewItems(KrViewItemList *items);
virtual void selectAllIncludingDirs() { changeSelection( KRQuery( "*" ), true, true); } virtual void selectAllIncludingDirs() { changeSelection( KRQuery( "*" ), true, true); }
virtual void select( const KRQuery& filter = KRQuery( "*" ) ) { changeSelection(filter, true); } virtual void select( const KRQuery& filter = KRQuery( "*" ) ) { changeSelection(filter, true); }
@ -215,7 +215,7 @@ public:
virtual KrViewProperties::SortSpec sortMode() const { return _properties->sortMode; } virtual KrViewProperties::SortSpec sortMode() const { return _properties->sortMode; }
virtual void setFilter(KrViewProperties::FilterSpec filter) { _properties->filter = filter; } virtual void setFilter(KrViewProperties::FilterSpec filter) { _properties->filter = filter; }
virtual KrViewProperties::FilterSpec filter() const { return _properties->filter; } virtual KrViewProperties::FilterSpec filter() const { return _properties->filter; }
virtual void setFilterMask( KRQuery tqmask ) { _properties->filterMask = tqmask; } virtual void setFilterMask( KRQuery mask ) { _properties->filterMask = mask; }
virtual const KRQuery& filterMask() const { return _properties->filterMask; } virtual const KRQuery& filterMask() const { return _properties->filterMask; }
inline TQWidget *widget() { return _widget; } inline TQWidget *widget() { return _widget; }
inline void setWidget(TQWidget *w) { _widget = w; } inline void setWidget(TQWidget *w) { _widget = w; }

@ -107,8 +107,8 @@ typedef TQValueList<KServiceOffer> OfferList;
///////////////////////////////////////////////////// /////////////////////////////////////////////////////
// The list panel constructor // // The list panel constructor //
///////////////////////////////////////////////////// /////////////////////////////////////////////////////
ListPanel::ListPanel( TQString typeIn, TQWidget *tqparent, bool &left, const char *name ) : ListPanel::ListPanel( TQString typeIn, TQWidget *parent, bool &left, const char *name ) :
TQWidget( tqparent, name ), panelType( typeIn ), colorMask( 255 ), compareMode( false ), currDragItem( 0 ), statsAgent( 0 ), TQWidget( parent, name ), panelType( typeIn ), colorMask( 255 ), compareMode( false ), currDragItem( 0 ), statsAgent( 0 ),
quickSearch( 0 ), cdRootButton( 0 ), cdUpButton( 0 ), popupBtn(0), popup(0),inlineRefreshJob(0), _left( left ) { quickSearch( 0 ), cdRootButton( 0 ), cdUpButton( 0 ), popupBtn(0), popup(0),inlineRefreshJob(0), _left( left ) {
func = new ListPanelFunc( this ); func = new ListPanelFunc( this );
@ -405,11 +405,11 @@ bool ListPanel::eventFilter ( TQObject * watched, TQEvent * e ) {
void ListPanel::togglePanelPopup() { void ListPanel::togglePanelPopup() {
if (popup->isHidden()) { if (popup->isHidden()) {
if (popupSizes.count() > 0) { if (popupSizes.count() > 0) {
dynamic_cast<TQSplitter*>(popup->tqparent())->setSizes(popupSizes); dynamic_cast<TQSplitter*>(popup->parent())->setSizes(popupSizes);
} else { // on the first time, resize to 50% } else { // on the first time, resize to 50%
TQValueList<int> lst; TQValueList<int> lst;
lst << height()/2 << height()/2; lst << height()/2 << height()/2;
dynamic_cast<TQSplitter*>(popup->tqparent())->setSizes(lst); dynamic_cast<TQSplitter*>(popup->parent())->setSizes(lst);
} }
popup->show(); popup->show();
@ -417,14 +417,14 @@ void ListPanel::togglePanelPopup() {
TQToolTip::add( popupBtn, i18n( "Close the popup panel" ) ); TQToolTip::add( popupBtn, i18n( "Close the popup panel" ) );
} else { } else {
popupSizes.clear(); popupSizes.clear();
popupSizes = dynamic_cast<TQSplitter*>(popup->tqparent())->sizes(); popupSizes = dynamic_cast<TQSplitter*>(popup->parent())->sizes();
popup->hide(); popup->hide();
popupBtn->setPixmap(krLoader->loadIcon("1uparrow", KIcon::Toolbar, 16)); popupBtn->setPixmap(krLoader->loadIcon("1uparrow", KIcon::Toolbar, 16));
TQToolTip::add( popupBtn, i18n( "Open the popup panel" ) ); TQToolTip::add( popupBtn, i18n( "Open the popup panel" ) );
TQValueList<int> lst; TQValueList<int> lst;
lst << height() << 0; lst << height() << 0;
dynamic_cast<TQSplitter*>(popup->tqparent())->setSizes(lst); dynamic_cast<TQSplitter*>(popup->parent())->setSizes(lst);
if( ACTIVE_PANEL ) if( ACTIVE_PANEL )
ACTIVE_PANEL->slotFocusOnMe(); ACTIVE_PANEL->slotFocusOnMe();
} }

@ -84,7 +84,7 @@ public:
#define ITEM2VFILE(PANEL_PTR, KRVIEWITEM) PANEL_PTR->func->files()->vfs_search(KRVIEWITEM->name()) #define ITEM2VFILE(PANEL_PTR, KRVIEWITEM) PANEL_PTR->func->files()->vfs_search(KRVIEWITEM->name())
#define NAME2VFILE(PANEL_PTR, STRING_NAME) PANEL_PTR->func->files()->vfs_search(STRING_NAME) #define NAME2VFILE(PANEL_PTR, STRING_NAME) PANEL_PTR->func->files()->vfs_search(STRING_NAME)
// constructor create the panel, but DOESN'T fill it with data, use start() // constructor create the panel, but DOESN'T fill it with data, use start()
ListPanel( TQString panelType, TQWidget *tqparent, bool &left, const char *name = 0 ); ListPanel( TQString panelType, TQWidget *parent, bool &left, const char *name = 0 );
~ListPanel(); ~ListPanel();
void start( KURL url = KURL(), bool immediate = false ); void start( KURL url = KURL(), bool immediate = false );

@ -84,8 +84,8 @@ A
////// ---------- List Panel ------------- //////// ////// ---------- List Panel ------------- ////////
////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////
ListPanelFunc::ListPanelFunc( ListPanel *tqparent ) : ListPanelFunc::ListPanelFunc( ListPanel *parent ) :
panel( tqparent ), inRefresh( false ), vfsP( 0 ) { panel( parent ), inRefresh( false ), vfsP( 0 ) {
urlStack.push( "file:/" ); urlStack.push( "file:/" );
connect( &delayTimer, TQT_SIGNAL( timeout() ), this, TQT_SLOT( doOpenUrl() ) ); connect( &delayTimer, TQT_SIGNAL( timeout() ), this, TQT_SLOT( doOpenUrl() ) );
} }

@ -54,7 +54,7 @@ public slots:
void rename(const TQString &oldname, const TQString &newname); void rename(const TQString &oldname, const TQString &newname);
public: public:
ListPanelFunc(class ListPanel *tqparent); ListPanelFunc(class ListPanel *parent);
~ListPanelFunc(); ~ListPanelFunc();
vfs* files(); // return a pointer to the vfs vfs* files(); // return a pointer to the vfs

@ -22,9 +22,9 @@
#include "../KViewer/panelviewer.h" #include "../KViewer/panelviewer.h"
#include "../KViewer/diskusageviewer.h" #include "../KViewer/diskusageviewer.h"
PanelPopup::PanelPopup( TQSplitter *tqparent, bool left ) : TQWidget( tqparent ), PanelPopup::PanelPopup( TQSplitter *parent, bool left ) : TQWidget( parent ),
_left( left ), _hidden(true), stack( 0 ), viewer( 0 ), pjob( 0 ), splitterSizes() { _left( left ), _hidden(true), stack( 0 ), viewer( 0 ), pjob( 0 ), splitterSizes() {
splitter = tqparent; splitter = parent;
TQGridLayout * tqlayout = new TQGridLayout(this, 1, 1); TQGridLayout * tqlayout = new TQGridLayout(this, 1, 1);
// loading the splitter sizes // loading the splitter sizes
@ -353,8 +353,8 @@ void PanelPopup::quickSelect() {
SLOTS->markGroup(quickSelectCombo->currentText(), true); SLOTS->markGroup(quickSelectCombo->currentText(), true);
} }
void PanelPopup::quickSelect(const TQString &tqmask) { void PanelPopup::quickSelect(const TQString &mask) {
SLOTS->markGroup(tqmask, true); SLOTS->markGroup(mask, true);
} }
void PanelPopup::quickSelectStore() { void PanelPopup::quickSelectStore() {
@ -367,7 +367,7 @@ void PanelPopup::quickSelectStore() {
void PanelPopup::slotDroppedOnTree(TQWidget *widget, TQDropEvent *e, KURL::List &lst, KURL &) { void PanelPopup::slotDroppedOnTree(TQWidget *widget, TQDropEvent *e, KURL::List &lst, KURL &) {
// KFileTreeView is buggy: when dropped, it might not give us the correct // KFileTreeView is buggy: when dropped, it might not give us the correct
// destination, but actually, it's tqparent. workaround: don't use // destination, but actually, it's parent. workaround: don't use
// the destination in the signal, but take the current item // the destination in the signal, but take the current item
KURL dest = tree->currentURL(); KURL dest = tree->currentURL();

@ -97,8 +97,8 @@ void remoteMan::addSession() {
TQListViewItem *i=0,*current; TQListViewItem *i=0,*current;
current=sessions->currentItem(); current=sessions->currentItem();
// if we are pointing to a session, then the new session will be // if we are pointing to a session, then the new session will be
// created under the current session's tqparent group // created under the current session's parent group
if (current->text(1)=="SESSION") current=current->tqparent(); if (current->text(1)=="SESSION") current=current->parent();
// create a new item and give it the appropriate pixmap // create a new item and give it the appropriate pixmap
i=new TQListViewItem(current,i18n("New session"),"SESSION"); i=new TQListViewItem(current,i18n("New session"),"SESSION");
i->setPixmap(0,LOADICON("kr_ftp_new")); i->setPixmap(0,LOADICON("kr_ftp_new"));
@ -120,7 +120,7 @@ void remoteMan::refreshData() {
// we have to check if there's another brother-session with // we have to check if there's another brother-session with
// the same name, if so, we add a <2> to it // the same name, if so, we add a <2> to it
TQListViewItem *i; TQListViewItem *i;
if (currentItem->tqparent()) i=currentItem->tqparent()->firstChild(); if (currentItem->parent()) i=currentItem->parent()->firstChild();
else i=sessions->firstChild(); else i=sessions->firstChild();
while (i) { while (i) {
if (i->text(0)==currentItem->text(0) && i!=currentItem) { if (i->text(0)==currentItem->text(0) && i!=currentItem) {
@ -133,7 +133,7 @@ void remoteMan::refreshData() {
temp=currentItem->text(0).replace(currentItem->text(0).length()-4,4,temp); temp=currentItem->text(0).replace(currentItem->text(0).length()-4,4,temp);
currentItem->setText(0,temp); currentItem->setText(0,temp);
} else currentItem->setText(0,currentItem->text(0)+"<02>"); } else currentItem->setText(0,currentItem->text(0)+"<02>");
i=currentItem->tqparent()->firstChild(); i=currentItem->parent()->firstChild();
} else i=i->nextSibling(); } else i=i->nextSibling();
} }
} }
@ -204,7 +204,7 @@ void remoteMan::updateConnect(const TQString &) {
// path of folders to the item, seperated by the ` character // path of folders to the item, seperated by the ` character
TQString item2connection(TQListViewItem *item) { TQString item2connection(TQListViewItem *item) {
TQString con=item->text(0); TQString con=item->text(0);
TQListViewItem *iterator=item->tqparent(); TQListViewItem *iterator=item->parent();
while (iterator!=0) { while (iterator!=0) {
//////////////////////// explanation: /////////////////////////// //////////////////////// explanation: ///////////////////////////
// since the` char is special to us, we use it to seperate items // since the` char is special to us, we use it to seperate items
@ -217,7 +217,7 @@ TQString item2connection(TQListViewItem *item) {
i=temp.find('`'); i=temp.find('`');
} }
con=temp+'`'+con; con=temp+'`'+con;
iterator=iterator->tqparent(); iterator=iterator->parent();
} }
return con; return con;
} }

@ -26,14 +26,14 @@
/* /*
* Constructs a remoteManBase which is a child of 'tqparent', with the * Constructs a remoteManBase which is a child of 'parent', with the
* name 'name' and widget flags set to 'f' * name 'name' and widget flags set to 'f'
* *
* The dialog will by default be modeless, unless you set 'modal' to * The dialog will by default be modeless, unless you set 'modal' to
* TRUE to construct a modal dialog. * TRUE to construct a modal dialog.
*/ */
remoteManBase::remoteManBase( TQWidget* tqparent, const char* name, bool modal, WFlags fl ) remoteManBase::remoteManBase( TQWidget* parent, const char* name, bool modal, WFlags fl )
: TQDialog( tqparent, name, modal, fl ) : TQDialog( parent, name, modal, fl )
{ {
if ( !name ) if ( !name )
setName( "remoteManBase" ); setName( "remoteManBase" );

@ -30,7 +30,7 @@ class remoteManBase : public TQDialog
TQ_OBJECT TQ_OBJECT
public: public:
remoteManBase( TQWidget* tqparent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 ); remoteManBase( TQWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
~remoteManBase(); ~remoteManBase();
TQLabel* TextLabel1; TQLabel* TextLabel1;

@ -55,7 +55,7 @@
class SearchListView : public TQListView class SearchListView : public TQListView
{ {
public: public:
SearchListView( TQWidget * tqparent, const char * name ) : TQListView( tqparent, name ) SearchListView( TQWidget * parent, const char * name ) : TQListView( parent, name )
{ {
} }
@ -99,8 +99,8 @@ bool KrSearchDialog::lastSearchInArchives = false;
bool KrSearchDialog::lastFollowSymLinks = false; bool KrSearchDialog::lastFollowSymLinks = false;
// class starts here ///////////////////////////////////////// // class starts here /////////////////////////////////////////
KrSearchDialog::KrSearchDialog( TQString profile, TQWidget* tqparent, const char* name, bool modal, WFlags fl ) KrSearchDialog::KrSearchDialog( TQString profile, TQWidget* parent, const char* name, bool modal, WFlags fl )
: TQDialog( tqparent, name, modal, fl ), query(0), searcher(0) : TQDialog( parent, name, modal, fl ), query(0), searcher(0)
{ {
setCaption( i18n( "Krusader::Search" ) ); setCaption( i18n( "Krusader::Search" ) );

@ -56,7 +56,7 @@ class KrSearchDialog : public TQDialog {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
KrSearchDialog(TQString profile = 0, TQWidget* tqparent = 0, const char* name = 0, bool modal = false, WFlags fl = 0 ); KrSearchDialog(TQString profile = 0, TQWidget* parent = 0, const char* name = 0, bool modal = false, WFlags fl = 0 );
void prepareGUI(); void prepareGUI();

@ -36,8 +36,8 @@
#include <kio/job.h> #include <kio/job.h>
#include <tqfileinfo.h> #include <tqfileinfo.h>
Combiner::Combiner( TQWidget* tqparent, KURL baseURLIn, KURL destinationURLIn, bool unixNamingIn ) : Combiner::Combiner( TQWidget* parent, KURL baseURLIn, KURL destinationURLIn, bool unixNamingIn ) :
TQProgressDialog( tqparent, "Krusader::Combiner", true, 0 ), baseURL( baseURLIn ), destinationURL( destinationURLIn ), TQProgressDialog( parent, "Krusader::Combiner", true, 0 ), baseURL( baseURLIn ), destinationURL( destinationURLIn ),
hasValidSplitFile( false ), fileCounter ( 0 ), permissions( -1 ), receivedSize( 0 ), hasValidSplitFile( false ), fileCounter ( 0 ), permissions( -1 ), receivedSize( 0 ),
combineReadJob( 0 ), combineWriteJob( 0 ), unixNaming( unixNamingIn ) combineReadJob( 0 ), combineWriteJob( 0 ), unixNaming( unixNamingIn )
{ {

@ -71,7 +71,7 @@ private:
bool unixNaming; bool unixNaming;
public: public:
Combiner( TQWidget* tqparent, KURL baseURLIn, KURL destinationURLIn, bool unixNamingIn=false ); Combiner( TQWidget* parent, KURL baseURLIn, KURL destinationURLIn, bool unixNamingIn=false );
~Combiner(); ~Combiner();
void combine(); void combine();

@ -37,8 +37,8 @@
#include <kfileitem.h> #include <kfileitem.h>
#include <tqfileinfo.h> #include <tqfileinfo.h>
Splitter::Splitter( TQWidget* tqparent, KURL fileNameIn, KURL destinationDirIn ) : Splitter::Splitter( TQWidget* parent, KURL fileNameIn, KURL destinationDirIn ) :
TQProgressDialog( tqparent, "Krusader::Splitter", true, 0 ), splitSize( 0 ) TQProgressDialog( parent, "Krusader::Splitter", true, 0 ), splitSize( 0 )
{ {
fileName = fileNameIn; fileName = fileNameIn;

@ -62,7 +62,7 @@ private:
KIO::TransferJob *splitWriteJob; KIO::TransferJob *splitWriteJob;
public: public:
Splitter( TQWidget* tqparent, KURL fileNameIn, KURL destinationDirIn ); Splitter( TQWidget* parent, KURL fileNameIn, KURL destinationDirIn );
~Splitter(); ~Splitter();
void split( KIO::filesize_t splitSizeIn ); void split( KIO::filesize_t splitSizeIn );

@ -46,8 +46,8 @@ PredefinedDevice SplitterGUI::predefinedDevices[] = {
{i18n( "700 MB (CD-R)" ), 700*0x100000} {i18n( "700 MB (CD-R)" ), 700*0x100000}
}; };
SplitterGUI::SplitterGUI( TQWidget* tqparent, KURL fileURL, KURL defaultDir ) : SplitterGUI::SplitterGUI( TQWidget* parent, KURL fileURL, KURL defaultDir ) :
TQDialog( tqparent, "Krusader::SplitterGUI", true, 0 ), TQDialog( parent, "Krusader::SplitterGUI", true, 0 ),
userDefinedSize ( 0x100000 ), lastSelectedDevice( 0 ), resultCode( TQDialog::Rejected ) userDefinedSize ( 0x100000 ), lastSelectedDevice( 0 ), resultCode( TQDialog::Rejected )
{ {
predefinedDeviceNum = sizeof( predefinedDevices ) / sizeof( PredefinedDevice ); predefinedDeviceNum = sizeof( predefinedDevices ) / sizeof( PredefinedDevice );

@ -56,7 +56,7 @@ struct PredefinedDevice
KIO::filesize_t value; KIO::filesize_t value;
public: public:
SplitterSpinBox ( TQWidget * tqparent = 0, const char * name = 0 ) : TQSpinBox( tqparent, name ), division( 1 ), value( 1 ) SplitterSpinBox ( TQWidget * parent = 0, const char * name = 0 ) : TQSpinBox( parent, name ), division( 1 ), value( 1 )
{ {
setMaxValue( 0x7FFFFFFF ); /* setting the minimum and maximum values */ setMaxValue( 0x7FFFFFFF ); /* setting the minimum and maximum values */
setMinValue( 1 ); setMinValue( 1 );
@ -159,7 +159,7 @@ private:
KURLRequester *urlReq; KURLRequester *urlReq;
public: public:
SplitterGUI( TQWidget* tqparent, KURL fileURL, KURL defaultDir ); SplitterGUI( TQWidget* parent, KURL fileURL, KURL defaultDir );
KURL getDestinationDir() {return vfs::fromPathOrURL( urlReq->url() );} KURL getDestinationDir() {return vfs::fromPathOrURL( urlReq->url() );}
KIO::filesize_t getSplitSize() {return spinBox->longValue();} KIO::filesize_t getSplitSize() {return spinBox->longValue();}

@ -50,8 +50,8 @@
#define S_RIGHT 1 #define S_RIGHT 1
#define S_BOTH 2 #define S_BOTH 2
FeedToListBoxDialog::FeedToListBoxDialog(TQWidget *tqparent, const char *name, Synchronizer *sync, FeedToListBoxDialog::FeedToListBoxDialog(TQWidget *parent, const char *name, Synchronizer *sync,
TQListView *syncL, bool equOK) : KDialogBase( tqparent, name, true, i18n( "Krusader::Feed to listbox" ), TQListView *syncL, bool equOK) : KDialogBase( parent, name, true, i18n( "Krusader::Feed to listbox" ),
KDialogBase::Ok | KDialogBase::Cancel | KDialogBase::User1, Ok, true, KStdGuiItem::clear() ), KDialogBase::Ok | KDialogBase::Cancel | KDialogBase::User1, Ok, true, KStdGuiItem::clear() ),
synchronizer( sync ), syncList( syncL ), equalAllowed( equOK ), accepted( false ) { synchronizer( sync ), syncList( syncL ), equalAllowed( equOK ), accepted( false ) {
@ -84,7 +84,7 @@ FeedToListBoxDialog::FeedToListBoxDialog(TQWidget *tqparent, const char *name,
if( itemNum == 0 ) { if( itemNum == 0 ) {
hide(); hide();
KMessageBox::error( tqparent, i18n( "No elements to feed!" ) ); KMessageBox::error( parent, i18n( "No elements to feed!" ) );
return; return;
} }

@ -36,10 +36,10 @@
#include <tqhbox.h> #include <tqhbox.h>
#include <klocale.h> #include <klocale.h>
SynchronizeDialog::SynchronizeDialog( TQWidget* tqparent, const char* name, bool modal, WFlags fl, SynchronizeDialog::SynchronizeDialog( TQWidget* parent, const char* name, bool modal, WFlags fl,
Synchronizer *sync, int pleftCopyNr, KIO::filesize_t pleftCopySize, Synchronizer *sync, int pleftCopyNr, KIO::filesize_t pleftCopySize,
int prightCopyNr, KIO::filesize_t prightCopySize, int pdeleteNr, int prightCopyNr, KIO::filesize_t prightCopySize, int pdeleteNr,
KIO::filesize_t pdeleteSize, int parThreads ) : TQDialog( tqparent, name, modal, fl ), KIO::filesize_t pdeleteSize, int parThreads ) : TQDialog( parent, name, modal, fl ),
synchronizer( sync ), leftCopyNr ( pleftCopyNr ), synchronizer( sync ), leftCopyNr ( pleftCopyNr ),
leftCopySize( pleftCopySize ), rightCopyNr ( prightCopyNr ), leftCopySize( pleftCopySize ), rightCopyNr ( prightCopyNr ),
rightCopySize( prightCopySize ), deleteNr( pdeleteNr ), rightCopySize( prightCopySize ), deleteNr( pdeleteNr ),

@ -170,10 +170,10 @@ void Synchronizer::compareLoop() {
if( entry->state() == ST_STATE_READY ) { if( entry->state() == ST_STATE_READY ) {
CompareTask *ctentry = (CompareTask *) entry; CompareTask *ctentry = (CompareTask *) entry;
if( ctentry->isDuplicate() ) if( ctentry->isDuplicate() )
compareDirectory( ctentry->tqparent(), ctentry->leftDirList(), ctentry->rightDirList(), compareDirectory( ctentry->parent(), ctentry->leftDirList(), ctentry->rightDirList(),
ctentry->leftDir(), ctentry->rightDir() ); ctentry->leftDir(), ctentry->rightDir() );
else else
addSingleDirectory( ctentry->tqparent(), ctentry->dirList(), ctentry->dir(), addSingleDirectory( ctentry->parent(), ctentry->dirList(), ctentry->dir(),
ctentry->isLeft() ); ctentry->isLeft() );
} }
if( entry->state() == ST_STATE_READY || entry->state() == ST_STATE_ERROR ) if( entry->state() == ST_STATE_READY || entry->state() == ST_STATE_ERROR )
@ -198,7 +198,7 @@ void Synchronizer::compareLoop() {
stack.clear(); stack.clear();
} }
void Synchronizer::compareDirectory( SynchronizerFileItem *tqparent, SynchronizerDirList * left_directory, void Synchronizer::compareDirectory( SynchronizerFileItem *parent, SynchronizerDirList * left_directory,
SynchronizerDirList * right_directory, const TQString &leftDir, SynchronizerDirList * right_directory, const TQString &leftDir,
const TQString &rightDir ) const TQString &rightDir )
{ {
@ -229,7 +229,7 @@ void Synchronizer::compareDirectory( SynchronizerFileItem *tqparent, Synchronize
continue; continue;
if( (right_file = right_directory->search( file_name, ignoreCase )) == 0 ) if( (right_file = right_directory->search( file_name, ignoreCase )) == 0 )
addLeftOnlyItem( tqparent, file_name, leftDir, left_file->vfile_getSize(), left_file->vfile_getTime_t(), addLeftOnlyItem( parent, file_name, leftDir, left_file->vfile_getSize(), left_file->vfile_getTime_t(),
readLink( left_file ), left_file->vfile_getOwner(), left_file->vfile_getGroup(), readLink( left_file ), left_file->vfile_getOwner(), left_file->vfile_getGroup(),
left_file->vfile_getMode(), left_file->vfile_getACL() ); left_file->vfile_getMode(), left_file->vfile_getACL() );
else else
@ -237,7 +237,7 @@ void Synchronizer::compareDirectory( SynchronizerFileItem *tqparent, Synchronize
if( isDir( right_file ) ) if( isDir( right_file ) )
continue; continue;
addDuplicateItem( tqparent, file_name, right_file->vfile_getName(), leftDir, rightDir, left_file->vfile_getSize(), right_file->vfile_getSize(), addDuplicateItem( parent, file_name, right_file->vfile_getName(), leftDir, rightDir, left_file->vfile_getSize(), right_file->vfile_getSize(),
left_file->vfile_getTime_t(), right_file->vfile_getTime_t(), readLink( left_file ), left_file->vfile_getTime_t(), right_file->vfile_getTime_t(), readLink( left_file ),
readLink( right_file ), left_file->vfile_getOwner(), right_file->vfile_getOwner(), readLink( right_file ), left_file->vfile_getOwner(), right_file->vfile_getOwner(),
left_file->vfile_getGroup(), right_file->vfile_getGroup(), left_file->vfile_getGroup(), right_file->vfile_getGroup(),
@ -262,7 +262,7 @@ void Synchronizer::compareDirectory( SynchronizerFileItem *tqparent, Synchronize
continue; continue;
if( left_directory->search( file_name, ignoreCase ) == 0 ) if( left_directory->search( file_name, ignoreCase ) == 0 )
addRightOnlyItem( tqparent, file_name, rightDir, right_file->vfile_getSize(), right_file->vfile_getTime_t(), addRightOnlyItem( parent, file_name, rightDir, right_file->vfile_getSize(), right_file->vfile_getTime_t(),
readLink( right_file ), right_file->vfile_getOwner(), right_file->vfile_getGroup(), readLink( right_file ), right_file->vfile_getOwner(), right_file->vfile_getGroup(),
right_file->vfile_getMode(), right_file->vfile_getACL() ); right_file->vfile_getMode(), right_file->vfile_getACL() );
} }
@ -288,7 +288,7 @@ void Synchronizer::compareDirectory( SynchronizerFileItem *tqparent, Synchronize
if( (right_file = right_directory->search( left_file_name, ignoreCase )) == 0 ) if( (right_file = right_directory->search( left_file_name, ignoreCase )) == 0 )
{ {
SynchronizerFileItem *me = addLeftOnlyItem( tqparent, left_file_name, leftDir, 0, SynchronizerFileItem *me = addLeftOnlyItem( parent, left_file_name, leftDir, 0,
left_file->vfile_getTime_t(), readLink( left_file ), left_file->vfile_getTime_t(), readLink( left_file ),
left_file->vfile_getOwner(), left_file->vfile_getGroup(), left_file->vfile_getOwner(), left_file->vfile_getGroup(),
left_file->vfile_getMode(), left_file->vfile_getACL(), left_file->vfile_getMode(), left_file->vfile_getACL(),
@ -297,7 +297,7 @@ void Synchronizer::compareDirectory( SynchronizerFileItem *tqparent, Synchronize
leftDir.isEmpty() ? left_file_name : leftDir+"/"+left_file_name, true, ignoreHidden ) ); leftDir.isEmpty() ? left_file_name : leftDir+"/"+left_file_name, true, ignoreHidden ) );
} else { } else {
TQString right_file_name = right_file->vfile_getName(); TQString right_file_name = right_file->vfile_getName();
SynchronizerFileItem *me = addDuplicateItem( tqparent, left_file_name, right_file_name, SynchronizerFileItem *me = addDuplicateItem( parent, left_file_name, right_file_name,
leftDir, rightDir, 0, 0, leftDir, rightDir, 0, 0,
left_file->vfile_getTime_t(), right_file->vfile_getTime_t(), left_file->vfile_getTime_t(), right_file->vfile_getTime_t(),
readLink( left_file ), readLink( right_file ), readLink( left_file ), readLink( right_file ),
@ -332,7 +332,7 @@ void Synchronizer::compareDirectory( SynchronizerFileItem *tqparent, Synchronize
if( left_directory->search( file_name, ignoreCase ) == 0 ) if( left_directory->search( file_name, ignoreCase ) == 0 )
{ {
SynchronizerFileItem *me = addRightOnlyItem( tqparent, file_name, rightDir, 0, SynchronizerFileItem *me = addRightOnlyItem( parent, file_name, rightDir, 0,
right_file->vfile_getTime_t(), readLink( right_file ), right_file->vfile_getTime_t(), readLink( right_file ),
right_file->vfile_getOwner(), right_file->vfile_getGroup(), right_file->vfile_getOwner(), right_file->vfile_getGroup(),
right_file->vfile_getMode(), right_file->vfile_getACL(), right_file->vfile_getMode(), right_file->vfile_getACL(),
@ -352,7 +352,7 @@ TQString Synchronizer::getTaskTypeName( TaskType taskType )
return names[taskType]; return names[taskType];
} }
SynchronizerFileItem * Synchronizer::addItem( SynchronizerFileItem *tqparent, const TQString &leftFile, SynchronizerFileItem * Synchronizer::addItem( SynchronizerFileItem *parent, const TQString &leftFile,
const TQString &rightFile, const TQString &leftDir, const TQString &rightFile, const TQString &leftDir,
const TQString &rightDir, bool existsLeft, bool existsRight, const TQString &rightDir, bool existsLeft, bool existsRight,
KIO::filesize_t leftSize, KIO::filesize_t rightSize, KIO::filesize_t leftSize, KIO::filesize_t rightSize,
@ -367,12 +367,12 @@ SynchronizerFileItem * Synchronizer::addItem( SynchronizerFileItem *tqparent, co
SynchronizerFileItem *item = new SynchronizerFileItem( leftFile, rightFile, leftDir, rightDir, marked, SynchronizerFileItem *item = new SynchronizerFileItem( leftFile, rightFile, leftDir, rightDir, marked,
existsLeft, existsRight, leftSize, rightSize, leftDate, rightDate, leftLink, rightLink, existsLeft, existsRight, leftSize, rightSize, leftDate, rightDate, leftLink, rightLink,
leftOwner, rightOwner, leftGroup, rightGroup, leftMode, rightMode, leftACL, rightACL, tsk, isDir, leftOwner, rightOwner, leftGroup, rightGroup, leftMode, rightMode, leftACL, rightACL, tsk, isDir,
isTemp, tqparent ); isTemp, parent );
if( !isTemp ) if( !isTemp )
{ {
while( tqparent && tqparent->isTemporary() ) while( parent && parent->isTemporary() )
setPermanent( tqparent ); setPermanent( parent );
bool doRefresh = false; bool doRefresh = false;
@ -411,37 +411,37 @@ void Synchronizer::compareContentResult( SynchronizerFileItem * item, bool res )
void Synchronizer::setPermanent( SynchronizerFileItem *item ) void Synchronizer::setPermanent( SynchronizerFileItem *item )
{ {
if( item->tqparent() && item->tqparent()->isTemporary() ) if( item->parent() && item->parent()->isTemporary() )
setPermanent( item->tqparent() ); setPermanent( item->parent() );
item->setPermanent(); item->setPermanent();
resultList.append( item ); resultList.append( item );
emit comparedFileData( item ); emit comparedFileData( item );
} }
SynchronizerFileItem * Synchronizer::addLeftOnlyItem( SynchronizerFileItem *tqparent, SynchronizerFileItem * Synchronizer::addLeftOnlyItem( SynchronizerFileItem *parent,
const TQString &file_name, const TQString &dir, KIO::filesize_t size, const TQString &file_name, const TQString &dir, KIO::filesize_t size,
time_t date, const TQString &link, const TQString &owner, time_t date, const TQString &link, const TQString &owner,
const TQString &group, mode_t mode, const TQString &acl, bool isDir, const TQString &group, mode_t mode, const TQString &acl, bool isDir,
bool isTemp ) bool isTemp )
{ {
return addItem( tqparent, file_name, file_name, dir, dir, true, false, size, 0, date, 0, link, TQString(), return addItem( parent, file_name, file_name, dir, dir, true, false, size, 0, date, 0, link, TQString(),
owner, TQString(), group, TQString(), mode, (mode_t)-1, acl, TQString(), owner, TQString(), group, TQString(), mode, (mode_t)-1, acl, TQString(),
asymmetric ? TT_DELETE : TT_COPY_TO_RIGHT, isDir, isTemp ); asymmetric ? TT_DELETE : TT_COPY_TO_RIGHT, isDir, isTemp );
} }
SynchronizerFileItem * Synchronizer::addRightOnlyItem( SynchronizerFileItem *tqparent, SynchronizerFileItem * Synchronizer::addRightOnlyItem( SynchronizerFileItem *parent,
const TQString &file_name, const TQString &dir, KIO::filesize_t size, const TQString &file_name, const TQString &dir, KIO::filesize_t size,
time_t date, const TQString &link, const TQString &owner, time_t date, const TQString &link, const TQString &owner,
const TQString &group, mode_t mode, const TQString &acl, bool isDir, const TQString &group, mode_t mode, const TQString &acl, bool isDir,
bool isTemp ) bool isTemp )
{ {
return addItem( tqparent, file_name, file_name, dir, dir, false, true, 0, size, 0, date, TQString(), link, return addItem( parent, file_name, file_name, dir, dir, false, true, 0, size, 0, date, TQString(), link,
TQString(), owner, TQString(), group, (mode_t)-1, mode, TQString(), acl, TQString(), owner, TQString(), group, (mode_t)-1, mode, TQString(), acl,
TT_COPY_TO_LEFT, isDir, isTemp ); TT_COPY_TO_LEFT, isDir, isTemp );
} }
SynchronizerFileItem * Synchronizer::addDuplicateItem( SynchronizerFileItem *tqparent, SynchronizerFileItem * Synchronizer::addDuplicateItem( SynchronizerFileItem *parent,
const TQString &leftName, const TQString &rightName, const TQString &leftName, const TQString &rightName,
const TQString &leftDir, const TQString &rightDir, const TQString &leftDir, const TQString &rightDir,
KIO::filesize_t leftSize, KIO::filesize_t rightSize, time_t leftDate, time_t rightDate, KIO::filesize_t leftSize, KIO::filesize_t rightSize, time_t leftDate, time_t rightDate,
@ -499,7 +499,7 @@ SynchronizerFileItem * Synchronizer::addDuplicateItem( SynchronizerFileItem *tqp
}while( false ); }while( false );
SynchronizerFileItem * item = addItem( tqparent, leftName, rightName, leftDir, rightDir, true, true, SynchronizerFileItem * item = addItem( parent, leftName, rightName, leftDir, rightDir, true, true,
leftSize, rightSize, leftDate, rightDate, leftLink, rightLink, leftSize, rightSize, leftDate, rightDate, leftLink, rightLink,
leftOwner, rightOwner, leftGroup, rightGroup, leftOwner, rightOwner, leftGroup, rightGroup,
leftMode, rightMode, leftACL, rightACL, leftMode, rightMode, leftACL, rightACL,
@ -514,7 +514,7 @@ SynchronizerFileItem * Synchronizer::addDuplicateItem( SynchronizerFileItem *tqp
return item; return item;
} }
void Synchronizer::addSingleDirectory( SynchronizerFileItem *tqparent, SynchronizerDirList *directory, void Synchronizer::addSingleDirectory( SynchronizerFileItem *parent, SynchronizerDirList *directory,
const TQString &dirName, bool isLeft ) const TQString &dirName, bool isLeft )
{ {
const TQString &url = directory->url(); const TQString &url = directory->url();
@ -533,10 +533,10 @@ void Synchronizer::addSingleDirectory( SynchronizerFileItem *tqparent, Synchroni
continue; continue;
if( isLeft ) if( isLeft )
addLeftOnlyItem( tqparent, file_name, dirName, file->vfile_getSize(), file->vfile_getTime_t(), readLink( file ), addLeftOnlyItem( parent, file_name, dirName, file->vfile_getSize(), file->vfile_getTime_t(), readLink( file ),
file->vfile_getOwner(), file->vfile_getGroup(), file->vfile_getMode(), file->vfile_getACL() ); file->vfile_getOwner(), file->vfile_getGroup(), file->vfile_getMode(), file->vfile_getACL() );
else else
addRightOnlyItem( tqparent, file_name, dirName, file->vfile_getSize(), file->vfile_getTime_t(), readLink( file ), addRightOnlyItem( parent, file_name, dirName, file->vfile_getSize(), file->vfile_getTime_t(), readLink( file ),
file->vfile_getOwner(), file->vfile_getGroup(), file->vfile_getMode(), file->vfile_getACL() ); file->vfile_getOwner(), file->vfile_getGroup(), file->vfile_getMode(), file->vfile_getACL() );
} }
@ -556,11 +556,11 @@ void Synchronizer::addSingleDirectory( SynchronizerFileItem *tqparent, Synchroni
SynchronizerFileItem *me; SynchronizerFileItem *me;
if( isLeft ) if( isLeft )
me = addLeftOnlyItem( tqparent, file_name, dirName, 0, file->vfile_getTime_t(), readLink( file ), me = addLeftOnlyItem( parent, file_name, dirName, 0, file->vfile_getTime_t(), readLink( file ),
file->vfile_getOwner(), file->vfile_getGroup(), file->vfile_getMode(), file->vfile_getOwner(), file->vfile_getGroup(), file->vfile_getMode(),
file->vfile_getACL(), true, !query->match( file ) ); file->vfile_getACL(), true, !query->match( file ) );
else else
me = addRightOnlyItem( tqparent, file_name, dirName, 0, file->vfile_getTime_t(), readLink( file ), me = addRightOnlyItem( parent, file_name, dirName, 0, file->vfile_getTime_t(), readLink( file ),
file->vfile_getOwner(), file->vfile_getGroup(), file->vfile_getMode(), file->vfile_getOwner(), file->vfile_getGroup(), file->vfile_getMode(),
file->vfile_getACL(), true, !query->match( file ) ); file->vfile_getACL(), true, !query->match( file ) );
stack.append( new CompareTask( me, url+file_name+"/", stack.append( new CompareTask( me, url+file_name+"/",
@ -605,15 +605,15 @@ bool Synchronizer::isMarked( TaskType task, bool isDuplicate )
bool Synchronizer::markParentDirectories( SynchronizerFileItem *item ) bool Synchronizer::markParentDirectories( SynchronizerFileItem *item )
{ {
if( item->tqparent() == 0 || item->tqparent()->isMarked() ) if( item->parent() == 0 || item->parent()->isMarked() )
return false; return false;
markParentDirectories( item->tqparent() ); markParentDirectories( item->parent() );
item->tqparent()->setMarked( true ); item->parent()->setMarked( true );
fileCount++; fileCount++;
emit markChanged( item->tqparent(), false ); emit markChanged( item->parent(), false );
return true; return true;
} }
@ -681,8 +681,8 @@ void Synchronizer::excludeOperation( SynchronizerFileItem *item )
void Synchronizer::exclude( SynchronizerFileItem *item ) void Synchronizer::exclude( SynchronizerFileItem *item )
{ {
if( !item->tqparent() || item->tqparent()->task() != TT_DELETE ) if( !item->parent() || item->parent()->task() != TT_DELETE )
operate( item, excludeOperation ); /* exclude only if the tqparent task is not DEL */ operate( item, excludeOperation ); /* exclude only if the parent task is not DEL */
} }
void Synchronizer::restoreOperation( SynchronizerFileItem *item ) void Synchronizer::restoreOperation( SynchronizerFileItem *item )
@ -694,12 +694,12 @@ void Synchronizer::restore( SynchronizerFileItem *item )
{ {
operate( item, restoreOperation ); operate( item, restoreOperation );
while( ( item = item->tqparent() ) != 0 ) /* in case of restore, the tqparent directories */ while( ( item = item->parent() ) != 0 ) /* in case of restore, the parent directories */
{ /* must be changed for being consistent */ { /* must be changed for being consistent */
if( item->task() != TT_DIFFERS ) if( item->task() != TT_DIFFERS )
break; break;
if( item->originalTask() == TT_DELETE ) /* if the tqparent original task is delete */ if( item->originalTask() == TT_DELETE ) /* if the parent original task is delete */
break; /* don't touch it */ break; /* don't touch it */
item->restoreOriginalTask(); /* restore */ item->restoreOriginalTask(); /* restore */
@ -753,7 +753,7 @@ void Synchronizer::copyToLeft( SynchronizerFileItem *item )
{ {
operate( item, copyToLeftOperation ); operate( item, copyToLeftOperation );
while( ( item = item->tqparent() ) != 0 ) while( ( item = item->parent() ) != 0 )
{ {
if( item->task() != TT_DIFFERS ) if( item->task() != TT_DIFFERS )
break; break;
@ -785,7 +785,7 @@ void Synchronizer::copyToRight( SynchronizerFileItem *item )
{ {
operate( item, copyToRightOperation ); operate( item, copyToRightOperation );
while( ( item = item->tqparent() ) != 0 ) while( ( item = item->parent() ) != 0 )
{ {
if( item->task() != TT_DIFFERS && item->task() != TT_DELETE ) if( item->task() != TT_DIFFERS && item->task() != TT_DELETE )
break; break;
@ -1325,9 +1325,9 @@ TQString Synchronizer::rightBaseDirectory()
class KgetProgressDialog : public KDialogBase class KgetProgressDialog : public KDialogBase
{ {
public: public:
KgetProgressDialog( TQWidget *tqparent=0, const char *name=0, const TQString &caption=TQString(), KgetProgressDialog( TQWidget *parent=0, const char *name=0, const TQString &caption=TQString(),
const TQString &text=TQString(), bool modal=false) : KDialogBase( KDialogBase::Plain, const TQString &text=TQString(), bool modal=false) : KDialogBase( KDialogBase::Plain,
caption, KDialogBase::User1 | KDialogBase::Cancel, KDialogBase::Cancel, tqparent, name, modal ) caption, KDialogBase::User1 | KDialogBase::Cancel, KDialogBase::Cancel, parent, name, modal )
{ {
showButton(KDialogBase::Close, false); showButton(KDialogBase::Close, false);

@ -198,7 +198,7 @@ class Synchronizer : public TQObject
int inTaskFinished; // counter of quasy 'threads' in slotTaskFinished int inTaskFinished; // counter of quasy 'threads' in slotTaskFinished
TQStringList selectedFiles; // the selected files to compare TQStringList selectedFiles; // the selected files to compare
TQWidget *parentWidget; // the tqparent widget TQWidget *parentWidget; // the parent widget
TQWidget *syncDlgWidget; // the synchronizer dialog widget TQWidget *syncDlgWidget; // the synchronizer dialog widget
}; };

@ -87,7 +87,7 @@ class SynchronizerFileItem
TQString m_rightACL; // ACL of the right file TQString m_rightACL; // ACL of the right file
TaskType m_task; // the task with the file TaskType m_task; // the task with the file
bool m_isDir; // flag, indicates that the file is a directory bool m_isDir; // flag, indicates that the file is a directory
SynchronizerFileItem *m_parent; // pointer to the tqparent directory item or 0 SynchronizerFileItem *m_parent; // pointer to the parent directory item or 0
void *m_userData; // user data void *m_userData; // user data
bool m_overWrite; // overwrite flag bool m_overWrite; // overwrite flag
TQString m_destination; // the destination URL at rename TQString m_destination; // the destination URL at rename
@ -101,14 +101,14 @@ class SynchronizerFileItem
const TQString &leftLink, const TQString &rightLink, const TQString &leftOwner, const TQString &leftLink, const TQString &rightLink, const TQString &leftOwner,
const TQString &rightOwner, const TQString &leftGroup, const TQString &rightGroup, const TQString &rightOwner, const TQString &leftGroup, const TQString &rightGroup,
mode_t leftMode, mode_t rightMode, const TQString &leftACL, const TQString &rightACL, mode_t leftMode, mode_t rightMode, const TQString &leftACL, const TQString &rightACL,
TaskType tsk, bool isDir, bool tmp, SynchronizerFileItem *tqparent ) : TaskType tsk, bool isDir, bool tmp, SynchronizerFileItem *parent ) :
m_leftName( leftNam ), m_rightName( rightNam ), m_leftDirectory( leftDir ), m_rightDirectory( rightDir ), m_leftName( leftNam ), m_rightName( rightNam ), m_leftDirectory( leftDir ), m_rightDirectory( rightDir ),
m_marked( mark ), m_existsLeft( exL ), m_existsRight( exR ), m_leftSize( leftSize ), m_marked( mark ), m_existsLeft( exL ), m_existsRight( exR ), m_leftSize( leftSize ),
m_rightSize( rightSize ), m_leftDate( leftDate ), m_rightDate( rightDate ), m_rightSize( rightSize ), m_leftDate( leftDate ), m_rightDate( rightDate ),
m_leftLink( leftLink ), m_rightLink( rightLink ), m_leftOwner( leftOwner ), m_leftLink( leftLink ), m_rightLink( rightLink ), m_leftOwner( leftOwner ),
m_rightOwner( rightOwner ), m_leftGroup( leftGroup ), m_rightGroup( rightGroup ), m_rightOwner( rightOwner ), m_leftGroup( leftGroup ), m_rightGroup( rightGroup ),
m_leftMode( leftMode ), m_rightMode( rightMode ), m_leftACL( leftACL ), m_leftMode( leftMode ), m_rightMode( rightMode ), m_leftACL( leftACL ),
m_rightACL( rightACL ), m_task( tsk ), m_isDir( isDir ), m_parent(tqparent), m_rightACL( rightACL ), m_task( tsk ), m_isDir( isDir ), m_parent(parent),
m_userData( 0 ), m_overWrite( false ), m_destination( TQString() ), m_userData( 0 ), m_overWrite( false ), m_destination( TQString() ),
m_temporary( tmp ), m_originalTask( tsk ) {} m_temporary( tmp ), m_originalTask( tsk ) {}
@ -143,7 +143,7 @@ class SynchronizerFileItem
m_task = m_originalTask = (TaskType)(m_originalTask - TT_UNKNOWN); m_task = m_originalTask = (TaskType)(m_originalTask - TT_UNKNOWN);
} }
inline bool isDir() {return m_isDir;} inline bool isDir() {return m_isDir;}
inline SynchronizerFileItem * tqparent() {return m_parent;} inline SynchronizerFileItem * parent() {return m_parent;}
inline void * userData() {return m_userData;} inline void * userData() {return m_userData;}
inline void setUserData( void *ud) {m_userData = ud;} inline void setUserData( void *ud) {m_userData = ud;}
inline void setOverWrite() {m_overWrite = true;} inline void setOverWrite() {m_overWrite = true;}

@ -1017,7 +1017,7 @@ private:
bool isLeft; bool isLeft;
public: public:
SynchronizerListView( Synchronizer * sync, TQWidget * tqparent ) : TQListView( tqparent ), synchronizer( sync ) SynchronizerListView( Synchronizer * sync, TQWidget * parent ) : TQListView( parent ), synchronizer( sync )
{ {
} }
@ -1067,17 +1067,17 @@ public:
} }
}; };
SynchronizerGUI::SynchronizerGUI(TQWidget* tqparent, KURL leftURL, KURL rightURL, TQStringList selList ) : SynchronizerGUI::SynchronizerGUI(TQWidget* parent, KURL leftURL, KURL rightURL, TQStringList selList ) :
TQDialog( tqparent, "Krusader::SynchronizerGUI", false, 0 ) { TQDialog( parent, "Krusader::SynchronizerGUI", false, 0 ) {
initGUI( tqparent, TQString(), leftURL, rightURL, selList ); initGUI( parent, TQString(), leftURL, rightURL, selList );
} }
SynchronizerGUI::SynchronizerGUI(TQWidget* tqparent, TQString profile ) : SynchronizerGUI::SynchronizerGUI(TQWidget* parent, TQString profile ) :
TQDialog( tqparent, "Krusader::SynchronizerGUI", false, 0 ) { TQDialog( parent, "Krusader::SynchronizerGUI", false, 0 ) {
initGUI( tqparent, profile, KURL(), KURL(), TQStringList() ); initGUI( parent, profile, KURL(), KURL(), TQStringList() );
} }
void SynchronizerGUI::initGUI(TQWidget* /* tqparent */, TQString profileName, KURL leftURL, KURL rightURL, TQStringList selList) { void SynchronizerGUI::initGUI(TQWidget* /* parent */, TQString profileName, KURL leftURL, KURL rightURL, TQStringList selList) {
selectedFiles = selList; selectedFiles = selList;
isComparing = wasClosed = wasSync = false; isComparing = wasClosed = wasSync = false;
firstResize = true; firstResize = true;
@ -1993,7 +1993,7 @@ void SynchronizerGUI::addFile( SynchronizerFileItem *item )
SyncViewItem *listItem = 0; SyncViewItem *listItem = 0;
SyncViewItem *dirItem; SyncViewItem *dirItem;
if( item->tqparent() == 0 ) if( item->parent() == 0 )
{ {
listItem = new SyncViewItem(item, textColor, baseColor, syncList, lastItem, leftName, leftSize, listItem = new SyncViewItem(item, textColor, baseColor, syncList, lastItem, leftName, leftSize,
leftDate, Synchronizer::getTaskTypeName( item->task() ), rightDate, leftDate, Synchronizer::getTaskTypeName( item->task() ), rightDate,
@ -2002,7 +2002,7 @@ void SynchronizerGUI::addFile( SynchronizerFileItem *item )
} }
else else
{ {
dirItem = (SyncViewItem *)item->tqparent()->userData(); dirItem = (SyncViewItem *)item->parent()->userData();
if( dirItem ) if( dirItem )
{ {
dirItem->setOpen( true ); dirItem->setOpen( true );

@ -61,22 +61,22 @@ public:
TQColor baseColor; TQColor baseColor;
public: public:
SyncViewItem( SynchronizerFileItem *item, TQColor txt, TQColor base, TQListView * tqparent, TQListViewItem *after, TQString label1, SyncViewItem( SynchronizerFileItem *item, TQColor txt, TQColor base, TQListView * parent, TQListViewItem *after, TQString label1,
TQString label2 = TQString(), TQString label3 = TQString(), TQString label4 = TQString(), TQString label2 = TQString(), TQString label3 = TQString(), TQString label4 = TQString(),
TQString label5 = TQString(), TQString label6 = TQString(), TQString label5 = TQString(), TQString label6 = TQString(),
TQString label7 = TQString(), TQString label8 = TQString() ) : TQString label7 = TQString(), TQString label8 = TQString() ) :
TQListViewItem( tqparent, after, label1, label2, label3, label4, label5, label6, TQListViewItem( parent, after, label1, label2, label3, label4, label5, label6,
label7, label8 ), syncItemRef( item ), lastItemRef( 0 ), textColor( txt ), baseColor( base ) label7, label8 ), syncItemRef( item ), lastItemRef( 0 ), textColor( txt ), baseColor( base )
{ {
item->setUserData( (void *)this ); item->setUserData( (void *)this );
setDragEnabled( true ); setDragEnabled( true );
} }
SyncViewItem( SynchronizerFileItem *item, TQColor txt, TQColor base, TQListViewItem * tqparent, TQListViewItem *after, TQString label1, SyncViewItem( SynchronizerFileItem *item, TQColor txt, TQColor base, TQListViewItem * parent, TQListViewItem *after, TQString label1,
TQString label2 = TQString(), TQString label3 = TQString(), TQString label4 = TQString(), TQString label2 = TQString(), TQString label3 = TQString(), TQString label4 = TQString(),
TQString label5 = TQString(), TQString label6 = TQString(), TQString label5 = TQString(), TQString label6 = TQString(),
TQString label7 = TQString(), TQString label8 = TQString() ) : TQString label7 = TQString(), TQString label8 = TQString() ) :
TQListViewItem( tqparent, after, label1, label2, label3, label4, label5, label6, TQListViewItem( parent, after, label1, label2, label3, label4, label5, label6,
label7, label8 ), syncItemRef( item ), lastItemRef( 0 ), textColor( txt ), baseColor( base ) label7, label8 ), syncItemRef( item ), lastItemRef( 0 ), textColor( txt ), baseColor( base )
{ {
item->setUserData( (void *)this ); item->setUserData( (void *)this );
@ -110,8 +110,8 @@ public:
public: public:
// if rightDirectory is null, leftDirectory is actually the profile name to load // if rightDirectory is null, leftDirectory is actually the profile name to load
SynchronizerGUI(TQWidget* tqparent, KURL leftDirectory, KURL rightDirectory = TQString(), TQStringList selList = TQStringList() ); SynchronizerGUI(TQWidget* parent, KURL leftDirectory, KURL rightDirectory = TQString(), TQStringList selList = TQStringList() );
SynchronizerGUI(TQWidget* tqparent, TQString profile ); SynchronizerGUI(TQWidget* parent, TQString profile );
~SynchronizerGUI(); ~SynchronizerGUI();
inline bool wasSynchronization() {return wasSync;} inline bool wasSynchronization() {return wasSync;}
@ -142,7 +142,7 @@ protected slots:
void connectFilters( const TQString & ); void connectFilters( const TQString & );
private: private:
void initGUI(TQWidget* tqparent, TQString profile, KURL leftURL, KURL rightURL, TQStringList selList); void initGUI(TQWidget* parent, TQString profile, KURL leftURL, KURL rightURL, TQStringList selList);
TQString convertTime(time_t time) const; TQString convertTime(time_t time) const;
void setMarkFlags(); void setMarkFlags();

@ -101,7 +101,7 @@ public:
inline const TQString & rightDir() { return m_otherDir; } inline const TQString & rightDir() { return m_otherDir; }
inline const TQString & url() { return m_url; } inline const TQString & url() { return m_url; }
inline const TQString & dir() { return m_dir; } inline const TQString & dir() { return m_dir; }
inline SynchronizerFileItem * tqparent() { return m_parent; } inline SynchronizerFileItem * parent() { return m_parent; }
inline SynchronizerDirList * leftDirList() { return m_dirList; } inline SynchronizerDirList * leftDirList() { return m_dirList; }
inline SynchronizerDirList * rightDirList() { return m_otherDirList; } inline SynchronizerDirList * rightDirList() { return m_otherDirList; }
inline SynchronizerDirList * dirList() { return m_dirList; } inline SynchronizerDirList * dirList() { return m_dirList; }

@ -57,15 +57,15 @@ void exp_placeholder::panelMissingError(const TQString &s, Expander& exp)
exp.setError( Error(Error::S_FATAL,Error::C_ARGUMENT,i18n("Needed panel specification missing in expander %1").tqarg(s)) ); exp.setError( Error(Error::S_FATAL,Error::C_ARGUMENT,i18n("Needed panel specification missing in expander %1").tqarg(s)) );
} }
TQStringList exp_placeholder::fileList(const ListPanel* const panel,const TQString& type,const TQString& tqmask,const bool ommitPath,const bool useUrl,Expander& exp,const TQString& error) TQStringList exp_placeholder::fileList(const ListPanel* const panel,const TQString& type,const TQString& mask,const bool ommitPath,const bool useUrl,Expander& exp,const TQString& error)
{ {
TQStringList items; TQStringList items;
if ( type.isEmpty() || type == "all" ) if ( type.isEmpty() || type == "all" )
panel->view->getItemsByMask( tqmask, &items ); panel->view->getItemsByMask( mask, &items );
else if ( type == "files" ) else if ( type == "files" )
panel->view->getItemsByMask( tqmask, &items, false, true ); panel->view->getItemsByMask( mask, &items, false, true );
else if ( type == "dirs" ) else if ( type == "dirs" )
panel->view->getItemsByMask( tqmask, &items, true, false ); panel->view->getItemsByMask( mask, &items, true, false );
else if ( type == "selected" ) else if ( type == "selected" )
panel->view->getSelectedItems( &items ); panel->view->getSelectedItems( &items );
else { else {
@ -176,7 +176,7 @@ public:
}; };
/** /**
* This selects all items by the tqmask given with the first Parameter * This selects all items by the mask given with the first Parameter
*/ */
class exp_Select : public exp_simpleplaceholder { class exp_Select : public exp_simpleplaceholder {
static const exp_Select instance; static const exp_Select instance;
@ -462,17 +462,17 @@ TagString exp_List::expFunc( const ListPanel* panel, const TQStringList& paramet
// get selected items from view // get selected items from view
TQStringList items; TQStringList items;
TQString tqmask; TQString mask;
if ( parameter.count() <= 3 || parameter[3].isEmpty() ) if ( parameter.count() <= 3 || parameter[3].isEmpty() )
tqmask = "*"; mask = "*";
else else
tqmask = parameter[3]; mask = parameter[3];
return separateAndQuote( return separateAndQuote(
fileList(panel, fileList(panel,
parameter.empty() ? TQString() : parameter[0].lower(), parameter.empty() ? TQString() : parameter[0].lower(),
tqmask, parameter.count() > 2 ? parameter[2].lower()=="yes" : false, mask, parameter.count() > 2 ? parameter[2].lower()=="yes" : false,
useUrl, exp, "List"), useUrl, exp, "List"),
parameter.count() > 1 ? parameter[1] : " ", parameter.count() > 1 ? parameter[1] : " ",
parameter.count() > 4 ? parameter[4].lower()=="yes" : true); parameter.count() > 4 ? parameter[4].lower()=="yes" : true);
@ -494,12 +494,12 @@ TagString exp_ListFile::expFunc( const ListPanel* panel, const TQStringList& par
// get selected items from view // get selected items from view
TQStringList items; TQStringList items;
TQString tqmask; TQString mask;
if ( parameter.count() <= 3 || parameter[3].isEmpty() ) if ( parameter.count() <= 3 || parameter[3].isEmpty() )
tqmask = "*"; mask = "*";
else else
tqmask = parameter[3]; mask = parameter[3];
KTempFile tmpFile( locateLocal("tmp", "krusader"), ".itemlist" ); KTempFile tmpFile( locateLocal("tmp", "krusader"), ".itemlist" );
if ( tmpFile.status() != 0 ) { if ( tmpFile.status() != 0 ) {
@ -511,7 +511,7 @@ TagString exp_ListFile::expFunc( const ListPanel* panel, const TQStringList& par
stream << separateAndQuote( stream << separateAndQuote(
fileList(panel, fileList(panel,
parameter.empty() ? TQString() : parameter[0].lower(), parameter.empty() ? TQString() : parameter[0].lower(),
tqmask, parameter.count()>2 ? parameter[2].lower()=="yes" : false, mask, parameter.count()>2 ? parameter[2].lower()=="yes" : false,
useUrl, exp, "ListFile"), useUrl, exp, "ListFile"),
parameter.count() > 1 ? parameter[1] : "\n", parameter.count() > 1 ? parameter[1] : "\n",
parameter.count() > 4 ? parameter[4].lower()=="yes" : true) parameter.count() > 4 ? parameter[4].lower()=="yes" : true)
@ -526,25 +526,25 @@ exp_Select::exp_Select() {
_description = i18n("Manipulate the Selection..."); _description = i18n("Manipulate the Selection...");
_needPanel = true; _needPanel = true;
addParameter( exp_parameter( i18n("Selection tqmask:"), "__select", true ) ); addParameter( exp_parameter( i18n("Selection mask:"), "__select", true ) );
addParameter( exp_parameter( i18n("Manipulate in which way:"), "__choose:Set;Add;Remove", false ) ); addParameter( exp_parameter( i18n("Manipulate in which way:"), "__choose:Set;Add;Remove", false ) );
} }
TagString exp_Select::expFunc( const ListPanel* panel, const TQStringList& parameter, const bool& , Expander& exp) const { TagString exp_Select::expFunc( const ListPanel* panel, const TQStringList& parameter, const bool& , Expander& exp) const {
NEED_PANEL NEED_PANEL
KRQuery tqmask; KRQuery mask;
if ( parameter.count() <= 0 || parameter[0].isEmpty() ) if ( parameter.count() <= 0 || parameter[0].isEmpty() )
tqmask = KRQuery( "*" ); mask = KRQuery( "*" );
else else
tqmask = KRQuery( parameter[0] ); mask = KRQuery( parameter[0] );
if ( parameter[1].lower() == "add") if ( parameter[1].lower() == "add")
panel->view->select( tqmask ); panel->view->select( mask );
else if ( parameter[1].lower() == "remove") else if ( parameter[1].lower() == "remove")
panel->view->unselect( tqmask ); panel->view->unselect( mask );
else { // parameter[1].lower() == "set" or isEmpty() or whatever else { // parameter[1].lower() == "set" or isEmpty() or whatever
panel->view->unselect( KRQuery( "*" ) ); panel->view->unselect( KRQuery( "*" ) );
panel->view->select( tqmask ); panel->view->select( mask );
} }
return TQString(); // this doesn't return anything, that's normal! return TQString(); // this doesn't return anything, that's normal!
@ -779,16 +779,16 @@ exp_Each::exp_Each() {
TagString exp_Each::expFunc( const ListPanel* panel, const TQStringList& parameter, const bool& useUrl, Expander& exp ) const { TagString exp_Each::expFunc( const ListPanel* panel, const TQStringList& parameter, const bool& useUrl, Expander& exp ) const {
NEED_PANEL NEED_PANEL
TQString tqmask; TQString mask;
if ( parameter.count() <= 2 || parameter[2].isEmpty() ) if ( parameter.count() <= 2 || parameter[2].isEmpty() )
tqmask = "*"; mask = "*";
else else
tqmask = parameter[2]; mask = parameter[2];
TagString ret; TagString ret;
TQStringList l = fileList(panel, TQStringList l = fileList(panel,
parameter.empty() ? TQString() : parameter[0].lower(), parameter.empty() ? TQString() : parameter[0].lower(),
tqmask, parameter.count() > 1 && parameter[1].lower()=="yes", mask, parameter.count() > 1 && parameter[1].lower()=="yes",
useUrl, exp, "Each"); useUrl, exp, "Each");
if(!(parameter.count()<=3 || parameter[3].lower()!="yes")) if(!(parameter.count()<=3 || parameter[3].lower()!="yes"))

@ -77,7 +77,7 @@ protected:
static void setError(Expander& exp,const Error& e) ; static void setError(Expander& exp,const Error& e) ;
static void panelMissingError(const TQString &s, Expander& exp); static void panelMissingError(const TQString &s, Expander& exp);
static TQStringList splitEach(const TagString& s); static TQStringList splitEach(const TagString& s);
static TQStringList fileList(const ListPanel* const panel,const TQString& type,const TQString& tqmask,const bool ommitPath,const bool useUrl,Expander&,const TQString&); static TQStringList fileList(const ListPanel* const panel,const TQString& type,const TQString& mask,const bool ommitPath,const bool useUrl,Expander&,const TQString&);
exp_placeholder(); exp_placeholder();
exp_placeholder(const exp_placeholder& p); exp_placeholder(const exp_placeholder& p);
~exp_placeholder() { } ~exp_placeholder() { }
@ -120,7 +120,7 @@ protected:
* - @em Count is replaced by a nomber of * - @em Count is replaced by a nomber of
* -# Either "All", "Files", "Dirs", "Selected" * -# Either "All", "Files", "Dirs", "Selected"
* . * .
* - @em Filter is preplaced by the panels filter-tqmask (ex: "*.cpp *.h") * - @em Filter is preplaced by the panels filter-mask (ex: "*.cpp *.h")
* - @em Current is replaced by the current item or, in case of onmultiple="call_each", by each selected item. * - @em Current is replaced by the current item or, in case of onmultiple="call_each", by each selected item.
* -# If "yes", only the filename (without path) is returned * -# If "yes", only the filename (without path) is returned
* . * .
@ -128,12 +128,12 @@ protected:
* -# Either "All", "Files", "Dirs", "Selected" * -# Either "All", "Files", "Dirs", "Selected"
* -# A seperator between the items (default: " " [one space]) * -# A seperator between the items (default: " " [one space])
* -# If "yes", only the filename (without path) is returned * -# If "yes", only the filename (without path) is returned
* -# (for all but "Selected") a filter-tqmask (default: "*") * -# (for all but "Selected") a filter-mask (default: "*")
* . * .
* . * .
* - Access to panel-dependent, krusader-internal, parameter-needed functions (panel-indicator has to be 'a', 'o', 'r' or 'l') * - Access to panel-dependent, krusader-internal, parameter-needed functions (panel-indicator has to be 'a', 'o', 'r' or 'l')
* - @em Select manipulates the selection of the panel * - @em Select manipulates the selection of the panel
* -# A filter-tqmask (nessesary) * -# A filter-mask (nessesary)
* -# Either "Add", "Remove", "Set" (default) * -# Either "Add", "Remove", "Set" (default)
* . * .
* - @em Bookmark manipulates the selection of the panel * - @em Bookmark manipulates the selection of the panel

@ -42,8 +42,8 @@
////////////////////////////////// KrActionProcDlg ///////////////////////////////////////// ////////////////////////////////// KrActionProcDlg /////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////
#include <tqlayout.h> #include <tqlayout.h>
KrActionProcDlg::KrActionProcDlg( TQString caption, bool enableStderr, TQWidget *tqparent ) : KrActionProcDlg::KrActionProcDlg( TQString caption, bool enableStderr, TQWidget *parent ) :
KDialogBase( tqparent, 0, false, caption, KDialogBase::User1 | KDialogBase::Ok | KDialogBase::Cancel, KDialogBase::Cancel ), KDialogBase( parent, 0, false, caption, KDialogBase::User1 | KDialogBase::Ok | KDialogBase::Cancel, KDialogBase::Cancel ),
_stdout(0), _stderr(0), _currentTextEdit(0) { _stdout(0), _stderr(0), _currentTextEdit(0) {
setButtonOK( i18n( "Close" ) ); setButtonOK( i18n( "Close" ) );
@ -93,7 +93,7 @@ _stdout(0), _stderr(0), _currentTextEdit(0) {
// HACK This fetches the tqlayout of the buttonbox from KDialogBase, although it is not accessable with KDialogBase's API // HACK This fetches the tqlayout of the buttonbox from KDialogBase, although it is not accessable with KDialogBase's API
// None the less it's quite save to use since this implementation hasn't changed since KDE-3.3 (I haven't looked at earlier // None the less it's quite save to use since this implementation hasn't changed since KDE-3.3 (I haven't looked at earlier
// versions since we don't support them) and now all work is done in KDE-4. // versions since we don't support them) and now all work is done in KDE-4.
TQWidget* buttonBox = TQT_TQWIDGET( actionButton(KDialogBase::Ok)->tqparent() ); TQWidget* buttonBox = TQT_TQWIDGET( actionButton(KDialogBase::Ok)->parent() );
TQBoxLayout* buttonBoxLayout = static_cast<TQBoxLayout*>( buttonBox->tqlayout() ); TQBoxLayout* buttonBoxLayout = static_cast<TQBoxLayout*>( buttonBox->tqlayout() );
TQCheckBox* useFixedFont = new TQCheckBox( i18n("Use font with fixed width"), buttonBox ); TQCheckBox* useFixedFont = new TQCheckBox( i18n("Use font with fixed width"), buttonBox );
buttonBoxLayout->insertWidget( 0, useFixedFont ); buttonBoxLayout->insertWidget( 0, useFixedFont );
@ -135,7 +135,7 @@ void KrActionProcDlg::slotUser1() {
TQFile file( filename ); TQFile file( filename );
int answer = KMessageBox::Yes; int answer = KMessageBox::Yes;
if ( file.exists() ) if ( file.exists() )
answer = KMessageBox::warningYesNoCancel( this, //tqparent answer = KMessageBox::warningYesNoCancel( this, //parent
i18n("This file already exists.\nDo you want to overwrite it or append the output?"), //text i18n("This file already exists.\nDo you want to overwrite it or append the output?"), //text
i18n("Overwrite or append?"), //caption i18n("Overwrite or append?"), //caption
i18n("Overwrite"), //label for Yes-Button i18n("Overwrite"), //label for Yes-Button
@ -280,7 +280,7 @@ void KrActionProc::processExited( KProcess * ) {
/////////////////////////////////////// KrAction /////////////////////////////////////////////// /////////////////////////////////////// KrAction ///////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////
KrAction::KrAction( KActionCollection *tqparent, const char* name ) : KAction( tqparent, name ) { KrAction::KrAction( KActionCollection *parent, const char* name ) : KAction( parent, name ) {
connect(this, TQT_SIGNAL(activated()), this, TQT_SLOT(exec()) ); connect(this, TQT_SIGNAL(activated()), this, TQT_SLOT(exec()) );
} }

@ -32,7 +32,7 @@ class KrAction: public KAction, public KrActionBase {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
KrAction( KActionCollection *tqparent, const char* name ); KrAction( KActionCollection *parent, const char* name );
~KrAction(); ~KrAction();
/** /**
@ -124,7 +124,7 @@ class KrActionProcDlg: public KDialogBase {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
KrActionProcDlg( TQString caption, bool enableStderr = false, TQWidget *tqparent = 0 ); KrActionProcDlg( TQString caption, bool enableStderr = false, TQWidget *parent = 0 );
protected slots: protected slots:
void addStderr( KProcess *proc, char *buffer, int buflen ); void addStderr( KProcess *proc, char *buffer, int buflen );

@ -18,7 +18,7 @@
#include "useraction.h" #include "useraction.h"
#include "kraction.h" #include "kraction.h"
UserActionPopupMenu::UserActionPopupMenu( KURL currentURL, TQWidget *tqparent ) : KPopupMenu( tqparent, "useraction popupmenu" ) { UserActionPopupMenu::UserActionPopupMenu( KURL currentURL, TQWidget *parent ) : KPopupMenu( parent, "useraction popupmenu" ) {
UserAction::KrActionList list = krUserAction->actionList(); UserAction::KrActionList list = krUserAction->actionList();
for ( KrAction* action = list.first(); action; action = list.next() ) for ( KrAction* action = list.first(); action; action = list.next() )
if ( action->isAvailable( currentURL ) ) if ( action->isAvailable( currentURL ) )

@ -19,7 +19,7 @@ class KURL;
class UserActionPopupMenu : public KPopupMenu { class UserActionPopupMenu : public KPopupMenu {
public: public:
UserActionPopupMenu( KURL currentURL, TQWidget *tqparent = 0 ); UserActionPopupMenu( KURL currentURL, TQWidget *parent = 0 );
}; };
#endif // ifndef USERACTIONPOPUPMENU_H #endif // ifndef USERACTIONPOPUPMENU_H

@ -29,7 +29,7 @@ void UserMenu::exec() {
_popup->run(); _popup->run();
} }
UserMenu::UserMenu( TQWidget * tqparent, const char * name ) : TQWidget( tqparent, name ) { UserMenu::UserMenu( TQWidget * parent, const char * name ) : TQWidget( parent, name ) {
_popup = new UserMenuGui(this); _popup = new UserMenuGui(this);
} }
@ -41,7 +41,7 @@ void UserMenu::update() {
////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////
UserMenuGui::UserMenuGui( UserMenu *, TQWidget * tqparent ) : KPopupMenu( tqparent ) { UserMenuGui::UserMenuGui( UserMenu *, TQWidget * parent ) : KPopupMenu( parent ) {
createMenu(); createMenu();
} }

@ -25,7 +25,7 @@ class UserMenu;
class UserMenuGui: public KPopupMenu { class UserMenuGui: public KPopupMenu {
public: public:
UserMenuGui( UserMenu* menu, TQWidget *tqparent = 0 ); UserMenuGui( UserMenu* menu, TQWidget *parent = 0 );
void run(); void run();
void createMenu(); void createMenu();
@ -35,7 +35,7 @@ class UserMenuGui: public KPopupMenu {
class UserMenu : public TQWidget { class UserMenu : public TQWidget {
public: public:
UserMenu( TQWidget *tqparent = 0, const char *name = 0 ); UserMenu( TQWidget *parent = 0, const char *name = 0 );
void exec(); void exec();
void update(); void update();

@ -66,7 +66,7 @@ public:
// sets the text for name filtering // sets the text for name filtering
void setNameFilter( const TQString &text, bool cs=true ); void setNameFilter( const TQString &text, bool cs=true );
// returns the current filter tqmask // returns the current filter mask
const TQString& nameFilter() const { return origFilter; } const TQString& nameFilter() const { return origFilter; }
// returns whether the filter is case sensitive // returns whether the filter is case sensitive
bool isCaseSensitive() { return matchesCaseSensitive; } bool isCaseSensitive() { return matchesCaseSensitive; }

@ -48,7 +48,7 @@ vfs::VFS_TYPE KrVfsHandler::getVfsType(const KURL& url){
return vfs::ERROR; return vfs::ERROR;
} }
vfs* KrVfsHandler::getVfs(const KURL& url,TQObject* tqparent,vfs* oldVfs){ vfs* KrVfsHandler::getVfs(const KURL& url,TQObject* parent,vfs* oldVfs){
vfs::VFS_TYPE newType,oldType = vfs::ERROR; vfs::VFS_TYPE newType,oldType = vfs::ERROR;
if(oldVfs) oldType = oldVfs->vfs_getType(); if(oldVfs) oldType = oldVfs->vfs_getType();
@ -59,10 +59,10 @@ vfs* KrVfsHandler::getVfs(const KURL& url,TQObject* tqparent,vfs* oldVfs){
if( oldType != newType ){ if( oldType != newType ){
switch( newType ){ switch( newType ){
case (vfs::NORMAL) : newVfs = new normal_vfs(tqparent); break; case (vfs::NORMAL) : newVfs = new normal_vfs(parent); break;
case (vfs::FTP ) : newVfs = new ftp_vfs(tqparent) ; break; case (vfs::FTP ) : newVfs = new ftp_vfs(parent) ; break;
case (vfs::TEMP ) : newVfs = 0/*new temp_vfs(tqparent)*/ ; break; case (vfs::TEMP ) : newVfs = 0/*new temp_vfs(parent)*/ ; break;
case (vfs::VIRT ) : newVfs = new virt_vfs(tqparent) ; break; case (vfs::VIRT ) : newVfs = new virt_vfs(parent) ; break;
case (vfs::ERROR ) : newVfs = 0 ; break; case (vfs::ERROR ) : newVfs = 0 ; break;
} }
} }

@ -34,7 +34,7 @@ public:
~KrVfsHandler(); ~KrVfsHandler();
static vfs::VFS_TYPE getVfsType(const KURL& url); static vfs::VFS_TYPE getVfsType(const KURL& url);
static vfs* getVfs(const KURL& url,TQObject* tqparent=0,vfs* oldVfs=0); static vfs* getVfs(const KURL& url,TQObject* parent=0,vfs* oldVfs=0);
}; };
#endif #endif

@ -232,7 +232,7 @@ void PreservingCopyJob::slotCopyingDone( KIO::Job *, const KURL &from, const KUR
unsigned i=0; unsigned i=0;
TQString path = to.path( -1 ); TQString path = to.path( -1 );
for( ; i != directoriesToStamp.count(); i++ ) // sort the URL-s to avoid tqparent time stamp modification for( ; i != directoriesToStamp.count(); i++ ) // sort the URL-s to avoid parent time stamp modification
if( path >= directoriesToStamp[ i ].path( -1 ) ) if( path >= directoriesToStamp[ i ].path( -1 ) )
break; break;

@ -192,7 +192,7 @@ TQString KrServices::escape( TQString name ) {
// ------- KEasyProcess // ------- KEasyProcess
KEasyProcess::KEasyProcess(TQObject *tqparent, const char *name): KProcess(tqparent, name) { KEasyProcess::KEasyProcess(TQObject *parent, const char *name): KProcess(parent, name) {
init(); init();
} }

@ -60,7 +60,7 @@ class KEasyProcess: public KProcess {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
KEasyProcess(TQObject *tqparent, const char *name=0); KEasyProcess(TQObject *parent, const char *name=0);
KEasyProcess(); KEasyProcess();
virtual ~KEasyProcess() {} virtual ~KEasyProcess() {}

@ -313,7 +313,7 @@ void KRslots::customFilter() { ACTIVE_PANEL->setFilter(KrViewProperties::Custom
void KRslots::markAll() { ACTIVE_PANEL->select(true,true); } void KRslots::markAll() { ACTIVE_PANEL->select(true,true); }
void KRslots::unmarkAll() { ACTIVE_PANEL->select(false,true); } void KRslots::unmarkAll() { ACTIVE_PANEL->select(false,true); }
void KRslots::markGroup() { ACTIVE_PANEL->select(true,false); } void KRslots::markGroup() { ACTIVE_PANEL->select(true,false); }
void KRslots::markGroup(const TQString& tqmask, bool select) { ACTIVE_PANEL->select( KRQuery( tqmask ), select); } void KRslots::markGroup(const TQString& mask, bool select) { ACTIVE_PANEL->select( KRQuery( mask ), select); }
void KRslots::unmarkGroup() { ACTIVE_PANEL->select(false,false); } void KRslots::unmarkGroup() { ACTIVE_PANEL->select(false,false); }
void KRslots::invert() { ACTIVE_PANEL->invertSelection(); } void KRslots::invert() { ACTIVE_PANEL->invertSelection(); }

@ -54,7 +54,7 @@ class KRslots : public TQObject {
public: public:
enum compareMode { full } ; enum compareMode { full } ;
KRslots(TQObject *tqparent): TQObject(tqparent, "KRslots") {} KRslots(TQObject *parent): TQObject(parent, "KRslots") {}
~KRslots() {} ~KRslots() {}
public slots: public slots:

@ -50,7 +50,7 @@
#include "krservices.h" #include "krservices.h"
#include <tqclipboard.h> #include <tqclipboard.h>
KrusaderView::KrusaderView( TQWidget *tqparent ) : TQWidget( tqparent, "KrusaderView" ), activePanel(0), KrusaderView::KrusaderView( TQWidget *parent ) : TQWidget( parent, "KrusaderView" ), activePanel(0),
konsole_part( 0L ) {} konsole_part( 0L ) {}
void KrusaderView::start( TQStringList leftTabs, TQStringList leftTypes, TQValueList<int> leftProps, int leftActiveTab, void KrusaderView::start( TQStringList leftTabs, TQStringList leftTypes, TQValueList<int> leftProps, int leftActiveTab,

@ -59,7 +59,7 @@ class KrusaderView : public TQWidget {
TQ_OBJECT TQ_OBJECT
public: public:
KrusaderView(TQWidget *tqparent=0); KrusaderView(TQWidget *parent=0);
virtual ~KrusaderView(){} virtual ~KrusaderView(){}
void start(TQStringList leftTabs, TQStringList leftTypes, TQValueList<int> leftProps, int leftActiveTab, void start(TQStringList leftTabs, TQStringList leftTypes, TQValueList<int> leftProps, int leftActiveTab,
TQStringList rightTabs, TQStringList rightTypes, TQValueList<int> rightProps, int rightActiveTab, TQStringList rightTabs, TQStringList rightTypes, TQValueList<int> rightProps, int rightActiveTab,

@ -19,8 +19,8 @@
#define _self (*_selfPtr) #define _self (*_selfPtr)
#define _other (*_otherPtr) #define _other (*_otherPtr)
PanelManager::PanelManager( TQWidget *tqparent, bool left ) : PanelManager::PanelManager( TQWidget *parent, bool left ) :
TQWidget( tqparent, "PanelManager" ), _layout( 0 ), _left( left ), TQWidget( parent, "PanelManager" ), _layout( 0 ), _left( left ),
_selfPtr( _left ? &MAIN_VIEW->left : &MAIN_VIEW->right ), _selfPtr( _left ? &MAIN_VIEW->left : &MAIN_VIEW->right ),
_otherPtr( _left ? &MAIN_VIEW->right : &MAIN_VIEW->left ) { _otherPtr( _left ? &MAIN_VIEW->right : &MAIN_VIEW->left ) {
_layout = new TQGridLayout( this, 1, 1 ); _layout = new TQGridLayout( this, 1, 1 );

@ -23,7 +23,7 @@ class PanelManager: public TQWidget {
* (self, other, active), which enables it to manage pointers held by the panels transparently. * (self, other, active), which enables it to manage pointers held by the panels transparently.
* It also receives a bool (left) which is true if the manager is the left one, or false otherwise. * It also receives a bool (left) which is true if the manager is the left one, or false otherwise.
*/ */
PanelManager( TQWidget *tqparent, bool left ); PanelManager( TQWidget *parent, bool left );
/** /**
* Called once by KrusaderView to create the first panel. Subsequent called are done internally * Called once by KrusaderView to create the first panel. Subsequent called are done internally
* Note: only creates the panel, but doesn't start the VFS inside it. Use startPanel() for that. * Note: only creates the panel, but doesn't start the VFS inside it. Use startPanel() for that.

@ -31,7 +31,7 @@
#define DISPLAY(X) (X.isLocalFile() ? X.path() : X.prettyURL()) #define DISPLAY(X) (X.isLocalFile() ? X.path() : X.prettyURL())
PanelTabBar::PanelTabBar(TQWidget *tqparent): TQTabBar(tqparent), _maxTabLength(0) { PanelTabBar::PanelTabBar(TQWidget *parent): TQTabBar(parent), _maxTabLength(0) {
_panelActionMenu = new KActionMenu( i18n("Panel"), TQT_TQOBJECT(this) ); _panelActionMenu = new KActionMenu( i18n("Panel"), TQT_TQOBJECT(this) );
setAcceptDrops(true); setAcceptDrops(true);
@ -172,7 +172,7 @@ TQString PanelTabBar::squeeze(TQString text, int index) {
TQFontMetrics fm(fontMetrics()); TQFontMetrics fm(fontMetrics());
// set the real max length // set the real max length
_maxTabLength = (TQT_TQWIDGET(tqparent())->width()-(6*fm.width("W")))/fm.width("W"); _maxTabLength = (TQT_TQWIDGET(parent())->width()-(6*fm.width("W")))/fm.width("W");
// each tab gets a fair share of the max tab length // each tab gets a fair share of the max tab length
int _effectiveTabLength = _maxTabLength / (count() == 0 ? 1 : count()); int _effectiveTabLength = _maxTabLength / (count() == 0 ? 1 : count());

@ -46,7 +46,7 @@ class PanelTabBar : public TQTabBar {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
PanelTabBar( TQWidget *tqparent ); PanelTabBar( TQWidget *parent );
public slots: public slots:
/** /**

Loading…
Cancel
Save