{ QStringList list; list << "Qt Architect Dialog Files (*.dlg)" ; return list; } QStringList DlgFilter::import( const QString &, const QString& filename ) { Dlg2Ui d; return d.convertQtArchitectDlgFile( filename ); } bool DlgFilter::init() { return TRUE; } void DlgFilter::cleanup() { } bool DlgFilter::canUnload() const { return TRUE; } Q_EXPORT_COMPONENT() { Q_CREATE_INSTANCE( DlgFilter ) }
return qApp->translate( "InputMethods", "Multikey" ); } void KeyboardImpl::onKeyPress( QObject *receiver, const char *slot ) { if ( input ) QObject::connect( input, SIGNAL(key(ushort,ushort,ushort,bool,bool)), receiver, slot ); } #ifndef QT_NO_COMPONENT QRESULT KeyboardImpl::queryInterface( const QUuid &uuid, QUnknownInterface **iface ) { *iface = 0; if ( uuid == IID_QUnknown ) *iface = this; else if ( uuid == IID_InputMethod ) *iface = this; else return QS_FALSE; if ( *iface ) (*iface)->addRef(); return QS_OK; } Q_EXPORT_INTERFACE() { Q_CREATE_INSTANCE( KeyboardImpl ) } #endif
if ( templ == "QMainWindow" ) { MainWindowWizardBase wizard( qApp->mainWidget(), 0, TRUE ); wizard.setAppInterface( aIface, fw, widget ); wizard.exec(); } inUse = FALSE; } QRESULT StandardTemplateWizardInterface::queryInterface( const QUuid& uuid, QUnknownInterface** iface ) { *iface = 0; if ( uuid == IID_QUnknown ) *iface = (QUnknownInterface*)(TemplateWizardInterface*) this; else if ( uuid == IID_QFeatureList ) *iface = (QFeatureListInterface*)this; else if ( uuid == IID_TemplateWizard ) *iface = (TemplateWizardInterface*)this; else if ( uuid == IID_QLibrary ) *iface = (QLibraryInterface*)this; else return QE_NOINTERFACE; (*iface)->addRef(); return QS_OK; } Q_EXPORT_COMPONENT() { Q_CREATE_INSTANCE( StandardTemplateWizardInterface ) }
return qApp->translate( "InputMethods", "Unicode" ); } void UniKeyboardImpl::onKeyPress( QObject *receiver, const char *slot ) { if ( input ) QObject::connect( input, SIGNAL(key(ushort,ushort,ushort,bool,bool)), receiver, slot ); } QRESULT UniKeyboardImpl::queryInterface( const QUuid &uuid, QUnknownInterface **iface ) { *iface = 0; if ( uuid == IID_QUnknown ) *iface = this; else if ( uuid == IID_InputMethod ) *iface = this; else return QS_FALSE; if ( *iface ) (*iface)->addRef(); return QS_OK; } Q_EXPORT_INTERFACE() { Q_CREATE_INSTANCE( UniKeyboardImpl ) }
} void ExampleboardImpl::onKeyPress( QObject *receiver, const char *slot ) { if ( m_pickboard ) QObject::connect( m_pickboard, SIGNAL(key(ushort,ushort,ushort,bool,bool)), receiver, slot ); } #ifndef QT_NO_COMPONENT QRESULT ExampleboardImpl::queryInterface( const QUuid &uuid, QUnknownInterface **iface ) { *iface = 0; if ( uuid == IID_QUnknown ) *iface = this; else if ( uuid == IID_InputMethod ) *iface = this; else return QS_FALSE; if ( *iface ) (*iface)->addRef(); return QS_OK; } Q_EXPORT_INTERFACE() { Q_CREATE_INSTANCE( ExampleboardImpl ) } #endif
} void HomeApplet::activated ( ) { // to desktop (home) QCopEnvelope ( "QPE/Application/qpe", "raise()" ); } QRESULT HomeApplet::queryInterface ( const QUuid &uuid, QUnknownInterface **iface ) { *iface = 0; if ( uuid == IID_QUnknown ) *iface = this; else if ( uuid == IID_MenuApplet ) *iface = this; else return QS_FALSE; if ( *iface ) (*iface)-> addRef ( ); return QS_OK; } Q_EXPORT_INTERFACE( ) { Q_CREATE_INSTANCE( HomeApplet ) }
{ } QRESULT ThemeInterface::queryInterface ( const QUuid &uuid, QUnknownInterface **iface ) { *iface = 0; if ( uuid == IID_QUnknown ) *iface = this; else if ( uuid == IID_Style ) *iface = this; else if ( uuid == IID_StyleExtended ) *iface = this; else return QS_FALSE; if ( *iface ) (*iface)-> addRef ( ); return QS_OK; } Q_EXPORT_INTERFACE() { Q_CREATE_INSTANCE( ThemeInterface ) }
QRESULT PhaseStyleImpl::queryInterface( const QUuid& uuid, QUnknownInterface **iface ) { *iface = 0; if ( uuid == IID_QUnknown || uuid == IID_Style) *iface = this; else return QS_FALSE; (*iface)->addRef(); return QS_OK; } QStyle* PhaseStyleImpl::style() { if (!m_style ) m_style = new PhaseStyle(); return m_style; } QString PhaseStyleImpl::name()const { return qApp->translate("PhaseStyle", "Phase", "Name of the style Phase"); } Q_EXPORT_INTERFACE() { Q_CREATE_INSTANCE( PhaseStyleImpl ) }
" #...#...#..# ", " #...####...# ", " #...#......# ", " #..#.....# ", " #........# ", " ##....## ", " #### "}; if ( !icn ) icn = new QPixmap( (const char **)pix_xpm ); return icn; } /* Connects the signal for key press events from the popup input method to the slot provided by Qtopia server. */ void PopupIMImpl::onKeyPress( QObject *receiver, const char *slot ) { if ( input ) QObject::connect( input, SIGNAL(keyPress(ushort,ushort,ushort,bool,bool)), receiver, slot ); } /* Exports the interface so can be loaded by Qtopia */ Q_EXPORT_INTERFACE() { Q_CREATE_INSTANCE( PopupIMImpl ) }
{ if ( !m_ad ) { m_ad = new AboutWidget( 0, "aboutDialog" ); m_ad->lbVerString->setText(tr("<center><b>The Open Palmtop Integrated Environment v%1</b></center>").arg(QPE_VERSION)); } QPEApplication::showWidget( m_ad ); } QRESULT AboutApplet::queryInterface ( const QUuid &uuid, QUnknownInterface **iface ) { *iface = 0; if ( uuid == IID_QUnknown ) * iface = this; else if ( uuid == IID_MenuApplet ) * iface = this; else return QS_FALSE; if ( *iface ) ( *iface ) -> addRef ( ); return QS_OK; } Q_EXPORT_INTERFACE( ) { Q_CREATE_INSTANCE( AboutApplet ) }
if ( !fresh ) fresh = new FreshStyle(); return fresh; } QString FreshStyleImpl::name() const { return QString("Fresh"); } QRESULT FreshStyleImpl::queryInterface( const QUuid &uuid, QUnknownInterface **iface ) { *iface = 0; if ( uuid == IID_QUnknown ) *iface = this; else if ( uuid == IID_Style ) *iface = this; else return QS_FALSE; if ( *iface ) (*iface)->addRef(); return QS_OK; } Q_EXPORT_INTERFACE() { Q_CREATE_INSTANCE( FreshStyleImpl ) }
void LiquidInterface::reject ( ) { } QRESULT LiquidInterface::queryInterface ( const QUuid &uuid, QUnknownInterface **iface ) { *iface = 0; if ( uuid == IID_QUnknown ) *iface = this; else if ( uuid == IID_Style ) *iface = this; else if ( uuid == IID_StyleExtended ) *iface = this; else return QS_FALSE; if ( *iface ) (*iface)-> addRef ( ); return QS_OK; } Q_EXPORT_INTERFACE() { Q_CREATE_INSTANCE( LiquidInterface ) }
Q_EXPORT_INTERFACE() { Q_CREATE_INSTANCE( TodolistPluginImpl ); }
} void SuspendApplet::activated ( ) { // suspend QCopEnvelope ( "QPE/System", "suspend()" ); } QRESULT SuspendApplet::queryInterface ( const QUuid &uuid, QUnknownInterface **iface ) { *iface = 0; if ( uuid == IID_QUnknown ) *iface = this; else if ( uuid == IID_MenuApplet ) *iface = this; else return QS_FALSE; if ( *iface ) (*iface)-> addRef ( ); return QS_OK; } Q_EXPORT_INTERFACE( ) { Q_CREATE_INSTANCE( SuspendApplet ) }
{ QStringList list; list << "Glade Files (*.glade)" ; return list; } QStringList GladeFilter::import( const QString &, const QString& filename ) { Glade2Ui g; return g.convertGladeFile( filename ); } bool GladeFilter::init() { return TRUE; } void GladeFilter::cleanup() { } bool GladeFilter::canUnload() const { return TRUE; } Q_EXPORT_COMPONENT() { Q_CREATE_INSTANCE( GladeFilter ) }
//input->hide(); } void QPEInputMethodImpl::onKeyPress( QObject *receiver, const char *slot ) { if ( input ) QObject::connect( input, SIGNAL(keyPress(ushort,ushort,ushort,bool,bool)), receiver, slot ); } #ifndef QT_NO_COMPONENT QRESULT QPEInputMethodImpl::queryInterface( const QUuid &uuid, QUnknownInterface** iface) { *iface = 0; if ( uuid == IID_QUnknown ) *iface = this; else if ( uuid == IID_InputMethod ) *iface = this; if ( *iface ) (*iface)->addRef(); return QS_OK; } Q_EXPORT_INTERFACE() { Q_CREATE_INSTANCE( QPEInputMethodImpl ) } #endif
else if ( uuid == IID_LanguageInterface ) *iface = langIface; else if ( uuid == IID_InterpreterInterface ) *iface = interpIface; if ( *iface ) (*iface)->addRef(); return; } unsigned long QuickCoreInterfaceImpl::addRef() { return ref++; } unsigned long QuickCoreInterfaceImpl::release() { if ( !--ref ) { delete this; return 0; } return ref; } Q_EXPORT_INTERFACE() { Q_CREATE_INSTANCE( QuickCoreInterfaceImpl ) }
void SimpleInputMethodImpl::onKeyPress( QObject *receiver, const char *slot ) { if ( input ) QObject::connect( input, SIGNAL(keyPress(ushort,ushort,ushort,bool,bool)), receiver, slot ); } #ifndef QT_NO_COMPONENT //QRESULT SimpleInputMethodImpl::queryInterface( const QUuid &uuid, QUnknownInter face **iface ) QRESULT SimpleInputMethodImpl::queryInterface( const QUuid &uuid, QUnknownInterface** iface) { *iface = 0; if ( uuid == IID_QUnknown ) *iface = this; else if ( uuid == IID_InputMethod ) *iface = this; if ( *iface ) (*iface)->addRef(); return QS_OK; } Q_EXPORT_INTERFACE() { Q_CREATE_INSTANCE( SimpleInputMethodImpl ) } #endif