• 1.界面部分


            ui->setupUi(this);
            //this->setWindowFlags(Qt::Widget | Qt::CustomizeWindowHint); //保留边框
            this->setWindowFlags(Qt::FramelessWindowHint | windowFlags());
            //this->setWindowFlags(Qt::FramelessWindowHint);// 设置无边框
            //this-> setAttribute(Qt::WA_TranslucentBackground, true);// 背景透明
    //void Widget::stop_sim_btn_slots()
    //{
    //    disconnect(_sceneCtrl,&SceneCtrl::animation_finished,this, &Widget::animation_finished_slot);
    //    _interactivity_queue.clear();
    //    bool flag = _business_manager->execute_ctrl_oper(eCtrlCmd_stop);
    //    if(flag == true)
    //    {
    //        //控制端离线
    //        offlineHandle((int)eSimulator_controller);
    //        _data_queue.push("stop simulation.");
    //        LogIns->log<eLog_info>(LOCATION,"stop simulation.");
    //        _ctr_cmd_type = eCtrlCmd_stop;//操作类型更新
    
    //        ui->progressBar->setEnabled(false);  //progressbar状态设置
    
    //        _fed_sync_set.clear();  //联邦同步消息集合清空
    //        _timeCount = 0;  //控制命令应答计数清空
    //        _ctrl_cmd_rep_set.clear();//清除控制命令应答数组所有元素
    //        _sim_device_online_set.clear();  //仿真器件在线数组清空
    
    //        ui->timeSynRadioBtn->setEnabled(true);
    //        ui->eventSynRadioBtn->setEnabled(true);
    //        ui->lineEdit_SimTime->setEnabled(true);
    //        ui->lineEdit_CtrlPeriod->setEnabled(true);
    //        ui->comboBoxAlgEngType->setEnabled(true);
    //        ui->comboBoxInfraType->setEnabled(true);
    //        ui->lineEdit_CfgFile->setEnabled(true);
    //        ui->importFileBtn->setEnabled(true);
    
    //        //结束按钮操作后 操作按钮状态
    //        ui->initBtn->setEnabled(true);
    //        ui->startSimBtn->setEnabled(false);
    //        ui->pauseSimBtn->setEnabled(false);
    //        ui->endSimBtn->setEnabled(false);
    //        //结束波纹
    //        _sceneCtrl->stop_wave_animation(eSimulator_power_device);
    //        _sceneCtrl->stop_wave_animation(eSimulator_communication_device);
    //        _sceneCtrl->stop_wave_animation(eSimulator_power_application_device);
    
    //    }
    //    else
    //    {
    //        //progress_log("stop simulation failed.");
    //        _data_queue.push("stop simulation failed.");
    //        LogIns->log<eLog_error>(LOCATION,"stop simulation failed.");
    //    }
    
    //    std::this_thread::sleep_for(std::chrono::milliseconds(1000));
    //    bool flag1 = _business_manager->execute_exit_oper();
    //    killOtherExe();
    //}
  • 相关阅读:
    版本控制
    1121 Reverse the lights(“玲珑杯”线上赛 Round #15 河南专场)
    LightOJ 1055
    LightOJ 1053
    LightOJ 1052
    4512 吉哥系列故事——完美队形I(LCIS)
    ZOJ 2432-Greatest Common Increasing Subsequence
    病毒 (湖南省第八届大学生计算机程序设计竞赛)
    1328 台球碰撞 (湖南省第六届大学生计算机程序设计竞赛)
    zzuli 1332 内部收益率 (湖南省第六届大学生计算机程序设计竞赛)
  • 原文地址:https://www.cnblogs.com/mathyk/p/10887168.html
Copyright © 2020-2023  润新知