diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-02-01 15:00:07 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-02-01 15:00:07 -0600 |
commit | ebffb6c8232a7667588f3d879942f93d5d990913 (patch) | |
tree | 0b1016fea858abebdbaf1a04de3630bf34acb3e9 /kdirstat/kdirstatapp.cpp | |
parent | f3263ec262bd31545a27af4e3b8c537654e9fa40 (diff) | |
download | kdirstat-ebffb6c8232a7667588f3d879942f93d5d990913.tar.gz kdirstat-ebffb6c8232a7667588f3d879942f93d5d990913.zip |
Rename a number of classes to enhance compatibility with KDE4
Diffstat (limited to 'kdirstat/kdirstatapp.cpp')
-rw-r--r-- | kdirstat/kdirstatapp.cpp | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/kdirstat/kdirstatapp.cpp b/kdirstat/kdirstatapp.cpp index 33c4d73..c7e53f3 100644 --- a/kdirstat/kdirstatapp.cpp +++ b/kdirstat/kdirstatapp.cpp @@ -55,7 +55,7 @@ using namespace KDirStat; KDirStatApp::KDirStatApp( TQWidget* , const char* name ) - : KMainWindow( 0, name ) + : TDEMainWindow( 0, name ) { // Simple inits @@ -143,26 +143,26 @@ KDirStatApp::initActions() { _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() ), actionCollection(), "file_open_url" ); _fileOpenRecent = KStdAction::openRecent ( TQT_TQOBJECT(this), TQT_SLOT( fileOpenRecent( const KURL& ) ), 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() ), actionCollection(), "file_refresh_all" ); - _fileRefreshSelected = new KAction( i18n( "Refresh &Selected" ), 0, + _fileRefreshSelected = new TDEAction( i18n( "Refresh &Selected" ), 0, TQT_TQOBJECT(this), TQT_SLOT( refreshSelected() ), 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(), "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(), "file_stop_reading" ); @@ -171,41 +171,41 @@ KDirStatApp::initActions() _showToolBar = KStdAction::showToolbar ( TQT_TQOBJECT(this), TQT_SLOT( toggleToolBar() ), 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() ), 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() ), 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() ), 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() ), actionCollection(), "treemap_select_parent" ); - _treemapRebuild = new KAction( i18n( "Rebuild Treemap" ), 0, + _treemapRebuild = new TDEAction( i18n( "Rebuild Treemap" ), 0, TQT_TQOBJECT(this), TQT_SLOT( treemapRebuild() ), 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() ), 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() ), 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() ), 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() ), actionCollection(), "help_send_feedback_mail" ); @@ -362,8 +362,8 @@ void KDirStatApp::readMainWinConfig() // Position settings of the various bars - KToolBar::BarPosition toolBarPos; - toolBarPos = ( KToolBar::BarPosition ) config->readNumEntry( "ToolBarPos", KToolBar::Top ); + TDEToolBar::BarPosition toolBarPos; + toolBarPos = ( TDEToolBar::BarPosition ) config->readNumEntry( "ToolBarPos", TDEToolBar::Top ); toolBar( "mainToolBar" )->setBarPos( toolBarPos ); _treemapViewHeight = config->readNumEntry( "TreemapViewHeight", 250 ); |