@ -53,7 +53,7 @@
MainWindow : : MainWindow ( bool embed , const TQString & menuFile ,
TQWidget * parent , const char * name ) :
K MainWindow( parent , name ) , menu ( NULL ) , embeddedWindows ( embed ) ,
TDE MainWindow( parent , name ) , menu ( NULL ) , embeddedWindows ( embed ) ,
groupWidget ( NULL ) , selectedPage ( 0 ) , dummyAbout ( NULL ) {
// Load the menu structure in from disk.
@ -105,21 +105,21 @@ void MainWindow::buildActions()
{
KStdAction : : quit ( TQT_TQOBJECT ( this ) , TQT_SLOT ( close ( ) ) , actionCollection ( ) ) ;
resetModule = new K Action( i18n ( " Undo Changes " ) , 0 , TQT_TQOBJECT ( this ) ,
resetModule = new TDE Action( i18n ( " Undo Changes " ) , 0 , TQT_TQOBJECT ( this ) ,
TQT_SLOT ( showAllModules ( ) ) , actionCollection ( ) , " resetModule " ) ;
resetModule - > setEnabled ( false ) ;
defaultModule = new K Action( i18n ( " Reset to Defaults " ) , 0 , TQT_TQOBJECT ( this ) ,
defaultModule = new TDE Action( i18n ( " Reset to Defaults " ) , 0 , TQT_TQOBJECT ( this ) ,
TQT_SLOT ( showAllModules ( ) ) , actionCollection ( ) , " defaultModule " ) ;
defaultModule - > setEnabled ( false ) ;
if ( embeddedWindows ) {
showAllAction = new K Action( i18n ( " Overview " ) , TQApplication : : reverseLayout ( ) ? " forward " : " back " , 0 , TQT_TQOBJECT ( this ) ,
showAllAction = new TDE Action( i18n ( " Overview " ) , TQApplication : : reverseLayout ( ) ? " forward " : " back " , 0 , TQT_TQOBJECT ( this ) ,
TQT_SLOT ( showAllModules ( ) ) , actionCollection ( ) , " showAll " ) ;
showAllAction - > setEnabled ( false ) ;
}
aboutModuleAction = new K Action( i18n ( " About Current Module " ) , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( aboutCurrentModule ( ) ) , actionCollection ( ) , " help_about_module " ) ;
aboutModuleAction = new TDE Action( i18n ( " About Current Module " ) , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( aboutCurrentModule ( ) ) , actionCollection ( ) , " help_about_module " ) ;
resetModuleHelp ( ) ;
// Search
@ -154,7 +154,7 @@ void MainWindow::buildActions()
TQWhatsThis : : add ( search , i18n ( " Search Bar<p>Enter a search term. " ) ) ;
// The Clear search box button.
KToolBarButton * clearWidget = new K ToolBarButton( TQApplication : : reverseLayout ( ) ? " clear_left " : " locationbar_erase " ,
TDEToolBarButton * clearWidget = new TDE ToolBarButton( TQApplication : : reverseLayout ( ) ? " clear_left " : " locationbar_erase " ,
0 , this ) ;
searchClear = new KWidgetAction ( clearWidget , TQString ( " " ) , CTRL + Key_L , TQT_TQOBJECT ( search ) , TQT_SLOT ( clear ( ) ) ,
actionCollection ( ) , " searchReset " ) ;
@ -174,7 +174,7 @@ void MainWindow::buildActions()
continue ;
}
KRadioAction * newAction = new K RadioAction( group - > caption ( ) , group - > icon ( ) , K Shortcut( ) , TQT_TQOBJECT ( this ) ,
TDERadioAction * newAction = new TDE RadioAction( group - > caption ( ) , group - > icon ( ) , TDE Shortcut( ) , TQT_TQOBJECT ( this ) ,
TQT_SLOT ( slotTopPage ( ) ) , actionCollection ( ) , group - > relPath ( ) ) ;
pageActions . append ( newAction ) ;
kdDebug ( ) < < " relpath is : " < < group - > relPath ( ) < < endl ;
@ -219,7 +219,7 @@ void MainWindow::showAllModules()
searchClear - > setEnabled ( true ) ;
searchAction - > setEnabled ( true ) ;
K RadioAction * currentRadioAction ;
TDE RadioAction * currentRadioAction ;
for ( currentRadioAction = pageActions . first ( ) ; currentRadioAction ; currentRadioAction = pageActions . next ( ) ) {
currentRadioAction - > setEnabled ( true ) ;
}
@ -273,7 +273,7 @@ void MainWindow::slotItemSelected( TQIconViewItem *item ){
searchClear - > setEnabled ( false ) ;
searchAction - > setEnabled ( false ) ;
K RadioAction * currentRadioAction ;
TDE RadioAction * currentRadioAction ;
for ( currentRadioAction = pageActions . first ( ) ; currentRadioAction ; currentRadioAction = pageActions . next ( ) ) {
currentRadioAction - > setEnabled ( false ) ;
}
@ -333,10 +333,10 @@ void MainWindow::widgetChange() {
}
void MainWindow : : slotTopPage ( ) {
KRadioAction * clickedRadioAction = ( K RadioAction * ) sender ( ) ;
TDERadioAction * clickedRadioAction = ( TDE RadioAction * ) sender ( ) ;
selectedPage = pageActions . find ( clickedRadioAction ) ;
K RadioAction * currentRadioAction ;
TDE RadioAction * currentRadioAction ;
for ( currentRadioAction = pageActions . first ( ) ; currentRadioAction ; currentRadioAction = pageActions . next ( ) ) {
currentRadioAction - > setChecked ( currentRadioAction = = clickedRadioAction ) ;
}