예제 #1
0
int main(int argc, char *argv[])
{
    QApplication app(argc, argv);
    SourceWidget window;
    window.show();
    return app.exec();
}
예제 #2
0
int main(int argc, char *argv[])
{
    QApplication app(argc, argv);
    SourceWidget window;
#ifdef Q_OS_SYMBIAN
    window.showMaximized();
#else
    window.show();
#endif
    return app.exec();
}
예제 #3
0
void ChannelsWidget::init()
{
    for( int id = 0; id < xwConf->maxNoSources; ++id )
    {
        SourceWidget* temp =  new SourceWidget( "", id + 1, id );
        sourceWidgets.insert( id + 1, temp );

        connect( temp, SIGNAL( deactivateMeSignal( unsigned int ) ),
                 this, SLOT  ( deactivateChannel ( unsigned int ) ) );
        connect( temp, SIGNAL( nameChanged( unsigned int, const QString& ) ),
                 this, SIGNAL( nameChanged( unsigned int, const QString& ) ) );
        connect( temp, SIGNAL( nameChanged( unsigned int, const QString& ) ),
                 this, SLOT  ( modified   ( unsigned int, const QString& ) ) );
        connect( temp, SIGNAL( colorChanged( unsigned int, const QColor& ) ),
                 this, SIGNAL( colorChanged( unsigned int, const QColor& ) ) );
        connect( temp, SIGNAL( colorChanged( unsigned int, const QColor&)),
                 this, SLOT  ( modified    ( unsigned int, const QColor&)));
        connect( temp, SIGNAL( visibleChanged( unsigned int)),
                 this, SIGNAL( visibleChanged( unsigned int)));
        connect( temp, SIGNAL( dopplerEffectChanged( unsigned int, bool ) ),
                 this, SIGNAL( dopplerEffectChanged( unsigned int, bool ) ) );
        connect( temp, SIGNAL( dopplerEffectChanged( unsigned int, bool ) ),
                 this, SLOT  ( modified               ( unsigned int, bool ) ) );
        connect( temp, SIGNAL( rotationDirectionChanged( unsigned int, bool ) ),
                 this, SIGNAL( rotationDirectionChanged( unsigned int, bool ) ) );
        connect( temp, SIGNAL( rotationDirectionChanged( unsigned int, bool ) ),
                 this, SLOT  ( modified                ( unsigned int, bool ) ) );
        connect( temp, SIGNAL( scalingDirectionChanged( unsigned int, bool ) ),
                 this, SIGNAL( scalingDirectionChanged( unsigned int, bool ) ) );
        connect( temp, SIGNAL( scalingDirectionChanged( unsigned int, bool ) ),
                 this, SLOT  ( modified               ( unsigned int, bool ) ) );
        connect( temp, SIGNAL( typeChanged( unsigned int, bool)),
                 this, SIGNAL( typeChanged( unsigned int, bool)));
        connect( temp, SIGNAL( typeChanged( unsigned int, bool)),
                 this, SLOT  ( modified   ( unsigned int, bool)));
        connect( temp, SIGNAL( sourceIDChanged( unsigned int, int, int)),
                 this, SIGNAL( sourceIDChanged( unsigned int, int, int)));
        connect( temp, SIGNAL( sourceIDChanged( unsigned int, int, int)),
                 this, SLOT  ( modified ( unsigned int, int, int)));
        connect( temp, SIGNAL( recordModeChanged      ( unsigned int, bool)),
                 this, SIGNAL( sourceRecordModeChanged( unsigned int, bool)));
        connect( temp, SIGNAL( readModeChanged      ( unsigned int, bool)),
                 this, SIGNAL( sourceReadModeChanged( unsigned int, bool)));
        connect( temp, SIGNAL( selected      ( unsigned int)),
                 this, SIGNAL( sourceSelected( unsigned int)));

        //delete the spacer and insert it again later
        vLayout->removeItem( vLayout->itemAt( vLayout->count() - 1 ) );
        vLayout->addWidget( temp );
        vLayout->addStretch();
        temp->hide();
    }
}