Rename a number of classes to enhance compatibility with KDE4

pull/1/head
Timothy Pearson 12 years ago
parent f3263ec262
commit ebffb6c823

@ -31,9 +31,9 @@ using namespace KDirStat;
KCleanup::KCleanup( TQString id, KCleanup::KCleanup( TQString id,
TQString command, TQString command,
TQString title, TQString title,
KActionCollection * parent ) TDEActionCollection * parent )
: KAction( title, : TDEAction( title,
0, // accel 0, // accel
parent, parent,
id ) id )
@ -52,12 +52,12 @@ KCleanup::KCleanup( TQString id,
_askForConfirmation = false; _askForConfirmation = false;
_refreshPolicy = noRefresh; _refreshPolicy = noRefresh;
KAction::setEnabled( false ); TDEAction::setEnabled( false );
} }
KCleanup::KCleanup( const KCleanup &src ) KCleanup::KCleanup( const KCleanup &src )
: KAction() : TDEAction()
{ {
copy( src ); copy( src );
} }
@ -94,7 +94,7 @@ void
KCleanup::setTitle( const TQString &title ) KCleanup::setTitle( const TQString &title )
{ {
_title = title; _title = title;
KAction::setText( _title ); TDEAction::setText( _title );
} }
@ -147,7 +147,7 @@ KCleanup::selectionChanged( KFileInfo *selection )
} }
} }
KAction::setEnabled( enabled ); TDEAction::setEnabled( enabled );
} }

