Пример #1
0
{
    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 )
}
Пример #2
0
    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
Пример #3
0
    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 )
}
Пример #4
0
    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 )
}


Пример #5
0
}

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

Пример #6
0
}

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 )
}


Пример #7
0
{
}


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 )
}



Пример #8
0
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 )
}

Пример #9
0
	"  #...#...#..#  ",
	"  #...####...#  ",
	"  #...#......#  ",
	"   #..#.....#   ",
	"   #........#   ",
	"    ##....##    ",
	"      ####      "};

    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 )
}
Пример #10
0
{
    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 )
}


Пример #11
0
    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 )
}

Пример #12
0
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 )
}

Пример #13
0
Q_EXPORT_INTERFACE() {
    Q_CREATE_INSTANCE( TodolistPluginImpl );
}
Пример #14
0
}

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 )
}


Пример #15
0
{
    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 )
}
Пример #16
0
 //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

Пример #17
0
    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 )
}

Пример #18
0
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