freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

基于qt的多媒體車載導(dǎo)航系統(tǒng)畢業(yè)論文(編輯修改稿)

2024-07-21 02:53 本頁(yè)面
 

【文章內(nèi)容簡(jiǎn)介】 izeof( newtio ) )。 |= CLOCAL | CREAD。 amp。= ~CSIZE。 switch( nBits ) { case 7: |= CS7。 break。 case 8: |= CS8。 break。 } switch( nEvent ) { case 39。O39。: |= PARENB。 |= PARODD。 |= (INPCK | ISTRIP)。 break。 case 39。E39。:第 18 頁(yè),共 36 頁(yè) |= (INPCK | ISTRIP)。 |= PARENB。 amp。= ~PARODD。 break。 case 39。N39。: amp。= ~PARENB。 break。 } switch( nSpeed ) { case 2400: cfsetispeed(amp。newtio, B2400)。 break。 case 4800: cfsetispeed(amp。newtio, B4800)。 cfsetospeed(amp。newtio, B4800)。 break。 case 9600: cfsetispeed(amp。newtio, B9600)。 cfsetospeed(amp。newtio, B9600)。 break。 case 115200: cfsetispeed(amp。newtio, B115200)。 cfsetospeed(amp。newtio, B115200)。 break。 case 460800: cfsetispeed(amp。newtio, B460800)。 cfsetospeed(amp。newtio, B460800)。 break。 default: cfsetispeed(amp。newtio, B9600)。 cfsetospeed(amp。newtio, B9600)。 break。 } if( nStop == 1 ) amp。= ~CSTOPB。 else if ( nStop == 2 ) |= CSTOPB。 [VTIME] = 0。 [VMIN] = 100。 tcflush(fd,TCIFLUSH)。 if((tcsetattr(fd,TCSANOW,amp。newtio))!=0) {第 19 頁(yè),共 36 頁(yè) perror( set error)。 return 1。 } return 0。}static FILE *fp = NULL。int initGPS(){ int nset1。 fp = fopen(/dev/ttyUSB0, r)。 if(NULL == fp) { return 1。 } nset1 = set_opt(fileno(fp),4800, 8, 39。N39。, 1)。 if (nset1 == 1) { fclose(fp)。 return 2。 } return 0。}void closeGPS(){ if (fp) { fclose(fp)。 fp = NULL。 }}int getLngLat(float *longitude, float *latitude){ char buf[128]。 char begin[20]。 char SN[2] = {39。\039。}。 char WE[2] = {39。\039。}。 char *flager = ,。 while (1) { memset(buf,39。\039。,128)。 if(NULL == fgets(buf, sizeof(buf), fp)) { return 3。 } memset(begin, 39。\039。, sizeof(begin))。 strcpy(begin, strtok(buf, flager))。第 20 頁(yè),共 36 頁(yè) if(0 == strcmp(begin, $GPRMC)) { strtok(NULL, flager)。 strtok(NULL, flager)。 *latitude = atof(strtok(NULL, flager))。 strcpy(SN, strtok(NULL, flager))。 *longitude = atof(strtok(NULL, flager))。 strcpy(WE, strtok(NULL, flager))。 return 0。 } }}、主界面主窗體通過(guò)五個(gè) pushButton 發(fā)送信號(hào),彈出導(dǎo)航、多媒體、游戲、日歷和電子書五個(gè)窗體。點(diǎn)擊對(duì)應(yīng)選項(xiàng),將分別出現(xiàn)對(duì)應(yīng)的界面。ifndef MAINWINDOW_Hdefine MAINWINDOW_Hinclude QMainWindowinclude QCalendarWidgetinclude include include include include /*namespace Ui { class MainWindow。}*/class MainWindow : public QMainWindow,public Ui::MainWindow{ Q_OBJECTpublic: explicit MainWindow(QWidget *parent = 0)。 ~MainWindow()。public slots: void ShowMplayer()。 void ShowGps()。 void ShowMine()。 void ShowCalendar()。 void ShowEbook()。第 21 頁(yè),共 36 頁(yè)private: //Ui::MainWindow *ui。}。endif // MAINWINDOW_Hinclude MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent){ setupUi(this)。 connect(pushButton_2,SIGNAL(clicked()),this,SLOT(ShowMplayer()))。 connect(pushButton,SIGNAL(clicked()),this,SLOT(ShowGps()))。 connect(pushButton_3,SIGNAL(clicked()),this,SLOT(ShowMine()))。 connect(pushButton_4,SIGNAL(clicked()),this,SLOT(ShowCalendar()))。 connect(pushButton_5,SIGNAL(clicked()),this,SLOT(ShowEbook()))。}MainWindow::~MainWindow(){ //delete ui。}void MainWindow::ShowMplayer(){ mplayer player。 ()。}void MainWindow::ShowGps(){ gps gps。 ()。}void MainWindow::ShowMine(){ minesweeping minesweep。 ()。}void MainWindow::ShowCalendar(){ QWidget *widget = new QWidget()。 widgetsetGeometry(0,0,320,240)。 widgetsetWindowFlags(Qt::FramelessWindowHint)。 QCalendarWidget* calendar = new QCalendarWidget(widget)。 calendarsetGeometry(0,0,320,200)。 QPushButton* quitButton = new QPushButton(back,widget)。 quitButtonsetGeometry(240,210,60,30)。第 22 頁(yè),共 36 頁(yè) QObject::connect(quitButton,SIGNAL(clicked()),widget,SLOT(close()))。 widgetshow()。}void MainWindow::ShowEbook(){ EBook book。 ()。}、地圖窗口地圖導(dǎo)航主要窗口,可在該窗口上進(jìn)行地圖導(dǎo)航,顯示位置等操作。ifndef GPS_Hdefine GPS_Hinclude QDialog//include namespace Ui { class gps。}class gps : public QDialog{ Q_OBJECTpublic: explicit gps(QWidget *parent = 0)。 ~gps()。 int gpsState。 void locate(float lng, float lat)。protected: virtual void timerEvent ( QTimerEvent * event )。private slots: void on_pushButton_clicked()。private: Ui::gps *ui。}。int initGPS()。void closeGPS()。int getLngLat(float *longitude, float *latitude)。endif // GPS_H第 23 頁(yè),共 36 頁(yè)、多媒體播放窗口播放界面,可以播放 MP4 等多媒體文件。ifndef MPLAYER_Hdefine MPLAYER_Hinclude QDialoginclude QTimeinclude QTimerinclude QProcessinclude QDirinclude QIconinclude /*namespace Ui { class mplayer。}*/class mplayer : public QDialog,public Ui::mplayer{ Q_OBJECTpublic: explicit mplayer(QWidget *parent = 0)。 ~mplayer()。 QTime int_to_time(int)。public slots: void play_pause_slots()。 //暫停 void stop_slots()。 //停止 void previous_slots()。 //上一曲 void next_slots()。 //下一曲 void get_time_slots()。 //得到播放時(shí)間 void set_volume_slots(int)。 //設(shè)置音量 void set_sound_slots()。 //靜音 void playerReward_slots()。 //快退 void playerForward_slots()。 //快進(jìn) void back_message_slots()。 //更新顯示信息private: //Ui::mplayer *ui。 QProcess *process。//被用來(lái)啟動(dòng)外部程序并于他們通信 QStringList files
點(diǎn)擊復(fù)制文檔內(nèi)容
物理相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖片鄂ICP備17016276號(hào)-1