📄 showset_form.ui.h
字号:
/****************************************************************************** ui.h extension file, included from the uic-generated form implementation.**** If you wish to add, delete or rename functions or slots use** Qt Designer which will update this file, preserving your code. Create an** init() function in place of a constructor, and a destroy() function in** place of a destructor.*****************************************************************************/int T1, T2, T3, T4, T5, T6, T7, T8;QString strT1, strT2, strT3, strT4, strT5, strT6, strT7, strT8;void Showset_Form::init(){ type_comboBox7->setEnabled(FALSE); type_comboBox8->setEnabled(FALSE); analogue_comboBox1->setEnabled(FALSE); analogue_comboBox2->setEnabled(FALSE); analogue_comboBox3->setEnabled(FALSE); analogue_comboBox4->setEnabled(FALSE); analogue_comboBox5->setEnabled(FALSE); analogue_comboBox6->setEnabled(FALSE); analogue_comboBox7->setEnabled(FALSE); analogue_comboBox8->setEnabled(FALSE); switch_comboBox1->setEnabled(FALSE); switch_comboBox2->setEnabled(FALSE); switch_comboBox3->setEnabled(FALSE); switch_comboBox4->setEnabled(FALSE); switch_comboBox5->setEnabled(FALSE); switch_comboBox6->setEnabled(FALSE); switch_comboBox7->setEnabled(FALSE); switch_comboBox8->setEnabled(FALSE);}//区域1void Showset_Form::area1_set(){ if ( type_comboBox1->currentItem() == 0 ){ analogue_comboBox1->setCurrentItem(0); switch_comboBox1->setCurrentItem(0); switch_comboBox1->setEnabled(FALSE); analogue_comboBox1->setEnabled(FALSE); } if ( type_comboBox1->currentItem() == 1 ){ switch_comboBox1->setCurrentItem(0); switch_comboBox1->setEnabled(FALSE); analogue_comboBox1->setEnabled(TRUE); } if ( type_comboBox1->currentItem() == 2 ){ analogue_comboBox1->setCurrentItem(0); analogue_comboBox1->setEnabled(FALSE); switch_comboBox1->setEnabled(TRUE); } if ( type_comboBox1->currentItem() == 3 ){ switch_comboBox1->setCurrentItem(0); analogue_comboBox1->setCurrentItem(0); switch_comboBox1->setEnabled(FALSE); analogue_comboBox1->setEnabled(FALSE); }}//区域2void Showset_Form::area2_set(){ if ( type_comboBox2->currentItem() == 0 ){ switch_comboBox2->setCurrentItem(0); analogue_comboBox2->setCurrentItem(0); switch_comboBox2->setEnabled(FALSE); analogue_comboBox2->setEnabled(FALSE); } if ( type_comboBox2->currentItem() == 1 ){ switch_comboBox2->setCurrentItem(0); switch_comboBox2->setEnabled(FALSE); analogue_comboBox2->setEnabled(TRUE); } if ( type_comboBox2->currentItem() == 2 ){ analogue_comboBox2->setCurrentItem(0); analogue_comboBox2->setEnabled(FALSE); switch_comboBox2->setEnabled(TRUE); } if ( type_comboBox2->currentItem() == 3 ){ switch_comboBox2->setCurrentItem(0); analogue_comboBox2->setCurrentItem(0); switch_comboBox2->setEnabled(FALSE); analogue_comboBox2->setEnabled(FALSE); }}//区域3void Showset_Form::area3_set(){ if ( type_comboBox3->currentItem() == 0 ){ switch_comboBox3->setCurrentItem(0); analogue_comboBox3->setCurrentItem(0); switch_comboBox3->setEnabled(FALSE); analogue_comboBox3->setEnabled(FALSE); } if ( type_comboBox3->currentItem() == 1 ){ switch_comboBox3->setCurrentItem(0); switch_comboBox3->setEnabled(FALSE); analogue_comboBox3->setEnabled(TRUE); } if ( type_comboBox3->currentItem() == 2 ){ analogue_comboBox3->setCurrentItem(0); analogue_comboBox3->setEnabled(FALSE); switch_comboBox3->setEnabled(TRUE); } if ( type_comboBox3->currentItem() == 3 ){ switch_comboBox3->setCurrentItem(0); analogue_comboBox3->setCurrentItem(0); switch_comboBox3->setEnabled(FALSE); analogue_comboBox3->setEnabled(FALSE); }}//区域4void Showset_Form::area4_set(){ if ( type_comboBox4->currentItem() == 0 ){ switch_comboBox4->setCurrentItem(0); analogue_comboBox4->setCurrentItem(0); switch_comboBox4->setEnabled(FALSE); analogue_comboBox4->setEnabled(FALSE); } if ( type_comboBox4->currentItem() == 1 ){ switch_comboBox4->setCurrentItem(0); switch_comboBox4->setEnabled(FALSE); analogue_comboBox4->setEnabled(TRUE); } if ( type_comboBox4->currentItem() == 2 ){ analogue_comboBox4->setCurrentItem(0); analogue_comboBox4->setEnabled(FALSE); switch_comboBox4->setEnabled(TRUE); } if ( type_comboBox4->currentItem() == 3 ){ switch_comboBox4->setCurrentItem(0); analogue_comboBox4->setCurrentItem(0); switch_comboBox4->setEnabled(FALSE); analogue_comboBox4->setEnabled(FALSE); }}//区域5void Showset_Form::area5_set(){ if ( type_comboBox5->currentItem() == 0 ){ switch_comboBox5->setCurrentItem(0); analogue_comboBox5->setCurrentItem(0); switch_comboBox5->setEnabled(FALSE); analogue_comboBox5->setEnabled(FALSE); } if ( type_comboBox5->currentItem() == 1 ){ switch_comboBox5->setCurrentItem(0); switch_comboBox5->setEnabled(FALSE); analogue_comboBox5->setEnabled(TRUE); } if ( type_comboBox5->currentItem() == 2 ){ analogue_comboBox5->setCurrentItem(0); analogue_comboBox5->setEnabled(FALSE); switch_comboBox5->setEnabled(TRUE); } if ( type_comboBox5->currentItem() == 3 ){ switch_comboBox5->setCurrentItem(0); analogue_comboBox5->setCurrentItem(0); switch_comboBox5->setEnabled(FALSE); analogue_comboBox5->setEnabled(FALSE); }}//区域6void Showset_Form::area6_set(){ if ( type_comboBox6->currentItem() == 0 ){ switch_comboBox6->setCurrentItem(0); analogue_comboBox6->setCurrentItem(0); switch_comboBox6->setEnabled(FALSE); analogue_comboBox6->setEnabled(FALSE); } if ( type_comboBox6->currentItem() == 1 ){ switch_comboBox6->setCurrentItem(0); switch_comboBox6->setEnabled(FALSE); analogue_comboBox6->setEnabled(TRUE); } if ( type_comboBox6->currentItem() == 2 ){ analogue_comboBox6->setCurrentItem(0); analogue_comboBox6->setEnabled(FALSE); switch_comboBox6->setEnabled(TRUE); } if ( type_comboBox6->currentItem() == 3 ){ switch_comboBox6->setCurrentItem(0); analogue_comboBox6->setCurrentItem(0); switch_comboBox6->setEnabled(FALSE); analogue_comboBox6->setEnabled(FALSE); }}//区域7void Showset_Form::area7_set(){ if ( type_comboBox7->currentItem() == 0 ){ switch_comboBox7->setCurrentItem(0); analogue_comboBox7->setCurrentItem(0); switch_comboBox7->setEnabled(FALSE); analogue_comboBox7->setEnabled(FALSE); } if ( type_comboBox7->currentItem() == 1 ){ switch_comboBox7->setCurrentItem(0); switch_comboBox7->setEnabled(FALSE); analogue_comboBox7->setEnabled(TRUE); } if ( type_comboBox7->currentItem() == 2 ){ analogue_comboBox7->setCurrentItem(0); analogue_comboBox7->setEnabled(FALSE); switch_comboBox7->setEnabled(TRUE); } if ( type_comboBox7->currentItem() == 3 ){ switch_comboBox7->setCurrentItem(0); analogue_comboBox7->setCurrentItem(0); switch_comboBox7->setEnabled(FALSE); analogue_comboBox7->setEnabled(FALSE); }}//区域8void Showset_Form::area8_set(){ if ( type_comboBox8->currentItem() == 0 ){ switch_comboBox8->setCurrentItem(0); analogue_comboBox8->setCurrentItem(0); switch_comboBox8->setEnabled(FALSE); analogue_comboBox8->setEnabled(FALSE); } if ( type_comboBox8->currentItem() == 1 ){ switch_comboBox8->setCurrentItem(0); switch_comboBox8->setEnabled(FALSE); analogue_comboBox8->setEnabled(TRUE); } if ( type_comboBox8->currentItem() == 2 ){ analogue_comboBox8->setCurrentItem(0); analogue_comboBox8->setEnabled(FALSE); switch_comboBox8->setEnabled(TRUE); } if ( type_comboBox8->currentItem() == 3 ){ switch_comboBox8->setCurrentItem(0); analogue_comboBox8->setCurrentItem(0); switch_comboBox8->setEnabled(FALSE); analogue_comboBox8->setEnabled(FALSE); }}void Showset_Form::ok(){//求T1; if ( type_comboBox1->currentItem() == 0 ){ T1 = 0; strT1 = ""; }else if ( type_comboBox1->currentItem() == 1 ){ T1 = analogue_comboBox1->currentItem(); strT1 = analogue_comboBox1->text(T1); }else if ( type_comboBox1->currentItem() == 2 ){ T1 = switch_comboBox1->currentItem(); if (T1!=0){ strT1 = switch_comboBox1->text(T1); T1 = T1 + 96; } }else if ( type_comboBox1->currentItem() == 3 ){ T1 = 225; strT1 = type_comboBox1->text(3); }//求T2; if ( type_comboBox2->currentItem() == 0 ){ T2 = 0; strT2 = ""; }else if ( type_comboBox2->currentItem() == 1 ){ T2 = analogue_comboBox2->currentItem(); strT2 = analogue_comboBox2->text(T2); }else if ( type_comboBox2->currentItem() == 2 ){ T2 = switch_comboBox2->currentItem(); if (T2!=0){ strT2 = switch_comboBox2->text(T2); T2 = T2 + 96; } }else if ( type_comboBox2->currentItem() == 3 ){ T2 = 225; strT2 = type_comboBox2->text(3); }//求T3; if ( type_comboBox3->currentItem() == 0 ){ T3 = 0; strT3 = ""; }else if ( type_comboBox3->currentItem() == 1 ){ T3 = analogue_comboBox3->currentItem(); strT3 = analogue_comboBox3->text(T3); }else if ( type_comboBox3->currentItem() == 2 ){ T3 = switch_comboBox3->currentItem(); if (T3!=0){ strT3 = switch_comboBox3->text(T3); T3 = T3 + 96; } }else if ( type_comboBox3->currentItem() == 3 ){ T3 = 225; strT3 = type_comboBox3->text(3); }//求T4; if ( type_comboBox4->currentItem() == 0 ){ T4 = 0; strT4 = ""; }else if ( type_comboBox4->currentItem() == 1 ){ T4 = analogue_comboBox4->currentItem(); strT4 = analogue_comboBox4->text(T4); }else if ( type_comboBox4->currentItem() == 2 ){ T4 = switch_comboBox4->currentItem(); if (T4!=0){ strT4 = switch_comboBox4->text(T4); T4 = T4 + 96; } }else if ( type_comboBox4->currentItem() == 3 ){ T4 = 225; strT4 = type_comboBox4->text(3); }//求T5; if ( type_comboBox5->currentItem() == 0 ){ T5 = 0; strT5 = ""; }else if ( type_comboBox5->currentItem() == 1 ){ T5 = analogue_comboBox5->currentItem(); strT5 = analogue_comboBox5->text(T5); }else if ( type_comboBox5->currentItem() == 2 ){ T5 = switch_comboBox5->currentItem(); if (T5!=0){ strT5 = switch_comboBox5->text(T5); T5 = T5 + 96; } }else if ( type_comboBox5->currentItem() == 3 ){ T5 = 225; strT5 = type_comboBox5->text(3); }//求T6; if ( type_comboBox6->currentItem() == 0 ){ T6 = 0; strT6 = ""; }else if ( type_comboBox6->currentItem() == 1 ){ T6 = analogue_comboBox6->currentItem(); strT6 = analogue_comboBox6->text(T6); }else if ( type_comboBox6->currentItem() == 2 ){ T6 = switch_comboBox6->currentItem(); if (T6!=0){ strT6 = switch_comboBox6->text(T6); T6 = T6 + 96; } }else if ( type_comboBox6->currentItem() == 3 ){ T6 = 225; strT6 = type_comboBox6->text(3); }//求T7; if ( type_comboBox7->currentItem() == 0 ){ T7 = 0; strT7 = ""; }else if ( type_comboBox7->currentItem() == 1 ){ T7 = analogue_comboBox7->currentItem(); strT7 = analogue_comboBox7->text(T7); }else if ( type_comboBox7->currentItem() == 2 ){ T7 = switch_comboBox7->currentItem(); if (T7!=0){ strT7 = switch_comboBox7->text(T7); T7 = T7 + 96; } }else if ( type_comboBox7->currentItem() == 3 ){ T7 = 225; strT7 = type_comboBox7->text(3); }//求T8; if ( type_comboBox8->currentItem() == 0 ){ T8 = 0; strT8 = ""; }else if ( type_comboBox8->currentItem() == 1 ){ T8 = analogue_comboBox8->currentItem(); strT8 = analogue_comboBox8->text(T8); }else if ( type_comboBox8->currentItem() == 2 ){ T8 = switch_comboBox8->currentItem(); if (T8!=0){ strT8 = switch_comboBox8->text(T8); T8 = T8 + 96; } }else if ( type_comboBox8->currentItem() == 3 ){ T8 = 225; strT8 = type_comboBox8->text(3); } close();}int Showset_Form::returnT1(){ return T1;}int Showset_Form::returnT2(){ return T2;}int Showset_Form::returnT3(){ return T3;}int Showset_Form::returnT4(){ return T4;}int Showset_Form::returnT5(){ return T5;}int Showset_Form::returnT6(){ return T6;}int Showset_Form::returnT7(){ return T7;}int Showset_Form::returnT8(){ return T8;}QString Showset_Form::returnstrT1(){ return strT1;}QString Showset_Form::returnstrT2(){ return strT2;}QString Showset_Form::returnstrT3(){ return strT3;}QString Showset_Form::returnstrT4(){ return strT4;}QString Showset_Form::returnstrT5(){ return strT5;}QString Showset_Form::returnstrT6(){ return strT6;}QString Showset_Form::returnstrT7(){ return strT7;}QString Showset_Form::returnstrT8(){ return strT8;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -