@ -951,9 +951,9 @@ void KMyMoney2App::slotFileOpenRecent(const KURL& url)
if ( ! duplicate ) {
if ( ! duplicate ) {
# if KDE_IS_VERSION(3,2,0)
# if KDE_IS_VERSION(3,2,0)
if ( ( url . protocol ( ) = = " sql " ) | | ( url . isValid ( ) & & K IO: : NetAccess : : exists ( url , true , this ) ) ) {
if ( ( url . protocol ( ) = = " sql " ) | | ( url . isValid ( ) & & TDE IO: : NetAccess : : exists ( url , true , this ) ) ) {
# else
# else
if ( ( url . protocol ( ) = = " sql " ) | | ( url . isValid ( ) & & K IO: : NetAccess : : exists ( url ) ) ) {
if ( ( url . protocol ( ) = = " sql " ) | | ( url . isValid ( ) & & TDE IO: : NetAccess : : exists ( url ) ) ) {
# endif
# endif
KURL dburl = url ;
KURL dburl = url ;
// check if a password is needed. it may be if the URL came from the last/recent file list
// check if a password is needed. it may be if the URL came from the last/recent file list
@ -1791,7 +1791,7 @@ bool KMyMoney2App::okToWriteFile(const KURL& url)
// check if the file exists and warn the user
// check if the file exists and warn the user
bool reallySaveFile = true ;
bool reallySaveFile = true ;
if ( K IO: : NetAccess : : exists ( url , true , this ) ) {
if ( TDE IO: : NetAccess : : exists ( url , true , this ) ) {
if ( KMessageBox : : warningYesNo ( this , TQString ( " <qt> " ) + i18n ( " The file <b>%1</b> already exists. Do you really want to override it? " ) . arg ( url . prettyURL ( 0 , KURL : : StripFileProtocol ) ) + TQString ( " </qt> " ) , i18n ( " File already exists " ) ) ! = KMessageBox : : Yes )
if ( KMessageBox : : warningYesNo ( this , TQString ( " <qt> " ) + i18n ( " The file <b>%1</b> already exists. Do you really want to override it? " ) . arg ( url . prettyURL ( 0 , KURL : : StripFileProtocol ) ) + TQString ( " </qt> " ) , i18n ( " File already exists " ) ) ! = KMessageBox : : Yes )
reallySaveFile = false ;
reallySaveFile = false ;
}
}
@ -1801,11 +1801,11 @@ bool KMyMoney2App::okToWriteFile(const KURL& url)
void KMyMoney2App : : slotSettings ( void )
void KMyMoney2App : : slotSettings ( void )
{
{
// if we already have an instance of the settings dialog, then use it
// if we already have an instance of the settings dialog, then use it
if ( K ConfigDialog: : showDialog ( " KMyMoney-Settings " ) )
if ( TDE ConfigDialog: : showDialog ( " KMyMoney-Settings " ) )
return ;
return ;
// otherwise, we have to create it
// otherwise, we have to create it
KConfigDialog* dlg = new K ConfigDialog( this , " KMyMoney-Settings " , KMyMoneyGlobalSettings : : self ( ) ,
TDEConfigDialog* dlg = new TDE ConfigDialog( this , " KMyMoney-Settings " , KMyMoneyGlobalSettings : : self ( ) ,
KDialogBase : : IconList , KDialogBase : : Default | KDialogBase : : Ok | KDialogBase : : Cancel | KDialogBase : : Help , KDialogBase : : Ok , true ) ;
KDialogBase : : IconList , KDialogBase : : Default | KDialogBase : : Ok | KDialogBase : : Cancel | KDialogBase : : Help , KDialogBase : : Ok , true ) ;
// create the pages ...
// create the pages ...
@ -2408,7 +2408,7 @@ void KMyMoney2App::slotCategoryNew(MyMoneyAccount& account, const MyMoneyAccount
} else {
} else {
// we should not keep the 'no' setting because that can confuse people like
// we should not keep the 'no' setting because that can confuse people like
// I have seen in some usability tests. So we just delete it right away.
// I have seen in some usability tests. So we just delete it right away.
K Config * kconfig = TDEGlobal : : config ( ) ;
TDE Config * kconfig = TDEGlobal : : config ( ) ;
if ( kconfig ) {
if ( kconfig ) {
kconfig - > setGroup ( TQString : : fromLatin1 ( " Notification Messages " ) ) ;
kconfig - > setGroup ( TQString : : fromLatin1 ( " Notification Messages " ) ) ;
kconfig - > deleteEntry ( TQString : : fromLatin1 ( " CreateNewCategories " ) ) ;
kconfig - > deleteEntry ( TQString : : fromLatin1 ( " CreateNewCategories " ) ) ;
@ -2582,7 +2582,7 @@ void KMyMoney2App::slotInvestmentDelete(void)
} else {
} else {
// we should not keep the 'no' setting because that can confuse people like
// we should not keep the 'no' setting because that can confuse people like
// I have seen in some usability tests. So we just delete it right away.
// I have seen in some usability tests. So we just delete it right away.
K Config * kconfig = TDEGlobal : : config ( ) ;
TDE Config * kconfig = TDEGlobal : : config ( ) ;
if ( kconfig ) {
if ( kconfig ) {
kconfig - > setGroup ( TQString : : fromLatin1 ( " Notification Messages " ) ) ;
kconfig - > setGroup ( TQString : : fromLatin1 ( " Notification Messages " ) ) ;
kconfig - > deleteEntry ( TQString : : fromLatin1 ( " DeleteInvestment " ) ) ;
kconfig - > deleteEntry ( TQString : : fromLatin1 ( " DeleteInvestment " ) ) ;
@ -3777,7 +3777,7 @@ void KMyMoney2App::slotPayeeNew(const TQString& newnameBase, TQString& id)
doit = false ;
doit = false ;
// we should not keep the 'no' setting because that can confuse people like
// we should not keep the 'no' setting because that can confuse people like
// I have seen in some usability tests. So we just delete it right away.
// I have seen in some usability tests. So we just delete it right away.
K Config * kconfig = TDEGlobal : : config ( ) ;
TDE Config * kconfig = TDEGlobal : : config ( ) ;
if ( kconfig ) {
if ( kconfig ) {
kconfig - > setGroup ( TQString : : fromLatin1 ( " Notification Messages " ) ) ;
kconfig - > setGroup ( TQString : : fromLatin1 ( " Notification Messages " ) ) ;
kconfig - > deleteEntry ( dontAskAgain ) ;
kconfig - > deleteEntry ( dontAskAgain ) ;
@ -5751,7 +5751,7 @@ void KMyMoney2App::slotCheckSchedules(void)
void KMyMoney2App : : writeLastUsedDir ( const TQString & directory )
void KMyMoney2App : : writeLastUsedDir ( const TQString & directory )
{
{
//get global config object for our app.
//get global config object for our app.
K Config * kconfig = TDEGlobal : : config ( ) ;
TDE Config * kconfig = TDEGlobal : : config ( ) ;
if ( kconfig )
if ( kconfig )
{
{
kconfig - > setGroup ( " General Options " ) ;
kconfig - > setGroup ( " General Options " ) ;
@ -5764,7 +5764,7 @@ void KMyMoney2App::writeLastUsedDir(const TQString& directory)
void KMyMoney2App : : writeLastUsedFile ( const TQString & fileName )
void KMyMoney2App : : writeLastUsedFile ( const TQString & fileName )
{
{
//get global config object for our app.
//get global config object for our app.
K Config * kconfig = TDEGlobal : : config ( ) ;
TDE Config * kconfig = TDEGlobal : : config ( ) ;
if ( kconfig )
if ( kconfig )
{
{
kconfig - > setGroup ( " General Options " ) ;
kconfig - > setGroup ( " General Options " ) ;
@ -5781,7 +5781,7 @@ TQString KMyMoney2App::readLastUsedDir(void) const
TQString str ;
TQString str ;
//get global config object for our app.
//get global config object for our app.
K Config * kconfig = TDEGlobal : : config ( ) ;
TDE Config * kconfig = TDEGlobal : : config ( ) ;
if ( kconfig )
if ( kconfig )
{
{
kconfig - > setGroup ( " General Options " ) ;
kconfig - > setGroup ( " General Options " ) ;
@ -5801,7 +5801,7 @@ TQString KMyMoney2App::readLastUsedFile(void) const
TQString str ;
TQString str ;
// get global config object for our app.
// get global config object for our app.
K Config * kconfig = TDEGlobal : : config ( ) ;
TDE Config * kconfig = TDEGlobal : : config ( ) ;
if ( kconfig )
if ( kconfig )
{
{
kconfig - > setGroup ( " General Options " ) ;
kconfig - > setGroup ( " General Options " ) ;