void Channel::byteReceived(char byte) { emit gotByte(byte); }
connect( ui->addChannel, SIGNAL(clicked()), this, SLOT(addChannel()) ); connect( ui->deleteChannel, SIGNAL(clicked()), this, SLOT(deleteChannel())); connect( ui->channelEnable, SIGNAL(toggled(bool)), this, SLOT(toggleChannel())); connect( ui->channelSetColor, SIGNAL(clicked()), this, SLOT(setChannelColor()) ); connect( ui->snifferStart, SIGNAL(clicked()), this, SLOT(startSniffingButt()) ); connect( ui->retrStart, SIGNAL(clicked()), this, SLOT(startRetranslatingButt()) ); connect( ui->parserEditDummy, SIGNAL(gotFocus()), this, SLOT(dummyParseLineEditClicked()) ); connect( ui->showPreprocessedButt,SIGNAL(clicked()), this, SLOT(showPreprocessed()) ); connect( ui->parserSetButt, SIGNAL(clicked()), this, SLOT(setParser()) ); connect( ui->parserSetReparseButt,SIGNAL(clicked()), this, SLOT(setParserAndReparse()) ); connect( ui->hideParseEditButt, SIGNAL(clicked()), this, SLOT(parseEditorClosed()) ); connect( &sorter, SIGNAL(gotByte(timestamped_data)), &data_holder, SLOT(receiveByte(timestamped_data)) ); addTestData(); ui->expandedParserCont->hide(); ui->preprocessedParseEditLabel->hide(); ui->preprocessedParseEdit->hide(); ui->portTypeComboBox->setEnabled( false ); ui->channelColor->setAutoFillBackground( true ); setLabelColor( 0, ui->channelColor ); scrollData( last_dx );