Revert "Rename a number of old tq methods that are no longer tq specific"

This reverts commit c71ade2e37.
pull/1/head
Timothy Pearson 13 years ago
parent c71ade2e37
commit a327682a10

@ -166,11 +166,11 @@ KCleanup::confirmation( KFileInfo * item )
if ( item->isDir() || item->isDotEntry() ) if ( item->isDir() || item->isDotEntry() )
{ {
msg = i18n( "%1\nin directory %2" ).arg( cleanTitle() ).arg( item->url() ); msg = i18n( "%1\nin directory %2" ).tqarg( cleanTitle() ).tqarg( item->url() );
} }
else else
{ {
msg = i18n( "%1\nfor file %2" ).arg( cleanTitle() ).arg( item->url() ); msg = i18n( "%1\nfor file %2" ).tqarg( cleanTitle() ).tqarg( item->url() );
} }
if ( KMessageBox::warningContinueCancel( 0, // parentWidget if ( KMessageBox::warningContinueCancel( 0, // parentWidget
@ -252,7 +252,7 @@ KCleanup::executeRecursive( KFileInfo *item )
{ {
/** /**
* Recursively execute in this subdirectory, but only if it * Recursively execute in this subdirectory, but only if it
* really is a directory: File children might have been * really is a directory: File tqchildren might have been
* reparented to the directory (normally, they reside in * reparented to the directory (normally, they reside in
* the dot entry) if there are no real subdirectories on * the dot entry) if there are no real subdirectories on
* this directory level. * this directory level.
@ -324,7 +324,7 @@ KCleanup::expandVariables( const KFileInfo * item,
return expanded; return expanded;
} }
#include <textcodec.h> #include <tqtextcodec.h>
void void
KCleanup::runCommand ( const KFileInfo * item, KCleanup::runCommand ( const KFileInfo * item,
const TQString & command ) const const TQString & command ) const

@ -228,10 +228,10 @@ KCleanupCollection::addUserCleanups( int number )
if ( _nextUserCleanupNo <= 9 ) if ( _nextUserCleanupNo <= 9 )
// Provide a keyboard shortcut for cleanup #0..#9 // Provide a keyboard shortcut for cleanup #0..#9
title=i18n( "User Defined Cleanup #&%1" ).arg(_nextUserCleanupNo); title=i18n( "User Defined Cleanup #&%1" ).tqarg(_nextUserCleanupNo);
else else
// No keyboard shortcuts for cleanups #10.. - they would be duplicates // No keyboard shortcuts for cleanups #10.. - they would be duplicates
title=i18n( "User Defined Cleanup #%1" ).arg(_nextUserCleanupNo); title=i18n( "User Defined Cleanup #%1" ).tqarg(_nextUserCleanupNo);
_nextUserCleanupNo++; _nextUserCleanupNo++;

@ -10,7 +10,7 @@
*/ */
#include <clipboard.h> #include <tqclipboard.h>
#include <tqpopupmenu.h> #include <tqpopupmenu.h>
#include <tqsplitter.h> #include <tqsplitter.h>
@ -348,7 +348,7 @@ void KDirStatApp::readMainWinConfig()
KConfig * config = kapp->config(); KConfig * config = kapp->config();
config->setGroup( "General Options" ); config->setGroup( "General Options" );
// Status settings of the various bars and views // tqStatus settings of the various bars and views
_showToolBar->setChecked( config->readBoolEntry( "Show Toolbar", true ) ); _showToolBar->setChecked( config->readBoolEntry( "Show Toolbar", true ) );
toggleToolBar(); toggleToolBar();
@ -824,7 +824,7 @@ KDirStatApp::createTreemapView()
_activityTracker, TQT_SLOT ( trackActivity( int ) ) ); _activityTracker, TQT_SLOT ( trackActivity( int ) ) );
} }
_treemapView->show(); // TQSplitter needs explicit show() for new children _treemapView->show(); // TQSplitter needs explicit show() for new tqchildren
updateActions(); updateActions();
} }

