Rename a number of classes to enhance compatibility with KDE4

pull/1/head
Timothy Pearson 12 years ago
parent 7143a99b4f
commit 47bca8a908

@ -16,7 +16,7 @@
<property name="name"> <property name="name">
<cstring>unnamed</cstring> <cstring>unnamed</cstring>
</property> </property>
<widget class="KListView"> <widget class="TDEListView">
<column> <column>
<property name="text"> <property name="text">
<string>Line</string> <string>Line</string>
@ -86,9 +86,9 @@
<connections> <connections>
<connection> <connection>
<sender>m_BlameList</sender> <sender>m_BlameList</sender>
<signal>contextMenu(KListView*,TQListViewItem*,const TQPoint&amp;)</signal> <signal>contextMenu(TDEListView*,TQListViewItem*,const TQPoint&amp;)</signal>
<receiver>BlameDisplay</receiver> <receiver>BlameDisplay</receiver>
<slot>slotContextMenuRequested(KListView*,TQListViewItem*,const TQPoint&amp;)</slot> <slot>slotContextMenuRequested(TDEListView*,TQListViewItem*,const TQPoint&amp;)</slot>
</connection> </connection>
<connection> <connection>
<sender>m_BlameList</sender> <sender>m_BlameList</sender>
@ -101,7 +101,7 @@
<forward>class TQListViewItem;</forward> <forward>class TQListViewItem;</forward>
</forwards> </forwards>
<Q_SLOTS> <Q_SLOTS>
<slot access="protected">slotContextMenuRequested(KListView*,TQListViewItem*, const TQPoint&amp;)</slot> <slot access="protected">slotContextMenuRequested(TDEListView*,TQListViewItem*, const TQPoint&amp;)</slot>
<slot access="protected">slotItemDoubleClicked(TQListViewItem*)</slot> <slot access="protected">slotItemDoubleClicked(TQListViewItem*)</slot>
</Q_SLOTS> </Q_SLOTS>
<layoutdefaults spacing="6" margin="11"/> <layoutdefaults spacing="6" margin="11"/>

