Rename KShared

pull/1/head
Timothy Pearson 12 years ago
parent 5b6f5139f2
commit 44ff5a3c79

@ -1119,7 +1119,7 @@ void CatalogManagerView::cvsDiff( )
void CatalogManagerView::doCVSCommand( CVS::Command cmd, bool marked, bool templates )
{
KSharedConfig* config = _project->sharedConfig();
TDESharedConfig* config = _project->sharedConfig();
if ( marked ) {
if ( _markerList.isEmpty() ) return;
TQStringList fileList;
@ -1231,7 +1231,7 @@ void CatalogManagerView::svnDiff( )
void CatalogManagerView::doSVNCommand( SVN::Command cmd, bool marked, bool templates )
{
KSharedConfig* config = _project->sharedConfig();
TDESharedConfig* config = _project->sharedConfig();
if ( marked ) {
if ( _markerList.isEmpty() ) return;
TQStringList fileList;

@ -60,7 +60,7 @@
#include "cvsdialog.h"
CVSDialog::CVSDialog( CVS::Command cmd, TQWidget * parent, KSharedConfig* config )
CVSDialog::CVSDialog( CVS::Command cmd, TQWidget * parent, TDESharedConfig* config )
: KDialog( parent, "CVSDIALOG", true ), m_config( config )
{
_cmd = cmd;
@ -373,7 +373,7 @@ TQString CVSDialog::statusOutput( )
void CVSDialog::readSettings( )
{
KSharedConfig * config = m_config;
TDESharedConfig * config = m_config;
config->setGroup( "CVSSupport" );
if ( _cmd == CVS::Commit ) {
@ -404,7 +404,7 @@ void CVSDialog::readSettings( )
void CVSDialog::saveSettings( )
{
KSharedConfig * config = m_config;
TDESharedConfig * config = m_config;
config->setGroup( "CVSSupport" );
if ( _cmd == CVS::Commit ) {
config->writeEntry( "AutoAddFiles", autoAddBox->isChecked( ) );

@ -73,7 +73,7 @@ class CVSDialog : public KDialog
* Constructor for creating the dialog.
* @param cmd The type of command to be executed.
*/
CVSDialog( CVS::Command cmd, TQWidget * parent, KSharedConfig* config );
CVSDialog( CVS::Command cmd, TQWidget * parent, TDESharedConfig* config );
~CVSDialog();
/**
* Set the list of files which will be used for the CVS command.
@ -153,7 +153,7 @@ class CVSDialog : public KDialog
KComboBox* m_encodingComboBox;
/// Configuration data (of the KBabel project)
KSharedConfig* m_config;
TDESharedConfig* m_config;
};
#endif // CVSDIALOG_H

@ -182,7 +182,7 @@ TQString CVSHandler::cvsStatus( const TQString& filename ) const
return map[filename];
}
void CVSHandler::execCVSCommand( TQWidget* parent, CVS::Command cmd, const TQString& filename, bool templates, KSharedConfig* config )
void CVSHandler::execCVSCommand( TQWidget* parent, CVS::Command cmd, const TQString& filename, bool templates, TDESharedConfig* config )
{
if ( !_isPORepository ) {
// This message box should never be visible but who knows... ;-)
@ -221,7 +221,7 @@ void CVSHandler::execCVSCommand( TQWidget* parent, CVS::Command cmd, const TQStr
showDialog( parent, cmd, TQStringList( filename ), command, config );
}
void CVSHandler::execCVSCommand( TQWidget* parent, CVS::Command cmd, const TQStringList& files, bool templates, KSharedConfig* config )
void CVSHandler::execCVSCommand( TQWidget* parent, CVS::Command cmd, const TQStringList& files, bool templates, TDESharedConfig* config )
{
if ( !_isPORepository ) {
// This message box should never be visible but who knows... ;-)
@ -270,7 +270,7 @@ void CVSHandler::setAutoUpdateTemplates( bool update )
_autoUpdateTemplates = update;
}
void CVSHandler::showDialog( TQWidget* parent, CVS::Command cmd, const TQStringList& files, const TQString& commandLine, KSharedConfig* config )
void CVSHandler::showDialog( TQWidget* parent, CVS::Command cmd, const TQStringList& files, const TQString& commandLine, TDESharedConfig* config )
{
CVSDialog * dia = new CVSDialog( cmd, parent, config );
dia->setFiles( files );

@ -46,7 +46,7 @@ class TQString;
class TQStringList;
class TQWidget;
class KSharedConfig;
class TDESharedConfig;
/**
* This class is the backend for CVS support in Catalog Manager.
@ -79,8 +79,8 @@ class CVSHandler : public TQObject
TQString fileStatus( const FileStatus status ) const;
TQString cvsStatus( const TQString& filename ) const;
void execCVSCommand( TQWidget* parent, CVS::Command cmd, const TQString& filename, bool templates, KSharedConfig* config );
void execCVSCommand( TQWidget* parent, CVS::Command cmd, const TQStringList& files, bool templates, KSharedConfig* config );
void execCVSCommand( TQWidget* parent, CVS::Command cmd, const TQString& filename, bool templates, TDESharedConfig* config );
void execCVSCommand( TQWidget* parent, CVS::Command cmd, const TQStringList& files, bool templates, TDESharedConfig* config );
void setAutoUpdateTemplates( bool update );
@ -95,7 +95,7 @@ class CVSHandler : public TQObject
void signalFilesCommitted( const TQStringList& );
private:
void showDialog( TQWidget* parent, CVS::Command cmd, const TQStringList& files, const TQString& commandLine, KSharedConfig* config );
void showDialog( TQWidget* parent, CVS::Command cmd, const TQStringList& files, const TQString& commandLine, TDESharedConfig* config );
void checkToAdd( const TQStringList& files );
void processStatusOutput( const TQString& status );
void processDiff( TQString output );

@ -57,7 +57,7 @@
#include "svndialog.h"
SVNDialog::SVNDialog( SVN::Command cmd, TQWidget * parent, KSharedConfig* config )
SVNDialog::SVNDialog( SVN::Command cmd, TQWidget * parent, TDESharedConfig* config )
: KDialog( parent, "SVN DIALOG", true ), m_tempFile( 0 ), m_config( config )
{
_cmd = cmd;
@ -352,7 +352,7 @@ TQString SVNDialog::statusOutput( )
void SVNDialog::readSettings( )
{
KSharedConfig * config = m_config;
TDESharedConfig * config = m_config;
config->setGroup( "SVNSupport" );
if ( _cmd == SVN::Commit ) {
@ -381,7 +381,7 @@ void SVNDialog::readSettings( )
void SVNDialog::saveSettings( )
{
KSharedConfig * config = m_config;
TDESharedConfig * config = m_config;
config->setGroup( "SVNSupport" );
if ( _cmd == SVN::Commit ) {
config->writeEntry( "AutoAddFiles", autoAddBox->isChecked( ) );

@ -50,7 +50,7 @@ class TQTextEdit;
// Forwarding KDE classes
class TDEProcess;
class KTempFile;
class KSharedConfig;
class TDESharedConfig;
/**
* This class represents the dialog which is used for executing SVN commands
@ -72,7 +72,7 @@ class SVNDialog : public KDialog
* Constructor for creating the dialog.
* @param cmd The type of command to be executed.
*/
SVNDialog( SVN::Command cmd, TQWidget * parent, KSharedConfig* config );
SVNDialog( SVN::Command cmd, TQWidget * parent, TDESharedConfig* config );
~SVNDialog();
/**
* Set the list of files which will be used for the SVN command.
@ -146,7 +146,7 @@ class SVNDialog : public KDialog
KTempFile* m_tempFile;
/// Configuration data (of the KBabel project)
KSharedConfig* m_config;
TDESharedConfig* m_config;
};
#endif // SVNDIALOG_H

@ -274,14 +274,14 @@ TQString SVNHandler::svnStatus( const TQString& filename ) const
return map[filename];
}
void SVNHandler::execSVNCommand( TQWidget* parent, SVN::Command cmd, const TQString& filename, bool templates, KSharedConfig* config)
void SVNHandler::execSVNCommand( TQWidget* parent, SVN::Command cmd, const TQString& filename, bool templates, TDESharedConfig* config)
{
// Unlike cvs, svn works also from outside the repository(as long as the path is in a repository of course!)
// ### FIXME: wrong, svn commit cannot work if the current directory is not a SVN one
execSVNCommand( parent, cmd, TQStringList( filename ), templates, config );
}
void SVNHandler::execSVNCommand( TQWidget* parent, SVN::Command cmd, const TQStringList& files, bool templates, KSharedConfig* config )
void SVNHandler::execSVNCommand( TQWidget* parent, SVN::Command cmd, const TQStringList& files, bool templates, TDESharedConfig* config )
{
if ( !_isPORepository ) {
// This message box should never be visible but who knows... ;-)
@ -336,7 +336,7 @@ void SVNHandler::setAutoUpdateTemplates( bool update )
_autoUpdateTemplates = update;
}
void SVNHandler::showDialog( TQWidget* parent, SVN::Command cmd, const TQStringList& files, const TQString& commandLine, KSharedConfig* config )
void SVNHandler::showDialog( TQWidget* parent, SVN::Command cmd, const TQStringList& files, const TQString& commandLine, TDESharedConfig* config )
{
SVNDialog * dia = new SVNDialog( cmd, parent, config );
dia->setFiles( files );

@ -45,7 +45,7 @@
class TQString;
class TQStringList;
class KSharedConfig;
class TDESharedConfig;
/**
* This class is the backend for SVN support in Catalog Manager.
@ -78,8 +78,8 @@ class SVNHandler : public TQObject
TQString fileStatus( const FileStatus status ) const;
TQString svnStatus( const TQString& filename ) const;
void execSVNCommand( TQWidget* parent, SVN::Command cmd, const TQString& filename, bool templates, KSharedConfig* config );
void execSVNCommand( TQWidget* parent, SVN::Command cmd, const TQStringList& files, bool templates, KSharedConfig* config );
void execSVNCommand( TQWidget* parent, SVN::Command cmd, const TQString& filename, bool templates, TDESharedConfig* config );
void execSVNCommand( TQWidget* parent, SVN::Command cmd, const TQStringList& files, bool templates, TDESharedConfig* config );
void setAutoUpdateTemplates( bool update );
@ -94,7 +94,7 @@ class SVNHandler : public TQObject
void signalFilesCommitted( const TQStringList& );
private:
void showDialog( TQWidget* parent, SVN::Command cmd, const TQStringList& files, const TQString& commandLine, KSharedConfig* config );
void showDialog( TQWidget* parent, SVN::Command cmd, const TQStringList& files, const TQString& commandLine, TDESharedConfig* config );
/// Check quickly if the file is part of a SVN repository
bool isInSvn( const TQString& path );
void checkToAdd( const TQStringList& files );

@ -91,7 +91,7 @@ Project::Project( const TQString& file ) :
}
}
_config = KSharedConfig::openConfig (_filename, false, false);
_config = TDESharedConfig::openConfig (_filename, false, false);
kdDebug (KBABEL) << "Opened project " << _filename << endl;
// read the project name
@ -196,7 +196,7 @@ TDEConfig* Project::config ()
return _config;
}
KSharedConfig* Project::sharedConfig( void )
TDESharedConfig* Project::sharedConfig( void )
{
return _config;
}

@ -43,12 +43,12 @@ namespace KBabel
{
class ProjectSettingsBase;
class KDE_EXPORT Project : public TQObject, public KShared
class KDE_EXPORT Project : public TQObject, public TDEShared
{
Q_OBJECT
public:
typedef KSharedPtr <Project> Ptr;
typedef TDESharedPtr <Project> Ptr;
Project( const TQString& file );
virtual ~Project ();
@ -60,10 +60,10 @@ namespace KBabel
TDEConfig* config ();
/**
* Returns the KSharedConfig pointer of the project data
* Returns the TDESharedConfig pointer of the project data
* @since 1.11.2 (KDE 3.5.2)
*/
KSharedConfig* sharedConfig( void );
TDESharedConfig* sharedConfig( void );
ProjectSettingsBase* settings ();
@ -101,7 +101,7 @@ namespace KBabel
TQString _filename;
TQString _name;
bool _valid;
KSharedConfig::Ptr _config;
TDESharedConfig::Ptr _config;
ProjectSettingsBase* _settings;
};

@ -93,7 +93,7 @@ Project::Ptr ProjectManager::create()
void ProjectManager::remove( Project* ref )
{
kdDebug() << k_funcinfo << " Final remove of project " << (void*) ref << " count remaining: " << ref->_KShared_count() << endl;
kdDebug() << k_funcinfo << " Final remove of project " << (void*) ref << " count remaining: " << ref->_TDEShared_count() << endl;
p_list.remove (ref);
}

@ -157,7 +157,7 @@ KBabelMW::KBabelMW(KBCatalog* catalog, TQString projectFile)
void KBabelMW::init(KBCatalog* catalog)
{
_config = KSharedConfig::openConfig( "kbabelrc" );
_config = TDESharedConfig::openConfig( "kbabelrc" );
_toolsShortcuts.clear();
@ -305,7 +305,7 @@ void KBabelMW::init(KBCatalog* catalog)
connect(m_view, TQT_SIGNAL(signalNewFileOpened(KURL)),
bmHandler, TQT_SLOT(slotClearBookmarks()));
_config = KSharedConfig::openConfig( "kbabelrc" );
_config = TDESharedConfig::openConfig( "kbabelrc" );
restoreSettings();
_config->setGroup("KBabel");

@ -314,7 +314,7 @@ private:
// project file
KBabel::Project::Ptr _project;
KSharedConfig::Ptr _config;
TDESharedConfig::Ptr _config;
KBabel::ProjectDialog* _projectDialog;
TQMap<TQString,TQString> _toolsShortcuts;

@ -133,7 +133,7 @@ KBabelView::KBabelView(KBCatalog* catalog,KBabelMW *parent, Project::Ptr project
_catalog=catalog;
_catalog->registerView(this);
_config = KSharedConfig::openConfig ("kbabelrc");
_config = TDESharedConfig::openConfig ("kbabelrc");
TDEConfigGroupSaver gs(_config,"Editor");
bool buildLeds=! KBabelSettings::ledInStatusbar();

@ -686,7 +686,7 @@ private:
private:
// configuration file
KSharedConfig::Ptr _config;
TDESharedConfig::Ptr _config;
// project file
KBabel::Project::Ptr _project;

@ -45,7 +45,7 @@ KBCatalogView::KBCatalogView(KBCatalog* catalog, TQWidget* parent, Project::Ptr
_catalog=catalog;
_catalog->registerView(this);
_config = KSharedConfig::openConfig ("kbabelrc");
_config = TDESharedConfig::openConfig ("kbabelrc");
_currentIndex=1; // here we use 1 to accept update at opening a file

@ -95,7 +95,7 @@ protected:
uint _currentIndex;
// configuration file
KSharedConfig::Ptr _config;
TDESharedConfig::Ptr _config;
// project file
KBabel::Project::Ptr _project;
};

@ -83,7 +83,7 @@ public:
private:
BugImpl *impl() const { return m_impl; }
KSharedPtr<BugImpl> m_impl;
TDESharedPtr<BugImpl> m_impl;
};
#endif

@ -46,7 +46,7 @@ public:
private:
BugDetailsImpl *impl() const { return m_impl; }
KSharedPtr<BugDetailsImpl> m_impl;
TDESharedPtr<BugDetailsImpl> m_impl;
};
#endif

@ -5,7 +5,7 @@
#include "bugdetailspart.h"
struct BugDetailsImpl : public KShared
struct BugDetailsImpl : public TDEShared
{
public:
BugDetailsImpl( const TQString &_version, const TQString &_source,

@ -7,7 +7,7 @@
#include <kurl.h>
#include <ksharedptr.h>
struct BugImpl : public KShared
struct BugImpl : public TDEShared
{
public:
BugImpl( const TQString &_title, const Person &_submitter, TQString _number,

@ -34,7 +34,7 @@ public:
bool operator<( const Package &rhs ) const;
private:
KSharedPtr<PackageImpl> m_impl;
TDESharedPtr<PackageImpl> m_impl;
};
#endif

@ -7,7 +7,7 @@
#include <kurl.h>
#include <ksharedptr.h>
struct PackageImpl : public KShared
struct PackageImpl : public TDEShared
{
public:
PackageImpl( const TQString &_name, const TQString &_description,

Loading…
Cancel
Save