@ -33,7 +33,7 @@ namespace KDirStat
* @short KDirStat cleanup action * @short KDirStat cleanup action
**/ **/
class KCleanup: public KAction class KCleanup: public TDEAction
{ {
Q_OBJECT Q_OBJECT
@ -49,21 +49,21 @@ namespace KDirStat
* and config files, 'title' is the human readable menu title. * and config files, 'title' is the human readable menu title.
* 'command' is the shell command to execute. * 'command' is the shell command to execute.
* *
* Most applications will want to pass KMainWindow::actionCollection() * Most applications will want to pass TDEMainWindow::actionCollection()
* for 'parent' so the menus and toolbars can be created using the XML * for 'parent' so the menus and toolbars can be created using the XML
* UI description ('kdirstatui.rc' for KDirStat). * UI description ('kdirstatui.rc' for KDirStat).
**/ **/
KCleanup( TQString id = "", KCleanup( TQString id = "",
TQString command = "", TQString command = "",
TQString title = "", TQString title = "",
KActionCollection * parent = 0 ); TDEActionCollection * parent = 0 );
/** /**
* Copy Constructor. * Copy Constructor.
* *
* Notice that this is a not quite complete copy constructor: Since * Notice that this is a not quite complete copy constructor: Since
* there is no KAction copy constructor, the inherited KAction members * there is no TDEAction copy constructor, the inherited TDEAction members
* will be constructed with the KAction default constructor. Thus, an * will be constructed with the TDEAction default constructor. Thus, an
* object created with this copy constructor can rely only on its * object created with this copy constructor can rely only on its
* KCleanup members. This is intended for save/restore operations only, * KCleanup members. This is intended for save/restore operations only,
* not for general use. In particular, DO NOT connect an object thus * not for general use. In particular, DO NOT connect an object thus
@ -74,7 +74,7 @@ namespace KDirStat
/** /**
* Assignment operator. * Assignment operator.
* *
* This will not modify the KAction members, just the KCleanup * This will not modify the TDEAction members, just the KCleanup
* members. Just like the copy constructor, this is intended for * members. Just like the copy constructor, this is intended for
* save/restore operations, not for general use. * save/restore operations, not for general use.
**/ **/
@ -261,7 +261,7 @@ namespace KDirStat
protected slots: protected slots:
/** /**
* Inherited from @ref KAction : Perform the action. * Inherited from @ref TDEAction : Perform the action.
* In this case, execute the cleanup with the current selection. * In this case, execute the cleanup with the current selection.
**/ **/
virtual void slotActivated() { executeWithSelection(); } virtual void slotActivated() { executeWithSelection(); }

@ -17,7 +17,7 @@
using namespace KDirStat; using namespace KDirStat;
KCleanupCollection::KCleanupCollection( KActionCollection * actionCollection ) KCleanupCollection::KCleanupCollection( TDEActionCollection * actionCollection )
: TQObject() : TQObject()
, _actionCollection( actionCollection ) , _actionCollection( actionCollection )
{ {
@ -41,7 +41,7 @@ KCleanupCollection::KCleanupCollection( const KCleanupCollection &src )
deepCopy( src ); deepCopy( src );
// Keep consistent with the KCleanup copy constructor: It explicitly uses a // Keep consistent with the KCleanup copy constructor: It explicitly uses a
// zero KActionCollecton to make sure no duplicates of cleanups get into // zero TDEActionCollecton to make sure no duplicates of cleanups get into
// the action collection. // the action collection.
_actionCollection = 0; _actionCollection = 0;
} }
@ -79,7 +79,7 @@ KCleanupCollection::operator= ( const KCleanupCollection &src )
* The background of this seemingly awkward solution are (again) the * The background of this seemingly awkward solution are (again) the
* limitations of the KCleanup copy constructor: It doesn't make a * limitations of the KCleanup copy constructor: It doesn't make a
* truly identical copy of the entire KCleanup object. Rather, it * truly identical copy of the entire KCleanup object. Rather, it
* copies only the KCleanup members and leaves most of the KAction * copies only the KCleanup members and leaves most of the TDEAction
* members (the parent class) untouched. * members (the parent class) untouched.
* *
* The behaviour implemented here comes handy in the most common * The behaviour implemented here comes handy in the most common
@ -93,20 +93,20 @@ KCleanupCollection::operator= ( const KCleanupCollection &src )
* *
* 'tmpCollection' here is an incomplete copy of 'origCollection' - * 'tmpCollection' here is an incomplete copy of 'origCollection' -
* which represents what the user really can see in the menus, i.e. all * which represents what the user really can see in the menus, i.e. all
* the KAction stuff in there really needs to work. * the TDEAction stuff in there really needs to work.
* *
* During changing preferences in the 'settings' dialog, the user only * During changing preferences in the 'settings' dialog, the user only
* changes 'tmpCollection' - if he chooses to abandon his changes * changes 'tmpCollection' - if he chooses to abandon his changes
* (e.g., he clicks on the 'cancel' button), no harm is done - * (e.g., he clicks on the 'cancel' button), no harm is done -
* 'tmpCollection' is simply not copied back to * 'tmpCollection' is simply not copied back to
* 'origCollection'. Anyway, since 'tmpCollection' is merely a * 'origCollection'. Anyway, since 'tmpCollection' is merely a
* container for the true KCleanup members, the KAction members don't * container for the true KCleanup members, the TDEAction members don't
* matter here: There is no representation of 'tmpCollection' in any * matter here: There is no representation of 'tmpCollection' in any
* menu or tool bar. * menu or tool bar.
* *
* As soon as the user clicks on 'apply' or 'ok' in the 'settings' * As soon as the user clicks on 'apply' or 'ok' in the 'settings'
* dialog, however, 'tmpCollection' is copied back to 'origCollection' * dialog, however, 'tmpCollection' is copied back to 'origCollection'
* - that is, its KCleanup members. Most of the KAction members (other * - that is, its KCleanup members. Most of the TDEAction members (other
* than 'text()' which is explicitly copied back) remain untouched, * than 'text()' which is explicitly copied back) remain untouched,
* thus maintaining consistency with the user interface is guaranteed. * thus maintaining consistency with the user interface is guaranteed.
**/ **/

@ -20,7 +20,7 @@
#include "kcleanup.h" #include "kcleanup.h"
// Forward declarations // Forward declarations
class KActionCollection; class TDEActionCollection;
namespace KDirStat namespace KDirStat
@ -53,14 +53,14 @@ namespace KDirStat
/** /**
* Constructor. * Constructor.
* *
* Most applications will want to pass KMainWindow::actionCollection() * Most applications will want to pass TDEMainWindow::actionCollection()
* for 'actionCollection' so the menus and toolbars can be created * for 'actionCollection' so the menus and toolbars can be created
* using the XML UI description ('kdirstatui.rc' for KDirStat). * using the XML UI description ('kdirstatui.rc' for KDirStat).
* *
* All @ref KCleanup actions ever added to this collection will get * All @ref KCleanup actions ever added to this collection will get
* this as their parent. * this as their parent.
**/ **/
KCleanupCollection( KActionCollection * actionCollection = 0 ); KCleanupCollection( TDEActionCollection * actionCollection = 0 );
/** /**
* Copy Constructor. * Copy Constructor.
@ -212,7 +212,7 @@ namespace KDirStat
// Data members // Data members
KActionCollection * _actionCollection; TDEActionCollection * _actionCollection;
int _nextUserCleanupNo; int _nextUserCleanupNo;
KCleanupList _cleanupList; KCleanupList _cleanupList;
KCleanupDict _cleanupDict; KCleanupDict _cleanupDict;

@ -55,7 +55,7 @@ using namespace KDirStat;
KDirStatApp::KDirStatApp( TQWidget* , const char* name ) KDirStatApp::KDirStatApp( TQWidget* , const char* name )
: KMainWindow( 0, name ) : TDEMainWindow( 0, name )
{ {
// Simple inits // Simple inits
@ -143,26 +143,26 @@ KDirStatApp::initActions()
{ {
_fileAskOpenDir = KStdAction::open ( TQT_TQOBJECT(this), TQT_SLOT( fileAskOpenDir() ), actionCollection() ); _fileAskOpenDir = KStdAction::open ( TQT_TQOBJECT(this), TQT_SLOT( fileAskOpenDir() ), actionCollection() );
_fileAskOpenUrl = new KAction( i18n( "Open &URL..." ), "konqueror", 0, _fileAskOpenUrl = new TDEAction( i18n( "Open &URL..." ), "konqueror", 0,
TQT_TQOBJECT(this), TQT_SLOT( fileAskOpenUrl() ), TQT_TQOBJECT(this), TQT_SLOT( fileAskOpenUrl() ),
actionCollection(), "file_open_url" ); actionCollection(), "file_open_url" );
_fileOpenRecent = KStdAction::openRecent ( TQT_TQOBJECT(this), TQT_SLOT( fileOpenRecent( const KURL& ) ), actionCollection() ); _fileOpenRecent = KStdAction::openRecent ( TQT_TQOBJECT(this), TQT_SLOT( fileOpenRecent( const KURL& ) ), actionCollection() );
_fileCloseDir = KStdAction::close ( TQT_TQOBJECT(this), TQT_SLOT( fileCloseDir() ), actionCollection() ); _fileCloseDir = KStdAction::close ( TQT_TQOBJECT(this), TQT_SLOT( fileCloseDir() ), actionCollection() );
_fileRefreshAll = new KAction( i18n( "Refresh &All" ), "reload", 0, _fileRefreshAll = new TDEAction( i18n( "Refresh &All" ), "reload", 0,
TQT_TQOBJECT(this), TQT_SLOT( refreshAll() ), TQT_TQOBJECT(this), TQT_SLOT( refreshAll() ),
actionCollection(), "file_refresh_all" ); actionCollection(), "file_refresh_all" );
_fileRefreshSelected = new KAction( i18n( "Refresh &Selected" ), 0, _fileRefreshSelected = new TDEAction( i18n( "Refresh &Selected" ), 0,
TQT_TQOBJECT(this), TQT_SLOT( refreshSelected() ), TQT_TQOBJECT(this), TQT_SLOT( refreshSelected() ),
actionCollection(), "file_refresh_selected" ); actionCollection(), "file_refresh_selected" );
_fileContinueReadingAtMountPoint = new KAction( i18n( "Continue Reading at &Mount Point" ), "hdd_mount", 0, _fileContinueReadingAtMountPoint = new TDEAction( i18n( "Continue Reading at &Mount Point" ), "hdd_mount", 0,
TQT_TQOBJECT(this), TQT_SLOT( refreshSelected() ), actionCollection(), TQT_TQOBJECT(this), TQT_SLOT( refreshSelected() ), actionCollection(),
"file_continue_reading_at_mount_point" ); "file_continue_reading_at_mount_point" );
_fileStopReading = new KAction( i18n( "Stop Rea&ding" ), "stop", 0, _fileStopReading = new TDEAction( i18n( "Stop Rea&ding" ), "stop", 0,
TQT_TQOBJECT(this), TQT_SLOT( stopReading() ), actionCollection(), TQT_TQOBJECT(this), TQT_SLOT( stopReading() ), actionCollection(),
"file_stop_reading" ); "file_stop_reading" );
@ -171,41 +171,41 @@ KDirStatApp::initActions()
_showToolBar = KStdAction::showToolbar ( TQT_TQOBJECT(this), TQT_SLOT( toggleToolBar() ), actionCollection() ); _showToolBar = KStdAction::showToolbar ( TQT_TQOBJECT(this), TQT_SLOT( toggleToolBar() ), actionCollection() );
_showStatusBar = KStdAction::showStatusbar ( TQT_TQOBJECT(this), TQT_SLOT( toggleStatusBar() ), actionCollection() ); _showStatusBar = KStdAction::showStatusbar ( TQT_TQOBJECT(this), TQT_SLOT( toggleStatusBar() ), actionCollection() );
_cleanupOpenWith = new KAction( i18n( "Open With" ), 0, _cleanupOpenWith = new TDEAction( i18n( "Open With" ), 0,
TQT_TQOBJECT(this), TQT_SLOT( cleanupOpenWith() ), TQT_TQOBJECT(this), TQT_SLOT( cleanupOpenWith() ),
actionCollection(), "cleanup_open_with" ); actionCollection(), "cleanup_open_with" );
_treemapZoomIn = new KAction( i18n( "Zoom in" ), "viewmag+", Key_Plus, _treemapZoomIn = new TDEAction( i18n( "Zoom in" ), "viewmag+", Key_Plus,
TQT_TQOBJECT(this), TQT_SLOT( treemapZoomIn() ), TQT_TQOBJECT(this), TQT_SLOT( treemapZoomIn() ),
actionCollection(), "treemap_zoom_in" ); actionCollection(), "treemap_zoom_in" );
_treemapZoomOut = new KAction( i18n( "Zoom out" ), "viewmag-", Key_Minus, _treemapZoomOut = new TDEAction( i18n( "Zoom out" ), "viewmag-", Key_Minus,
TQT_TQOBJECT(this), TQT_SLOT( treemapZoomOut() ), TQT_TQOBJECT(this), TQT_SLOT( treemapZoomOut() ),
actionCollection(), "treemap_zoom_out" ); actionCollection(), "treemap_zoom_out" );
_treemapSelectParent= new KAction( i18n( "Select Parent" ), "up", Key_Asterisk, _treemapSelectParent= new TDEAction( i18n( "Select Parent" ), "up", Key_Asterisk,
TQT_TQOBJECT(this), TQT_SLOT( treemapSelectParent() ), TQT_TQOBJECT(this), TQT_SLOT( treemapSelectParent() ),
actionCollection(), "treemap_select_parent" ); actionCollection(), "treemap_select_parent" );
_treemapRebuild = new KAction( i18n( "Rebuild Treemap" ), 0, _treemapRebuild = new TDEAction( i18n( "Rebuild Treemap" ), 0,
TQT_TQOBJECT(this), TQT_SLOT( treemapRebuild() ), TQT_TQOBJECT(this), TQT_SLOT( treemapRebuild() ),
actionCollection(), "treemap_rebuild" ); actionCollection(), "treemap_rebuild" );
_showTreemapView = new KToggleAction( i18n( "Show Treemap" ), Key_F9, _showTreemapView = new TDEToggleAction( i18n( "Show Treemap" ), Key_F9,
TQT_TQOBJECT(this), TQT_SLOT( toggleTreemapView() ), TQT_TQOBJECT(this), TQT_SLOT( toggleTreemapView() ),
actionCollection(), "options_show_treemap" ); actionCollection(), "options_show_treemap" );
new KAction( i18n( "Help about Treemaps" ), "help", 0, new TDEAction( i18n( "Help about Treemaps" ), "help", 0,
TQT_TQOBJECT(this), TQT_SLOT( treemapHelp() ), TQT_TQOBJECT(this), TQT_SLOT( treemapHelp() ),
actionCollection(), "treemap_help" ); actionCollection(), "treemap_help" );
KAction * pref = KStdAction::preferences( TQT_TQOBJECT(this), TQT_SLOT( preferences() ), actionCollection() ); TDEAction * pref = KStdAction::preferences( TQT_TQOBJECT(this), TQT_SLOT( preferences() ), actionCollection() );
_reportMailToOwner = new KAction( i18n( "Send &Mail to Owner" ), "mail_generic", 0, _reportMailToOwner = new TDEAction( i18n( "Send &Mail to Owner" ), "mail_generic", 0,
TQT_TQOBJECT(_treeView), TQT_SLOT( sendMailToOwner() ), TQT_TQOBJECT(_treeView), TQT_SLOT( sendMailToOwner() ),
actionCollection(), "report_mail_to_owner" ); actionCollection(), "report_mail_to_owner" );
_helpSendFeedbackMail = new KAction( i18n( "Send &Feedback Mail..." ), 0, _helpSendFeedbackMail = new TDEAction( i18n( "Send &Feedback Mail..." ), 0,
TQT_TQOBJECT(this), TQT_SLOT( sendFeedbackMail() ), TQT_TQOBJECT(this), TQT_SLOT( sendFeedbackMail() ),
actionCollection(), "help_send_feedback_mail" ); actionCollection(), "help_send_feedback_mail" );
@ -362,8 +362,8 @@ void KDirStatApp::readMainWinConfig()
// Position settings of the various bars // Position settings of the various bars
KToolBar::BarPosition toolBarPos; TDEToolBar::BarPosition toolBarPos;
toolBarPos = ( KToolBar::BarPosition ) config->readNumEntry( "ToolBarPos", KToolBar::Top ); toolBarPos = ( TDEToolBar::BarPosition ) config->readNumEntry( "ToolBarPos", TDEToolBar::Top );
toolBar( "mainToolBar" )->setBarPos( toolBarPos ); toolBar( "mainToolBar" )->setBarPos( toolBarPos );
_treemapViewHeight = config->readNumEntry( "TreemapViewHeight", 250 ); _treemapViewHeight = config->readNumEntry( "TreemapViewHeight", 250 );

@ -27,15 +27,15 @@
class TQPopupMenu; class TQPopupMenu;
class TQSplitter; class TQSplitter;
class KAction; class TDEAction;
class KActivityTracker; class KActivityTracker;
class KFeedbackDialog; class KFeedbackDialog;
class KFeedbackDialog; class KFeedbackDialog;
class KFeedbackQuestion; class KFeedbackQuestion;
class KPacMan; class KPacMan;
class KPacMan; class KPacMan;
class KRecentFilesAction; class TDERecentFilesAction;
class KToggleAction; class TDEToggleAction;
namespace KDirStat namespace KDirStat
{ {
@ -56,10 +56,10 @@ using namespace KDirStat;
* and reads the config file as well as providing a menubar, toolbar and * and reads the config file as well as providing a menubar, toolbar and
* statusbar. An instance of KDirStatView creates your center view, which is * statusbar. An instance of KDirStatView creates your center view, which is
* connected to the window's Doc object. KDirStatApp reimplements the methods * connected to the window's Doc object. KDirStatApp reimplements the methods
* that KMainWindow provides for main window handling and supports full * that TDEMainWindow provides for main window handling and supports full
* session management as well as using KActions. * session management as well as using TDEActions.
* *
* @see KMainWindow * @see TDEMainWindow
* @see TDEApplication * @see TDEApplication
* @see TDEConfig * @see TDEConfig
* *
@ -68,7 +68,7 @@ using namespace KDirStat;
* *
* @version KDevelop version 1.2 code generation * @version KDevelop version 1.2 code generation
**/ **/
class KDirStatApp : public KMainWindow class KDirStatApp : public TDEMainWindow
{ {
Q_OBJECT Q_OBJECT
@ -304,7 +304,7 @@ signals:
protected: protected:
/** /**
* Initialize the KActions of the application. * Initialize the TDEActions of the application.
**/ **/
void initActions(); void initActions();
@ -388,27 +388,27 @@ protected:
// Actions // Actions
KAction * _fileAskOpenDir; TDEAction * _fileAskOpenDir;
KAction * _fileAskOpenUrl; TDEAction * _fileAskOpenUrl;
KRecentFilesAction * _fileOpenRecent; TDERecentFilesAction * _fileOpenRecent;
KAction * _fileCloseDir; TDEAction * _fileCloseDir;
KAction * _fileRefreshAll; TDEAction * _fileRefreshAll;
KAction * _fileRefreshSelected; TDEAction * _fileRefreshSelected;
KAction * _fileContinueReadingAtMountPoint; TDEAction * _fileContinueReadingAtMountPoint;
KAction * _fileStopReading; TDEAction * _fileStopReading;
KAction * _fileQuit; TDEAction * _fileQuit;
KAction * _editCopy; TDEAction * _editCopy;
KAction * _cleanupOpenWith; TDEAction * _cleanupOpenWith;
KAction * _treemapZoomIn; TDEAction * _treemapZoomIn;
KAction * _treemapZoomOut; TDEAction * _treemapZoomOut;
KAction * _treemapSelectParent; TDEAction * _treemapSelectParent;
KAction * _treemapRebuild; TDEAction * _treemapRebuild;
KAction * _reportMailToOwner; TDEAction * _reportMailToOwner;
KAction * _helpSendFeedbackMail; TDEAction * _helpSendFeedbackMail;
KToggleAction * _showToolBar; TDEToggleAction * _showToolBar;
KToggleAction * _showStatusBar; TDEToggleAction * _showStatusBar;
KToggleAction * _showTreemapView; TDEToggleAction * _showTreemapView;
KCleanupCollection * _cleanupCollection; KCleanupCollection * _cleanupCollection;

@ -51,7 +51,7 @@ namespace KDirStat
#if USE_KLISTVIEW #if USE_KLISTVIEW
# define KDirTreeViewParentClass KListView # define KDirTreeViewParentClass TDEListView
#else #else
# define KDirTreeViewParentClass TQListView # define KDirTreeViewParentClass TQListView
#endif #endif

@ -16,7 +16,7 @@ using namespace KDirStat;
KCleanup * KCleanup *
KStdCleanup::openInKonqueror( KActionCollection *parent ) KStdCleanup::openInKonqueror( TDEActionCollection *parent )
{ {
KCleanup *cleanup = new KCleanup( "cleanup_open_in_konqueror", KCleanup *cleanup = new KCleanup( "cleanup_open_in_konqueror",
"kfmclient openURL %p", "kfmclient openURL %p",
@ -36,7 +36,7 @@ KStdCleanup::openInKonqueror( KActionCollection *parent )
KCleanup * KCleanup *
KStdCleanup::openInTerminal( KActionCollection *parent ) KStdCleanup::openInTerminal( TDEActionCollection *parent )
{ {
KCleanup *cleanup = new KCleanup( "cleanup_open_in_terminal", KCleanup *cleanup = new KCleanup( "cleanup_open_in_terminal",
"konsole", "konsole",
@ -55,7 +55,7 @@ KStdCleanup::openInTerminal( KActionCollection *parent )
KCleanup * KCleanup *
KStdCleanup::compressSubtree( KActionCollection *parent ) KStdCleanup::compressSubtree( TDEActionCollection *parent )
{ {
KCleanup *cleanup = new KCleanup( "cleanup_compress_subtree", KCleanup *cleanup = new KCleanup( "cleanup_compress_subtree",
"cd ..; tar cjvf %n.tar.bz2 %n && rm -rf %n", "cd ..; tar cjvf %n.tar.bz2 %n && rm -rf %n",
@ -73,7 +73,7 @@ KStdCleanup::compressSubtree( KActionCollection *parent )
KCleanup * KCleanup *
KStdCleanup::makeClean( KActionCollection *parent ) KStdCleanup::makeClean( TDEActionCollection *parent )
{ {
KCleanup *cleanup = new KCleanup( "cleanup_make_clean", KCleanup *cleanup = new KCleanup( "cleanup_make_clean",
"make clean", "make clean",
@ -90,7 +90,7 @@ KStdCleanup::makeClean( KActionCollection *parent )
KCleanup * KCleanup *
KStdCleanup::deleteTrash( KActionCollection *parent ) KStdCleanup::deleteTrash( TDEActionCollection *parent )
{ {
KCleanup *cleanup = new KCleanup( "cleanup_delete_trash", KCleanup *cleanup = new KCleanup( "cleanup_delete_trash",
"rm -f *.o *~ *.bak *.auto core", "rm -f *.o *~ *.bak *.auto core",
@ -108,7 +108,7 @@ KStdCleanup::deleteTrash( KActionCollection *parent )
KCleanup * KCleanup *
KStdCleanup::moveToTrashBin( KActionCollection *parent ) KStdCleanup::moveToTrashBin( TDEActionCollection *parent )
{ {
KCleanup *cleanup = new KCleanup( "cleanup_move_to_trash_bin", KCleanup *cleanup = new KCleanup( "cleanup_move_to_trash_bin",
"kfmclient move %p %t", "kfmclient move %p %t",
@ -127,7 +127,7 @@ KStdCleanup::moveToTrashBin( KActionCollection *parent )
KCleanup * KCleanup *
KStdCleanup::hardDelete( KActionCollection *parent ) KStdCleanup::hardDelete( TDEActionCollection *parent )
{ {
KCleanup *cleanup = new KCleanup( "cleanup_hard_delete", KCleanup *cleanup = new KCleanup( "cleanup_hard_delete",
"rm -rf %p", "rm -rf %p",

@ -17,7 +17,7 @@
#endif #endif
// Forward declarations // Forward declarations
class KActionCollection; class TDEActionCollection;
class KDirStat::KCleanup; class KDirStat::KCleanup;
@ -40,13 +40,13 @@ namespace KDirStat
class KStdCleanup class KStdCleanup
{ {
public: public:
static KCleanup *openInKonqueror ( KActionCollection *parent = 0 ); static KCleanup *openInKonqueror ( TDEActionCollection *parent = 0 );
static KCleanup *openInTerminal ( KActionCollection *parent = 0 ); static KCleanup *openInTerminal ( TDEActionCollection *parent = 0 );
static KCleanup *compressSubtree ( KActionCollection *parent = 0 ); static KCleanup *compressSubtree ( TDEActionCollection *parent = 0 );
static KCleanup *makeClean ( KActionCollection *parent = 0 ); static KCleanup *makeClean ( TDEActionCollection *parent = 0 );
static KCleanup *deleteTrash ( KActionCollection *parent = 0 ); static KCleanup *deleteTrash ( TDEActionCollection *parent = 0 );
static KCleanup *moveToTrashBin ( KActionCollection *parent = 0 ); static KCleanup *moveToTrashBin ( TDEActionCollection *parent = 0 );
static KCleanup *hardDelete ( KActionCollection *parent = 0 ); static KCleanup *hardDelete ( TDEActionCollection *parent = 0 );
private: private:
/** /**

Loading…
Cancel
Save