void
setvideomode(int ax, int bx, int cx, int dx)
{
    if (g_disk_flag)
    {
        enddisk();
    }
    if (videoflag)
    {
        endvideo();
        videoflag = 0;
    }
    g_good_mode = true;
    switch (g_dot_mode)
    {
    case 0:         // text
        clear();
        /*
           touchwin(curwin);
         */
        wrefresh(curwin);
        break;
    case 11:
        startdisk();
        dotwrite = writedisk;
        dotread = readdisk;
        lineread = normalineread;
        linewrite = normaline;
        break;
    case 19:            // X window
        putprompt();
        dotwrite = writevideo;
        dotread = readvideo;
        lineread = readvideoline;
        linewrite = writevideoline;
        videoflag = 1;
        startvideo();
        setforgraphics();
        break;
    default:
        std::printf("Bad mode %d\n", g_dot_mode);
        exit(-1);
    }
    if (g_dot_mode != 0)
    {
        loaddac();
        g_and_color = g_colors - 1;
        g_box_count = 0;
    }
    g_vesa_x_res = g_screen_x_dots;
    g_vesa_y_res = g_screen_y_dots;
}
void content2::button_text(bool pp){

    if(pp == true){
        button->setText("停止录制");
        picture->startvideo();
        emit startvideo(ip_ + "/" + port_);
    }
    else{
        picture->endvideo();
        button->setText("开始录制");
        emit endvideo(ip_ + "/" + port_);
    }
}