zoukankan      html  css  js  c++  java
  • 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();
    //}
  • 相关阅读:
    C语言速记3(作用域,枚举)
    c语言static在java语言区别
    c语言速记2(存储类,运算符)
    寄存器,计数器
    C语言extern的概念(声明和定义的区别)
    c语言速记1(基本结构,编译运行,声明定义,类型,常量)
    硬盘分区的相关概念(主分区,扩展分区,逻辑分区,MBR,DBR)
    android源码场景1(环境配置)
    c#截取两个指定字符串中间的字符串(转载)
    toFixed、Math.round 的区别(转载)
  • 原文地址:https://www.cnblogs.com/mathyk/p/10887168.html
Copyright © 2011-2022 走看看