int main(void) { char lcd_text_main[100]; lcd_init(); lcd_drawBackground(20,60,250); lcd_drawBGPersimmon(20, 60, 250); LCD_SetColors(LCD_COLOR_WHITE-1,LCD_COLOR_WHITE); LCD_SetFont(&Font8x12); terminalBufferInitilization(); /* Begin timer period capture example */ TIM2_Initialization(); terminalWrite("Welcome to our termainal .\n"); Delay_1us(1000000); while (1){ sprintf(lcd_text_main,"\nPeriod = %ld us",timebaseCapture_output); terminalWrite(lcd_text_main); Delay_1us(10000); } }
QEMUGUI::QEMUGUI(QWidget *parent) : QMainWindow(parent), currentVM(NULL), runningVM(NULL), ui(new Ui::mainWindow) { ui->setupUi(this); this->isSaveRetrace = false; connect(ui->confTree, SIGNAL(currentItemChanged(QTreeWidgetItem*,QTreeWidgetItem*)), this, SLOT(changeConfigurations(QTreeWidgetItem*,QTreeWidgetItem*))); connect(ui->actionExit, SIGNAL(triggered()), this, SLOT(close())); connect(ui->actionStart, SIGNAL(triggered()), this, SLOT(onExecuteAction())); connect(ui->actionRecord, SIGNAL(triggered()), this, SLOT(onRecordAction())); connect(ui->actionCreate, SIGNAL(triggered()), this, SLOT(on_addConfButton_clicked())); connect(ui->actionDelete, SIGNAL(triggered()), this, SLOT(on_deleteConfButton_clicked())); connect(ui->actionEdit, SIGNAL(triggered()), this, SLOT(on_editButton_clicked())); connect(ui->actionOptions, SIGNAL(triggered()), this, SLOT(showGlobalOptions())); // update totalOptionsLineEdit connect(ui->logFileName, SIGNAL(editingFinished()), this, SLOT(updateControlsState())); connect(ui->snapshotCheckBox, SIGNAL(clicked()), this, SLOT(updateControlsState())); connect(ui->logOptions, SIGNAL(clicked(QModelIndex)), this, SLOT(updateControlsState())); connect(ui->additionalOptions, SIGNAL(editingFinished()), this, SLOT(updateControlsState())); connect(&monitorSocket, SIGNAL(readyRead()), this, SLOT(terminalRead())); connect(ui->terminalInput->lineEdit(), SIGNAL(returnPressed()), this, SLOT(terminalWrite())); loadConfList(); }