summaryrefslogtreecommitdiffstats
path: root/src/knmap.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/knmap.cpp')
-rw-r--r--src/knmap.cpp54
1 files changed, 27 insertions, 27 deletions
diff --git a/src/knmap.cpp b/src/knmap.cpp
index 5bdd17e..32c1f13 100644
--- a/src/knmap.cpp
+++ b/src/knmap.cpp
@@ -20,20 +20,20 @@
* *
***************************************************************************/
-#include <qdir.h>
-#include <qlineedit.h>
+#include <ntqdir.h>
+#include <ntqlineedit.h>
#include <kaction.h>
#include <kapplication.h>
-#include <kconfig.h>
+#include <tdeconfig.h>
#include <kdebug.h>
#include <kedittoolbar.h>
#include <kfiledialog.h>
#include <kglobalsettings.h>
#include <kinputdialog.h>
#include <kkeydialog.h>
-#include <klocale.h>
-#include <kmainwindow.h>
+#include <tdelocale.h>
+#include <tdemainwindow.h>
#include <kmessagebox.h>
#include <kstandarddirs.h>
#include <kstatusbar.h>
@@ -48,7 +48,7 @@
// ===========
Knmap::Knmap( )
-: KMainWindow( NULL, "knmap" ),
+: TDEMainWindow( NULL, "knmap" ),
m_mainWidget( new MainWidget( this, "main widget" ))
{ findNmap( );
setCentralWidget( m_mainWidget );
@@ -65,12 +65,12 @@ Knmap::Knmap( )
SLOT( slotSetManPageActionStuff( const bool )));
connect( m_mainWidget,
- SIGNAL( setCaption( const QString& )),
- SLOT( slotSetCaption( const QString& )));
+ SIGNAL( setCaption( const TQString& )),
+ SLOT( slotSetCaption( const TQString& )));
connect( m_mainWidget,
- SIGNAL( statusBarText( const QString& )), statusBar( ),
- SLOT( message( const QString& )));
+ SIGNAL( statusBarText( const TQString& )), statusBar( ),
+ SLOT( message( const TQString& )));
connect( m_mainWidget,
SIGNAL( visibleScanWidgetChanged( ScanWidget* )),
@@ -245,7 +245,7 @@ void Knmap::createMenu( )
setStandardToolBarMenuEnabled( true );
#ifdef _DEBUG
- createGUI( QDir::homeDirPath( ) + "/.kde/share/apps/knmap/knmapui.rc" );
+ createGUI( TQDir::homeDirPath( ) + "/.kde/share/apps/knmap/knmapui.rc" );
#else
createGUI( );
#endif
@@ -255,7 +255,7 @@ void Knmap::createMenu( )
// ========
void Knmap::findNmap( )
-{ QString nmapPath = KStandardDirs::findExe( "nmap" );
+{ TQString nmapPath = KStandardDirs::findExe( "nmap" );
if( nmapPath.isEmpty( ))
{ KMessageBox::error( this,
@@ -268,9 +268,9 @@ void Knmap::findNmap( )
// getDirPath
// ==========
-bool Knmap::getDirPath( const QString& caption, QString& path )
-{ QString startDir = (path.isEmpty( )) ? KGlobalSettings::documentPath( ) : path;
- QString tempPath = KFileDialog::getExistingDirectory( startDir, NULL, caption );
+bool Knmap::getDirPath( const TQString& caption, TQString& path )
+{ TQString startDir = (path.isEmpty( )) ? TDEGlobalSettings::documentPath( ) : path;
+ TQString tempPath = KFileDialog::getExistingDirectory( startDir, NULL, caption );
if( tempPath.isEmpty( ))
return false;
@@ -282,7 +282,7 @@ bool Knmap::getDirPath( const QString& caption, QString& path )
// getDirPath
// ==========
-void Knmap::getDirPath( const QString& caption, QString& path, QLineEdit* lineEdit )
+void Knmap::getDirPath( const TQString& caption, TQString& path, TQLineEdit* lineEdit )
{ if( getDirPath( caption, path ))
lineEdit->setText( path );
}
@@ -290,16 +290,16 @@ void Knmap::getDirPath( const QString& caption, QString& path, QLineEdit* lineEd
// getFilePath
// ===========
-bool Knmap::getFilePath( const QString& caption, QString& path, const bool save )
-{ QString filter = "*.txt|Text files\n*.*|All files";
- QString startDir = (path.isEmpty( )) ? KGlobalSettings::documentPath( ) : path;
- QString tempPath = KFileDialog::getSaveFileName( startDir, filter, NULL, caption );
+bool Knmap::getFilePath( const TQString& caption, TQString& path, const bool save )
+{ TQString filter = "*.txt|Text files\n*.*|All files";
+ TQString startDir = (path.isEmpty( )) ? TDEGlobalSettings::documentPath( ) : path;
+ TQString tempPath = KFileDialog::getSaveFileName( startDir, filter, NULL, caption );
if( tempPath.isEmpty( ))
return false;
- if( save && QFile::exists( tempPath ))
- { if( KMessageBox::Yes != KMessageBox::questionYesNo( NULL, QString( i18n( "File \"%1\" exists.\nOverwrite?" )).arg( tempPath ), i18n( "File exists" )))
+ if( save && TQFile::exists( tempPath ))
+ { if( KMessageBox::Yes != KMessageBox::questionYesNo( NULL, TQString( i18n( "File \"%1\" exists.\nOverwrite?" )).arg( tempPath ), i18n( "File exists" )))
return false;
}
@@ -310,7 +310,7 @@ bool Knmap::getFilePath( const QString& caption, QString& path, const bool save
// getFilePath
// ===========
-void Knmap::getFilePath( const QString& caption, QString& path, QLineEdit* lineEdit, const bool save )
+void Knmap::getFilePath( const TQString& caption, TQString& path, TQLineEdit* lineEdit, const bool save )
{ if( getFilePath( caption, path, save ))
lineEdit->setText( path );
}
@@ -351,7 +351,7 @@ void Knmap::slotConfigureShortcuts( )
// =====================
void Knmap::slotConfigureToolbars( )
-{ saveMainWindowSettings( KGlobal::config( ), autoSaveGroup( ));
+{ saveMainWindowSettings( TDEGlobal::config( ), autoSaveGroup( ));
KEditToolbar dlg( actionCollection( ));
connect( &dlg, SIGNAL( newToolbarConfig( )),this, SLOT( slotNewToolbarConfig( )));
@@ -364,12 +364,12 @@ void Knmap::slotConfigureToolbars( )
void Knmap::slotNewToolbarConfig( )
{
#ifdef _DEBUG
- createGUI( QDir::homeDirPath( ) + "/.kde/share/apps/knmap/knmapui.rc" );
+ createGUI( TQDir::homeDirPath( ) + "/.kde/share/apps/knmap/knmapui.rc" );
#else
createGUI( );
#endif
- applyMainWindowSettings( KGlobal::config( ), autoSaveGroup( ));
+ applyMainWindowSettings( TDEGlobal::config( ), autoSaveGroup( ));
}
// slotOutputAvailable
@@ -383,7 +383,7 @@ void Knmap::slotOutputAvailable( const bool saveState, const bool saveAsState )
// slotSetCaption
// ==============
-void Knmap::slotSetCaption( const QString& caption )
+void Knmap::slotSetCaption( const TQString& caption )
{ setCaption( caption );
}