Exemple #1
0
void edSignal::load(std::istream &stream, int version, CollectNodes *cn)
{
	edDynamicGeom::load(stream,version,cn);
	read(stream,name);
	setStation(readS(stream).c_str());
	setSignalName(readS(stream).c_str());
	if(version >= 6) setSkinFile(readS(stream).c_str());
}
Exemple #2
0
void MainWindow::updateOwner()
{
    qDebug() << add->record["OPERATOR"] << data->operatorstr;
    setOwner(add->record["OPERATOR"]);
    setQTH(add->record["HOME_QTH"]);
    setGrid(add->record["HOME_GRID"]);
    setStation(add->record["STATION_CALL"]);
}
bool TrainScheduleEngine::updateSourceEvent(const QString& name)
{
	QStringList list = name.split("-");
	QString newStation = list[1];
	int newNb = list[2].toInt();
	int newStart = list[3].toInt();

	setNb(newNb);
	setStart(newStart);
	setStation(newStation);

	request();

	return true;
}
Exemple #4
0
void
Orbit::exitState()
{
  stateManager.clearState();
  
  interfaceContainer->setVisible(false);
  ModuleDock::getSingleton().setActionListener(NULL);

  rGUIManager()->setRootListener(NULL);
    
//   main->getRenderWindow()->removeAllViewports();
  
  setStation(NULL);

  Screen::exitState();
}
PlayableItemWidget::PlayableItemWidget( const RadioStation& rs, const QString& title, const QString& description, QWidget* parent )
    : QPushButton( parent ),
      m_rs(rs),
      m_description( description ),
      m_hovered( false ),
      m_style( DescriptionBottom )
{
    setStation( rs, title, description );

    setAttribute( Qt::WA_LayoutUsesWidgetRect );
    setAttribute( Qt::WA_Hover );
    setAttribute( Qt::WA_MacNoClickThrough );

    setCursor( Qt::PointingHandCursor );

    connect( &RadioService::instance(), SIGNAL(tuningIn(RadioStation)), SLOT(onRadioChanged(RadioStation)) );
    connect( &RadioService::instance(), SIGNAL(trackSpooled(Track)), SLOT(onRadioChanged()));
}