@ -12,7 +12,7 @@
#include <tqcheckbox.h> #include <tqcheckbox.h>
#include <tqcombobox.h> #include <tqcombobox.h>
#include <tqlabel.h> #include <tqlabel.h>
#include <layout.h> #include <tqlayout.h>
#include <tqlineedit.h> #include <tqlineedit.h>
#include <tqslider.h> #include <tqslider.h>
#include <tqvbox.h> #include <tqvbox.h>
@ -44,21 +44,21 @@ KSettingsDialog::KSettingsDialog( KDirStatApp *mainWin )
{ {
/** /**
* This may seem like overkill, but I didn't find any other way to get * This may seem like overkill, but I didn't find any other way to get
* geometry management right with KDialogBase, yet maintain a modular and * tqgeometry management right with KDialogBase, yet maintain a modular and
* object-oriented design: * object-oriented design:
* *
* Each individual settings page is added with 'addVBoxPage()' to get some * Each individual settings page is added with 'addVBoxPage()' to get some
* initial geometry management. Only then can some generic widget be added * initial tqgeometry management. Only then can some generic widget be added
* into this - and I WANT my settings pages to be generic widgets. I want * into this - and I WANT my settings pages to be generic widgets. I want
* them to be self-sufficient - no monolithic mess of widget creation in my * them to be self-sufficient - no monolithic mess of widget creation in my
* code, intermixed with all kinds of layout objects. * code, intermixed with all kinds of tqlayout objects.
* *
* The ordinary KDialogBase::addPage() just creates a TQFrame which is too * The ordinary KDialogBase::addPage() just creates a TQFrame which is too
* dumb for any kind of geometry management - it cannot even handle one * dumb for any kind of tqgeometry management - it cannot even handle one
* single child right. So, let's have KDialogBase create something more * single child right. So, let's have KDialogBase create something more
* intelligent: A TQVBox (which is derived from TQFrame anyway). This TQVBox * intelligent: A TQVBox (which is derived from TQFrame anyway). This TQVBox
* gets only one child - the KSettingsPage. This KSettingsPage handles its * gets only one child - the KSettingsPage. This KSettingsPage handles its
* own layout. * own tqlayout.
**/ **/
TQWidget * page; TQWidget * page;
@ -79,7 +79,7 @@ KSettingsDialog::KSettingsDialog( KDirStatApp *mainWin )
_generalSettingsPageIndex = pageIndex( page ); _generalSettingsPageIndex = pageIndex( page );
new KGeneralSettingsPage( this, page, _mainWin ); new KGeneralSettingsPage( this, page, _mainWin );
// resize( sizeHint() ); // resize( tqsizeHint() );
} }
@ -166,14 +166,14 @@ KTreeColorsPage::KTreeColorsPage( KSettingsDialog * dialog,
, _treeView( mainWin->treeView() ) , _treeView( mainWin->treeView() )
, _maxButtons( KDirStatSettingsMaxColorButton ) , _maxButtons( KDirStatSettingsMaxColorButton )
{ {
// Outer layout box // Outer tqlayout box
TQHBoxLayout * outerBox = new TQHBoxLayout( this, TQHBoxLayout * outerBox = new TQHBoxLayout( this,
0, // border 0, // border
dialog->spacingHint() ); dialog->spacingHint() );
// Inner layout box with a column of color buttons // Inner tqlayout box with a column of color buttons
TQGridLayout *grid = new TQGridLayout( _maxButtons, // rows TQGridLayout *grid = new TQGridLayout( _maxButtons, // rows
_maxButtons + 1, // cols _maxButtons + 1, // cols
@ -190,7 +190,7 @@ KTreeColorsPage::KTreeColorsPage( KSettingsDialog * dialog,
{ {
TQString labelText; TQString labelText;
labelText=i18n( "Tree Level %1" ).arg(i+1); labelText=i18n( "Tree Level %1" ).tqarg(i+1);
_colorLabel[i] = new TQLabel( labelText, this ); _colorLabel[i] = new TQLabel( labelText, this );
grid->addWidget( _colorLabel [i], i, 0 ); grid->addWidget( _colorLabel [i], i, 0 );
@ -284,9 +284,9 @@ KCleanupPage::KCleanupPage( KSettingsDialog * dialog,
_workCleanupCollection = *mainWin->cleanupCollection(); _workCleanupCollection = *mainWin->cleanupCollection();
// Create layout and widgets. // Create tqlayout and widgets.
TQHBoxLayout * layout = new TQHBoxLayout( this, TQHBoxLayout * tqlayout = new TQHBoxLayout( this,
0, // border 0, // border
dialog->spacingHint() ); // spacing dialog->spacingHint() ); // spacing
_listBox = new KCleanupListBox( this ); _listBox = new KCleanupListBox( this );
@ -302,17 +302,17 @@ KCleanupPage::KCleanupPage( KSettingsDialog * dialog,
this, TQT_SLOT ( changeCleanup( KCleanup * ) ) ); this, TQT_SLOT ( changeCleanup( KCleanup * ) ) );
// Fill list box so it can determine a reasonable startup geometry - that // Fill list box so it can determine a reasonable startup tqgeometry - that
// doesn't work if it happens only later. // doesn't work if it happens only later.
setup(); setup();
// Now that _listBox will (hopefully) have determined a reasonable // Now that _listBox will (hopefully) have determined a reasonable
// default geometry, add the widgets to the layout. // default tqgeometry, add the widgets to the tqlayout.
layout->addWidget( _listBox, 0 ); tqlayout->addWidget( _listBox, 0 );
layout->addWidget( _props , 1 ); tqlayout->addWidget( _props , 1 );
layout->activate(); tqlayout->activate();
} }
@ -370,7 +370,7 @@ KCleanupPage::setup()
// (Re-) Initialize list box. // (Re-) Initialize list box.
// _listBox->resize( _listBox->sizeHint() ); // _listBox->resize( _listBox->tqsizeHint() );
_listBox->setSelected( 0, true ); _listBox->setSelected( 0, true );
} }
@ -437,13 +437,13 @@ KCleanupListBox::KCleanupListBox( TQWidget *parent )
TQSize TQSize
KCleanupListBox::sizeHint() const KCleanupListBox::tqsizeHint() const
{ {
// FIXME: Is this still needed with TQt 2.x? // FIXME: Is this still needed with TQt 2.x?
if ( count() < 1 ) if ( count() < 1 )
{ {
// As long as the list is empty, sizeHint() would default to // As long as the list is empty, tqsizeHint() would default to
// (0,0) which is ALWAYS just a pain in the ass. We'd rather // (0,0) which is ALWAYS just a pain in the ass. We'd rather
// have an absolutely random value than this. // have an absolutely random value than this.
return TQSize( 100, 100 ); return TQSize( 100, 100 );
@ -544,7 +544,7 @@ KCleanupPropertiesPage::KCleanupPropertiesPage( TQWidget * parent,
TQVBoxLayout *fieldsBox = new TQVBoxLayout( _fields ); TQVBoxLayout *fieldsBox = new TQVBoxLayout( _fields );
// Grid layout for the edit fields, their labels, some // Grid tqlayout for the edit fields, their labels, some
// explanatory text and the "recurse?" check box. // explanatory text and the "recurse?" check box.
TQGridLayout *grid = new TQGridLayout( 7, // rows TQGridLayout *grid = new TQGridLayout( 7, // rows
@ -611,7 +611,7 @@ KCleanupPropertiesPage::KCleanupPropertiesPage( TQWidget * parent,
_worksForProtocols->insertItem( i18n( "Network Transparent (ftp, smb, tar, ...)" ) ); _worksForProtocols->insertItem( i18n( "Network Transparent (ftp, smb, tar, ...)" ) );
// Grid layout for combo boxes at the bottom // Grid tqlayout for combo boxes at the bottom
grid = new TQGridLayout( 1, // rows grid = new TQGridLayout( 1, // rows
2, // cols 2, // cols
@ -646,7 +646,7 @@ KCleanupPropertiesPage::KCleanupPropertiesPage( TQWidget * parent,
outerBox->activate(); outerBox->activate();
setMinimumSize( sizeHint() ); setMinimumSize( tqsizeHint() );
} }
@ -707,13 +707,13 @@ KGeneralSettingsPage::KGeneralSettingsPage( KSettingsDialog * dialog,
, _treeView( mainWin->treeView() ) , _treeView( mainWin->treeView() )
{ {
// Create layout and widgets. // Create tqlayout and widgets.
TQVBoxLayout * layout = new TQVBoxLayout( this, 5, // border TQVBoxLayout * tqlayout = new TQVBoxLayout( this, 5, // border
dialog->spacingHint() ); // spacing dialog->spacingHint() ); // spacing
TQVGroupBox * gbox = new TQVGroupBox( i18n( "Directory Reading" ), this ); TQVGroupBox * gbox = new TQVGroupBox( i18n( "Directory Reading" ), this );
layout->addWidget( gbox ); tqlayout->addWidget( gbox );
_crossFileSystems = new TQCheckBox( i18n( "Cross &File System Boundaries" ), gbox ); _crossFileSystems = new TQCheckBox( i18n( "Cross &File System Boundaries" ), gbox );
_enableLocalDirReader = new TQCheckBox( i18n( "Use Optimized &Local Directory Read Methods" ), gbox ); _enableLocalDirReader = new TQCheckBox( i18n( "Use Optimized &Local Directory Read Methods" ), gbox );
@ -721,10 +721,10 @@ KGeneralSettingsPage::KGeneralSettingsPage( KSettingsDialog * dialog,
connect( _enableLocalDirReader, TQT_SIGNAL( stateChanged( int ) ), connect( _enableLocalDirReader, TQT_SIGNAL( stateChanged( int ) ),
this, TQT_SLOT ( checkEnabledState() ) ); this, TQT_SLOT ( checkEnabledState() ) );
layout->addSpacing( 10 ); tqlayout->addSpacing( 10 );
gbox = new TQVGroupBox( i18n( "Animation" ), this ); gbox = new TQVGroupBox( i18n( "Animation" ), this );
layout->addWidget( gbox ); tqlayout->addWidget( gbox );
_enableToolBarAnimation = new TQCheckBox( i18n( "P@cM@n Animation in Tool &Bar" ), gbox ); _enableToolBarAnimation = new TQCheckBox( i18n( "P@cM@n Animation in Tool &Bar" ), gbox );
_enableTreeViewAnimation = new TQCheckBox( i18n( "P@cM@n Animation in Directory &Tree" ), gbox ); _enableTreeViewAnimation = new TQCheckBox( i18n( "P@cM@n Animation in Directory &Tree" ), gbox );
@ -800,11 +800,11 @@ KTreemapPage::KTreemapPage( KSettingsDialog * dialog,
{ {
// kdDebug() << k_funcinfo << endl; // kdDebug() << k_funcinfo << endl;
TQVBoxLayout * layout = new TQVBoxLayout( this, 0, 0 ); // parent, border, spacing TQVBoxLayout * tqlayout = new TQVBoxLayout( this, 0, 0 ); // parent, border, spacing
TQVBox * vbox = new TQVBox( this ); TQVBox * vbox = new TQVBox( this );
vbox->setSpacing( dialog->spacingHint() ); vbox->setSpacing( dialog->spacingHint() );
layout->addWidget( vbox ); tqlayout->addWidget( vbox );
_squarify = new TQCheckBox( i18n( "S&quarify Treemap" ), vbox ); _squarify = new TQCheckBox( i18n( "S&quarify Treemap" ), vbox );
_doCushionShading = new TQCheckBox( i18n( "Use C&ushion Shading" ), vbox ); _doCushionShading = new TQCheckBox( i18n( "Use C&ushion Shading" ), vbox );
@ -815,7 +815,7 @@ KTreemapPage::KTreemapPage( KSettingsDialog * dialog,
TQVGroupBox * gbox = new TQVGroupBox( i18n( "Cushion Parameters" ), vbox ); TQVGroupBox * gbox = new TQVGroupBox( i18n( "Cushion Parameters" ), vbox );
_cushionParams = gbox; _cushionParams = gbox;
gbox->addSpace( 7 ); gbox->addSpace( 7 );
gbox->setSizePolicy( TQSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Expanding ) ); gbox->tqsetSizePolicy( TQSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Expanding ) );
TQLabel * label = new TQLabel( i18n( "Ambient &Light" ), gbox ); TQLabel * label = new TQLabel( i18n( "Ambient &Light" ), gbox );
TQHBox * hbox = new TQHBox( gbox ); TQHBox * hbox = new TQHBox( gbox );
@ -823,7 +823,7 @@ KTreemapPage::KTreemapPage( KSettingsDialog * dialog,
DefaultAmbientLight,Qt::Horizontal, hbox ); DefaultAmbientLight,Qt::Horizontal, hbox );
_ambientLightSB = new TQSpinBox( MinAmbientLight, MaxAmbientLight, 1, // min, max, step _ambientLightSB = new TQSpinBox( MinAmbientLight, MaxAmbientLight, 1, // min, max, step
hbox ); hbox );
_ambientLightSB->setSizePolicy( TQSizePolicy( TQSizePolicy::Minimum, TQSizePolicy::Minimum ) ); _ambientLightSB->tqsetSizePolicy( TQSizePolicy( TQSizePolicy::Minimum, TQSizePolicy::Minimum ) );
label->setBuddy( _ambientLightSB ); label->setBuddy( _ambientLightSB );
gbox->addSpace( 7 ); gbox->addSpace( 7 );
@ -833,7 +833,7 @@ KTreemapPage::KTreemapPage( KSettingsDialog * dialog,
DefaultHeightScalePercent,Qt::Horizontal, hbox ); DefaultHeightScalePercent,Qt::Horizontal, hbox );
_heightScalePercentSB = new TQSpinBox( MinHeightScalePercent, MaxHeightScalePercent, 1, // min, max, step _heightScalePercentSB = new TQSpinBox( MinHeightScalePercent, MaxHeightScalePercent, 1, // min, max, step
hbox ); hbox );
_heightScalePercentSB->setSizePolicy( TQSizePolicy( TQSizePolicy::Minimum, TQSizePolicy::Minimum ) ); _heightScalePercentSB->tqsetSizePolicy( TQSizePolicy( TQSizePolicy::Minimum, TQSizePolicy::Minimum ) );
label->setBuddy( _heightScalePercentSB ); label->setBuddy( _heightScalePercentSB );
gbox->addSpace( 10 ); gbox->addSpace( 10 );
@ -847,7 +847,7 @@ KTreemapPage::KTreemapPage( KSettingsDialog * dialog,
_cushionGridColorL = new TQLabel( " " + i18n( "Gr&id Color: " ), hbox ); _cushionGridColorL = new TQLabel( " " + i18n( "Gr&id Color: " ), hbox );
_cushionGridColor = new KColorButton( hbox ); _cushionGridColor = new KColorButton( hbox );
_cushionGridColorL->setBuddy( _cushionGridColor ); _cushionGridColorL->setBuddy( _cushionGridColor );
_cushionGridColorL->setAlignment( AlignRight | AlignVCenter ); _cushionGridColorL->tqsetAlignment( AlignRight | AlignVCenter );
// addVStretch( vbox ); // addVStretch( vbox );
@ -860,17 +860,17 @@ KTreemapPage::KTreemapPage( KSettingsDialog * dialog,
label = new TQLabel( i18n( "&Files: " ), _plainTileParams ); label = new TQLabel( i18n( "&Files: " ), _plainTileParams );
_fileFillColor = new KColorButton( _plainTileParams ); _fileFillColor = new KColorButton( _plainTileParams );
label->setBuddy( _fileFillColor ); label->setBuddy( _fileFillColor );
label->setAlignment( AlignRight | AlignVCenter ); label->tqsetAlignment( AlignRight | AlignVCenter );
label = new TQLabel( " " + i18n( "&Directories: " ), _plainTileParams ); label = new TQLabel( " " + i18n( "&Directories: " ), _plainTileParams );
_dirFillColor = new KColorButton( _plainTileParams ); _dirFillColor = new KColorButton( _plainTileParams );
label->setBuddy( _dirFillColor ); label->setBuddy( _dirFillColor );
label->setAlignment( AlignRight | AlignVCenter ); label->tqsetAlignment( AlignRight | AlignVCenter );
label = new TQLabel( i18n( "Gr&id: " ), _plainTileParams ); label = new TQLabel( i18n( "Gr&id: " ), _plainTileParams );
_outlineColor = new KColorButton( _plainTileParams ); _outlineColor = new KColorButton( _plainTileParams );
label->setBuddy( _outlineColor ); label->setBuddy( _outlineColor );
label->setAlignment( AlignRight | AlignVCenter ); label->tqsetAlignment( AlignRight | AlignVCenter );
// Misc // Misc
@ -1035,7 +1035,7 @@ void
addHStretch( TQWidget * parent ) addHStretch( TQWidget * parent )
{ {
TQWidget * stretch = new TQWidget( parent ); TQWidget * stretch = new TQWidget( parent );
stretch->setSizePolicy( TQSizePolicy( TQSizePolicy::Expanding, // hor stretch->tqsetSizePolicy( TQSizePolicy( TQSizePolicy::Expanding, // hor
TQSizePolicy::Minimum, // vert TQSizePolicy::Minimum, // vert
1, // hstretch 1, // hstretch
0 ) ); // vstretch 0 ) ); // vstretch
@ -1046,7 +1046,7 @@ void
addVStretch( TQWidget * parent ) addVStretch( TQWidget * parent )
{ {
TQWidget * stretch = new TQWidget( parent ); TQWidget * stretch = new TQWidget( parent );
stretch->setSizePolicy( TQSizePolicy( TQSizePolicy::Minimum, // hor stretch->tqsetSizePolicy( TQSizePolicy( TQSizePolicy::Minimum, // hor
TQSizePolicy::Expanding, // vert TQSizePolicy::Expanding, // vert
0, // hstretch 0, // hstretch
1 ) ); // vstretch 1 ) ); // vstretch

@ -396,9 +396,9 @@ namespace KDirStat
* *
* This is meant as a substitute for a tabbed dialog inside the tabbed * This is meant as a substitute for a tabbed dialog inside the tabbed
* dialog which would be much too wide and possibly confusing. Plus, this * dialog which would be much too wide and possibly confusing. Plus, this
* list box is supposed to take care of its own geometry - the normal * list box is supposed to take care of its own tqgeometry - the normal
* dumbass list box obviously cannot do that. It just uses some random * dumbass list box obviously cannot do that. It just uses some random
* geometry, relying on scroll bars for everything else. But in this * tqgeometry, relying on scroll bars for everything else. But in this
* special case we want all items to be visible at all times without scroll * special case we want all items to be visible at all times without scroll
* bars. * bars.
* *
@ -426,7 +426,7 @@ namespace KDirStat
* without scrolling. In fact, we never want to see a scroll bar with * without scrolling. In fact, we never want to see a scroll bar with
* this kind of list box. * this kind of list box.
**/ **/
virtual TQSize sizeHint() const; virtual TQSize tqsizeHint() const;
/** /**
* Insert an entry for a cleanup action into the list box. Uses the * Insert an entry for a cleanup action into the list box. Uses the

@ -151,7 +151,7 @@ KFileInfo::~KFileInfo()
/** /**
* The destructor should also take care about unlinking this object from * The destructor should also take care about unlinking this object from
* its parent's children list, but regrettably that just doesn't work: At * its parent's tqchildren list, but regrettably that just doesn't work: At
* this point (within the destructor) parts of the object are already * this point (within the destructor) parts of the object are already
* destroyed, e.g., the virtual table - virtual methods don't work any * destroyed, e.g., the virtual table - virtual methods don't work any
* more. Thus, somebody from outside must call deletingChild() just prior * more. Thus, somebody from outside must call deletingChild() just prior
@ -296,11 +296,11 @@ KFileInfo::locate( TQString url, bool findDotEntries )
{ {
if ( _name.right(1) != "/" && // and this is not the root directory if ( _name.right(1) != "/" && // and this is not the root directory
! isDotEntry() ) // or a dot entry: ! isDotEntry() ) // or a dot entry:
return 0; // This can't be any of our children. return 0; // This can't be any of our tqchildren.
} }
// Search all children // Search all tqchildren
KFileInfo *child = firstChild(); KFileInfo *child = firstChild();
@ -323,8 +323,8 @@ KFileInfo::locate( TQString url, bool findDotEntries )
// Search the dot entry if there is one - but only if there is no more // Search the dot entry if there is one - but only if there is no more
// path delimiter left in the URL. The dot entry contains files only, // path delimiter left in the URL. The dot entry contains files only,
// and their names may not contain the path delimiter, nor can they // and their names may not contain the path delimiter, nor can they
// have children. This check is not strictly necessary, but it may // have tqchildren. This check is not strictly necessary, but it may
// speed up things a bit if we don't search the non-directory children // speed up things a bit if we don't search the non-directory tqchildren
// if the rest of the URL consists of several pathname components. // if the rest of the URL consists of several pathname components.
if ( dotEntry() && if ( dotEntry() &&
@ -415,7 +415,7 @@ KDirInfo::~KDirInfo()
KFileInfo *child = _firstChild; KFileInfo *child = _firstChild;
// Recursively delete all children. // Recursively delete all tqchildren.
while ( child ) while ( child )
{ {
@ -585,7 +585,7 @@ KDirInfo::insertChild( KFileInfo *newChild )
* unless something went terribly wrong, e.g. there is no dot entry to use. * unless something went terribly wrong, e.g. there is no dot entry to use.
* If this is a dot entry, store everything it gets directly within it. * If this is a dot entry, store everything it gets directly within it.
* *
* In any of those cases, insert the new child in the children list. * In any of those cases, insert the new child in the tqchildren list.
* *
* We don't bother with this list's order - it's explicitly declared to * We don't bother with this list's order - it's explicitly declared to
* be unordered, so be warned! We simply insert this new child at the * be unordered, so be warned! We simply insert this new child at the
@ -652,7 +652,7 @@ void
KDirInfo::deletingChild( KFileInfo *deletedChild ) KDirInfo::deletingChild( KFileInfo *deletedChild )
{ {
/** /**
* When children are deleted, things go downhill: Marking the summary * When tqchildren are deleted, things go downhill: Marking the summary
* fields as dirty (i.e. outdated) is the only thing that can be done here. * fields as dirty (i.e. outdated) is the only thing that can be done here.
* *
* The accumulated sizes could be updated (by subtracting this deleted * The accumulated sizes could be updated (by subtracting this deleted
@ -672,9 +672,9 @@ KDirInfo::deletingChild( KFileInfo *deletedChild )
if ( ! _beingDestroyed && deletedChild->parent() == this ) if ( ! _beingDestroyed && deletedChild->parent() == this )
{ {
/** /**
* Unlink the child from the children's list - but only if this doesn't * Unlink the child from the tqchildren's list - but only if this doesn't
* happen recursively in the destructor of this object: No use * happen recursively in the destructor of this object: No use
* bothering about the validity of the children's list if this will all * bothering about the validity of the tqchildren's list if this will all
* be history anyway in a moment. * be history anyway in a moment.
**/ **/
@ -689,7 +689,7 @@ KDirInfo::unlinkChild( KFileInfo *deletedChild )
if ( deletedChild->parent() != this ) if ( deletedChild->parent() != this )
{ {
kdError() << deletedChild << " is not a child of " << this kdError() << deletedChild << " is not a child of " << this
<< " - cannot unlink from children list!" << endl; << " - cannot unlink from tqchildren list!" << endl;
return; return;
} }
@ -716,7 +716,7 @@ KDirInfo::unlinkChild( KFileInfo *deletedChild )
} }
kdError() << "Couldn't unlink " << deletedChild << " from " kdError() << "Couldn't unlink " << deletedChild << " from "
<< this << " children list" << endl; << this << " tqchildren list" << endl;
} }
@ -773,14 +773,14 @@ KDirInfo::cleanupDotEntries()
if ( ! _dotEntry || _isDotEntry ) if ( ! _dotEntry || _isDotEntry )
return; return;
// Reparent dot entry children if there are no subdirectories on this level // Reparent dot entry tqchildren if there are no subdirectories on this level
if ( ! _firstChild ) if ( ! _firstChild )
{ {
// kdDebug() << "Removing solo dot entry " << this << " " << endl; // kdDebug() << "Removing solo dot entry " << this << " " << endl;
KFileInfo *child = _dotEntry->firstChild(); KFileInfo *child = _dotEntry->firstChild();
_firstChild = child; // Move the entire children chain here. _firstChild = child; // Move the entire tqchildren chain here.
_dotEntry->setFirstChild( 0 ); // _dotEntry will be deleted below. _dotEntry->setFirstChild( 0 ); // _dotEntry will be deleted below.
while ( child ) while ( child )
@ -791,7 +791,7 @@ KDirInfo::cleanupDotEntries()
} }
// Delete dot entries without any children // Delete dot entries without any tqchildren
if ( ! _dotEntry->firstChild() ) if ( ! _dotEntry->firstChild() )
{ {
@ -1301,7 +1301,7 @@ KDirTree::refresh( KFileInfo *subtree )
/** /**
* This may sound stupid, but the parent must be told to unlink its * This may sound stupid, but the parent must be told to unlink its
* child from the children list. The child cannot simply do this by * child from the tqchildren list. The child cannot simply do this by
* itself in its destructor since at this point important parts of the * itself in its destructor since at this point important parts of the
* object may already be destroyed, e.g., the virtual table - * object may already be destroyed, e.g., the virtual table -
* i.e. virtual methods won't work any more. * i.e. virtual methods won't work any more.
@ -1449,7 +1449,7 @@ KDirTree::deleteSubtree( KFileInfo *subtree )
if ( parent ) if ( parent )
{ {
// Give the parent of the child to be deleted a chance to unlink the // Give the parent of the child to be deleted a chance to unlink the
// child from its children list and take care of internal summary // child from its tqchildren list and take care of internal summary
// fields // fields
parent->deletingChild( subtree ); parent->deletingChild( subtree );
} }

@ -51,7 +51,7 @@ namespace KDirStat
/** /**
* Status of a directory read job. * tqStatus of a directory read job.
**/ **/
typedef enum typedef enum
{ {
@ -93,8 +93,8 @@ namespace KDirStat
* easily has 150,000+ file system objects, and at least one entry of this * easily has 150,000+ file system objects, and at least one entry of this
* sort is required for each of them. * sort is required for each of them.
* *
* This class provides stubs for children management, yet those stubs all * This class provides stubs for tqchildren management, yet those stubs all
* are default implementations that don't really deal with children. * are default implementations that don't really deal with tqchildren.
* Derived classes need to take care of that. * Derived classes need to take care of that.
* *
* @short Basic file information (like obtained by the lstat() sys call) * @short Basic file information (like obtained by the lstat() sys call)
@ -250,39 +250,39 @@ namespace KDirStat
/** /**
* Returns the total size in bytes of this subtree. * Returns the total size in bytes of this subtree.
* Derived classes that have children should overwrite this. * Derived classes that have tqchildren should overwrite this.
**/ **/
virtual KFileSize totalSize() { return size(); } virtual KFileSize totalSize() { return size(); }
/** /**
* Returns the total size in blocks of this subtree. * Returns the total size in blocks of this subtree.
* Derived classes that have children should overwrite this. * Derived classes that have tqchildren should overwrite this.
**/ **/
virtual KFileSize totalBlocks() { return _blocks; } virtual KFileSize totalBlocks() { return _blocks; }
/** /**
* Returns the total number of children in this subtree, excluding this item. * Returns the total number of tqchildren in this subtree, excluding this item.
* Derived classes that have children should overwrite this. * Derived classes that have tqchildren should overwrite this.
**/ **/
virtual int totalItems() { return 0; } virtual int totalItems() { return 0; }
/** /**
* Returns the total number of subdirectories in this subtree, * Returns the total number of subdirectories in this subtree,
* excluding this item. Dot entries and "." or ".." are not counted. * excluding this item. Dot entries and "." or ".." are not counted.
* Derived classes that have children should overwrite this. * Derived classes that have tqchildren should overwrite this.
**/ **/
virtual int totalSubDirs() { return 0; } virtual int totalSubDirs() { return 0; }
/** /**
* Returns the total number of plain file children in this subtree, * Returns the total number of plain file tqchildren in this subtree,
* excluding this item. * excluding this item.
* Derived classes that have children should overwrite this. * Derived classes that have tqchildren should overwrite this.
**/ **/
virtual int totalFiles() { return 0; } virtual int totalFiles() { return 0; }
/** /**
* Returns the latest modification time of this subtree. * Returns the latest modification time of this subtree.
* Derived classes that have children should overwrite this. * Derived classes that have tqchildren should overwrite this.
**/ **/
virtual time_t latestMtime() { return _mtime; } virtual time_t latestMtime() { return _mtime; }
@ -322,7 +322,7 @@ namespace KDirStat
/** /**
* Returns the number of pending read jobs in this subtree. When this * Returns the number of pending read jobs in this subtree. When this
* number reaches zero, the entire subtree is done. * number reaches zero, the entire subtree is done.
* Derived classes that have children should overwrite this. * Derived classes that have tqchildren should overwrite this.
**/ **/
virtual int pendingReadJobs() { return 0; } virtual int pendingReadJobs() { return 0; }
@ -377,7 +377,7 @@ namespace KDirStat
{ NOT_USED( newFirstChild ); } { NOT_USED( newFirstChild ); }
/** /**
* Returns true if this entry has any children. * Returns true if this entry has any tqchildren.
**/ **/
virtual bool hasChildren() const; virtual bool hasChildren() const;
@ -396,7 +396,7 @@ namespace KDirStat
* *
* Derived classes might or might not wish to overwrite this method; * Derived classes might or might not wish to overwrite this method;
* it's only advisable to do so if a derived class comes up with a * it's only advisable to do so if a derived class comes up with a
* different method than brute-force search all children. * different method than brute-force search all tqchildren.
* *
* 'findDotEntries' specifies if locating "dot entries" (".../<Files>") * 'findDotEntries' specifies if locating "dot entries" (".../<Files>")
* is desired. * is desired.
@ -404,9 +404,9 @@ namespace KDirStat
virtual KFileInfo * locate( TQString url, bool findDotEntries = false ); virtual KFileInfo * locate( TQString url, bool findDotEntries = false );
/** /**
* Insert a child into the children list. * Insert a child into the tqchildren list.
* *
* The order of children in this list is absolutely undefined; * The order of tqchildren in this list is absolutely undefined;
* don't rely on any implementation-specific order. * don't rely on any implementation-specific order.
* *
* This default implementation does nothing. * This default implementation does nothing.
@ -416,7 +416,7 @@ namespace KDirStat
/** /**
* Return the "Dot Entry" for this node if there is one (or 0 * Return the "Dot Entry" for this node if there is one (or 0
* otherwise): This is a pseudo entry that directory nodes use to store * otherwise): This is a pseudo entry that directory nodes use to store
* non-directory children separately from directories. This way the end * non-directory tqchildren separately from directories. This way the end
* user can easily tell which summary fields belong to the directory * user can easily tell which summary fields belong to the directory
* itself and which are the accumulated values of the entire subtree. * itself and which are the accumulated values of the entire subtree.
* *
@ -456,7 +456,7 @@ namespace KDirStat
virtual void childAdded( KFileInfo *newChild ) { NOT_USED( newChild ); } virtual void childAdded( KFileInfo *newChild ) { NOT_USED( newChild ); }
/** /**
* Remove a child from the children list. * Remove a child from the tqchildren list.
* *
* IMPORTANT: This MUST be called just prior to deleting an object of * IMPORTANT: This MUST be called just prior to deleting an object of
* this class. Regrettably, this cannot simply be moved to the * this class. Regrettably, this cannot simply be moved to the
@ -464,7 +464,7 @@ namespace KDirStat
* (e.g., the virtual table - no more virtual methods). * (e.g., the virtual table - no more virtual methods).
* *
* This default implementation does nothing. * This default implementation does nothing.
* Derived classes that can handle children should overwrite this. * Derived classes that can handle tqchildren should overwrite this.
**/ **/
virtual void unlinkChild( KFileInfo *deletedChild ) { NOT_USED( deletedChild ); } virtual void unlinkChild( KFileInfo *deletedChild ) { NOT_USED( deletedChild ); }
@ -580,7 +580,7 @@ namespace KDirStat
/** /**
* A more specialized version of @ref KFileInfo: This class can actually * A more specialized version of @ref KFileInfo: This class can actually
* manage children. The base class (@ref KFileInfo) has only stubs for the * manage tqchildren. The base class (@ref KFileInfo) has only stubs for the
* respective methods to integrate seamlessly with the abstraction of a * respective methods to integrate seamlessly with the abstraction of a
* file / directory tree; this class fills those stubs with life. * file / directory tree; this class fills those stubs with life.
* *
@ -594,7 +594,7 @@ namespace KDirStat
* *
* If "asDotEntry" is set, this will be used as the parent's * If "asDotEntry" is set, this will be used as the parent's
* "dot entry", i.e. the pseudo directory that holds all the parent's * "dot entry", i.e. the pseudo directory that holds all the parent's
* non-directory children. This is the only way to create a "dot * non-directory tqchildren. This is the only way to create a "dot
* entry"! * entry"!
**/ **/
KDirInfo( KDirTree * tree, KDirInfo( KDirTree * tree,
@ -637,7 +637,7 @@ namespace KDirStat
virtual KFileSize totalBlocks(); virtual KFileSize totalBlocks();
/** /**
* Returns the total number of children in this subtree, excluding this item. * Returns the total number of tqchildren in this subtree, excluding this item.
* *
* Reimplemented - inherited from @ref KFileInfo. * Reimplemented - inherited from @ref KFileInfo.
**/ **/
@ -652,7 +652,7 @@ namespace KDirStat
virtual int totalSubDirs(); virtual int totalSubDirs();
/** /**
* Returns the total number of plain file children in this subtree, * Returns the total number of plain file tqchildren in this subtree,
* excluding this item. * excluding this item.
* *
* Reimplemented - inherited from @ref KFileInfo. * Reimplemented - inherited from @ref KFileInfo.
@ -723,9 +723,9 @@ namespace KDirStat
{ _firstChild = newfirstChild; } { _firstChild = newfirstChild; }
/** /**
* Insert a child into the children list. * Insert a child into the tqchildren list.
* *
* The order of children in this list is absolutely undefined; * The order of tqchildren in this list is absolutely undefined;
* don't rely on any implementation-specific order. * don't rely on any implementation-specific order.
**/ **/
virtual void insertChild( KFileInfo *newChild ); virtual void insertChild( KFileInfo *newChild );
@ -733,7 +733,7 @@ namespace KDirStat
/** /**
* Get the "Dot Entry" for this node if there is one (or 0 otherwise): * Get the "Dot Entry" for this node if there is one (or 0 otherwise):
* This is a pseudo entry that directory nodes use to store * This is a pseudo entry that directory nodes use to store
* non-directory children separately from directories. This way the end * non-directory tqchildren separately from directories. This way the end
* user can easily tell which summary fields belong to the directory * user can easily tell which summary fields belong to the directory
* itself and which are the accumulated values of the entire subtree. * itself and which are the accumulated values of the entire subtree.
**/ **/
@ -760,7 +760,7 @@ namespace KDirStat
virtual void childAdded( KFileInfo *newChild ); virtual void childAdded( KFileInfo *newChild );
/** /**
* Remove a child from the children list. * Remove a child from the tqchildren list.
* *
* IMPORTANT: This MUST be called just prior to deleting an object of * IMPORTANT: This MUST be called just prior to deleting an object of
* this class. Regrettably, this cannot simply be moved to the * this class. Regrettably, this cannot simply be moved to the
@ -848,8 +848,8 @@ namespace KDirStat
/** /**
* Clean up unneeded / undesired dot entries: * Clean up unneeded / undesired dot entries:
* Delete dot entries that don't have any children, * Delete dot entries that don't have any tqchildren,
* reparent dot entry children to the "real" (parent) directory if * reparent dot entry tqchildren to the "real" (parent) directory if
* there are not subdirectory siblings at the level of the dot entry. * there are not subdirectory siblings at the level of the dot entry.
**/ **/
void cleanupDotEntries(); void cleanupDotEntries();
@ -862,7 +862,7 @@ namespace KDirStat
// Children management // Children management
KFileInfo * _firstChild; // pointer to the first child KFileInfo * _firstChild; // pointer to the first child
KFileInfo * _dotEntry; // pseudo entry to hold non-dir children KFileInfo * _dotEntry; // pseudo entry to hold non-dir tqchildren
// Some cached values // Some cached values
@ -1252,10 +1252,10 @@ namespace KDirStat
virtual void deletingChildNotify( KFileInfo *deletedChild ); virtual void deletingChildNotify( KFileInfo *deletedChild );
/** /**
* Notification that one or more children have been deleted. * Notification that one or more tqchildren have been deleted.
* *
* Directory read jobs are required to call this when one or more * Directory read jobs are required to call this when one or more
* children are deleted so the tree can emit the corresponding @ref * tqchildren are deleted so the tree can emit the corresponding @ref
* deletingChild() signal. For multiple deletions (e.g. entire * deletingChild() signal. For multiple deletions (e.g. entire
* subtrees) this should only happen once at the end. * subtrees) this should only happen once at the end.
**/ **/

@ -60,7 +60,7 @@ void KFileInfoIterator::next()
{ {
if ( ! _directChildrenProcessed ) if ( ! _directChildrenProcessed )
{ {
// Process direct children // Process direct tqchildren
_current = _current ? _current->next() : _parent->firstChild(); _current = _current ? _current->next() : _parent->firstChild();
@ -98,7 +98,7 @@ void KFileInfoIterator::next()
{ {
if ( _policy == KDotEntryTransparent ) if ( _policy == KDotEntryTransparent )
{ {
// Process dot entry children // Process dot entry tqchildren
_current = _current ? _current = _current ?
_current->next() : _current->next() :
@ -129,7 +129,7 @@ KFileInfoIterator::count()
{ {
int cnt = 0; int cnt = 0;
// Count direct children // Count direct tqchildren
KFileInfo *child = _parent->firstChild(); KFileInfo *child = _parent->firstChild();
@ -144,7 +144,7 @@ KFileInfoIterator::count()
switch ( _policy ) switch ( _policy )
{ {
case KDotEntryTransparent: // Count the dot entry's children as well. case KDotEntryTransparent: // Count the dot entry's tqchildren as well.
if ( _parent->dotEntry() ) if ( _parent->dotEntry() )
{ {
child = _parent->dotEntry()->firstChild(); child = _parent->dotEntry()->firstChild();
@ -183,7 +183,7 @@ KFileInfoSortedIterator::KFileInfoSortedIterator( KFileInfo * parent,
_sortOrder = sortOrder; _sortOrder = sortOrder;
_ascending = ascending; _ascending = ascending;
_initComplete = false; _initComplete = false;
_childrenList = 0; _tqchildrenList = 0;
_current = 0; _current = 0;
} }
@ -191,8 +191,8 @@ KFileInfoSortedIterator::KFileInfoSortedIterator( KFileInfo * parent,
void void
KFileInfoSortedIterator::delayedInit() KFileInfoSortedIterator::delayedInit()
{ {
_childrenList = new KFileInfoList( _sortOrder, _ascending ); _tqchildrenList = new KFileInfoList( _sortOrder, _ascending );
CHECK_PTR( _childrenList ); CHECK_PTR( _tqchildrenList );
if ( _sortOrder == KSortByName ) if ( _sortOrder == KSortByName )
{ {
@ -203,45 +203,45 @@ KFileInfoSortedIterator::delayedInit()
makeChildrenList(); makeChildrenList();
} }
_current = _childrenList->first(); _current = _tqchildrenList->first();
_initComplete = true; _initComplete = true;
} }
KFileInfoSortedIterator::~KFileInfoSortedIterator() KFileInfoSortedIterator::~KFileInfoSortedIterator()
{ {
if ( _childrenList ) if ( _tqchildrenList )
delete _childrenList; delete _tqchildrenList;
} }
void KFileInfoSortedIterator::makeDefaultOrderChildrenList() void KFileInfoSortedIterator::makeDefaultOrderChildrenList()
{ {
// Fill children list with direct children // Fill tqchildren list with direct tqchildren
KFileInfo *child = _parent->firstChild(); KFileInfo *child = _parent->firstChild();
while ( child ) while ( child )
{ {
_childrenList->append( child ); _tqchildrenList->append( child );
child = child->next(); child = child->next();
} }
_childrenList->sort(); _tqchildrenList->sort();
if ( _policy == KDotEntryAsSubDir && _parent->dotEntry() ) if ( _policy == KDotEntryAsSubDir && _parent->dotEntry() )
{ {
// Append dot entry to the children list // Append dot entry to the tqchildren list
_childrenList->append( _parent->dotEntry() ); _tqchildrenList->append( _parent->dotEntry() );
} }
// Append the dot entry's children to the children list // Append the dot entry's tqchildren to the tqchildren list
if ( _policy == KDotEntryTransparent && _parent->dotEntry() ) if ( _policy == KDotEntryTransparent && _parent->dotEntry() )
{ {
// Create a temporary list for the dot entry children // Create a temporary list for the dot entry tqchildren
KFileInfoList dotEntryChildrenList( _sortOrder, _ascending ); KFileInfoList dotEntryChildrenList( _sortOrder, _ascending );
child = _parent->dotEntry()->firstChild(); child = _parent->dotEntry()->firstChild();
@ -255,13 +255,13 @@ void KFileInfoSortedIterator::makeDefaultOrderChildrenList()
dotEntryChildrenList.sort(); dotEntryChildrenList.sort();
// Now append all of this dot entry children list to the children list // Now append all of this dot entry tqchildren list to the tqchildren list
child = dotEntryChildrenList.first(); child = dotEntryChildrenList.first();
while ( child ) while ( child )
{ {
_childrenList->append( child ); _tqchildrenList->append( child );
child = dotEntryChildrenList.next(); child = dotEntryChildrenList.next();
} }
} }
@ -275,11 +275,11 @@ KFileInfoSortedIterator::makeChildrenList()
while ( *it ) while ( *it )
{ {
_childrenList->append( *it ); _tqchildrenList->append( *it );
++it; ++it;
} }
_childrenList->sort(); _tqchildrenList->sort();
} }
@ -298,7 +298,7 @@ void KFileInfoSortedIterator::next()
if ( ! _initComplete ) if ( ! _initComplete )
delayedInit(); delayedInit();
_current = _childrenList->next(); _current = _tqchildrenList->next();
} }
@ -334,12 +334,12 @@ KFileInfoSortedBySizeIterator::makeChildrenList()
while ( *it ) while ( *it )
{ {
if ( (*it)->totalSize() >= _minSize ) if ( (*it)->totalSize() >= _minSize )
_childrenList->append( *it ); _tqchildrenList->append( *it );
++it; ++it;
} }
_childrenList->sort(); _tqchildrenList->sort();
} }

@ -27,9 +27,9 @@ namespace KDirStat
**/ **/
typedef enum typedef enum
{ {
KDotEntryTransparent, // Flatten hierarchy - move dot entry children up KDotEntryTransparent, // Flatten hierarchy - move dot entry tqchildren up
KDotEntryAsSubDir, // Treat dot entry as ordinary subdirectory KDotEntryAsSubDir, // Treat dot entry as ordinary subdirectory
KDotEntryIgnore // Ignore dot entry and its children completely KDotEntryIgnore // Ignore dot entry and its tqchildren completely
} KDotEntryPolicy; } KDotEntryPolicy;
@ -47,8 +47,8 @@ namespace KDirStat
/** /**
* Iterator class for children of a @ref KFileInfo object. For optimum * Iterator class for tqchildren of a @ref KFileInfo object. For optimum
* performance, this iterator class does NOT return children in any * performance, this iterator class does NOT return tqchildren in any
* specific sort order. If you need that, use @ref KFileInfoSortedIterator * specific sort order. If you need that, use @ref KFileInfoSortedIterator
* instead. * instead.
* *
@ -66,37 +66,37 @@ namespace KDirStat
* subdirectory child and each (direct) file child of 'node'. * subdirectory child and each (direct) file child of 'node'.
* Notice: This does not recurse into subdirectories! * Notice: This does not recurse into subdirectories!
* *
* @short (unsorted) iterator for @ref KFileInfo children. * @short (unsorted) iterator for @ref KFileInfo tqchildren.
**/ **/
class KFileInfoIterator class KFileInfoIterator
{ {
public: public:
/** /**
* Constructor: Initialize an iterator object to iterate over the * Constructor: Initialize an iterator object to iterate over the
* children of 'parent' (unsorted!), depending on 'dotEntryPolicy': * tqchildren of 'parent' (unsorted!), depending on 'dotEntryPolicy':
* *
* KDotEntryTransparent (default): * KDotEntryTransparent (default):
* *
* Treat the dot entry as if it wasn't there - pretend to move all its * Treat the dot entry as if it wasn't there - pretend to move all its
* children up to the real parent. This makes a directory look very * tqchildren up to the real parent. This makes a directory look very
* much like the directory on disk, without the dot entry. 'current()' * much like the directory on disk, without the dot entry. 'current()'
* or 'operator*()' will never return the dot entry, but all of its * or 'operator*()' will never return the dot entry, but all of its
* children. Subdirectories will be processed before any file children. * tqchildren. Subdirectories will be processed before any file tqchildren.
* *
* KDotEntryIsSubDir: * KDotEntryIsSubDir:
* *
* Treat the dot entry just like any other subdirectory. Don't iterate * Treat the dot entry just like any other subdirectory. Don't iterate
* over its children, too (unlike KDotEntryTransparent above). * over its tqchildren, too (unlike KDotEntryTransparent above).
* 'current()' or 'operator*()' will return the dot entry, but none of * 'current()' or 'operator*()' will return the dot entry, but none of
* its children (unless, of course, you create an iterator with the dot * its tqchildren (unless, of course, you create an iterator with the dot
* entry as the parent). * entry as the parent).
* *
* KDotEntryIgnore: * KDotEntryIgnore:
* *
* Ignore the dot entry and its children completely. Useful if children * Ignore the dot entry and its tqchildren completely. Useful if tqchildren
* other than subdirectories are not interesting anyway. 'current()' * other than subdirectories are not interesting anyway. 'current()'
* or 'operator*()' will never return the dot entry nor any of its * or 'operator*()' will never return the dot entry nor any of its
* children. * tqchildren.
* *
**/ **/
KFileInfoIterator( KFileInfo * parent, KFileInfoIterator( KFileInfo * parent,
@ -187,13 +187,13 @@ namespace KDirStat
/** /**
* Iterator class for children of a @ref KFileInfo object. This iterator * Iterator class for tqchildren of a @ref KFileInfo object. This iterator
* returns children sorted by name: Subdirectories first, then the dot * returns tqchildren sorted by name: Subdirectories first, then the dot
* entry (if desired - depending on policy), then file children (if * entry (if desired - depending on policy), then file tqchildren (if
* desired). Note: If you don't need the sorting feature, you might want to * desired). Note: If you don't need the sorting feature, you might want to
* use @ref KFileItemIterator instead which has better performance. * use @ref KFileItemIterator instead which has better performance.
* *
* @short sorted iterator for @ref KFileInfo children. * @short sorted iterator for @ref KFileInfo tqchildren.
**/ **/
class KFileInfoSortedIterator: public KFileInfoIterator class KFileInfoSortedIterator: public KFileInfoIterator
{ {
@ -248,15 +248,15 @@ namespace KDirStat
void delayedInit(); void delayedInit();
/** /**
* Make a 'default order' children list: * Make a 'default order' tqchildren list:
* First all subdirectories sorted by name, * First all subdirectories sorted by name,
* then the dot entry (depending on policy), * then the dot entry (depending on policy),
* then the dot entry's children (depending on policy). * then the dot entry's tqchildren (depending on policy).
**/ **/
virtual void makeDefaultOrderChildrenList(); virtual void makeDefaultOrderChildrenList();
/** /**
* Make a sorted children list according to the current sort * Make a sorted tqchildren list according to the current sort
* criteria - unless KSortByName is requested, in which case * criteria - unless KSortByName is requested, in which case
* makeDefaultOrderChildrenList() above is used. * makeDefaultOrderChildrenList() above is used.
**/ **/
@ -265,7 +265,7 @@ namespace KDirStat
// Data members // Data members
KFileInfoList * _childrenList; KFileInfoList * _tqchildrenList;
KFileInfoSortOrder _sortOrder; KFileInfoSortOrder _sortOrder;
bool _ascending; bool _ascending;
bool _initComplete; bool _initComplete;
@ -276,8 +276,8 @@ namespace KDirStat
/** /**
* Specialized KFileInfo iterator that sorts by (total) size, yet * Specialized KFileInfo iterator that sorts by (total) size, yet
* disregards children below a minimum size. This can considerably improve * disregards tqchildren below a minimum size. This can considerably improve
* performance if the number of children that need to be sorted decreases * performance if the number of tqchildren that need to be sorted decreases
* dramatically. * dramatically.
* *
* For example, treemaps can only display a limited portion of large * For example, treemaps can only display a limited portion of large
@ -307,7 +307,7 @@ namespace KDirStat
protected: protected:
/** /**
* Create the (sorted) children list. Disregard children below minSize. * Create the (sorted) tqchildren list. Disregard tqchildren below minSize.
* Reimplemented from KFileInfoSortedIterator. * Reimplemented from KFileInfoSortedIterator.
**/ **/
virtual void makeChildrenList(); virtual void makeChildrenList();

@ -433,7 +433,7 @@ void
KDirTreeView::slotFinished() KDirTreeView::slotFinished()
{ {
emit progressInfo( i18n( "Finished. Elapsed time: %1" ) emit progressInfo( i18n( "Finished. Elapsed time: %1" )
.arg( formatTime( _stopWatch.elapsed(), true ) ) ); .tqarg( formatTime( _stopWatch.elapsed(), true ) ) );
if ( _updateTimer ) if ( _updateTimer )
{ {
@ -463,7 +463,7 @@ void
KDirTreeView::slotAborted() KDirTreeView::slotAborted()
{ {
emit progressInfo( i18n( "Aborted. Elapsed time: %1" ) emit progressInfo( i18n( "Aborted. Elapsed time: %1" )
.arg( formatTime( _stopWatch.elapsed(), true ) ) ); .tqarg( formatTime( _stopWatch.elapsed(), true ) ) );
if ( _updateTimer ) if ( _updateTimer )
{ {
@ -499,11 +499,11 @@ KDirTreeView::sendProgressInfo( const TQString & newCurrentDir )
#if VERBOSE_PROGRESS_INFO #if VERBOSE_PROGRESS_INFO
emit progressInfo( i18n( "Elapsed time: %1 reading directory %2" ) emit progressInfo( i18n( "Elapsed time: %1 reading directory %2" )
.arg( formatTime( _stopWatch.elapsed() ) ) .tqarg( formatTime( _stopWatch.elapsed() ) )
.arg( _currentDir ) ); .tqarg( _currentDir ) );
#else #else
emit progressInfo( i18n( "Elapsed time: %1" ) emit progressInfo( i18n( "Elapsed time: %1" )
.arg( formatTime( _stopWatch.elapsed() ) ) ); .tqarg( formatTime( _stopWatch.elapsed() ) ) );
#endif #endif
} }
@ -719,14 +719,14 @@ KDirTreeView::setTreeBackground( const TQColor &color )
void void
KDirTreeView::ensureContrast() KDirTreeView::ensureContrast()
{ {
if ( colorGroup().base() == white || if ( tqcolorGroup().base() == white ||
colorGroup().base() == black ) tqcolorGroup().base() == black )
{ {
setTreeBackground( colorGroup().midlight() ); setTreeBackground( tqcolorGroup().midlight() );
} }
else else
{ {
setTreeBackground( colorGroup().base() ); setTreeBackground( tqcolorGroup().base() );
} }
} }
@ -778,19 +778,19 @@ KDirTreeView::popupContextMenu( TQListViewItem * listViewItem,
if ( orig->isSparseFile() ) if ( orig->isSparseFile() )
{ {
text = i18n( "Sparse file: %1 (%2 Bytes) -- allocated: %3 (%4 Bytes)" ) text = i18n( "Sparse file: %1 (%2 Bytes) -- allocated: %3 (%4 Bytes)" )
.arg( formatSize( orig->byteSize() ) ) .tqarg( formatSize( orig->byteSize() ) )
.arg( formatSizeLong( orig->byteSize() ) ) .tqarg( formatSizeLong( orig->byteSize() ) )
.arg( formatSize( orig->allocatedSize() ) ) .tqarg( formatSize( orig->allocatedSize() ) )
.arg( formatSizeLong( orig->allocatedSize() ) ); .tqarg( formatSizeLong( orig->allocatedSize() ) );
} }
else else
{ {
text = i18n( "%1 (%2 Bytes) with %3 hard links => effective size: %4 (%5 Bytes)" ) text = i18n( "%1 (%2 Bytes) with %3 hard links => effective size: %4 (%5 Bytes)" )
.arg( formatSize( orig->byteSize() ) ) .tqarg( formatSize( orig->byteSize() ) )
.arg( formatSizeLong( orig->byteSize() ) ) .tqarg( formatSizeLong( orig->byteSize() ) )
.arg( orig->links() ) .tqarg( orig->links() )
.arg( formatSize( orig->size() ) ) .tqarg( formatSize( orig->size() ) )
.arg( formatSizeLong( orig->size() ) ); .tqarg( formatSizeLong( orig->size() ) );
} }
popupContextInfo( pos, text ); popupContextInfo( pos, text );
@ -832,8 +832,8 @@ KDirTreeView::popupContextSizeInfo( const TQPoint & pos,
else else
{ {
info = i18n( "%1 (%2 Bytes)" ) info = i18n( "%1 (%2 Bytes)" )
.arg( formatSize( size ) ) .tqarg( formatSize( size ) )
.arg( formatSizeLong( size ) ); .tqarg( formatSizeLong( size ) );
} }
popupContextInfo( pos, info ); popupContextInfo( pos, info );
@ -1021,15 +1021,15 @@ KDirTreeViewItem::init( KDirTreeView * view,
if ( _orig->isSparseFile() ) if ( _orig->isSparseFile() )
{ {
text = i18n( "%1 / %2 Links (allocated: %3)" ) text = i18n( "%1 / %2 Links (allocated: %3)" )
.arg( formatSize( _orig->byteSize() ) ) .tqarg( formatSize( _orig->byteSize() ) )
.arg( formatSize( _orig->links() ) ) .tqarg( formatSize( _orig->links() ) )
.arg( formatSize( _orig->allocatedSize() ) ); .tqarg( formatSize( _orig->allocatedSize() ) );
} }
else else
{ {
text = i18n( "%1 / %2 Links" ) text = i18n( "%1 / %2 Links" )
.arg( formatSize( _orig->byteSize() ) ) .tqarg( formatSize( _orig->byteSize() ) )
.arg( _orig->links() ); .tqarg( _orig->links() );
} }
} }
else // No multiple links or no regular file else // No multiple links or no regular file
@ -1037,8 +1037,8 @@ KDirTreeViewItem::init( KDirTreeView * view,
if ( _orig->isSparseFile() ) if ( _orig->isSparseFile() )
{ {
text = i18n( "%1 (allocated: %2)" ) text = i18n( "%1 (allocated: %2)" )
.arg( formatSize( _orig->byteSize() ) ) .tqarg( formatSize( _orig->byteSize() ) )
.arg( formatSize( _orig->allocatedSize() ) ); .tqarg( formatSize( _orig->allocatedSize() ) );
} }
else else
{ {
@ -1065,9 +1065,9 @@ KDirTreeViewItem::init( KDirTreeView * view,
* Determine whether or not this item can be opened. * Determine whether or not this item can be opened.
* *
* Normally, TQt handles this very well, but when lazy cloning is in * Normally, TQt handles this very well, but when lazy cloning is in
* effect, TQt cannot know whether or not there are children - they may * effect, TQt cannot know whether or not there are tqchildren - they may
* only be in the original tree until the user tries to open this * only be in the original tree until the user tries to open this
* item. So let's assume there may be children as long as the directory * item. So let's assume there may be tqchildren as long as the directory
* is still being read. * is still being read.
*/ */
@ -1170,7 +1170,7 @@ KDirTreeViewItem::updateSummary()
TQString text = ""; TQString text = "";
if ( jobs > 0 ) if ( jobs > 0 )
text = i18n( "[%1 Read Jobs]" ).arg( formatCount( _orig->pendingReadJobs(), true ) ); text = i18n( "[%1 Read Jobs]" ).tqarg( formatCount( _orig->pendingReadJobs(), true ) );
setText( _view->readJobsCol(), text ); setText( _view->readJobsCol(), text );
#endif #endif
} }
@ -1202,15 +1202,15 @@ KDirTreeViewItem::updateSummary()
if ( ! _pacMan ) if ( ! _pacMan )
_pacMan = new KPacManAnimation( _view, height()-4, true ); _pacMan = new KPacManAnimation( _view, height()-4, true );
repaint(); tqrepaint();
} }
if ( ! isOpen() ) // Lazy update: Nobody can see the children if ( ! isOpen() ) // Lazy update: Nobody can see the tqchildren
return; // -> don't update them. return; // -> don't update them.
// Update all children // Update all tqchildren
KDirTreeViewItem *child = firstChild(); KDirTreeViewItem *child = firstChild();
@ -1231,7 +1231,7 @@ KDirTreeViewItem::locate( KFileInfo * wanted,
if ( lazy && ! isOpen() ) if ( lazy && ! isOpen() )
{ {
/* /*
* In "lazy" mode, we don't bother searching all the children of this * In "lazy" mode, we don't bother searching all the tqchildren of this
* item if they are not visible (i.e. the branch is open) anyway. In * item if they are not visible (i.e. the branch is open) anyway. In
* this case, cloning that branch is deferred until the branch is * this case, cloning that branch is deferred until the branch is
* actually opened - which in most cases will never happen anyway (most * actually opened - which in most cases will never happen anyway (most
@ -1243,7 +1243,7 @@ KDirTreeViewItem::locate( KFileInfo * wanted,
* *
* Note that this mode is _independent_ of lazy cloning in general: The * Note that this mode is _independent_ of lazy cloning in general: The
* caller explicitly specifies if he wants to locate an item at all * caller explicitly specifies if he wants to locate an item at all
* cost, even if that means deferred cloning children whose creation * cost, even if that means deferred cloning tqchildren whose creation
* has been delayed until now. * has been delayed until now.
*/ */
@ -1261,13 +1261,13 @@ KDirTreeViewItem::locate( KFileInfo * wanted,
if ( wanted->urlPart( level ) == _orig->name() ) if ( wanted->urlPart( level ) == _orig->name() )
{ {
// Search all children // Search all tqchildren
KDirTreeViewItem *child = firstChild(); KDirTreeViewItem *child = firstChild();
if ( ! child && _orig->hasChildren() && doClone ) if ( ! child && _orig->hasChildren() && doClone )
{ {
// kdDebug() << "Deferred cloning " << this << " for children search of " << wanted << endl; // kdDebug() << "Deferred cloning " << this << " for tqchildren search of " << wanted << endl;
deferredClone(); deferredClone();
child = firstChild(); child = firstChild();
} }
@ -1294,14 +1294,14 @@ KDirTreeViewItem::deferredClone()
if ( ! _orig->hasChildren() ) if ( ! _orig->hasChildren() )
{ {
// kdDebug() << k_funcinfo << "Oops, no children - sorry for bothering you!" << endl; // kdDebug() << k_funcinfo << "Oops, no tqchildren - sorry for bothering you!" << endl;
setExpandable( false ); setExpandable( false );
return; return;
} }
// Clone all normal children // Clone all normal tqchildren
int level = _orig->treeLevel(); int level = _orig->treeLevel();
bool startingClean = ! firstChild(); bool startingClean = ! firstChild();
@ -1367,7 +1367,7 @@ KDirTreeViewItem::cleanupDotEntries()
return; return;
// Reparent dot entry children if there are no subdirectories on this level // Reparent dot entry tqchildren if there are no subdirectories on this level
if ( ! _orig->firstChild() ) if ( ! _orig->firstChild() )
{ {
@ -1391,9 +1391,9 @@ KDirTreeViewItem::cleanupDotEntries()
/* /*
* Immediately delete the (now emptied) dot entry. The algorithm for * Immediately delete the (now emptied) dot entry. The algorithm for
* the original tree doesn't quite fit here - there, the dot entry is * the original tree doesn't quite fit here - there, the dot entry is
* actually deleted in the step below. But the 'no children' check for * actually deleted in the step below. But the 'no tqchildren' check for
* this fails here since the original dot entry still _has_ its * this fails here since the original dot entry still _has_ its
* children - they will be deleted only after all clones have been * tqchildren - they will be deleted only after all clones have been
* processed. * processed.
* *
* This had been the cause for a core that took me quite some time to * This had been the cause for a core that took me quite some time to
@ -1404,7 +1404,7 @@ KDirTreeViewItem::cleanupDotEntries()
} }
// Delete dot entries without any children // Delete dot entries without any tqchildren
if ( ! _orig->dotEntry()->firstChild() && dotEntry ) if ( ! _orig->dotEntry()->firstChild() && dotEntry )
{ {
@ -1593,16 +1593,16 @@ KDirTreeViewItem::compare( TQListViewItem * otherListViewItem,
void void
KDirTreeViewItem::paintCell( TQPainter * painter, KDirTreeViewItem::paintCell( TQPainter * painter,
const TQColorGroup & colorGroup, const TQColorGroup & tqcolorGroup,
int column, int column,
int width, int width,
int alignment ) int tqalignment )
{ {
// _view->incDebugCount(5); // _view->incDebugCount(5);
if ( column == _view->percentBarCol() ) if ( column == _view->percentBarCol() )
{ {
painter->setBackgroundColor( colorGroup.base() ); painter->setBackgroundColor( tqcolorGroup.base() );
if ( _percent > 0.0 ) if ( _percent > 0.0 )
{ {
@ -1634,10 +1634,10 @@ KDirTreeViewItem::paintCell( TQPainter * painter,
&& ! _pacMan ) && ! _pacMan )
{ {
TQListViewItem::paintCell( painter, TQListViewItem::paintCell( painter,
colorGroup, tqcolorGroup,
column, column,
width, width,
alignment ); tqalignment );
} }
else else
{ {
@ -1654,10 +1654,10 @@ KDirTreeViewItem::paintCell( TQPainter * painter,
* alignments etc. * alignments etc.
*/ */
TQListViewItem::paintCell( painter, TQListViewItem::paintCell( painter,
colorGroup, tqcolorGroup,
column, column,
width, width,
alignment ); tqalignment );
} }
} }

@ -148,7 +148,7 @@ namespace KDirStat
* Set the fill color of percentage bars of the specified directory * Set the fill color of percentage bars of the specified directory
* level (0..KDirTreeViewMaxFillColor-1). * level (0..KDirTreeViewMaxFillColor-1).
* *
* Calling repaint() after setting all desired colors is the * Calling tqrepaint() after setting all desired colors is the
* caller's responsibility. * caller's responsibility.
**/ **/
void setFillColor( int level, const TQColor &color ); void setFillColor( int level, const TQColor &color );
@ -172,7 +172,7 @@ namespace KDirStat
/** /**
* Set the tree background color. * Set the tree background color.
* *
* Calling repaint() after setting all desired colors is the * Calling tqrepaint() after setting all desired colors is the
* caller's responsibility. * caller's responsibility.
**/ **/
void setTreeBackground( const TQColor &color ); void setTreeBackground( const TQColor &color );
@ -352,7 +352,7 @@ namespace KDirStat
* Returns the minimum recommended size for this widget. * Returns the minimum recommended size for this widget.
* Reimplemented from TQWidget. * Reimplemented from TQWidget.
**/ **/
virtual TQSize minimumSizeHint() const { return TQSize( 0, 0 ); } virtual TQSize tqminimumSizeHint() const { return TQSize( 0, 0 ); }
protected slots: protected slots:
@ -720,8 +720,8 @@ namespace KDirStat
void setIcon(); void setIcon();
/** /**
* Remove dot entry if it doesn't have any children. * Remove dot entry if it doesn't have any tqchildren.
* Reparent all of the dot entry's children if there are no * Reparent all of the dot entry's tqchildren if there are no
* subdirectories on this level. * subdirectories on this level.
**/ **/
void cleanupDotEntries(); void cleanupDotEntries();
@ -745,10 +745,10 @@ namespace KDirStat
* Reimplemented from @ref TQListViewItem. * Reimplemented from @ref TQListViewItem.
**/ **/
virtual void paintCell ( TQPainter * painter, virtual void paintCell ( TQPainter * painter,
const TQColorGroup & colorGroup, const TQColorGroup & tqcolorGroup,
int column, int column,
int width, int width,
int alignment ); int tqalignment );
/** /**
* Paint a percentage bar into a @ref TQListViewItem cell. * Paint a percentage bar into a @ref TQListViewItem cell.

@ -10,7 +10,7 @@
#include <tqheader.h> #include <tqheader.h>
#include <layout.h> #include <tqlayout.h>
#include <tqlabel.h> #include <tqlabel.h>
#include <tqmultilineedit.h> #include <tqmultilineedit.h>
#include <tqhbox.h> #include <tqhbox.h>
@ -34,7 +34,7 @@ KFeedbackDialog::KFeedbackDialog( const TQString & feedbackMailAddress,
| ( helpTopic.isEmpty() ? 0 : (int) Help ), // buttonMask | ( helpTopic.isEmpty() ? 0 : (int) Help ), // buttonMask
Apply ) // defaultButton Apply ) // defaultButton
{ {
TQVBoxLayout * layout = new TQVBoxLayout( plainPage(), 0, spacingHint() ); TQVBoxLayout * tqlayout = new TQVBoxLayout( plainPage(), 0, spacingHint() );
setButtonApply( KGuiItem( i18n( "&Mail this..." ) ) ); setButtonApply( KGuiItem( i18n( "&Mail this..." ) ) );
if ( ! helpTopic.isEmpty() ) if ( ! helpTopic.isEmpty() )
@ -43,7 +43,7 @@ KFeedbackDialog::KFeedbackDialog( const TQString & feedbackMailAddress,
_form = new KFeedbackForm( feedbackMailAddress, plainPage() ); _form = new KFeedbackForm( feedbackMailAddress, plainPage() );
CHECK_PTR( _form ); CHECK_PTR( _form );
layout->addWidget( _form ); tqlayout->addWidget( _form );
checkSendButton(); checkSendButton();
connect( this, TQT_SIGNAL( applyClicked() ), connect( this, TQT_SIGNAL( applyClicked() ),
@ -112,16 +112,16 @@ KFeedbackForm::KFeedbackForm( const TQString & feedbackMailAddress,
label = new TQLabel( i18n( "Questions marked with " ), hbox ); label = new TQLabel( i18n( "Questions marked with " ), hbox );
CHECK_PTR( label ); CHECK_PTR( label );
label->setSizePolicy( pol ); label->tqsetSizePolicy( pol );
label = new TQLabel( hbox ); label = new TQLabel( hbox );
CHECK_PTR( label ); CHECK_PTR( label );
label->setPixmap( KGlobal::iconLoader()->loadIcon( "edit", KIcon::Small ) ); label->setPixmap( KGlobal::iconLoader()->loadIcon( "edit", KIcon::Small ) );
label->setSizePolicy( pol ); label->tqsetSizePolicy( pol );
label = new TQLabel( i18n( " must be answered before a mail can be sent.") , hbox ); label = new TQLabel( i18n( " must be answered before a mail can be sent.") , hbox );
CHECK_PTR( label ); CHECK_PTR( label );
label->setSizePolicy( pol ); label->tqsetSizePolicy( pol );
new TQWidget( hbox ); // Fill any leftover space to the right. new TQWidget( hbox ); // Fill any leftover space to the right.

@ -163,7 +163,7 @@ KPacManAnimation::animate( TQPainter * painter,
// Transfer pixmap into widget // Transfer pixmap into widget
#if 0 #if 0
TQPoint offset = painter->worldMatrix().map( _pacManRect.topLeft() ); TQPoint offset = painter->tqworldMatrix().map( _pacManRect.topLeft() );
// kdDebug() << "bitBlt() to " << offset.x() << ", " << offset.y() << endl; // kdDebug() << "bitBlt() to " << offset.x() << ", " << offset.y() << endl;
bitBlt( _widget, offset, &pixmap ); bitBlt( _widget, offset, &pixmap );
#endif #endif
@ -254,14 +254,14 @@ KPacMan::stop()
if ( _timer ) if ( _timer )
_timer->stop(); _timer->stop();
repaint(); tqrepaint();
} }
void void
KPacMan::animate() KPacMan::animate()
{ {
repaint( false ); tqrepaint( false );
} }
@ -300,7 +300,7 @@ KPacMan::mouseReleaseEvent ( TQMouseEvent *ev )
TQSize TQSize
KPacMan::sizeHint() const KPacMan::tqsizeHint() const
{ {
return TQSize( 16 * _pacManSize, // width - admittedly somewhat random return TQSize( 16 * _pacManSize, // width - admittedly somewhat random
_pacManSize + 2 * _margin ); // height _pacManSize + 2 * _margin ); // height

@ -211,7 +211,7 @@ public:
* *
* Reimplemented from @ref TQWidget. * Reimplemented from @ref TQWidget.
**/ **/
virtual TQSize sizeHint() const; virtual TQSize tqsizeHint() const;
public slots: public slots:

@ -79,7 +79,7 @@ KTreemapTile::init()
// Set up height (z coordinate) - one level higher than the parent so this // Set up height (z coordinate) - one level higher than the parent so this
// will be closer to the foreground. // will be closer to the foreground.
// //
// Note that this must happen before any children are created. // Note that this must happen before any tqchildren are created.
// I found that out the hard way. ;-) // I found that out the hard way. ;-)
setZ( _parentTile ? ( _parentTile->z() + 1.0 ) : 0.0 ); setZ( _parentTile ? ( _parentTile->z() + 1.0 ) : 0.0 );
@ -184,12 +184,12 @@ KTreemapTile::createSquarifiedChildren( const TQRect & rect )
#endif #endif
KFileInfoSortedBySizeIterator it( _orig, minSize, KDotEntryAsSubDir ); KFileInfoSortedBySizeIterator it( _orig, minSize, KDotEntryAsSubDir );
TQRect childrenRect = rect; TQRect tqchildrenRect = rect;
while ( *it ) while ( *it )
{ {
KFileInfoList row = squarify( childrenRect, scale, it ); KFileInfoList row = squarify( tqchildrenRect, scale, it );
childrenRect = layoutRow( childrenRect, scale, row ); tqchildrenRect = layoutRow( tqchildrenRect, scale, row );
} }
} }
@ -287,7 +287,7 @@ KTreemapTile::layoutRow( const TQRect & rect,
return rect; return rect;
// Set up a cushion surface for this layout row: // Set up a cushion surface for this tqlayout row:
// Add another ridge perpendicular to the row's direction // Add another ridge perpendicular to the row's direction
// that optically groups this row's tiles together. // that optically groups this row's tiles together.

@ -125,7 +125,7 @@ namespace KDirStat
/** /**
* This is the basic building block of a treemap view: One single tile of a * This is the basic building block of a treemap view: One single tile of a
* treemap. If it corresponds to a leaf in the tree, it will be visible as * treemap. If it corresponds to a leaf in the tree, it will be visible as
* one tile (one rectangle) of the treemap. If it has children, it will be * one tile (one rectangle) of the treemap. If it has tqchildren, it will be
* subdivided again. * subdivided again.
* *
* @short Basic building block of a treemap * @short Basic building block of a treemap
@ -192,13 +192,13 @@ namespace KDirStat
protected: protected:
/** /**
* Create children (sub-tiles) of this tile. * Create tqchildren (sub-tiles) of this tile.
**/ **/
void createChildren ( const TQRect & rect, void createChildren ( const TQRect & rect,
KOrientation orientation ); KOrientation orientation );
/** /**
* Create children (sub-tiles) using the simple treemap algorithm: * Create tqchildren (sub-tiles) using the simple treemap algorithm:
* Alternate between horizontal and vertical subdivision in each * Alternate between horizontal and vertical subdivision in each
* level. Each child will get the entire height or width, respectively, * level. Each child will get the entire height or width, respectively,
* of the specified rectangle. This algorithm is very fast, but often * of the specified rectangle. This algorithm is very fast, but often
@ -208,27 +208,27 @@ namespace KDirStat
KOrientation orientation ); KOrientation orientation );
/** /**
* Create children using the "squarified treemaps" algorithm as * Create tqchildren using the "squarified treemaps" algorithm as
* described by Mark Bruls, Kees Huizing, and Jarke J. van Wijk of the * described by Mark Bruls, Kees Huizing, and Jarke J. van Wijk of the
* TU Eindhoven, NL. * TU Eindhoven, NL.
* *
* This algorithm is not quite so simple and involves more expensive * This algorithm is not quite so simple and involves more expensive
* operations, e.g., sorting the children of each node by size first, * operations, e.g., sorting the tqchildren of each node by size first,
* try some variations of the layout and maybe backtrack to the * try some variations of the tqlayout and maybe backtrack to the
* previous attempt. But it results in tiles that are much more * previous attempt. But it results in tiles that are much more
* square-like, i.e. have more reasonable width-to-height ratios. It is * square-like, i.e. have more reasonable width-to-height ratios. It is
* very much less likely to get thin, elongated tiles that are hard to * very much less likely to get thin, elongated tiles that are hard to
* point at and even harder to compare visually against each other. * point at and even harder to compare visually against each other.
* *
* This implementation includes some improvements to that basic * This implementation includes some improvements to that basic
* algorithm. For example, children below a certain size are * algorithm. For example, tqchildren below a certain size are
* disregarded completely since they will not get an adequate visual * disregarded completely since they will not get an adequate visual
* representation anyway (it would be way too small). They are * representation anyway (it would be way too small). They are
* summarized in some kind of 'misc stuff' area in the parent treemap * summarized in some kind of 'misc stuff' area in the parent treemap
* tile - in fact, part of the parent directory's tile can be "seen * tile - in fact, part of the parent directory's tile can be "seen
* through". * through".
* *
* In short, a lot of small children that don't have any useful effect * In short, a lot of small tqchildren that don't have any useful effect
* for the user in finding wasted disk space are omitted from handling * for the user in finding wasted disk space are omitted from handling
* and, most important, don't need to be sorted by size (which has a * and, most important, don't need to be sorted by size (which has a
* cost of O(n*ln(n)) in the best case, so reducing n helps a lot). * cost of O(n*ln(n)) in the best case, so reducing n helps a lot).
@ -236,9 +236,9 @@ namespace KDirStat
void createSquarifiedChildren( const TQRect & rect ); void createSquarifiedChildren( const TQRect & rect );
/** /**
* Squarify as many children as possible: Try to squeeze members * Squarify as many tqchildren as possible: Try to squeeze members
* referred to by 'it' into 'rect' until the aspect ratio doesn't get * referred to by 'it' into 'rect' until the aspect ratio doesn't get
* better any more. Returns a list of children that should be laid out * better any more. Returns a list of tqchildren that should be laid out
* in 'rect'. Moves 'it' until there is no more improvement or 'it' * in 'rect'. Moves 'it' until there is no more improvement or 'it'
* runs out of items. * runs out of items.
* *

@ -69,7 +69,7 @@ namespace KDirStat
* Returns the minimum recommended size for this widget. * Returns the minimum recommended size for this widget.
* Reimplemented from TQWidget. * Reimplemented from TQWidget.
**/ **/
virtual TQSize minimumSizeHint() const { return TQSize( 0, 0 ); } virtual TQSize tqminimumSizeHint() const { return TQSize( 0, 0 ); }
/** /**
* Returns this treemap view's currently selected treemap tile or 0 if * Returns this treemap view's currently selected treemap tile or 0 if

Loading…
Cancel
Save