@ -93,11 +93,11 @@ protected:
TQTextCodec* LocalizedAnnotatedLine::cc = 0; TQTextCodec* LocalizedAnnotatedLine::cc = 0;
bool LocalizedAnnotatedLine::codec_searched = false; bool LocalizedAnnotatedLine::codec_searched = false;
class BlameDisplayItem:public KListViewItem class BlameDisplayItem:public TDEListViewItem
{ {
public: public:
BlameDisplayItem(KListView*,const svn::AnnotateLine&,bool,BlameDisplay_impl*); BlameDisplayItem(TDEListView*,const svn::AnnotateLine&,bool,BlameDisplay_impl*);
BlameDisplayItem(KListView*,BlameDisplayItem*,const svn::AnnotateLine&,bool,BlameDisplay_impl*); BlameDisplayItem(TDEListView*,BlameDisplayItem*,const svn::AnnotateLine&,bool,BlameDisplay_impl*);
virtual ~BlameDisplayItem(){} virtual ~BlameDisplayItem(){}
virtual int compare(TQListViewItem *i, int col, bool ascending)const; virtual int compare(TQListViewItem *i, int col, bool ascending)const;
virtual void paintCell(TQPainter *p, const TQColorGroup &cg, int column, int width, int alignment); virtual void paintCell(TQPainter *p, const TQColorGroup &cg, int column, int width, int alignment);
@ -128,14 +128,14 @@ protected:
BlameDisplay_impl*cb; BlameDisplay_impl*cb;
}; };
BlameDisplayItem::BlameDisplayItem(KListView*lv,const svn::AnnotateLine&al,bool disp,BlameDisplay_impl*_c) BlameDisplayItem::BlameDisplayItem(TDEListView*lv,const svn::AnnotateLine&al,bool disp,BlameDisplay_impl*_c)
: KListViewItem(lv),m_Content(al),m_disp(disp),cb(_c) : TDEListViewItem(lv),m_Content(al),m_disp(disp),cb(_c)
{ {
display(); display();
} }
BlameDisplayItem::BlameDisplayItem(KListView*lv,BlameDisplayItem*it,const svn::AnnotateLine&al,bool disp,BlameDisplay_impl*_c) BlameDisplayItem::BlameDisplayItem(TDEListView*lv,BlameDisplayItem*it,const svn::AnnotateLine&al,bool disp,BlameDisplay_impl*_c)
: KListViewItem(lv,it),m_Content(al),m_disp(disp),cb(_c) : TDEListViewItem(lv,it),m_Content(al),m_disp(disp),cb(_c)
{ {
display(); display();
} }
@ -145,9 +145,9 @@ BlameDisplayItem::BlameDisplayItem(KListView*lv,BlameDisplayItem*it,const svn::A
int BlameDisplayItem::width (const TQFontMetrics & fm, const TQListView * lv, int c ) const int BlameDisplayItem::width (const TQFontMetrics & fm, const TQListView * lv, int c ) const
{ {
if (c == COL_LINE) { if (c == COL_LINE) {
return KListViewItem::width(TQFontMetrics(TDEGlobalSettings::fixedFont()),lv,c)+2*BORDER; return TDEListViewItem::width(TQFontMetrics(TDEGlobalSettings::fixedFont()),lv,c)+2*BORDER;
} }
return KListViewItem::width(fm,lv,c)+2*BORDER; return TDEListViewItem::width(fm,lv,c)+2*BORDER;
} }
void BlameDisplayItem::display() void BlameDisplayItem::display()
@ -266,7 +266,7 @@ void BlameDisplay_impl::setCb(SimpleLogCb*_cb)
void BlameDisplay_impl::setContent(const TQString&what,const svn::AnnotatedFile&blame) void BlameDisplay_impl::setContent(const TQString&what,const svn::AnnotatedFile&blame)
{ {
m_Data->m_File = what; m_Data->m_File = what;
m_SearchWidget = new KListViewSearchLineWidget(m_BlameList,this); m_SearchWidget = new TDEListViewSearchLineWidget(m_BlameList,this);
EncodingSelector_impl*m_Ls = new EncodingSelector_impl(Kdesvnsettings::locale_for_blame(),this); EncodingSelector_impl*m_Ls = new EncodingSelector_impl(Kdesvnsettings::locale_for_blame(),this);
connect(m_Ls,TQT_SIGNAL(TextCodecChanged(const TQString&)), connect(m_Ls,TQT_SIGNAL(TextCodecChanged(const TQString&)),
this,TQT_SLOT(slotTextCodecChanged(const TQString&))); this,TQT_SLOT(slotTextCodecChanged(const TQString&)));
@ -376,7 +376,7 @@ void BlameDisplay_impl::slotGoLine()
} }
} }
void BlameDisplay_impl::slotContextMenuRequested(KListView*,TQListViewItem*item, const TQPoint&pos) void BlameDisplay_impl::slotContextMenuRequested(TDEListView*,TQListViewItem*item, const TQPoint&pos)
{ {
if (item==0||item->rtti()!=1000) return; if (item==0||item->rtti()!=1000) return;
BlameDisplayItem*bit = static_cast<BlameDisplayItem*>(item); BlameDisplayItem*bit = static_cast<BlameDisplayItem*>(item);

@ -26,7 +26,7 @@
class BlameDisplayData; class BlameDisplayData;
class SimpleLogCb; class SimpleLogCb;
class BlameDisplayItem; class BlameDisplayItem;
class KListViewSearchLineWidget; class TDEListViewSearchLineWidget;
class BlameDisplay_impl:public BlameDisplay class BlameDisplay_impl:public BlameDisplay
{ {
@ -49,13 +49,13 @@ public slots:
virtual void slotShowCurrentCommit(); virtual void slotShowCurrentCommit();
protected slots: protected slots:
virtual void slotContextMenuRequested(KListView*,TQListViewItem*, const TQPoint&); virtual void slotContextMenuRequested(TDEListView*,TQListViewItem*, const TQPoint&);
virtual void slotSelectionChanged(); virtual void slotSelectionChanged();
virtual void slotTextCodecChanged(const TQString&); virtual void slotTextCodecChanged(const TQString&);
protected: protected:
virtual void showCommit(BlameDisplayItem*); virtual void showCommit(BlameDisplayItem*);
KListViewSearchLineWidget* m_SearchWidget; TDEListViewSearchLineWidget* m_SearchWidget;
private: private:
BlameDisplayData*m_Data; BlameDisplayData*m_Data;

@ -47,7 +47,7 @@ const int FileListViewItem::COL_IS_LOCKED = 5;
//const int FileListViewItem::COL_CURRENT_REV = 5; //const int FileListViewItem::COL_CURRENT_REV = 5;
FileListViewItem::FileListViewItem(tdesvnfilelist*_parent,const svn::StatusPtr&_stat) FileListViewItem::FileListViewItem(tdesvnfilelist*_parent,const svn::StatusPtr&_stat)
: KListViewItem(_parent),SvnItem(_stat), : TDEListViewItem(_parent),SvnItem(_stat),
sortChar(0), sortChar(0),
m_Ksvnfilelist(_parent) m_Ksvnfilelist(_parent)
{ {
@ -56,7 +56,7 @@ FileListViewItem::FileListViewItem(tdesvnfilelist*_parent,const svn::StatusPtr&_
} }
FileListViewItem::FileListViewItem(tdesvnfilelist*_parent,FileListViewItem*_parentItem,const svn::StatusPtr&_stat) FileListViewItem::FileListViewItem(tdesvnfilelist*_parent,FileListViewItem*_parentItem,const svn::StatusPtr&_stat)
: KListViewItem(_parentItem),SvnItem(_stat), : TDEListViewItem(_parentItem),SvnItem(_stat),
sortChar(0), sortChar(0),
m_Ksvnfilelist(_parent) m_Ksvnfilelist(_parent)
{ {
@ -87,7 +87,7 @@ void FileListViewItem::setOpen(bool o)
} }
m_Ksvnfilelist->setFocus(); m_Ksvnfilelist->setFocus();
} }
KListViewItem::setOpen(o); TDEListViewItem::setOpen(o);
} }
void FileListViewItem::setOpenNoBlock(bool o) void FileListViewItem::setOpenNoBlock(bool o)
@ -97,7 +97,7 @@ void FileListViewItem::setOpenNoBlock(bool o)
m_Ksvnfilelist->slotItemRead(this); m_Ksvnfilelist->slotItemRead(this);
} }
} }
KListViewItem::setOpen(o); TDEListViewItem::setOpen(o);
} }
FileListViewItem::~FileListViewItem() FileListViewItem::~FileListViewItem()
@ -251,7 +251,7 @@ void FileListViewItem::paintCell(TQPainter *p, const TQColorGroup &cg, int colum
{ {
bool colors = Kdesvnsettings::colored_state(); bool colors = Kdesvnsettings::colored_state();
if (!colors||m_bgColor==NONE) { if (!colors||m_bgColor==NONE) {
KListViewItem::paintCell(p,cg,column,width,alignment); TDEListViewItem::paintCell(p,cg,column,width,alignment);
return; return;
} }
TQColorGroup _cg = cg; TQColorGroup _cg = cg;
@ -285,7 +285,7 @@ void FileListViewItem::paintCell(TQPainter *p, const TQColorGroup &cg, int colum
_bgColor = Kdesvnsettings::color_need_lock(); _bgColor = Kdesvnsettings::color_need_lock();
break; break;
default: default:
KListViewItem::paintCell(p,cg,column,width,alignment); TDEListViewItem::paintCell(p,cg,column,width,alignment);
return; return;
break; break;
} }

@ -34,7 +34,7 @@ class SvnActions;
/** /**
@author Rajko Albrecht @author Rajko Albrecht
*/ */
class FileListViewItem : public KListViewItem,public SvnItem class FileListViewItem : public TDEListViewItem,public SvnItem
{ {
friend class tdesvnfilelist; friend class tdesvnfilelist;
public: public:

@ -2,16 +2,16 @@
#include <klocale.h> #include <klocale.h>
#include <kiconloader.h> #include <kiconloader.h>
PropertyListViewItem::PropertyListViewItem(KListView *parent,const TQString&aName,const TQString&aValue) PropertyListViewItem::PropertyListViewItem(TDEListView *parent,const TQString&aName,const TQString&aValue)
: KListViewItem(parent),m_currentName(aName),m_startName(aName),m_currentValue(aValue),m_startValue(aValue),m_deleted(false) : TDEListViewItem(parent),m_currentName(aName),m_startName(aName),m_currentValue(aValue),m_startValue(aValue),m_deleted(false)
{ {
setMultiLinesEnabled(true); setMultiLinesEnabled(true);
setText(0,startName()); setText(0,startName());
setText(1,startValue()); setText(1,startValue());
} }
PropertyListViewItem::PropertyListViewItem(KListView *parent) PropertyListViewItem::PropertyListViewItem(TDEListView *parent)
: KListViewItem(parent),m_currentName(""),m_startName(""),m_currentValue(""),m_startValue(""),m_deleted(false) : TDEListViewItem(parent),m_currentName(""),m_startName(""),m_currentValue(""),m_startValue(""),m_deleted(false)
{ {
setMultiLinesEnabled(true); setMultiLinesEnabled(true);
setText(0,startName()); setText(0,startName());

@ -6,15 +6,15 @@
class PropertiesDlg; class PropertiesDlg;
class Propertylist; class Propertylist;
class PropertyListViewItem:public KListViewItem class PropertyListViewItem:public TDEListViewItem
{ {
friend class PropertiesDlg; friend class PropertiesDlg;
friend class Propertylist; friend class Propertylist;
public: public:
static const int _RTTI_ = 1001; static const int _RTTI_ = 1001;
PropertyListViewItem(KListView *parent,const TQString&,const TQString&); PropertyListViewItem(TDEListView *parent,const TQString&,const TQString&);
PropertyListViewItem(KListView *parent); PropertyListViewItem(TDEListView *parent);
virtual ~PropertyListViewItem(); virtual ~PropertyListViewItem();
const TQString&startName()const{return m_startName;} const TQString&startName()const{return m_startName;}

@ -26,7 +26,7 @@
Propertylist::Propertylist(TQWidget *parent, const char *name) Propertylist::Propertylist(TQWidget *parent, const char *name)
: KListView(parent, name),m_commitit(false) : TDEListView(parent, name),m_commitit(false)
{ {
addColumn(i18n("Property")); addColumn(i18n("Property"));
addColumn(i18n("Value")); addColumn(i18n("Value"));
@ -76,7 +76,7 @@ void Propertylist::displayList(const svn::PathPropertiesMapListPtr&propList,bool
void Propertylist::clear() void Propertylist::clear()
{ {
KListView::clear(); TDEListView::clear();
} }
/*! /*!

@ -26,7 +26,7 @@
/** /**
@author @author
*/ */
class Propertylist : public KListView class Propertylist : public TDEListView
{ {
Q_OBJECT Q_OBJECT

@ -30,8 +30,8 @@
class RtreeData; class RtreeData;
class TQWidget; class TQWidget;
class KListViewItem; class TDEListViewItem;
class KListView; class TDEListView;
class CContextListener; class CContextListener;
namespace svn namespace svn

@ -37,7 +37,7 @@ void OpenContextmenu::setup()
m_mapPopup.clear(); m_mapPopup.clear();
TDETrader::OfferList::ConstIterator it = m_List.begin(); TDETrader::OfferList::ConstIterator it = m_List.begin();
int id = 1; int id = 1;
KAction*act; TDEAction*act;
for( ; it != m_List.end(); ++it ) { for( ; it != m_List.end(); ++it ) {
if ((*it)->noDisplay()) if ((*it)->noDisplay())
continue; continue;
@ -46,7 +46,7 @@ void OpenContextmenu::setup()
nam.setNum( id ); nam.setNum( id );
TQString actionName( (*it)->name().replace("&", "&&") ); TQString actionName( (*it)->name().replace("&", "&&") );
act = new KAction( actionName, (*it)->pixmap( KIcon::Small ), 0, act = new TDEAction( actionName, (*it)->pixmap( KIcon::Small ), 0,
TQT_TQOBJECT(this), TQT_SLOT( slotRunService() ), TQT_TQOBJECT(this), nam.prepend( "appservice_" ) ); TQT_TQOBJECT(this), TQT_SLOT( slotRunService() ), TQT_TQOBJECT(this), nam.prepend( "appservice_" ) );
act->plug(this); act->plug(this);
m_mapPopup[ id++ ] = *it; m_mapPopup[ id++ ] = *it;
@ -54,7 +54,7 @@ void OpenContextmenu::setup()
if (m_List.count()>0) { if (m_List.count()>0) {
insertSeparator( ); insertSeparator( );
} }
act = new KAction(i18n("Other..."),0, 0, act = new TDEAction(i18n("Other..."),0, 0,
TQT_TQOBJECT(this), TQT_SLOT( slotOpenWith() ),TQT_TQOBJECT(this),"openwith"); TQT_TQOBJECT(this), TQT_SLOT( slotOpenWith() ),TQT_TQOBJECT(this),"openwith");
act->plug(this); act->plug(this);
} }

@ -2338,7 +2338,7 @@ void SvnActions::checkAddItems(const TQString&path,bool print_error_box)
if (rlist.size()==0) { if (rlist.size()==0) {
if (print_error_box) KMessageBox::error(m_Data->m_ParentList->realWidget(),i18n("No unversioned items found.")); if (print_error_box) KMessageBox::error(m_Data->m_ParentList->realWidget(),i18n("No unversioned items found."));
} else { } else {
KListView*ptr; TDEListView*ptr;
KDialogBase * dlg = createDialog(&ptr,i18n("Add unversioned items"),true,"add_items_dlg"); KDialogBase * dlg = createDialog(&ptr,i18n("Add unversioned items"),true,"add_items_dlg");
ptr->addColumn("Item"); ptr->addColumn("Item");
for (unsigned j = 0; j<displist.size();++j) { for (unsigned j = 0; j<displist.size();++j) {

@ -105,7 +105,7 @@
<property name="orientation"> <property name="orientation">
<enum>Horizontal</enum> <enum>Horizontal</enum>
</property> </property>
<widget class="KListView"> <widget class="TDEListView">
<column> <column>
<property name="text"> <property name="text">
<string>1</string> <string>1</string>
@ -198,7 +198,7 @@
<cstring>m_LogDisplay</cstring> <cstring>m_LogDisplay</cstring>
</property> </property>
</widget> </widget>
<widget class="KListView"> <widget class="TDEListView">
<column> <column>
<property name="text"> <property name="text">
<string>Action</string> <string>Action</string>

@ -46,16 +46,16 @@
const char* SvnLogDlgImp::groupName = "log_dialog_size"; const char* SvnLogDlgImp::groupName = "log_dialog_size";
class LogListViewItem:public KListViewItem class LogListViewItem:public TDEListViewItem
{ {
public: public:
LogListViewItem (KListView *parent,const svn::LogEntry&); LogListViewItem (TDEListView *parent,const svn::LogEntry&);
virtual int compare( TQListViewItem* i, int col, bool ascending ) const; virtual int compare( TQListViewItem* i, int col, bool ascending ) const;
static const int COL_MARKER,COL_REV,COL_AUTHOR,COL_DATE,COL_MSG; static const int COL_MARKER,COL_REV,COL_AUTHOR,COL_DATE,COL_MSG;
const TQString&message()const; const TQString&message()const;
svn_revnum_t rev()const{return _revision;} svn_revnum_t rev()const{return _revision;}
void showChangedEntries(KListView*); void showChangedEntries(TDEListView*);
unsigned int numChangedEntries(){return changedPaths.count();} unsigned int numChangedEntries(){return changedPaths.count();}
void setChangedEntries(const svn::LogEntry&); void setChangedEntries(const svn::LogEntry&);
void setRealName(const TQString&_n){_realName=_n;} void setRealName(const TQString&_n){_realName=_n;}
@ -77,10 +77,10 @@ const int LogListViewItem::COL_AUTHOR = 1;
const int LogListViewItem::COL_DATE = 3; const int LogListViewItem::COL_DATE = 3;
const int LogListViewItem::COL_MSG = 4; const int LogListViewItem::COL_MSG = 4;
class LogChangePathItem:public KListViewItem class LogChangePathItem:public TDEListViewItem
{ {
public: public:
LogChangePathItem(KListView*parent,const svn::LogChangePathEntry&); LogChangePathItem(TDEListView*parent,const svn::LogChangePathEntry&);
virtual ~LogChangePathItem(){} virtual ~LogChangePathItem(){}
TQChar action() const{return _action;} TQChar action() const{return _action;}
@ -94,8 +94,8 @@ protected:
svn_revnum_t _revision; svn_revnum_t _revision;
}; };
LogListViewItem::LogListViewItem(KListView*_parent,const svn::LogEntry&_entry) LogListViewItem::LogListViewItem(TDEListView*_parent,const svn::LogEntry&_entry)
: KListViewItem(_parent),_realName(TQString()) : TDEListViewItem(_parent),_realName(TQString())
{ {
setMultiLinesEnabled(false); setMultiLinesEnabled(false);
_revision=_entry.revision; _revision=_entry.revision;
@ -131,7 +131,7 @@ int LogListViewItem::compare( TQListViewItem* item, int col, bool ) const
return text(col).localeAwareCompare(k->text(col)); return text(col).localeAwareCompare(k->text(col));
} }
void LogListViewItem::showChangedEntries(KListView*where) void LogListViewItem::showChangedEntries(TDEListView*where)
{ {
if (!where)return; if (!where)return;
where->clear(); where->clear();
@ -143,8 +143,8 @@ void LogListViewItem::showChangedEntries(KListView*where)
} }
} }
LogChangePathItem::LogChangePathItem(KListView*parent,const svn::LogChangePathEntry&e) LogChangePathItem::LogChangePathItem(TDEListView*parent,const svn::LogChangePathEntry&e)
:KListViewItem(parent) :TDEListViewItem(parent)
{ {
_action = TQChar(e.action); _action = TQChar(e.action);
setText(0,_action); setText(0,_action);

@ -189,8 +189,8 @@ bool KdesvnFileListPrivate::reReadSettings()
_unknown != mdisp_unknown_files); _unknown != mdisp_unknown_files);
} }
tdesvnfilelist::tdesvnfilelist(KActionCollection*aCollect,TQWidget *parent, const char *name) tdesvnfilelist::tdesvnfilelist(TDEActionCollection*aCollect,TQWidget *parent, const char *name)
: KListView(parent, name),ItemDisplay(),m_SvnWrapper(new SvnActions(this)) : TDEListView(parent, name),ItemDisplay(),m_SvnWrapper(new SvnActions(this))
{ {
m_SelectedItems = 0; m_SelectedItems = 0;
m_pList = new KdesvnFileListPrivate; m_pList = new KdesvnFileListPrivate;
@ -256,155 +256,155 @@ svn::Client*tdesvnfilelist::svnclient()
void tdesvnfilelist::setupActions() void tdesvnfilelist::setupActions()
{ {
if (!m_filesAction) return; if (!m_filesAction) return;
KAction*tmp_action; TDEAction*tmp_action;
/* local and remote actions */ /* local and remote actions */
/* 1. actions on dirs AND files */ /* 1. actions on dirs AND files */
//new KAction(i18n("Log..."),"tdesvnlog",KShortcut(SHIFT+CTRL+Key_L),this,TQT_SLOT(slotMakeRangeLog()),m_filesAction,"make_svn_log"); //new TDEAction(i18n("Log..."),"tdesvnlog",TDEShortcut(SHIFT+CTRL+Key_L),this,TQT_SLOT(slotMakeRangeLog()),m_filesAction,"make_svn_log");
new KAction(i18n("Full Log"),"tdesvnlog",KShortcut(CTRL+Key_L),TQT_TQOBJECT(this),TQT_SLOT(slotMakeLog()),m_filesAction,"make_svn_log_full"); new TDEAction(i18n("Full Log"),"tdesvnlog",TDEShortcut(CTRL+Key_L),TQT_TQOBJECT(this),TQT_SLOT(slotMakeLog()),m_filesAction,"make_svn_log_full");
new KAction(i18n("Full revision tree"),"tdesvnlog",KShortcut(CTRL+Key_T),TQT_TQOBJECT(this),TQT_SLOT(slotMakeTree()),m_filesAction,"make_svn_tree"); new TDEAction(i18n("Full revision tree"),"tdesvnlog",TDEShortcut(CTRL+Key_T),TQT_TQOBJECT(this),TQT_SLOT(slotMakeTree()),m_filesAction,"make_svn_tree");
new KAction(i18n("Partial revision tree"),"tdesvnlog",KShortcut(SHIFT+CTRL+Key_T), new TDEAction(i18n("Partial revision tree"),"tdesvnlog",TDEShortcut(SHIFT+CTRL+Key_T),
TQT_TQOBJECT(this),TQT_SLOT(slotMakePartTree()),m_filesAction,"make_svn_partialtree"); TQT_TQOBJECT(this),TQT_SLOT(slotMakePartTree()),m_filesAction,"make_svn_partialtree");
new KAction(i18n("Properties"),"edit", new TDEAction(i18n("Properties"),"edit",
KShortcut(CTRL+Key_P),m_SvnWrapper,TQT_SLOT(slotProperties()),m_filesAction,"make_svn_property"); TDEShortcut(CTRL+Key_P),m_SvnWrapper,TQT_SLOT(slotProperties()),m_filesAction,"make_svn_property");
new KAction(i18n("Display Properties"),"edit", new TDEAction(i18n("Display Properties"),"edit",
KShortcut(SHIFT+CTRL+Key_P),TQT_TQOBJECT(this),TQT_SLOT(slotDisplayProperties()),m_filesAction,"get_svn_property"); TDEShortcut(SHIFT+CTRL+Key_P),TQT_TQOBJECT(this),TQT_SLOT(slotDisplayProperties()),m_filesAction,"get_svn_property");
tmp_action = new KAction(i18n("Display last changes"),"tdesvndiff", tmp_action = new TDEAction(i18n("Display last changes"),"tdesvndiff",
KShortcut(),TQT_TQOBJECT(this),TQT_SLOT(slotDisplayLastDiff()),m_filesAction,"make_last_change"); TDEShortcut(),TQT_TQOBJECT(this),TQT_SLOT(slotDisplayLastDiff()),m_filesAction,"make_last_change");
tmp_action->setToolTip(i18n("Display last changes as difference to previous commit.")); tmp_action->setToolTip(i18n("Display last changes as difference to previous commit."));
m_InfoAction = new KAction(i18n("Details"),"tdesvninfo", m_InfoAction = new TDEAction(i18n("Details"),"tdesvninfo",
KShortcut(CTRL+Key_I),TQT_TQOBJECT(this),TQT_SLOT(slotInfo()),m_filesAction,"make_svn_info"); TDEShortcut(CTRL+Key_I),TQT_TQOBJECT(this),TQT_SLOT(slotInfo()),m_filesAction,"make_svn_info");
m_RenameAction = new KAction(i18n("Move"),"move", m_RenameAction = new TDEAction(i18n("Move"),"move",
KShortcut(Key_F2),TQT_TQOBJECT(this),TQT_SLOT(slotRename()),m_filesAction,"make_svn_rename"); TDEShortcut(Key_F2),TQT_TQOBJECT(this),TQT_SLOT(slotRename()),m_filesAction,"make_svn_rename");
m_CopyAction = new KAction(i18n("Copy"),"tdesvncopy", m_CopyAction = new TDEAction(i18n("Copy"),"tdesvncopy",
KShortcut(CTRL+Key_C),TQT_TQOBJECT(this),TQT_SLOT(slotCopy()),m_filesAction,"make_svn_copy"); TDEShortcut(CTRL+Key_C),TQT_TQOBJECT(this),TQT_SLOT(slotCopy()),m_filesAction,"make_svn_copy");
tmp_action = new KAction(i18n("Check for updates"),"tdesvncheckupdates",KShortcut(),TQT_TQOBJECT(this),TQT_SLOT(slotCheckUpdates()),m_filesAction,"make_check_updates"); tmp_action = new TDEAction(i18n("Check for updates"),"tdesvncheckupdates",TDEShortcut(),TQT_TQOBJECT(this),TQT_SLOT(slotCheckUpdates()),m_filesAction,"make_check_updates");
tmp_action->setToolTip(i18n("Check if current working copy has items with newer version in repository")); tmp_action->setToolTip(i18n("Check if current working copy has items with newer version in repository"));
/* 2. actions only on files */ /* 2. actions only on files */
m_BlameAction = new KAction(i18n("Blame"),"tdesvnblame", m_BlameAction = new TDEAction(i18n("Blame"),"tdesvnblame",
KShortcut(),TQT_TQOBJECT(this),TQT_SLOT(slotBlame()),m_filesAction,"make_svn_blame"); TDEShortcut(),TQT_TQOBJECT(this),TQT_SLOT(slotBlame()),m_filesAction,"make_svn_blame");
m_BlameAction->setToolTip(i18n("Output the content of specified files or URLs with revision and author information in-line.")); m_BlameAction->setToolTip(i18n("Output the content of specified files or URLs with revision and author information in-line."));
m_BlameRangeAction = new KAction(i18n("Blame range"),"tdesvnblame", m_BlameRangeAction = new TDEAction(i18n("Blame range"),"tdesvnblame",
KShortcut(),TQT_TQOBJECT(this),TQT_SLOT(slotRangeBlame()),m_filesAction,"make_svn_range_blame"); TDEShortcut(),TQT_TQOBJECT(this),TQT_SLOT(slotRangeBlame()),m_filesAction,"make_svn_range_blame");
m_BlameRangeAction->setToolTip(i18n("Output the content of specified files or URLs with revision and author information in-line.")); m_BlameRangeAction->setToolTip(i18n("Output the content of specified files or URLs with revision and author information in-line."));
m_CatAction = new KAction(i18n("Cat head"), "tdesvncat", m_CatAction = new TDEAction(i18n("Cat head"), "tdesvncat",
KShortcut(),TQT_TQOBJECT(this),TQT_SLOT(slotCat()),m_filesAction,"make_svn_cat"); TDEShortcut(),TQT_TQOBJECT(this),TQT_SLOT(slotCat()),m_filesAction,"make_svn_cat");
m_CatAction->setToolTip(i18n("Output the content of specified files or URLs.")); m_CatAction->setToolTip(i18n("Output the content of specified files or URLs."));
tmp_action = new KAction(i18n("Cat revision..."),"tdesvncat", tmp_action = new TDEAction(i18n("Cat revision..."),"tdesvncat",
KShortcut(),TQT_TQOBJECT(this),TQT_SLOT(slotRevisionCat()),m_filesAction,"make_revisions_cat"); TDEShortcut(),TQT_TQOBJECT(this),TQT_SLOT(slotRevisionCat()),m_filesAction,"make_revisions_cat");
tmp_action->setToolTip(i18n("Output the content of specified files or URLs at specific revision.")); tmp_action->setToolTip(i18n("Output the content of specified files or URLs at specific revision."));
m_LockAction = new KAction(i18n("Lock current items"),"tdesvnlock", m_LockAction = new TDEAction(i18n("Lock current items"),"tdesvnlock",
KShortcut(),TQT_TQOBJECT(this),TQT_SLOT(slotLock()),m_filesAction,"make_svn_lock"); TDEShortcut(),TQT_TQOBJECT(this),TQT_SLOT(slotLock()),m_filesAction,"make_svn_lock");
m_UnlockAction = new KAction(i18n("Unlock current items"),"tdesvnunlock", m_UnlockAction = new TDEAction(i18n("Unlock current items"),"tdesvnunlock",
KShortcut(),TQT_TQOBJECT(this),TQT_SLOT(slotUnlock()),m_filesAction,"make_svn_unlock"); TDEShortcut(),TQT_TQOBJECT(this),TQT_SLOT(slotUnlock()),m_filesAction,"make_svn_unlock");
/* 3. actions only on dirs */ /* 3. actions only on dirs */
m_MkdirAction = new KAction(i18n("New folder"),"folder_new", m_MkdirAction = new TDEAction(i18n("New folder"),"folder_new",
KShortcut(),TQT_TQOBJECT(this),TQT_SLOT(slotMkdir()),m_filesAction,"make_svn_mkdir"); TDEShortcut(),TQT_TQOBJECT(this),TQT_SLOT(slotMkdir()),m_filesAction,"make_svn_mkdir");
m_switchRepository = new KAction(i18n("Switch repository"),"tdesvnswitch", m_switchRepository = new TDEAction(i18n("Switch repository"),"tdesvnswitch",
KShortcut(), m_SvnWrapper,TQT_SLOT(slotSwitch()),m_filesAction,"make_svn_switch"); TDEShortcut(), m_SvnWrapper,TQT_SLOT(slotSwitch()),m_filesAction,"make_svn_switch");
m_switchRepository->setToolTip(i18n("Switch repository path of current working copy path (\"svn switch\")")); m_switchRepository->setToolTip(i18n("Switch repository path of current working copy path (\"svn switch\")"));
tmp_action = new KAction(i18n("Relocate current working copy url"),"tdesvnrelocate",KShortcut(), tmp_action = new TDEAction(i18n("Relocate current working copy url"),"tdesvnrelocate",TDEShortcut(),
TQT_TQOBJECT(this),TQT_SLOT(slotRelocate()),m_filesAction,"make_svn_relocate"); TQT_TQOBJECT(this),TQT_SLOT(slotRelocate()),m_filesAction,"make_svn_relocate");
tmp_action->setToolTip(i18n("Relocate url of current working copy path to other url")); tmp_action->setToolTip(i18n("Relocate url of current working copy path to other url"));
tmp_action = new KAction(i18n("Check for unversioned items"),"tdesvnaddrecursive",KShortcut(), tmp_action = new TDEAction(i18n("Check for unversioned items"),"tdesvnaddrecursive",TDEShortcut(),
TQT_TQOBJECT(this),TQT_SLOT(slotCheckNewItems()),m_filesAction,"make_check_unversioned"); TQT_TQOBJECT(this),TQT_SLOT(slotCheckNewItems()),m_filesAction,"make_check_unversioned");
tmp_action->setToolTip(i18n("Browse folder for unversioned items and add them if wanted.")); tmp_action->setToolTip(i18n("Browse folder for unversioned items and add them if wanted."));
m_changeToRepository = new KAction(i18n("Open repository of working copy"),"gohome",KShortcut(), m_changeToRepository = new TDEAction(i18n("Open repository of working copy"),"gohome",TDEShortcut(),
TQT_TQOBJECT(this),TQT_SLOT(slotChangeToRepository()),m_filesAction,"make_switch_to_repo"); TQT_TQOBJECT(this),TQT_SLOT(slotChangeToRepository()),m_filesAction,"make_switch_to_repo");
m_changeToRepository->setToolTip(i18n("Opens the repository the current working copy was checked out from")); m_changeToRepository->setToolTip(i18n("Opens the repository the current working copy was checked out from"));
m_CleanupAction = new KAction(i18n("Cleanup"),"tdesvncleanup", m_CleanupAction = new TDEAction(i18n("Cleanup"),"tdesvncleanup",
KShortcut(),TQT_TQOBJECT(this),TQT_SLOT(slotCleanupAction()),m_filesAction,"make_cleanup"); TDEShortcut(),TQT_TQOBJECT(this),TQT_SLOT(slotCleanupAction()),m_filesAction,"make_cleanup");
m_CleanupAction->setToolTip(i18n("Recursively clean up the working copy, removing locks, resuming unfinished operations, etc.")); m_CleanupAction->setToolTip(i18n("Recursively clean up the working copy, removing locks, resuming unfinished operations, etc."));
m_ImportDirsIntoCurrent = new KAction(i18n("Import folders into current"),"fileimport",KShortcut(), m_ImportDirsIntoCurrent = new TDEAction(i18n("Import folders into current"),"fileimport",TDEShortcut(),
TQT_TQOBJECT(this),TQT_SLOT(slotImportDirsIntoCurrent()),m_filesAction,"make_import_dirs_into_current"); TQT_TQOBJECT(this),TQT_SLOT(slotImportDirsIntoCurrent()),m_filesAction,"make_import_dirs_into_current");
m_ImportDirsIntoCurrent->setToolTip(i18n("Import folder content into current url")); m_ImportDirsIntoCurrent->setToolTip(i18n("Import folder content into current url"));
/* local only actions */ /* local only actions */
/* 1. actions on files AND dirs*/ /* 1. actions on files AND dirs*/
m_AddCurrent = new KAction(i18n("Add selected files/dirs"), m_AddCurrent = new TDEAction(i18n("Add selected files/dirs"),
"tdesvnadd",KShortcut(Key_Insert),m_SvnWrapper,TQT_SLOT(slotAdd()),m_filesAction,"make_svn_add"); "tdesvnadd",TDEShortcut(Key_Insert),m_SvnWrapper,TQT_SLOT(slotAdd()),m_filesAction,"make_svn_add");
m_AddCurrent->setToolTip(i18n("Adding selected files and/or directories to repository")); m_AddCurrent->setToolTip(i18n("Adding selected files and/or directories to repository"));
tmp_action = new KAction("Add selected files/dirs recursive", tmp_action = new TDEAction("Add selected files/dirs recursive",
"tdesvnaddrecursive",KShortcut(CTRL+Key_Insert),m_SvnWrapper,TQT_SLOT(slotAddRec()),m_filesAction,"make_svn_addrec"); "tdesvnaddrecursive",TDEShortcut(CTRL+Key_Insert),m_SvnWrapper,TQT_SLOT(slotAddRec()),m_filesAction,"make_svn_addrec");
tmp_action->setToolTip(i18n("Adding selected files and/or directories to repository and all subitems of folders")); tmp_action->setToolTip(i18n("Adding selected files and/or directories to repository and all subitems of folders"));
m_DelCurrent = new KAction(i18n("Delete selected files/dirs"),"tdesvndelete", m_DelCurrent = new TDEAction(i18n("Delete selected files/dirs"),"tdesvndelete",
KShortcut(Key_Delete),TQT_TQOBJECT(this),TQT_SLOT(slotDelete()),m_filesAction,"make_svn_remove"); TDEShortcut(Key_Delete),TQT_TQOBJECT(this),TQT_SLOT(slotDelete()),m_filesAction,"make_svn_remove");
m_DelCurrent->setToolTip(i18n("Deleting selected files and/or directories from repository")); m_DelCurrent->setToolTip(i18n("Deleting selected files and/or directories from repository"));
m_RevertAction = new KAction(i18n("Revert current changes"),"revert", m_RevertAction = new TDEAction(i18n("Revert current changes"),"revert",
KShortcut(),m_SvnWrapper,TQT_SLOT(slotRevert()),m_filesAction,"make_svn_revert"); TDEShortcut(),m_SvnWrapper,TQT_SLOT(slotRevert()),m_filesAction,"make_svn_revert");
m_ResolvedAction = new KAction(i18n("Mark resolved"),KShortcut(), m_ResolvedAction = new TDEAction(i18n("Mark resolved"),TDEShortcut(),
TQT_TQOBJECT(this),TQT_SLOT(slotResolved()),m_filesAction,"make_resolved"); TQT_TQOBJECT(this),TQT_SLOT(slotResolved()),m_filesAction,"make_resolved");
m_ResolvedAction->setToolTip(i18n("Marking files or dirs resolved")); m_ResolvedAction->setToolTip(i18n("Marking files or dirs resolved"));
tmp_action = new KAction(i18n("Resolve conflicts"),KShortcut(), tmp_action = new TDEAction(i18n("Resolve conflicts"),TDEShortcut(),
TQT_TQOBJECT(this),TQT_SLOT(slotTryResolve()),m_filesAction,"make_try_resolve"); TQT_TQOBJECT(this),TQT_SLOT(slotTryResolve()),m_filesAction,"make_try_resolve");
m_IgnoreAction = new KAction(i18n("Ignore/Unignore current item"),KShortcut(),TQT_TQOBJECT(this),TQT_SLOT(slotIgnore()),m_filesAction,"make_svn_ignore"); m_IgnoreAction = new TDEAction(i18n("Ignore/Unignore current item"),TDEShortcut(),TQT_TQOBJECT(this),TQT_SLOT(slotIgnore()),m_filesAction,"make_svn_ignore");
m_UpdateHead = new KAction(i18n("Update to head"),"tdesvnupdate", m_UpdateHead = new TDEAction(i18n("Update to head"),"tdesvnupdate",
KShortcut(),m_SvnWrapper,TQT_SLOT(slotUpdateHeadRec()),m_filesAction,"make_svn_headupdate"); TDEShortcut(),m_SvnWrapper,TQT_SLOT(slotUpdateHeadRec()),m_filesAction,"make_svn_headupdate");
m_UpdateRev = new KAction(i18n("Update to revision..."),"tdesvnupdate", m_UpdateRev = new TDEAction(i18n("Update to revision..."),"tdesvnupdate",
KShortcut(),m_SvnWrapper,TQT_SLOT(slotUpdateTo()),m_filesAction,"make_svn_revupdate"); TDEShortcut(),m_SvnWrapper,TQT_SLOT(slotUpdateTo()),m_filesAction,"make_svn_revupdate");
m_commitAction = new KAction(i18n("Commit"),"tdesvncommit", m_commitAction = new TDEAction(i18n("Commit"),"tdesvncommit",
KShortcut("CTRL+#"),m_SvnWrapper,TQT_SLOT(slotCommit()),m_filesAction,"make_svn_commit"); TDEShortcut("CTRL+#"),m_SvnWrapper,TQT_SLOT(slotCommit()),m_filesAction,"make_svn_commit");
tmp_action = new KAction(i18n("Diff local changes"),"tdesvndiff", tmp_action = new TDEAction(i18n("Diff local changes"),"tdesvndiff",
KShortcut(CTRL+Key_D),TQT_TQOBJECT(this),TQT_SLOT(slotSimpleBaseDiff()),m_filesAction,"make_svn_basediff"); TDEShortcut(CTRL+Key_D),TQT_TQOBJECT(this),TQT_SLOT(slotSimpleBaseDiff()),m_filesAction,"make_svn_basediff");
tmp_action->setToolTip(i18n("Diff working copy against BASE (last checked out version) - doesn't require access to repository")); tmp_action->setToolTip(i18n("Diff working copy against BASE (last checked out version) - doesn't require access to repository"));
tmp_action = new KAction(i18n("Diff against HEAD"),"tdesvndiff", tmp_action = new TDEAction(i18n("Diff against HEAD"),"tdesvndiff",
KShortcut(CTRL+Key_H),TQT_TQOBJECT(this),TQT_SLOT(slotSimpleHeadDiff()),m_filesAction,"make_svn_headdiff"); TDEShortcut(CTRL+Key_H),TQT_TQOBJECT(this),TQT_SLOT(slotSimpleHeadDiff()),m_filesAction,"make_svn_headdiff");
tmp_action->setToolTip(i18n("Diff working copy against HEAD (last checked in version)- requires access to repository")); tmp_action->setToolTip(i18n("Diff working copy against HEAD (last checked in version)- requires access to repository"));
tmp_action = new KAction(i18n("Diff items"),"tdesvndiff", tmp_action = new TDEAction(i18n("Diff items"),"tdesvndiff",
KShortcut(),TQT_TQOBJECT(this),TQT_SLOT(slotDiffPathes()),m_filesAction,"make_svn_itemsdiff"); TDEShortcut(),TQT_TQOBJECT(this),TQT_SLOT(slotDiffPathes()),m_filesAction,"make_svn_itemsdiff");
tmp_action->setToolTip(i18n("Diff two items")); tmp_action->setToolTip(i18n("Diff two items"));
m_MergeRevisionAction = new KAction(i18n("Merge two revisions"),"tdesvnmerge", m_MergeRevisionAction = new TDEAction(i18n("Merge two revisions"),"tdesvnmerge",
KShortcut(),TQT_TQOBJECT(this),TQT_SLOT(slotMergeRevisions()),m_filesAction,"make_svn_merge_revisions"); TDEShortcut(),TQT_TQOBJECT(this),TQT_SLOT(slotMergeRevisions()),m_filesAction,"make_svn_merge_revisions");
m_MergeRevisionAction->setToolTip(i18n("Merge two revisions of this entry into itself")); m_MergeRevisionAction->setToolTip(i18n("Merge two revisions of this entry into itself"));
tmp_action=new KAction(i18n("Merge..."),"tdesvnmerge", tmp_action=new TDEAction(i18n("Merge..."),"tdesvnmerge",
KShortcut(),TQT_TQOBJECT(this),TQT_SLOT(slotMerge()),m_filesAction,"make_svn_merge"); TDEShortcut(),TQT_TQOBJECT(this),TQT_SLOT(slotMerge()),m_filesAction,"make_svn_merge");
tmp_action->setToolTip("Merge repository path into current worky copy path or current repository path into a target"); tmp_action->setToolTip("Merge repository path into current worky copy path or current repository path into a target");
tmp_action=new KAction( i18n( "Open With..." ), 0, TQT_TQOBJECT(this), TQT_SLOT( slotOpenWith() ), m_filesAction, "openwith" ); tmp_action=new TDEAction( i18n( "Open With..." ), 0, TQT_TQOBJECT(this), TQT_SLOT( slotOpenWith() ), m_filesAction, "openwith" );
/* remote actions only */ /* remote actions only */
m_CheckoutCurrentAction = new KAction(i18n("Checkout current repository path"),"tdesvncheckout",KShortcut(), m_CheckoutCurrentAction = new TDEAction(i18n("Checkout current repository path"),"tdesvncheckout",TDEShortcut(),
m_SvnWrapper,TQT_SLOT(slotCheckoutCurrent()),m_filesAction,"make_svn_checkout_current"); m_SvnWrapper,TQT_SLOT(slotCheckoutCurrent()),m_filesAction,"make_svn_checkout_current");
m_ExportCurrentAction = new KAction(i18n("Export current repository path"),"tdesvnexport",KShortcut(), m_ExportCurrentAction = new TDEAction(i18n("Export current repository path"),"tdesvnexport",TDEShortcut(),
m_SvnWrapper,TQT_SLOT(slotExportCurrent()),m_filesAction,"make_svn_export_current"); m_SvnWrapper,TQT_SLOT(slotExportCurrent()),m_filesAction,"make_svn_export_current");
new KAction(i18n("Select browse revision"),KShortcut(),TQT_TQOBJECT(this),TQT_SLOT(slotSelectBrowsingRevision()),m_filesAction,"switch_browse_revision"); new TDEAction(i18n("Select browse revision"),TDEShortcut(),TQT_TQOBJECT(this),TQT_SLOT(slotSelectBrowsingRevision()),m_filesAction,"switch_browse_revision");
/* independe actions */ /* independe actions */
m_CheckoutAction = new KAction(i18n("Checkout a repository"),"tdesvncheckout", m_CheckoutAction = new TDEAction(i18n("Checkout a repository"),"tdesvncheckout",
KShortcut(),m_SvnWrapper,TQT_SLOT(slotCheckout()),m_filesAction,"make_svn_checkout"); TDEShortcut(),m_SvnWrapper,TQT_SLOT(slotCheckout()),m_filesAction,"make_svn_checkout");
m_ExportAction = new KAction(i18n("Export a repository"),"tdesvnexport", m_ExportAction = new TDEAction(i18n("Export a repository"),"tdesvnexport",
KShortcut(),m_SvnWrapper,TQT_SLOT(slotExport()),m_filesAction,"make_svn_export"); TDEShortcut(),m_SvnWrapper,TQT_SLOT(slotExport()),m_filesAction,"make_svn_export");
m_RefreshViewAction = new KAction(i18n("Refresh view"),"reload",KShortcut(Key_F5),TQT_TQOBJECT(this),TQT_SLOT(refreshCurrentTree()),m_filesAction,"make_view_refresh"); m_RefreshViewAction = new TDEAction(i18n("Refresh view"),"reload",TDEShortcut(Key_F5),TQT_TQOBJECT(this),TQT_SLOT(refreshCurrentTree()),m_filesAction,"make_view_refresh");
new KAction(i18n("Diff revisions"),"tdesvndiff",KShortcut(),TQT_TQOBJECT(this),TQT_SLOT(slotDiffRevisions()),m_filesAction,"make_revisions_diff"); new TDEAction(i18n("Diff revisions"),"tdesvndiff",TDEShortcut(),TQT_TQOBJECT(this),TQT_SLOT(slotDiffRevisions()),m_filesAction,"make_revisions_diff");
/* folding options */ /* folding options */
tmp_action = new KAction( i18n("Unfold File Tree"), 0, TQT_TQOBJECT(this) , TQT_SLOT(slotUnfoldTree()), m_filesAction, "view_unfold_tree" ); tmp_action = new TDEAction( i18n("Unfold File Tree"), 0, TQT_TQOBJECT(this) , TQT_SLOT(slotUnfoldTree()), m_filesAction, "view_unfold_tree" );
tmp_action->setToolTip(i18n("Opens all branches of the file tree")); tmp_action->setToolTip(i18n("Opens all branches of the file tree"));
tmp_action = new KAction( i18n("Fold File Tree"), 0, TQT_TQOBJECT(this), TQT_SLOT(slotFoldTree()), m_filesAction, "view_fold_tree" ); tmp_action = new TDEAction( i18n("Fold File Tree"), 0, TQT_TQOBJECT(this), TQT_SLOT(slotFoldTree()), m_filesAction, "view_fold_tree" );
tmp_action->setToolTip(i18n("Closes all branches of the file tree")); tmp_action->setToolTip(i18n("Closes all branches of the file tree"));
/* caching */ /* caching */
tmp_action = new KAction( i18n("Update log cache"),0,TQT_TQOBJECT(this),TQT_SLOT(slotUpdateLogCache()),m_filesAction,"update_log_cache" ); tmp_action = new TDEAction( i18n("Update log cache"),0,TQT_TQOBJECT(this),TQT_SLOT(slotUpdateLogCache()),m_filesAction,"update_log_cache" );
tmp_action->setToolTip(i18n("Update the log cache for current repository")); tmp_action->setToolTip(i18n("Update the log cache for current repository"));
/* tmp_action = new KAction( i18n("Stop update log cache"),0,this,TQT_SLOT(slotUpdateLogCache()),m_filesAction,"stop_update_log_cache" ); /* tmp_action = new TDEAction( i18n("Stop update log cache"),0,this,TQT_SLOT(slotUpdateLogCache()),m_filesAction,"stop_update_log_cache" );
tmp_action->setToolTip(i18n("Stop the update of the log cache")); tmp_action->setToolTip(i18n("Stop the update of the log cache"));
*/ */
@ -412,7 +412,7 @@ void tdesvnfilelist::setupActions()
m_filesAction->setHighlightingEnabled(true); m_filesAction->setHighlightingEnabled(true);
} }
KActionCollection*tdesvnfilelist::filesActions() TDEActionCollection*tdesvnfilelist::filesActions()
{ {
return m_filesAction; return m_filesAction;
} }
@ -876,7 +876,7 @@ void tdesvnfilelist::enableActions()
} }
bool conflicted = single && allSelected()->at(0)->isConflicted(); bool conflicted = single && allSelected()->at(0)->isConflicted();
KAction * temp = 0; TDEAction * temp = 0;
/* local and remote actions */ /* local and remote actions */
/* 1. actions on dirs AND files */ /* 1. actions on dirs AND files */
temp = filesActions()->action("make_svn_log"); temp = filesActions()->action("make_svn_log");
@ -1003,7 +1003,7 @@ void tdesvnfilelist::enableActions()
} }
temp = filesActions()->action("openwith"); temp = filesActions()->action("openwith");
if (temp) { if (temp) {
temp->setEnabled(kapp->authorizeKAction("openwith")&&single&&!dir); temp->setEnabled(kapp->authorizeTDEAction("openwith")&&single&&!dir);
} }
temp = filesActions()->action("update_log_cache"); temp = filesActions()->action("update_log_cache");
@ -1491,7 +1491,7 @@ void tdesvnfilelist::slotContextMenuRequested(TQListViewItem */* _item */, const
TDETrader::OfferList offers; TDETrader::OfferList offers;
OpenContextmenu*me=0; OpenContextmenu*me=0;
KAction*temp = 0; TDEAction*temp = 0;
int id = -1; int id = -1;
@ -1670,7 +1670,7 @@ void tdesvnfilelist::contentsDragMoveEvent( TQDragMoveEvent* event)
void tdesvnfilelist::viewportPaintEvent(TQPaintEvent *ev) void tdesvnfilelist::viewportPaintEvent(TQPaintEvent *ev)
{ {
KListView::viewportPaintEvent(ev); TDEListView::viewportPaintEvent(ev);
if (m_pList->mOldDropHighlighter.isValid() && ev->rect().intersects(m_pList->mOldDropHighlighter)) { if (m_pList->mOldDropHighlighter.isValid() && ev->rect().intersects(m_pList->mOldDropHighlighter)) {
TQPainter painter(viewport()); TQPainter painter(viewport());
style().tqdrawPrimitive(TQStyle::PE_FocusRect, &painter, m_pList->mOldDropHighlighter, colorGroup(), style().tqdrawPrimitive(TQStyle::PE_FocusRect, &painter, m_pList->mOldDropHighlighter, colorGroup(),
@ -2707,12 +2707,12 @@ void tdesvnfilelist::contentsMouseMoveEvent( TQMouseEvent *e )
//beginDrag(); //beginDrag();
} }
} }
KListView::contentsMouseMoveEvent( e ); TDEListView::contentsMouseMoveEvent( e );
} }
void tdesvnfilelist::contentsMousePressEvent(TQMouseEvent*e) void tdesvnfilelist::contentsMousePressEvent(TQMouseEvent*e)
{ {
KListView::contentsMousePressEvent(e); TDEListView::contentsMousePressEvent(e);
m_pList->m_fileTip->setItem(0); m_pList->m_fileTip->setItem(0);
TQPoint p(contentsToViewport( e->pos())); TQPoint p(contentsToViewport( e->pos()));
TQListViewItem *i = itemAt( p ); TQListViewItem *i = itemAt( p );
@ -2731,7 +2731,7 @@ void tdesvnfilelist::contentsMousePressEvent(TQMouseEvent*e)
void tdesvnfilelist::contentsMouseReleaseEvent(TQMouseEvent*e) void tdesvnfilelist::contentsMouseReleaseEvent(TQMouseEvent*e)
{ {
KListView::contentsMouseReleaseEvent(e); TDEListView::contentsMouseReleaseEvent(e);
m_pList->mousePressed = false; m_pList->mousePressed = false;
} }
@ -2742,13 +2742,13 @@ void tdesvnfilelist::contentsWheelEvent( TQWheelEvent * e )
{ {
// when scrolling with mousewheel, stop possible pending filetip // when scrolling with mousewheel, stop possible pending filetip
m_pList->m_fileTip->setItem(0); m_pList->m_fileTip->setItem(0);
KListView::contentsWheelEvent( e ); TDEListView::contentsWheelEvent( e );
} }
void tdesvnfilelist::leaveEvent(TQEvent*e) void tdesvnfilelist::leaveEvent(TQEvent*e)
{ {
m_pList->m_fileTip->setItem( 0 ); m_pList->m_fileTip->setItem( 0 );
KListView::leaveEvent( e ); TDEListView::leaveEvent( e );
} }
void tdesvnfilelist::slotSettingsChanged() void tdesvnfilelist::slotSettingsChanged()
@ -3141,7 +3141,7 @@ void tdesvnfilelist::slotChangeProperties(const svn::PropertiesMap&pm,const TQVa
void tdesvnfilelist::slotUpdateLogCache() void tdesvnfilelist::slotUpdateLogCache()
{ {
if (baseUri().length()>0 && m_SvnWrapper->doNetworking()) { if (baseUri().length()>0 && m_SvnWrapper->doNetworking()) {
KAction*temp = filesActions()->action("update_log_cache"); TDEAction*temp = filesActions()->action("update_log_cache");
if (!m_SvnWrapper->threadRunning(SvnActions::fillcachethread)) { if (!m_SvnWrapper->threadRunning(SvnActions::fillcachethread)) {
m_SvnWrapper->startFillCache(baseUri()); m_SvnWrapper->startFillCache(baseUri());

@ -32,9 +32,9 @@
#include <tqptrlist.h> #include <tqptrlist.h>
#include <tqevent.h> #include <tqevent.h>
class KAction; class TDEAction;
class KActionMenu; class TDEActionMenu;
class KActionCollection; class TDEActionCollection;
class KDialog; class KDialog;
class KDialogBase; class KDialogBase;
class KdesvnFileListPrivate; class KdesvnFileListPrivate;
@ -50,13 +50,13 @@ namespace svn {
/** /**
@author Rajko Albrecht @author Rajko Albrecht
*/ */
class tdesvnfilelist : public KListView,public ItemDisplay class tdesvnfilelist : public TDEListView,public ItemDisplay
{ {
Q_OBJECT Q_OBJECT
friend class FileListViewItem; friend class FileListViewItem;
public: public:
tdesvnfilelist(KActionCollection*,TQWidget *parent = 0, const char *name = 0); tdesvnfilelist(TDEActionCollection*,TQWidget *parent = 0, const char *name = 0);
virtual ~tdesvnfilelist(); virtual ~tdesvnfilelist();
virtual bool openURL( const KURL &url,bool noReinit=false ); virtual bool openURL( const KURL &url,bool noReinit=false );
@ -66,7 +66,7 @@ public:
virtual TQWidget*realWidget(); virtual TQWidget*realWidget();
KActionCollection*filesActions(); TDEActionCollection*filesActions();
bool refreshItem(FileListViewItem*); bool refreshItem(FileListViewItem*);
protected: protected:
@ -74,14 +74,14 @@ protected:
bool m_deletePerfect; bool m_deletePerfect;
TQMap<TQString,bool> m_Dirsread; TQMap<TQString,bool> m_Dirsread;
KActionCollection* m_filesAction; TDEActionCollection* m_filesAction;
KAction*m_BlameAction,*m_BlameRangeAction,*m_CatAction,*m_MkdirAction; TDEAction*m_BlameAction,*m_BlameRangeAction,*m_CatAction,*m_MkdirAction;
KAction*m_InfoAction,*m_commitAction,*m_UpdateHead,*m_UpdateRev; TDEAction*m_InfoAction,*m_commitAction,*m_UpdateHead,*m_UpdateRev;
KAction*m_AddCurrent,*m_DelCurrent,*m_CheckoutAction,*m_CheckoutCurrentAction,*m_RevertAction; TDEAction*m_AddCurrent,*m_DelCurrent,*m_CheckoutAction,*m_CheckoutCurrentAction,*m_RevertAction;
KAction*m_changeToRepository,*m_switchRepository,*m_ExportAction,*m_ExportCurrentAction; TDEAction*m_changeToRepository,*m_switchRepository,*m_ExportAction,*m_ExportCurrentAction;
KAction*m_CleanupAction,*m_ResolvedAction,*m_ImportDirsIntoCurrent,*m_RefreshViewAction,*m_MergeRevisionAction; TDEAction*m_CleanupAction,*m_ResolvedAction,*m_ImportDirsIntoCurrent,*m_RefreshViewAction,*m_MergeRevisionAction;
KAction*m_RenameAction,*m_CopyAction; TDEAction*m_RenameAction,*m_CopyAction;
KAction*m_LockAction,*m_UnlockAction,*m_IgnoreAction; TDEAction*m_LockAction,*m_UnlockAction,*m_IgnoreAction;
SvnActions*m_SvnWrapper; SvnActions*m_SvnWrapper;

@ -87,11 +87,11 @@ tdesvn::tdesvn()
m_BookmarkManager->setShowNSBookmarks(false); m_BookmarkManager->setShowNSBookmarks(false);
m_BookmarkManager->setEditorOptions(TQString::fromLatin1("KDE Svn"),false); m_BookmarkManager->setEditorOptions(TQString::fromLatin1("KDE Svn"),false);
m_BookmarksActionmenu = new KActionMenu(i18n("&Bookmarks"),"bookmark",actionCollection(),"bookmarks"); m_BookmarksActionmenu = new TDEActionMenu(i18n("&Bookmarks"),"bookmark",actionCollection(),"bookmarks");
m_BookmarksActionmenu->setDelayed(false); m_BookmarksActionmenu->setDelayed(false);
m_BookmarksActionmenu->setEnabled(true); m_BookmarksActionmenu->setEnabled(true);
m_Bookmarkactions = new KActionCollection( this ); m_Bookmarkactions = new TDEActionCollection( this );
m_Bookmarkactions->setHighlightingEnabled( true ); m_Bookmarkactions->setHighlightingEnabled( true );
connectActionCollection( m_Bookmarkactions ); connectActionCollection( m_Bookmarkactions );
@ -121,24 +121,24 @@ tdesvn::tdesvn()
// tell the KParts::MainWindow that this is indeed the main widget // tell the KParts::MainWindow that this is indeed the main widget
setCentralWidget(m_part->widget()); setCentralWidget(m_part->widget());
KAction*tmpAction; TDEAction*tmpAction;
tmpAction = new KAction(i18n("Create and open new repository"),"filenew", tmpAction = new TDEAction(i18n("Create and open new repository"),"filenew",
KShortcut(),TQT_TQOBJECT(m_part->widget()),TQT_SLOT(slotCreateRepo()),actionCollection(),"subversion_create_repo"); TDEShortcut(),TQT_TQOBJECT(m_part->widget()),TQT_SLOT(slotCreateRepo()),actionCollection(),"subversion_create_repo");
tmpAction->setToolTip(i18n("Create and opens a new local subversion repository")); tmpAction->setToolTip(i18n("Create and opens a new local subversion repository"));
tmpAction = new KAction(i18n("Dump repository to file"),"filenew", tmpAction = new TDEAction(i18n("Dump repository to file"),"filenew",
KShortcut(),TQT_TQOBJECT(m_part->widget()),TQT_SLOT(slotDumpRepo()),actionCollection(),"subversion_dump_repo"); TDEShortcut(),TQT_TQOBJECT(m_part->widget()),TQT_SLOT(slotDumpRepo()),actionCollection(),"subversion_dump_repo");
tmpAction->setToolTip(i18n("Dump a subversion repository to a file")); tmpAction->setToolTip(i18n("Dump a subversion repository to a file"));
tmpAction = new KAction(i18n("Hotcopy a repository"),"filenew", tmpAction = new TDEAction(i18n("Hotcopy a repository"),"filenew",
KShortcut(),TQT_TQOBJECT(m_part->widget()),TQT_SLOT(slotHotcopy()),actionCollection(),"subversion_hotcopy_repo"); TDEShortcut(),TQT_TQOBJECT(m_part->widget()),TQT_SLOT(slotHotcopy()),actionCollection(),"subversion_hotcopy_repo");
tmpAction->setToolTip(i18n("Hotcopy a subversion repository to a new folder")); tmpAction->setToolTip(i18n("Hotcopy a subversion repository to a new folder"));
tmpAction = new KAction(i18n("Load dump into repository"),"filenew", tmpAction = new TDEAction(i18n("Load dump into repository"),"filenew",
KShortcut(),TQT_TQOBJECT(m_part->widget()),TQT_SLOT(slotLoaddump()),actionCollection(),"subversion_load_repo"); TDEShortcut(),TQT_TQOBJECT(m_part->widget()),TQT_SLOT(slotLoaddump()),actionCollection(),"subversion_load_repo");
tmpAction->setToolTip(i18n("Load a dump file into a repository.")); tmpAction->setToolTip(i18n("Load a dump file into a repository."));
tmpAction = new KAction(i18n("Add ssh identities to ssh-agent"),"password", tmpAction = new TDEAction(i18n("Add ssh identities to ssh-agent"),"password",
KShortcut(),TQT_TQOBJECT(m_part),TQT_SLOT(slotSshAdd()),actionCollection(),"tdesvn_ssh_add"); TDEShortcut(),TQT_TQOBJECT(m_part),TQT_SLOT(slotSshAdd()),actionCollection(),"tdesvn_ssh_add");
tmpAction->setToolTip(i18n("Force add ssh-identities to ssh-agent for future use.")); tmpAction->setToolTip(i18n("Force add ssh-identities to ssh-agent for future use."));
tmpAction = new KAction(i18n("Info about tdesvn part"), "tdesvn", tmpAction = new TDEAction(i18n("Info about tdesvn part"), "tdesvn",
KShortcut(), TQT_TQOBJECT(m_part), TQT_SLOT(showAboutApplication()), actionCollection(), "help_about_tdesvnpart"); TDEShortcut(), TQT_TQOBJECT(m_part), TQT_SLOT(showAboutApplication()), actionCollection(), "help_about_tdesvnpart");
tmpAction->setToolTip(i18n("Shows info about the tdesvn plugin not the standalone app.")); tmpAction->setToolTip(i18n("Shows info about the tdesvn plugin not the standalone app."));
/* enable tooltips in statusbar for menu */ /* enable tooltips in statusbar for menu */
@ -166,7 +166,7 @@ tdesvn::tdesvn()
setAutoSaveSettings(); setAutoSaveSettings();
} }
void tdesvn::connectActionCollection( KActionCollection *coll ) void tdesvn::connectActionCollection( TDEActionCollection *coll )
{ {
if (!coll)return; if (!coll)return;
connect( coll, TQT_SIGNAL( actionStatusText( const TQString & ) ), connect( coll, TQT_SIGNAL( actionStatusText( const TQString & ) ),
@ -175,7 +175,7 @@ void tdesvn::connectActionCollection( KActionCollection *coll )
this, TQT_SLOT( resetStatusBar() ) ); this, TQT_SLOT( resetStatusBar() ) );
} }
void tdesvn::disconnectActionCollection( KActionCollection *coll ) void tdesvn::disconnectActionCollection( TDEActionCollection *coll )
{ {
if (!coll)return; if (!coll)return;
} }
@ -193,11 +193,11 @@ void tdesvn::load(const KURL& url,bool addRescent)
{ {
if (m_part) { if (m_part) {
bool ret = m_part->openURL(url); bool ret = m_part->openURL(url);
KRecentFilesAction*rac = 0; TDERecentFilesAction*rac = 0;
if (addRescent) { if (addRescent) {
KAction * ac = actionCollection()->action("file_open_recent"); TDEAction * ac = actionCollection()->action("file_open_recent");
if (ac) { if (ac) {
rac = (KRecentFilesAction*)ac; rac = (TDERecentFilesAction*)ac;
} }
} }
if (!ret) { if (!ret) {
@ -219,14 +219,14 @@ void tdesvn::load(const KURL& url,bool addRescent)
void tdesvn::setupActions() void tdesvn::setupActions()
{ {
KAction*ac; TDEAction*ac;
KStdAction::open(TQT_TQOBJECT(this), TQT_SLOT(fileOpen()), actionCollection()); KStdAction::open(TQT_TQOBJECT(this), TQT_SLOT(fileOpen()), actionCollection());
KStdAction::openNew(TQT_TQOBJECT(this),TQT_SLOT(fileNew()),actionCollection()); KStdAction::openNew(TQT_TQOBJECT(this),TQT_SLOT(fileNew()),actionCollection());
ac = KStdAction::close(TQT_TQOBJECT(this),TQT_SLOT(fileClose()),actionCollection()); ac = KStdAction::close(TQT_TQOBJECT(this),TQT_SLOT(fileClose()),actionCollection());
ac->setEnabled(getMemberList()->count()>1); ac->setEnabled(getMemberList()->count()>1);
KStdAction::quit(TQT_TQOBJECT(kapp), TQT_SLOT(quit()), actionCollection()); KStdAction::quit(TQT_TQOBJECT(kapp), TQT_SLOT(quit()), actionCollection());
KRecentFilesAction*rac = KStdAction::openRecent(TQT_TQOBJECT(this),TQT_SLOT(loadRescent(const KURL&)),actionCollection()); TDERecentFilesAction*rac = KStdAction::openRecent(TQT_TQOBJECT(this),TQT_SLOT(loadRescent(const KURL&)),actionCollection());
if (rac) if (rac)
{ {
rac->setMaxItems(8); rac->setMaxItems(8);
@ -239,8 +239,8 @@ void tdesvn::setupActions()
m_statusbarAction = KStdAction::showStatusbar(TQT_TQOBJECT(this), TQT_SLOT(optionsShowStatusbar()), actionCollection()); m_statusbarAction = KStdAction::showStatusbar(TQT_TQOBJECT(this), TQT_SLOT(optionsShowStatusbar()), actionCollection());
KToggleAction *toggletemp; TDEToggleAction *toggletemp;
toggletemp = new KToggleAction(i18n("Load last opened URL on start"),KShortcut(), toggletemp = new TDEToggleAction(i18n("Load last opened URL on start"),TDEShortcut(),
actionCollection(),"toggle_load_last_url"); actionCollection(),"toggle_load_last_url");
toggletemp->setToolTip(i18n("Reload last opened url if no one is given on commandline")); toggletemp->setToolTip(i18n("Reload last opened url if no one is given on commandline"));
TDEConfigGroup cs(TDEGlobal::config(),"startup"); TDEConfigGroup cs(TDEGlobal::config(),"startup");
@ -339,7 +339,7 @@ TQString tdesvn::currentURL () const
void tdesvn::enableClose(bool how) void tdesvn::enableClose(bool how)
{ {
KAction * ac; TDEAction * ac;
if ( (ac=actionCollection()->action("file_close"))) { if ( (ac=actionCollection()->action("file_close"))) {
ac->setEnabled(how); ac->setEnabled(how);
} }

@ -30,9 +30,9 @@
#include <kbookmarkmanager.h> #include <kbookmarkmanager.h>
class KURL; class KURL;
class KAction; class TDEAction;
class KActionMenu; class TDEActionMenu;
class KToggleAction; class TDEToggleAction;
class KBookmarkMenu; class KBookmarkMenu;
/** /**
@ -95,17 +95,17 @@ private slots:
private: private:
void setupAccel(); void setupAccel();
void setupActions(); void setupActions();
void connectActionCollection( KActionCollection *coll ); void connectActionCollection( TDEActionCollection *coll );
void disconnectActionCollection( KActionCollection *coll ); void disconnectActionCollection( TDEActionCollection *coll );
KActionMenu *m_FileMenu; TDEActionMenu *m_FileMenu;
TQString m_bookmarkFile; TQString m_bookmarkFile;
KBookmarkManager * m_BookmarkManager; KBookmarkManager * m_BookmarkManager;
KActionMenu* m_BookmarksActionmenu; TDEActionMenu* m_BookmarksActionmenu;
KActionCollection*m_Bookmarkactions; TDEActionCollection*m_Bookmarkactions;
KBookmarkMenu * m_pBookmarkMenu; KBookmarkMenu * m_pBookmarkMenu;
KParts::ReadOnlyPart *m_part; KParts::ReadOnlyPart *m_part;
KToggleAction *m_statusbarAction; TDEToggleAction *m_statusbarAction;
protected slots: protected slots:
virtual void optionsConfigureToolbars(); virtual void optionsConfigureToolbars();

@ -177,42 +177,42 @@ TDEAboutData* tdesvnPart::createAboutData()
*/ */
void tdesvnPart::setupActions() void tdesvnPart::setupActions()
{ {
KToggleAction *toggletemp; TDEToggleAction *toggletemp;
toggletemp = new KToggleAction(i18n("Logs follow node changes"),KShortcut(), toggletemp = new TDEToggleAction(i18n("Logs follow node changes"),TDEShortcut(),
actionCollection(),"toggle_log_follows"); actionCollection(),"toggle_log_follows");
toggletemp->setChecked(Kdesvnsettings::log_follows_nodes()); toggletemp->setChecked(Kdesvnsettings::log_follows_nodes());
connect(toggletemp,TQT_SIGNAL(toggled(bool)),this,TQT_SLOT(slotLogFollowNodes(bool))); connect(toggletemp,TQT_SIGNAL(toggled(bool)),this,TQT_SLOT(slotLogFollowNodes(bool)));
toggletemp = new KToggleAction(i18n("Display ignored files"),KShortcut(), toggletemp = new TDEToggleAction(i18n("Display ignored files"),TDEShortcut(),
actionCollection(),"toggle_ignored_files"); actionCollection(),"toggle_ignored_files");
toggletemp->setChecked(Kdesvnsettings::display_ignored_files()); toggletemp->setChecked(Kdesvnsettings::display_ignored_files());
connect(toggletemp,TQT_SIGNAL(toggled(bool)),this,TQT_SLOT(slotDisplayIgnored(bool))); connect(toggletemp,TQT_SIGNAL(toggled(bool)),this,TQT_SLOT(slotDisplayIgnored(bool)));
toggletemp = new KToggleAction(i18n("Display unknown files"),KShortcut(), toggletemp = new TDEToggleAction(i18n("Display unknown files"),TDEShortcut(),
actionCollection(),"toggle_unknown_files"); actionCollection(),"toggle_unknown_files");
toggletemp->setChecked(Kdesvnsettings::display_unknown_files()); toggletemp->setChecked(Kdesvnsettings::display_unknown_files());
connect(toggletemp,TQT_SIGNAL(toggled(bool)),this,TQT_SLOT(slotDisplayUnkown(bool))); connect(toggletemp,TQT_SIGNAL(toggled(bool)),this,TQT_SLOT(slotDisplayUnkown(bool)));
toggletemp = new KToggleAction(i18n("Hide unchanged files"),KShortcut(), toggletemp = new TDEToggleAction(i18n("Hide unchanged files"),TDEShortcut(),
actionCollection(),"toggle_hide_unchanged_files"); actionCollection(),"toggle_hide_unchanged_files");
toggletemp->setChecked(Kdesvnsettings::hide_unchanged_files()); toggletemp->setChecked(Kdesvnsettings::hide_unchanged_files());
connect(toggletemp,TQT_SIGNAL(toggled(bool)),this,TQT_SLOT(slotHideUnchanged(bool))); connect(toggletemp,TQT_SIGNAL(toggled(bool)),this,TQT_SLOT(slotHideUnchanged(bool)));
toggletemp = new KToggleAction(i18n("Work online"),KShortcut(), toggletemp = new TDEToggleAction(i18n("Work online"),TDEShortcut(),
actionCollection(),"toggle_network"); actionCollection(),"toggle_network");
toggletemp->setChecked(Kdesvnsettings::network_on()); toggletemp->setChecked(Kdesvnsettings::network_on());
connect(toggletemp,TQT_SIGNAL(toggled(bool)),this,TQT_SLOT(slotEnableNetwork(bool))); connect(toggletemp,TQT_SIGNAL(toggled(bool)),this,TQT_SLOT(slotEnableNetwork(bool)));
kdDebug()<<"Appname = " << (TQString)kapp->instanceName() << endl; kdDebug()<<"Appname = " << (TQString)kapp->instanceName() << endl;
KAction * t = KStdAction::preferences(this, TQT_SLOT(slotShowSettings()), actionCollection(),"tdesvnpart_pref"); TDEAction * t = KStdAction::preferences(this, TQT_SLOT(slotShowSettings()), actionCollection(),"tdesvnpart_pref");
t->setText(i18n("&Configure %1...").arg("Kdesvn")); t->setText(i18n("&Configure %1...").arg("Kdesvn"));
if (TQString(kapp->instanceName())!=TQString("tdesvn")) { if (TQString(kapp->instanceName())!=TQString("tdesvn")) {
(void)new KAction(i18n("&About tdesvn part"), "tdesvn", 0, this, TQT_SLOT(showAboutApplication()), actionCollection(), "help_about_tdesvnpart"); (void)new TDEAction(i18n("&About tdesvn part"), "tdesvn", 0, this, TQT_SLOT(showAboutApplication()), actionCollection(), "help_about_tdesvnpart");
(void)new KAction(i18n("Kdesvn &Handbook"), "help", 0, this, TQT_SLOT(appHelpActivated()), actionCollection(), "help_tdesvn"); (void)new TDEAction(i18n("Kdesvn &Handbook"), "help", 0, this, TQT_SLOT(appHelpActivated()), actionCollection(), "help_tdesvn");
(void)new KAction(i18n("Send Bugreport for tdesvn"), 0, 0, this, TQT_SLOT(reportBug()), actionCollection(), "report_bug"); (void)new TDEAction(i18n("Send Bugreport for tdesvn"), 0, 0, this, TQT_SLOT(reportBug()), actionCollection(), "report_bug");
} }
actionCollection()->setHighlightingEnabled(true); actionCollection()->setHighlightingEnabled(true);
} }
@ -375,20 +375,20 @@ void tdesvnPart::slotShowSettings()
*/ */
void tdesvnPart::slotSettingsChanged() void tdesvnPart::slotSettingsChanged()
{ {
KAction * temp; TDEAction * temp;
temp = actionCollection()->action("toggle_log_follows"); temp = actionCollection()->action("toggle_log_follows");
if (temp) { if (temp) {
((KToggleAction*)temp)->setChecked(Kdesvnsettings::log_follows_nodes()); ((TDEToggleAction*)temp)->setChecked(Kdesvnsettings::log_follows_nodes());
} }
temp = actionCollection()->action("toggle_ignored_files"); temp = actionCollection()->action("toggle_ignored_files");
if (temp) { if (temp) {
((KToggleAction*)temp)->setChecked(Kdesvnsettings::display_ignored_files()); ((TDEToggleAction*)temp)->setChecked(Kdesvnsettings::display_ignored_files());
} }
#if 0 #if 0
/// not needed this momenta /// not needed this momenta
temp = actionCollection()->action("toggle_unknown_files"); temp = actionCollection()->action("toggle_unknown_files");
if (temp) { if (temp) {
((KToggleAction*)temp)->setChecked(tdesvnPart_Prefs::self()->mdisp_unknown_files); ((TDEToggleAction*)temp)->setChecked(tdesvnPart_Prefs::self()->mdisp_unknown_files);
} }
#endif #endif
emit settingsChanged(); emit settingsChanged();

@ -58,7 +58,7 @@
#include <kdialogbase.h> #include <kdialogbase.h>
#include <kprogress.h> #include <kprogress.h>
tdesvnView::tdesvnView(KActionCollection*aCollection,TQWidget *parent,const char*name,bool full) tdesvnView::tdesvnView(TDEActionCollection*aCollection,TQWidget *parent,const char*name,bool full)
: TQWidget(parent,name),svn::repository::RepositoryListener(),m_Collection(aCollection), : TQWidget(parent,name),svn::repository::RepositoryListener(),m_Collection(aCollection),
m_currentURL("") m_currentURL("")
{ {

@ -35,7 +35,7 @@ class TQHBoxLayout;
class TQGridLayout; class TQGridLayout;
class TQSpacerItem; class TQSpacerItem;
class TQSplitter; class TQSplitter;
class KActionCollection; class TDEActionCollection;
class KTextBrowser; class KTextBrowser;
class KProgress; class KProgress;
@ -57,7 +57,7 @@ public:
/** /**
* Default constructor * Default constructor
*/ */
tdesvnView(KActionCollection*,TQWidget *parent,const char*name=0,bool full=false); tdesvnView(TDEActionCollection*,TQWidget *parent,const char*name=0,bool full=false);
/** /**
* Destructor * Destructor
@ -127,7 +127,7 @@ protected slots:
protected: protected:
tdesvnfilelist*m_flist; tdesvnfilelist*m_flist;
KActionCollection*m_Collection; TDEActionCollection*m_Collection;
TQSplitter *m_Splitter,*m_infoSplitter; TQSplitter *m_Splitter,*m_infoSplitter;
TQString m_currentURL; TQString m_currentURL;

Loading…
Cancel
Save