Esempio n. 1
0
AnimatedUpdateTrack::AnimatedUpdateTrack( PlaybackAnimatedUpdateItem* item )
{
    m_item = item;
    m_progress = 0;
    m_delayBeforeTrackStarts = 0;
    m_paused = true;
    connect( &m_timer, SIGNAL( timeout() ), this, SLOT( playSlot() ) );
    connect( m_item, SIGNAL( balloonHidden() ), this, SIGNAL( balloonHidden() ) );
    connect( m_item, SIGNAL( balloonShown( GeoDataPlacemark* ) ), this, SIGNAL( balloonShown( GeoDataPlacemark* ) ) );
    connect( m_item, SIGNAL( updated( GeoDataFeature* ) ), this, SIGNAL( updated( GeoDataFeature* ) ) );
    connect( m_item, SIGNAL(added(GeoDataContainer*,GeoDataFeature*,int)), this, SIGNAL( added(GeoDataContainer*,GeoDataFeature*,int)) );
    connect( m_item, SIGNAL(removed(const GeoDataFeature*)), this, SIGNAL(removed(const GeoDataFeature*)) );
}
Esempio n. 2
0
int netanim::AnimatorMode::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QWidget::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: gridLinesSlot((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 1: nodeSizeSlot((*reinterpret_cast< QString(*)>(_a[1]))); break;
        case 2: gridSlot(); break;
        case 3: traceFileOpenSlot(); break;
        case 4: testSlot(); break;
        case 5: playSlot(); break;
        case 6: showNodeIdSlot(); break;
        case 7: updateRateChangedSlot((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 8: updateRateTimeoutSlot(); break;
        case 9: zoomInSlot(); break;
        case 10: zoomOutSlot(); break;
        case 11: showWirelessCirclesSlot(); break;
        case 12: packetStatsSlot(); break;
        case 13: nodePositionStatsSlot(); break;
        case 14: timelineSlot((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 15: pktFilterFromSlot((*reinterpret_cast< QString(*)>(_a[1]))); break;
        case 16: pktFilterToSlot((*reinterpret_cast< QString(*)>(_a[1]))); break;
        case 17: showPacketSlot(); break;
        case 18: precisionSlot(); break;
        case 19: saveSlot(); break;
        case 20: resetSlot(); break;
        case 21: fastFwdSlot(); break;
        case 22: showMetaSlot(); break;
        case 23: packetPersistenceSlot((*reinterpret_cast< QString(*)>(_a[1]))); break;
        case 24: metaFontSizeSlot((*reinterpret_cast< int(*)>(_a[1]))); break;
        default: ;
        }
        _id -= 25;
    }
    return _id;
}
void KUI_project::setupActions()
{
  
  KAction *action = new KAction(this);
  
  action->setIcon(KIcon("edit-delete"));
  action->setText(i18n("&Aim"));
  collection->addAction("aim", action);
  connect(action, SIGNAL(triggered(bool)), this, SLOT(aimSlot()));
  
  
  action = new KAction(this);
  action->setIcon(KIcon("media-record"));
  action->setText(i18n("&Record"));
  connect(action, SIGNAL(triggered(bool)), this, SLOT(recordSlot()));
  collection->addAction("record", action);
  
  
  action = new KAction(this);
  action->setIcon(KIcon("media-playback-start"));
  action->setText(i18n("&Play"));
  connect(action, SIGNAL(triggered(Qt::MouseButtons,Qt::KeyboardModifiers)), this , SLOT(playSlot()));
  collection->addAction("play",action);

  action = new KAction(this);
  action->setIcon(KIcon("media-playback-pause"));
  action->setText(i18n("&Pause"));
  connect(action, SIGNAL(triggered(Qt::MouseButtons,Qt::KeyboardModifiers)), this , SLOT(pauseSlot()));
  collection->addAction("pause",action);
    
  action = new KAction(this);
  action->setIcon(KIcon("media-playback-stop"));
  action->setText(i18n("&Stop"));
  connect(action, SIGNAL(triggered(Qt::MouseButtons,Qt::KeyboardModifiers)), this , SLOT(stopSlot()));
  collection->addAction("stop",action);
 
  action = new KAction(this);
  action->setIcon(KIcon("media-playback-start"));
  action->setText(i18n("&Play"));
  connect(action, SIGNAL(triggered(Qt::MouseButtons,Qt::KeyboardModifiers)), this , SLOT(playAfterPauseSlot()));
  collection->addAction("playAfterPause",action);
  
  action = new KAction(this);
  action->setIcon(KIcon("list-add"));
  action->setText(i18n("&Add"));
  connect(action, SIGNAL(triggered(bool)), this, SLOT(addSlot()));
  collection->addAction("add", action);
  
  action = new KAction(this);
  action->setIcon(KIcon("list-remove"));
  action->setText(i18n("&Remove"));
  connect(action, SIGNAL(triggered(bool)), this, SLOT(removeSlot()));
  collection->addAction("remove", action);
}