diff options
Diffstat (limited to 'krecipes/src/pref.cpp')
-rw-r--r-- | krecipes/src/pref.cpp | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/krecipes/src/pref.cpp b/krecipes/src/pref.cpp index 218868c..a04389e 100644 --- a/krecipes/src/pref.cpp +++ b/krecipes/src/pref.cpp @@ -30,12 +30,12 @@ #include <ntqframe.h> #include <ntqcombobox.h> -#include <kapplication.h> -#include <kconfig.h> +#include <tdeapplication.h> +#include <tdeconfig.h> #include <kiconloader.h> -#include <klocale.h> +#include <tdelocale.h> #include <kstandarddirs.h> -#include <kfiledialog.h> +#include <tdefiledialog.h> #include <knuminput.h> #include <klineedit.h> #include <kurlrequester.h> @@ -50,31 +50,31 @@ KrecipesPreferences::KrecipesPreferences( TQWidget *parent ) // possibilities (including Tab, Swallow, and just Plain) TQFrame * frame; - KConfig *config = KGlobal::config(); + TDEConfig *config = TDEGlobal::config(); config->setGroup( "DBType" ); - KIconLoader il; + TDEIconLoader il; frame = addPage( i18n( "Server Settings" ), TQString( i18n( "Database Server Options (%1)" ) ).arg( config->readEntry( "Type" ) ), - il.loadIcon( "network_local", KIcon::NoGroup, 32 ) ); + il.loadIcon( "network_local", TDEIcon::NoGroup, 32 ) ); TQHBoxLayout* layout = new TQHBoxLayout( frame ); m_pageServer = new ServerPrefs( frame ); layout->addWidget( m_pageServer ); m_helpMap.insert(0,"configure-server-settings"); - frame = addPage( i18n( "Formatting" ), i18n( "Customize Formatting" ), il.loadIcon( "math_frac", KIcon::NoGroup, 32 ) ); + frame = addPage( i18n( "Formatting" ), i18n( "Customize Formatting" ), il.loadIcon( "math_frac", TDEIcon::NoGroup, 32 ) ); TQHBoxLayout* formatting_layout = new TQHBoxLayout( frame ); m_pageNumbers = new NumbersPrefs( frame ); formatting_layout->addWidget( m_pageNumbers ); m_helpMap.insert(1,"custom-formatting"); - frame = addPage( i18n( "Import/Export" ), i18n( "Recipe Import and Export Options" ), il.loadIcon( "down", KIcon::NoGroup, 32 ) ); + frame = addPage( i18n( "Import/Export" ), i18n( "Recipe Import and Export Options" ), il.loadIcon( "down", TDEIcon::NoGroup, 32 ) ); TQHBoxLayout* import_layout = new TQHBoxLayout( frame ); m_pageImport = new ImportPrefs( frame ); import_layout->addWidget( m_pageImport ); m_helpMap.insert(2,"import-export-preference"); - frame = addPage( i18n( "Performance" ), i18n( "Performance Options" ), il.loadIcon( "launch", KIcon::NoGroup, 32 ) ); + frame = addPage( i18n( "Performance" ), i18n( "Performance Options" ), il.loadIcon( "launch", TDEIcon::NoGroup, 32 ) ); TQHBoxLayout* performance_layout = new TQHBoxLayout( frame ); m_pagePerformance = new PerformancePrefs( frame ); performance_layout->addWidget( m_pagePerformance ); @@ -193,7 +193,7 @@ MySQLServerPrefs::MySQLServerPrefs( TQWidget *parent ) : TQWidget( parent ) layout->addItem( spacerRight, 1, 4 ); // Load & Save Current Settings - KConfig *config = kapp->config(); + TDEConfig *config = kapp->config(); config->setGroup( "Server" ); serverEdit->setText( config->readEntry( "Host", "localhost" ) ); usernameEdit->setText( config->readEntry( "Username", "" ) ); @@ -206,7 +206,7 @@ MySQLServerPrefs::MySQLServerPrefs( TQWidget *parent ) : TQWidget( parent ) void MySQLServerPrefs::saveOptions( void ) { - KConfig * config = kapp->config(); + TDEConfig * config = kapp->config(); config->setGroup( "Server" ); config->writeEntry( "Host", serverEdit->text() ); config->writeEntry( "Username", usernameEdit->text() ); @@ -320,7 +320,7 @@ PostgreSQLServerPrefs::PostgreSQLServerPrefs( TQWidget *parent ) : TQWidget( par layout->addItem( spacerRight, 1, 4 ); // Load & Save Current Settings - KConfig *config = kapp->config(); + TDEConfig *config = kapp->config(); config->setGroup( "Server" ); serverEdit->setText( config->readEntry( "Host", "localhost" ) ); usernameEdit->setText( config->readEntry( "Username", "" ) ); @@ -333,7 +333,7 @@ PostgreSQLServerPrefs::PostgreSQLServerPrefs( TQWidget *parent ) : TQWidget( par void PostgreSQLServerPrefs::saveOptions( void ) { - KConfig * config = kapp->config(); + TDEConfig * config = kapp->config(); config->setGroup( "Server" ); config->writeEntry( "Host", serverEdit->text() ); config->writeEntry( "Username", usernameEdit->text() ); @@ -380,7 +380,7 @@ SQLiteServerPrefs::SQLiteServerPrefs( TQWidget *parent ) : TQWidget( parent ) dumpPathRequester->setFilter( sqliteBinary ); // Load & Save Current Settings - KConfig *config = kapp->config(); + TDEConfig *config = kapp->config(); config->setGroup( "Server" ); fileRequester->setURL( config->readEntry( "DBFile", locateLocal( "appdata", "krecipes.krecdb" ) ) ); dumpPathRequester->setURL( config->readEntry( "SQLitePath", sqliteBinary ) ); @@ -388,7 +388,7 @@ SQLiteServerPrefs::SQLiteServerPrefs( TQWidget *parent ) : TQWidget( parent ) void SQLiteServerPrefs::saveOptions( void ) { - KConfig * config = kapp->config(); + TDEConfig * config = kapp->config(); config->setGroup( "Server" ); config->writeEntry( "DBFile", fileRequester->url() ); config->writeEntry( "SQLitePath", dumpPathRequester->url() ); @@ -401,7 +401,7 @@ ServerPrefs::ServerPrefs( TQWidget *parent ) { TQVBoxLayout * Form1Layout = new TQVBoxLayout( this, 11, 6 ); - KConfig *config = kapp->config(); + TDEConfig *config = kapp->config(); config->setGroup( "DBType" ); TQString DBtype = config->readEntry( "Type" ); if ( DBtype == "MySQL" ) @@ -438,7 +438,7 @@ void KrecipesPreferences::saveSettings( void ) // Save Server settings void ServerPrefs::saveOptions( void ) { - KConfig * config = kapp->config(); + TDEConfig * config = kapp->config(); config->setGroup( "DBType" ); TQString DBtype = config->readEntry( "Type" ); if ( DBtype == "MySQL" ) @@ -506,7 +506,7 @@ NumbersPrefs::NumbersPrefs( TQWidget *parent ) languageChange(); // Load Current Settings - KConfig *config = kapp->config(); + TDEConfig *config = kapp->config(); config->setGroup( "Formatting" ); int button = ( config->readBoolEntry( "Fraction", false ) ) ? 1 : 0; @@ -519,7 +519,7 @@ NumbersPrefs::NumbersPrefs( TQWidget *parent ) void NumbersPrefs::saveOptions() { - KConfig * config = kapp->config(); + TDEConfig * config = kapp->config(); config->setGroup( "Formatting" ); bool fraction = !numberButtonGroup->find( 0 ) ->isOn(); @@ -542,7 +542,7 @@ ImportPrefs::ImportPrefs( TQWidget *parent ) : TQWidget( parent ) { // Load Current Settings - KConfig * config = kapp->config(); + TDEConfig * config = kapp->config(); config->setGroup( "Import" ); bool overwrite = config->readBoolEntry( "OverwriteExisting", false ); @@ -602,7 +602,7 @@ ImportPrefs::ImportPrefs( TQWidget *parent ) void ImportPrefs::saveOptions() { - KConfig * config = kapp->config(); + TDEConfig * config = kapp->config(); config->setGroup( "Import" ); config->writeEntry( "OverwriteExisting", overwriteCheckbox->isChecked() ); @@ -619,7 +619,7 @@ PerformancePrefs::PerformancePrefs( TQWidget *parent ) : TQWidget( parent ) { // Load Current Settings - KConfig * config = kapp->config(); + TDEConfig * config = kapp->config(); config->setGroup( "Performance" ); int cat_limit = config->readNumEntry( "CategoryLimit", -1 ); @@ -663,7 +663,7 @@ PerformancePrefs::PerformancePrefs( TQWidget *parent ) void PerformancePrefs::saveOptions() { - KConfig * config = kapp->config(); + TDEConfig * config = kapp->config(); config->setGroup( "Performance" ); int catLimit = ( catLimitInput->value() == 0 ) ? -1 : catLimitInput->value(); |