19#include "KoPartSelectAction.h"
20#include "KoPartSelectDia.h"
24KoPartSelectAction::KoPartSelectAction( const TQString& text, TQObject* parent, const char* name )
30KoPartSelectAction::KoPartSelectAction( const TQString& text, const TQString& icon,
31 TQObject* parent, const char* name )
37KoPartSelectAction::KoPartSelectAction( const TQString& text, const TQString& icon,
38 TQObject* receiver, const char* slot,
39 TQObject* parent, const char* name )
43 connect( this, TQ_SIGNAL( activated() ), receiver, slot );
47void KoPartSelectAction::init()
51 TQValueList<KoDocumentEntry>::Iterator it = m_lstEntries.begin();
52 for( ; it != m_lstEntries.end(); ++it ) {
53 KService::Ptr serv = (*it).service();
54 if (!serv->genericName().isEmpty()) {
56 this, TQ_SLOT( slotActionActivated() ),
57 parentCollection(), serv->name().latin1() );
65void KoPartSelectAction::slotActionActivated()
67 TQString servName = TQString::fromLatin1( sender()-> name() );
68 KService::Ptr serv = KService::serviceByName( servName );
74void KoPartSelectAction::slotActivated()
80#include "KoPartSelectAction.moc"
Represents an available KOffice component that supports the document interface.
static TQValueList< KoDocumentEntry > query(const TQString &_constr=TQString()) This function will query tdesycoca to find all available components.
static KoDocumentEntry selectPart(TQWidget *parent=0L) Convenience function for using the dialog.
TDEAction * action(StdAction act_enum, const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name=0L)
const char * name(StdAction id)
|