|
|
|
@ -59,21 +59,21 @@ TQString kdesvnPart::m_Extratext = "";
|
|
|
|
|
static const char description[] =
|
|
|
|
|
I18N_NOOP("A Subversion Client for KDE (dynamic Part component)");
|
|
|
|
|
|
|
|
|
|
kdesvnPart::kdesvnPart( TQWidget *tqparentWidget, const char *widgetName,
|
|
|
|
|
kdesvnPart::kdesvnPart( TQWidget *parentWidget, const char *widgetName,
|
|
|
|
|
TQObject *tqparent, const char *name , const TQStringList&)
|
|
|
|
|
: KParts::ReadOnlyPart(tqparent, name)
|
|
|
|
|
{
|
|
|
|
|
init(tqparentWidget,widgetName,false);
|
|
|
|
|
init(parentWidget,widgetName,false);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
kdesvnPart::kdesvnPart(TQWidget *tqparentWidget, const char *widgetName,
|
|
|
|
|
kdesvnPart::kdesvnPart(TQWidget *parentWidget, const char *widgetName,
|
|
|
|
|
TQObject *tqparent, const char *name,bool ownapp, const TQStringList&)
|
|
|
|
|
: KParts::ReadOnlyPart(tqparent, name)
|
|
|
|
|
{
|
|
|
|
|
init(tqparentWidget,widgetName,ownapp);
|
|
|
|
|
init(parentWidget,widgetName,ownapp);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void kdesvnPart::init( TQWidget *tqparentWidget, const char *widgetName,bool full)
|
|
|
|
|
void kdesvnPart::init( TQWidget *parentWidget, const char *widgetName,bool full)
|
|
|
|
|
{
|
|
|
|
|
m_aboutDlg = 0;
|
|
|
|
|
KGlobal::locale()->insertCatalogue("kdesvn");
|
|
|
|
@ -82,7 +82,7 @@ void kdesvnPart::init( TQWidget *tqparentWidget, const char *widgetName,bool ful
|
|
|
|
|
m_browserExt = new KdesvnBrowserExtension( this );
|
|
|
|
|
|
|
|
|
|
// this should be your custom internal widget
|
|
|
|
|
m_view = new kdesvnView(actionCollection(),tqparentWidget,widgetName,full);
|
|
|
|
|
m_view = new kdesvnView(actionCollection(),parentWidget,widgetName,full);
|
|
|
|
|
|
|
|
|
|
// notify the part that this is our internal widget
|
|
|
|
|
setWidget(m_view);
|
|
|
|
@ -400,22 +400,22 @@ KInstance* cFactory::s_instance = 0L;
|
|
|
|
|
KAboutData* cFactory::s_about = 0L;
|
|
|
|
|
commandline_part* cFactory::s_cline = 0L;
|
|
|
|
|
|
|
|
|
|
KParts::Part* cFactory::createPartObject( TQWidget *tqparentWidget, const char *widgetName,
|
|
|
|
|
KParts::Part* cFactory::createPartObject( TQWidget *parentWidget, const char *widgetName,
|
|
|
|
|
TQObject *tqparent, const char *name,
|
|
|
|
|
const char *classname, const TQStringList &args )
|
|
|
|
|
{
|
|
|
|
|
Q_UNUSED(classname);
|
|
|
|
|
// Create an instance of our Part
|
|
|
|
|
return new kdesvnPart( tqparentWidget, widgetName, tqparent, name, args );
|
|
|
|
|
return new kdesvnPart( parentWidget, widgetName, tqparent, name, args );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
KParts::Part* cFactory::createAppPart( TQWidget *tqparentWidget, const char *widgetName,
|
|
|
|
|
KParts::Part* cFactory::createAppPart( TQWidget *parentWidget, const char *widgetName,
|
|
|
|
|
TQObject *tqparent, const char *name,
|
|
|
|
|
const char *classname, const TQStringList &args )
|
|
|
|
|
{
|
|
|
|
|
Q_UNUSED(classname);
|
|
|
|
|
// Create an instance of our Part
|
|
|
|
|
kdesvnPart* obj = new kdesvnPart( tqparentWidget, widgetName, tqparent, name, false, args);
|
|
|
|
|
kdesvnPart* obj = new kdesvnPart( parentWidget, widgetName, tqparent, name, false, args);
|
|
|
|
|
emit objectCreated( obj );
|
|
|
|
|
return obj;
|
|
|
|
|
}
|
|
|
|
|