@ -57,8 +57,8 @@
using namespace Smb4TDEGlobal ;
TDEInstance * Smb4 K ConfigDialogFactory: : m_instance = 0L ;
TDEAboutData * Smb4 K ConfigDialogFactory: : m_about = 0L ;
TDEInstance * Smb4 TDE ConfigDialogFactory: : m_instance = 0L ;
TDEAboutData * Smb4 TDE ConfigDialogFactory: : m_about = 0L ;
// Variables we need to determine if super user entries
// have to be written to /etc/sudoers or /etc/super.tab
@ -74,8 +74,8 @@ bool always_use_su = false;
bool close_dialog = false ;
Smb4 KConfigDialog: : Smb4K ConfigDialog( Smb4KSettings * settings , TQWidget * parent , const char * name )
: K ConfigDialog( parent , name , settings )
Smb4 TDEConfigDialog: : Smb4TDE ConfigDialog( Smb4KSettings * settings , TQWidget * parent , const char * name )
: TDE ConfigDialog( parent , name , settings )
{
// FIXME: I guess, normally we would not need to close destructively,
// but at the moment there are issues with the KURLRequester in file
@ -167,8 +167,8 @@ Smb4KConfigDialog::Smb4KConfigDialog( Smb4KSettings *settings, TQWidget *parent,
addPage ( rsync_options , i18n ( " Synchronization " ) , " bottom " ) ;
addPage ( super_user_options , i18n ( " Super User " ) , " penguin " ) ;
// Stuff that's not managed by K Config XT is loaded by
// Smb4 K ConfigDialog::showEvent()!
// Stuff that's not managed by TDE Config XT is loaded by
// Smb4 TDE ConfigDialog::showEvent()!
// Resize the dialog
setInitialSize ( configDialogSize ( * ( Smb4KSettings : : self ( ) - > config ( ) ) , " ConfigDialog " ) ) ;
@ -188,12 +188,12 @@ Smb4KConfigDialog::Smb4KConfigDialog( Smb4KSettings *settings, TQWidget *parent,
}
Smb4 KConfigDialog: : ~ Smb4K ConfigDialog( )
Smb4 TDEConfigDialog: : ~ Smb4TDE ConfigDialog( )
{
}
void Smb4 K ConfigDialog: : loadCustomSambaOptions ( )
void Smb4 TDE ConfigDialog: : loadCustomSambaOptions ( )
{
// Get the list view:
KListView * custom_list = static_cast < KListView * > ( TQT_TQWIDGET ( child ( " CustomOptionsList " , " KListView " , true ) ) ) ;
@ -389,7 +389,7 @@ void Smb4KConfigDialog::loadCustomSambaOptions()
}
void Smb4 K ConfigDialog: : saveCustomSambaOptions ( )
void Smb4 TDE ConfigDialog: : saveCustomSambaOptions ( )
{
// Get the list view:
KListView * custom_list = static_cast < KListView * > ( TQT_TQWIDGET ( child ( " CustomOptionsList " , " KListView " , true ) ) ) ;
@ -509,7 +509,7 @@ void Smb4KConfigDialog::saveCustomSambaOptions()
}
void Smb4 K ConfigDialog: : loadAuthenticationData ( )
void Smb4 TDE ConfigDialog: : loadAuthenticationData ( )
{
// Load the default login info and put it into the configuration
// page:
@ -533,7 +533,7 @@ void Smb4KConfigDialog::loadAuthenticationData()
}
void Smb4 K ConfigDialog: : saveAuthenticationData ( )
void Smb4 TDE ConfigDialog: : saveAuthenticationData ( )
{
// Read the default login info from the configuration page
// and pass it to the password handler, but only if the wallet
@ -566,7 +566,7 @@ void Smb4KConfigDialog::saveAuthenticationData()
}
bool Smb4 K ConfigDialog: : writeSuperUserEntries ( )
bool Smb4 TDE ConfigDialog: : writeSuperUserEntries ( )
{
TQRadioButton * sudo = static_cast < TQRadioButton * > ( TQT_TQWIDGET ( child ( " SudoButton " , TQRADIOBUTTON_OBJECT_NAME_STRING , true ) ) ) ;
TQRadioButton * super = static_cast < TQRadioButton * > ( TQT_TQWIDGET ( child ( " SuperButton " , TQRADIOBUTTON_OBJECT_NAME_STRING , true ) ) ) ;
@ -638,7 +638,7 @@ bool Smb4KConfigDialog::writeSuperUserEntries()
}
void Smb4 K ConfigDialog: : removeSuperUserEntries ( )
void Smb4 TDE ConfigDialog: : removeSuperUserEntries ( )
{
TQRadioButton * sudo = static_cast < TQRadioButton * > ( TQT_TQWIDGET ( child ( " SudoButton " , TQRADIOBUTTON_OBJECT_NAME_STRING , true ) ) ) ;
TQRadioButton * super = static_cast < TQRadioButton * > ( TQT_TQWIDGET ( child ( " SuperButton " , TQRADIOBUTTON_OBJECT_NAME_STRING , true ) ) ) ;
@ -686,7 +686,7 @@ void Smb4KConfigDialog::removeSuperUserEntries()
}
bool Smb4 K ConfigDialog: : checkSettings ( )
bool Smb4 TDE ConfigDialog: : checkSettings ( )
{
bool ok = true ;
TQString issues = TQString ( ) ;
@ -917,7 +917,7 @@ bool Smb4KConfigDialog::checkSettings()
}
void Smb4 K ConfigDialog: : showEvent ( TQShowEvent * e )
void Smb4 TDE ConfigDialog: : showEvent ( TQShowEvent * e )
{
// Spontaneous show events come from outside the application.
// We do not want to react on them.
@ -933,7 +933,7 @@ void Smb4KConfigDialog::showEvent( TQShowEvent *e )
// TQT_SLOT IMPLEMENTATIONS
/////////////////////////////////////////////////////////////////////////////
void Smb4 K ConfigDialog: : slotApply ( )
void Smb4 TDE ConfigDialog: : slotApply ( )
{
// If some settings are not complete, stop here and give
// the user the opportunity to fill in the needed string(s).
@ -952,14 +952,14 @@ void Smb4KConfigDialog::slotApply()
setEnabled ( false ) ;
}
// The 'Apply' button will be disabled by K ConfigDialog, so we do not
// The 'Apply' button will be disabled by TDE ConfigDialog, so we do not
// need to do it here.
K ConfigDialog: : slotApply ( ) ;
TDE ConfigDialog: : slotApply ( ) ;
}
void Smb4 K ConfigDialog: : slotOk ( )
void Smb4 TDE ConfigDialog: : slotOk ( )
{
// If some settings are not complete, stop here and give
// the user the opportunity to fill in the needed string(s).
@ -978,7 +978,7 @@ void Smb4KConfigDialog::slotOk()
// Smb4KFileIO::finished() signal is received.
if ( ! writeSuperUserEntries ( ) )
{
K ConfigDialog: : slotOk ( ) ;
TDE ConfigDialog: : slotOk ( ) ;
}
else
{
@ -986,14 +986,14 @@ void Smb4KConfigDialog::slotOk()
// is received.
setEnabled ( false ) ;
// Tell Smb4 K ConfigDialog::slotReceivedFileIOFinished()
// Tell Smb4 TDE ConfigDialog::slotReceivedFileIOFinished()
// to close the dialog.
close_dialog = true ;
}
}
void Smb4 K ConfigDialog: : slotCancel ( )
void Smb4 TDE ConfigDialog: : slotCancel ( )
{
// Reset the custom Samba options tab:
Smb4KSambaOptions * samba_options = static_cast < Smb4KSambaOptions * > ( TQT_TQWIDGET ( child ( " SambaOptions " , " Smb4KSambaOptions " , true ) ) ) ;
@ -1003,11 +1003,11 @@ void Smb4KConfigDialog::slotCancel()
samba_options - > resetCustomTab ( ) ;
}
K ConfigDialog: : slotCancel ( ) ;
TDE ConfigDialog: : slotCancel ( ) ;
}
void Smb4 K ConfigDialog: : slotCustomSambaSettingsChanged ( )
void Smb4 TDE ConfigDialog: : slotCustomSambaSettingsChanged ( )
{
// Get the list view and all other input widgets:
KListView * view = static_cast < KListView * > ( TQT_TQWIDGET ( child ( " CustomOptionsList " , " KListView " , true ) ) ) ;
@ -1123,7 +1123,7 @@ void Smb4KConfigDialog::slotCustomSambaSettingsChanged()
}
void Smb4 K ConfigDialog: : slotRemoveSuperUserEntries ( )
void Smb4 TDE ConfigDialog: : slotRemoveSuperUserEntries ( )
{
// Disable this widget until Smb4KFileIO::finished()
// is received.
@ -1133,7 +1133,7 @@ void Smb4KConfigDialog::slotRemoveSuperUserEntries()
}
void Smb4 K ConfigDialog: : slotReceivedFileIOFailed ( )
void Smb4 TDE ConfigDialog: : slotReceivedFileIOFailed ( )
{
# ifdef __linux__
TQCheckBox * force = static_cast < TQCheckBox * > ( TQT_TQWIDGET ( child ( " kcfg_UseForceUnmount " , TQCHECKBOX_OBJECT_NAME_STRING , true ) ) ) ;
@ -1153,14 +1153,14 @@ void Smb4KConfigDialog::slotReceivedFileIOFailed()
}
void Smb4 K ConfigDialog: : slotReceivedFileIOFinished ( )
void Smb4 TDE ConfigDialog: : slotReceivedFileIOFinished ( )
{
// Enable the widget again.
setEnabled ( true ) ;
if ( close_dialog )
{
K ConfigDialog: : slotOk ( ) ;
TDE ConfigDialog: : slotOk ( ) ;
}
}
@ -1169,13 +1169,13 @@ void Smb4KConfigDialog::slotReceivedFileIOFinished()
// FACTORY STUFF
/////////////////////////////////////////////////////////////////////////////
Smb4 KConfigDialogFactory: : Smb4K ConfigDialogFactory( )
Smb4 TDEConfigDialogFactory: : Smb4TDE ConfigDialogFactory( )
: KLibFactory ( )
{
}
Smb4 KConfigDialogFactory: : ~ Smb4K ConfigDialogFactory( )
Smb4 TDEConfigDialogFactory: : ~ Smb4TDE ConfigDialogFactory( )
{
delete m_instance ;
delete m_about ;
@ -1184,11 +1184,11 @@ Smb4KConfigDialogFactory::~Smb4KConfigDialogFactory()
}
TDEInstance * Smb4 K ConfigDialogFactory: : instance ( )
TDEInstance * Smb4 TDE ConfigDialogFactory: : instance ( )
{
if ( ! m_instance )
{
m_about = new TDEAboutData ( " smb4kconfigdialog " , I18N_NOOP ( " Smb4 K ConfigDialog" ) , " 1.0 " ) ;
m_about = new TDEAboutData ( " smb4kconfigdialog " , I18N_NOOP ( " Smb4 TDE ConfigDialog" ) , " 1.0 " ) ;
m_about - > addAuthor ( " Alexander Reinholdt " , 0 , " dustpuppy@users.berlios.de " ) ;
m_about - > setLicense ( TDEAboutData : : License_GPL ) ;
m_instance = new TDEInstance ( m_about ) ;
@ -1198,10 +1198,10 @@ TDEInstance *Smb4KConfigDialogFactory::instance()
}
TQObject * Smb4 K ConfigDialogFactory: : createObject ( TQObject * parent , const char * name , const char * ,
TQObject * Smb4 TDE ConfigDialogFactory: : createObject ( TQObject * parent , const char * name , const char * ,
const TQStringList & )
{
return TQT_TQOBJECT ( new Smb4 K ConfigDialog( Smb4KSettings : : self ( ) , TQT_TQWIDGET ( parent ) , name ) ) ;
return TQT_TQOBJECT ( new Smb4 TDE ConfigDialog( Smb4KSettings : : self ( ) , TQT_TQWIDGET ( parent ) , name ) ) ;
}
@ -1215,7 +1215,7 @@ extern "C"
void * init_libsmb4kconfigdialog ( )
{
TDEGlobal : : locale ( ) - > insertCatalogue ( " smb4k " ) ;
return new Smb4 K ConfigDialogFactory;
return new Smb4 TDE ConfigDialogFactory;
}
}