diff --git a/camera.cpp b/camera.cpp index d012dcf..1efbb88 100644 --- a/camera.cpp +++ b/camera.cpp @@ -22,7 +22,7 @@ static MIL_ID MilImage0; static MIL_ID MilImage_Color0; static MIL_ID ModifiedBufferId0; static MIL_ID MilGrabBufferList0[20] = {0}; -static MIL_INT BufSizeX0 = 4096; +static MIL_INT BufSizeX0 = 2048; static MIL_INT BufSizeY0 = 512; unsigned char* m_AvsBuffer0 = (unsigned char*)malloc(BufSizeX0 * BufSizeY0 * 3); static int FuncCount0 = 1; @@ -32,7 +32,7 @@ static MIL_ID MilImage1; static MIL_ID MilImage_Color1; static MIL_ID ModifiedBufferId1; static MIL_ID MilGrabBufferList1[20] = {0}; -static MIL_INT BufSizeX1 = 4096; +static MIL_INT BufSizeX1 = 2048; static MIL_INT BufSizeY1 = 512; unsigned char* m_AvsBuffer1 = (unsigned char*)malloc(BufSizeX1 * BufSizeY1 * 3); static int FuncCount1 = 1; diff --git a/config/1.dcf b/config/1.dcf index 50d45ac..543dbd6 100644 --- a/config/1.dcf +++ b/config/1.dcf @@ -23,12 +23,13 @@ / / / +/ [CAMERA_NAME] no name [CONFIG_FILE] 50CF ODYSSEY -Thu Dec 26 15:46:40 2024 +Fri Dec 27 11:45:15 2024 [INFO_FILE_REV] 0010.0019.0000 RADIENT/eVCL/DUAL @@ -119,9 +120,9 @@ VDT_NOVERT VDT_HSYNC 0x0 VDT_HBPORCH 0x10 VDT_HFPORCH 0x0 -VDT_HACTIVE 0x1000 -VDT_HTOTAL 0x1010 -VDT_HSYNC_FREQ 0x4bff +VDT_HACTIVE 0x800 +VDT_HTOTAL 0x810 +VDT_HSYNC_FREQ 0x9767 VDT_VSYNC 0x0 VDT_VBPORCH 0x0 VDT_VFPORCH 0x0 @@ -356,7 +357,7 @@ TAP_PIXADJY CLC_MODE 0x0 CLC_MODE_INIT_WIDTH_10_16 0x0 CLC_ACTIVE_CH0 0x1 -VDT_CL_USE_CAMERA_VALID 0x4 +VDT_CL_USE_CAMERA_VALID 0x5 CL_MODE_BITMAP 0x6 CLC_MODE_CH0 0x5 CLC_SYNC_SOURCE 0x0 @@ -1564,8 +1565,8 @@ DEF_INFO_XSIZE_DIVISOR DEF_INFO_YSIZE_DIVISOR 0x1 DEF_ADD_HACTIVE_MULTIPLEX 0x0 DEF_ADD_VACTIVE_MULTIPLEX 0x0 -DEF_HTOTAL_ENTRY 0x1010 -DEF_HACTIVE_ENTRY 0x1000 +DEF_HTOTAL_ENTRY 0x810 +DEF_HACTIVE_ENTRY 0x800 DEF_VTOTAL_ENTRY 0x200 DEF_VACTIVE_ENTRY 0x200 DEF_CL_NEW_HCROPPING 0x10 @@ -1587,7 +1588,7 @@ DEF_ADD_3MAX_TOTAL_HVBLANK_ZERO DEF_ADD_HTOTAL_EQUA_HEVAL 0x0 DEF_HOR_COUNT_MAX_BITWISE 0xffff DEF_VERT_COUNT_MAX_BITWISE 0xffff -DEF_DIG_HTOTAL 0x100f +DEF_DIG_HTOTAL 0x80f DEF_DIG_VTOTAL 0x1ff DEF_TEST_MODE_HFP_MIN 0x0 DEF_TEST_MODE_HSY_HBP_MIN_CL 0x0 @@ -1618,8 +1619,8 @@ DEF_TIMER0_PIPE_DELAY1 DEF_TIMER1_PIPE_DELAY1 0x0 DEF_TMR0_CLKTMR1_CNT 0x0 DEF_TMR1_CLKTMR0_CNT 0x0 -DEF_TIMER01_CLK_HS_FREQ 0x4c03 -DEF_TIMER01_CLK_HS_PERIOD 0xc8be +DEF_TIMER01_CLK_HS_FREQ 0x977a +DEF_TIMER01_CLK_HS_PERIOD 0x64bc DEF_TIMER0_CLK_HS_PERIOD_DLY1_CNT 0x0 DEF_TIMER0_CLK_HS_PERIOD_DLY2_CNT 0x0 DEF_TIMER0_CLK_HS_PERIOD_T1_CNT 0x0 @@ -1734,7 +1735,7 @@ DEF_DIG1_BYTESORDER [REG_DIGIT] INFO_CUSTOM 0x0 INFO_REGISTER_REV 0x1 -INFO_XSIZE 0x1000 +INFO_XSIZE 0x800 INFO_YSIZE 0x200 INFO_TYPE 0x1 INFO_BAYER 0x0 @@ -1928,13 +1929,13 @@ INFO_MASK_T2CTLH INFO_MASK_T3CTLL 0x0 INFO_MASK_T3CTLH 0x0 DIG_HCNT 0x1 -DIG_HTOTAL 0x100f +DIG_HTOTAL 0x80f DIG_HSCNT 0x0 DIG_HECNT 0x1 DIG_HSSYNC 0x0 DIG_HESYNC 0x0 DIG_HSVAL 0x10 -DIG_HEVAL 0x100f +DIG_HEVAL 0x80f DIG_HSCLM 0x0 DIG_HECLM 0x0 DIG_HCTL 0x1e0 @@ -1971,7 +1972,7 @@ DIG_PULMCTL DIG_PULMCTL_HIGH 0x0 DIG_CLKCTL 0x0 DIG_GRBCTL 0x5 -DIG_VALCTL 0x23138950 +DIG_VALCTL 0x23138850 DIG_FLDCTL 0x2 DIG_SYNCOUT 0x88 DIG_TRGIN 0x0 @@ -2354,5 +2355,5 @@ DIG_IOCTL1H DIG_IOCTL0_L not_modified DIG_ENCTL not_modified [EOF] -00007FF65B44AAA8 0x400ce -00007FF65B44AA90 0xb579adfb \ No newline at end of file +00007FF77F63AAA8 0x400c9 +00007FF77F63AA90 0x6b1a737f \ No newline at end of file diff --git a/config/2.dcf b/config/2.dcf index ffcdf78..dedcd3f 100644 --- a/config/2.dcf +++ b/config/2.dcf @@ -21,12 +21,13 @@ / / / +/ [CAMERA_NAME] no name [CONFIG_FILE] 50CF ODYSSEY -Thu Dec 26 15:47:03 2024 +Fri Dec 27 11:45:33 2024 [INFO_FILE_REV] 0010.0019.0000 RADIENT/eVCL/DUAL @@ -117,9 +118,9 @@ VDT_NOVERT VDT_HSYNC 0x0 VDT_HBPORCH 0x10 VDT_HFPORCH 0x0 -VDT_HACTIVE 0x1000 -VDT_HTOTAL 0x1010 -VDT_HSYNC_FREQ 0x4bff +VDT_HACTIVE 0x800 +VDT_HTOTAL 0x810 +VDT_HSYNC_FREQ 0x9767 VDT_VSYNC 0x0 VDT_VBPORCH 0x0 VDT_VFPORCH 0x0 @@ -354,7 +355,7 @@ TAP_PIXADJY CLC_MODE 0x0 CLC_MODE_INIT_WIDTH_10_16 0x0 CLC_ACTIVE_CH0 0x1 -VDT_CL_USE_CAMERA_VALID 0x4 +VDT_CL_USE_CAMERA_VALID 0x5 CL_MODE_BITMAP 0x6 CLC_MODE_CH0 0x5 CLC_SYNC_SOURCE 0x0 @@ -1562,8 +1563,8 @@ DEF_INFO_XSIZE_DIVISOR DEF_INFO_YSIZE_DIVISOR 0x1 DEF_ADD_HACTIVE_MULTIPLEX 0x0 DEF_ADD_VACTIVE_MULTIPLEX 0x0 -DEF_HTOTAL_ENTRY 0x1010 -DEF_HACTIVE_ENTRY 0x1000 +DEF_HTOTAL_ENTRY 0x810 +DEF_HACTIVE_ENTRY 0x800 DEF_VTOTAL_ENTRY 0x200 DEF_VACTIVE_ENTRY 0x200 DEF_CL_NEW_HCROPPING 0x10 @@ -1585,7 +1586,7 @@ DEF_ADD_3MAX_TOTAL_HVBLANK_ZERO DEF_ADD_HTOTAL_EQUA_HEVAL 0x0 DEF_HOR_COUNT_MAX_BITWISE 0xffff DEF_VERT_COUNT_MAX_BITWISE 0xffff -DEF_DIG_HTOTAL 0x100f +DEF_DIG_HTOTAL 0x80f DEF_DIG_VTOTAL 0x1ff DEF_TEST_MODE_HFP_MIN 0x0 DEF_TEST_MODE_HSY_HBP_MIN_CL 0x0 @@ -1616,8 +1617,8 @@ DEF_TIMER0_PIPE_DELAY1 DEF_TIMER1_PIPE_DELAY1 0x0 DEF_TMR0_CLKTMR1_CNT 0x0 DEF_TMR1_CLKTMR0_CNT 0x0 -DEF_TIMER01_CLK_HS_FREQ 0x4c03 -DEF_TIMER01_CLK_HS_PERIOD 0xc8be +DEF_TIMER01_CLK_HS_FREQ 0x977a +DEF_TIMER01_CLK_HS_PERIOD 0x64bc DEF_TIMER0_CLK_HS_PERIOD_DLY1_CNT 0x0 DEF_TIMER0_CLK_HS_PERIOD_DLY2_CNT 0x0 DEF_TIMER0_CLK_HS_PERIOD_T1_CNT 0x0 @@ -1732,7 +1733,7 @@ DEF_DIG1_BYTESORDER [REG_DIGIT] INFO_CUSTOM 0x0 INFO_REGISTER_REV 0x1 -INFO_XSIZE 0x1000 +INFO_XSIZE 0x800 INFO_YSIZE 0x200 INFO_TYPE 0x1 INFO_BAYER 0x0 @@ -1926,13 +1927,13 @@ INFO_MASK_T2CTLH INFO_MASK_T3CTLL 0x0 INFO_MASK_T3CTLH 0x0 DIG_HCNT 0x1 -DIG_HTOTAL 0x100f +DIG_HTOTAL 0x80f DIG_HSCNT 0x0 DIG_HECNT 0x1 DIG_HSSYNC 0x0 DIG_HESYNC 0x0 DIG_HSVAL 0x10 -DIG_HEVAL 0x100f +DIG_HEVAL 0x80f DIG_HSCLM 0x0 DIG_HECLM 0x0 DIG_HCTL 0x1e0 @@ -1969,7 +1970,7 @@ DIG_PULMCTL DIG_PULMCTL_HIGH 0x0 DIG_CLKCTL 0x0 DIG_GRBCTL 0x5 -DIG_VALCTL 0x23138950 +DIG_VALCTL 0x23138850 DIG_FLDCTL 0x2 DIG_SYNCOUT 0x88 DIG_TRGIN 0x0 @@ -2352,5 +2353,5 @@ DIG_IOCTL1H DIG_IOCTL0_L not_modified DIG_ENCTL not_modified [EOF] -00007FF65B44AAA8 0x400c8 -00007FF65B44AA90 0x11cf9d48 \ No newline at end of file +00007FF77F63AAA8 0x400c3 +00007FF77F63AA90 0x38bce028 \ No newline at end of file diff --git a/cotton_double2.pro.user b/cotton_double2.pro.user index 562e964..cd26437 100644 --- a/cotton_double2.pro.user +++ b/cotton_double2.pro.user @@ -1,6 +1,6 @@ - + EnvironmentId diff --git a/release/config/1.dcf b/release/config/1.dcf index eb5cc82..543dbd6 100644 --- a/release/config/1.dcf +++ b/release/config/1.dcf @@ -23,12 +23,13 @@ / / / +/ [CAMERA_NAME] no name [CONFIG_FILE] 50CF ODYSSEY -Thu Dec 26 16:28:39 2024 +Fri Dec 27 11:45:15 2024 [INFO_FILE_REV] 0010.0019.0000 RADIENT/eVCL/DUAL @@ -119,9 +120,9 @@ VDT_NOVERT VDT_HSYNC 0x0 VDT_HBPORCH 0x10 VDT_HFPORCH 0x0 -VDT_HACTIVE 0x1000 -VDT_HTOTAL 0x1010 -VDT_HSYNC_FREQ 0x4bff +VDT_HACTIVE 0x800 +VDT_HTOTAL 0x810 +VDT_HSYNC_FREQ 0x9767 VDT_VSYNC 0x0 VDT_VBPORCH 0x0 VDT_VFPORCH 0x0 @@ -356,7 +357,7 @@ TAP_PIXADJY CLC_MODE 0x0 CLC_MODE_INIT_WIDTH_10_16 0x0 CLC_ACTIVE_CH0 0x1 -VDT_CL_USE_CAMERA_VALID 0x4 +VDT_CL_USE_CAMERA_VALID 0x5 CL_MODE_BITMAP 0x6 CLC_MODE_CH0 0x5 CLC_SYNC_SOURCE 0x0 @@ -1564,8 +1565,8 @@ DEF_INFO_XSIZE_DIVISOR DEF_INFO_YSIZE_DIVISOR 0x1 DEF_ADD_HACTIVE_MULTIPLEX 0x0 DEF_ADD_VACTIVE_MULTIPLEX 0x0 -DEF_HTOTAL_ENTRY 0x1010 -DEF_HACTIVE_ENTRY 0x1000 +DEF_HTOTAL_ENTRY 0x810 +DEF_HACTIVE_ENTRY 0x800 DEF_VTOTAL_ENTRY 0x200 DEF_VACTIVE_ENTRY 0x200 DEF_CL_NEW_HCROPPING 0x10 @@ -1587,7 +1588,7 @@ DEF_ADD_3MAX_TOTAL_HVBLANK_ZERO DEF_ADD_HTOTAL_EQUA_HEVAL 0x0 DEF_HOR_COUNT_MAX_BITWISE 0xffff DEF_VERT_COUNT_MAX_BITWISE 0xffff -DEF_DIG_HTOTAL 0x100f +DEF_DIG_HTOTAL 0x80f DEF_DIG_VTOTAL 0x1ff DEF_TEST_MODE_HFP_MIN 0x0 DEF_TEST_MODE_HSY_HBP_MIN_CL 0x0 @@ -1618,8 +1619,8 @@ DEF_TIMER0_PIPE_DELAY1 DEF_TIMER1_PIPE_DELAY1 0x0 DEF_TMR0_CLKTMR1_CNT 0x0 DEF_TMR1_CLKTMR0_CNT 0x0 -DEF_TIMER01_CLK_HS_FREQ 0x4c03 -DEF_TIMER01_CLK_HS_PERIOD 0xc8be +DEF_TIMER01_CLK_HS_FREQ 0x977a +DEF_TIMER01_CLK_HS_PERIOD 0x64bc DEF_TIMER0_CLK_HS_PERIOD_DLY1_CNT 0x0 DEF_TIMER0_CLK_HS_PERIOD_DLY2_CNT 0x0 DEF_TIMER0_CLK_HS_PERIOD_T1_CNT 0x0 @@ -1734,7 +1735,7 @@ DEF_DIG1_BYTESORDER [REG_DIGIT] INFO_CUSTOM 0x0 INFO_REGISTER_REV 0x1 -INFO_XSIZE 0x1000 +INFO_XSIZE 0x800 INFO_YSIZE 0x200 INFO_TYPE 0x1 INFO_BAYER 0x0 @@ -1928,13 +1929,13 @@ INFO_MASK_T2CTLH INFO_MASK_T3CTLL 0x0 INFO_MASK_T3CTLH 0x0 DIG_HCNT 0x1 -DIG_HTOTAL 0x100f +DIG_HTOTAL 0x80f DIG_HSCNT 0x0 DIG_HECNT 0x1 DIG_HSSYNC 0x0 DIG_HESYNC 0x0 DIG_HSVAL 0x10 -DIG_HEVAL 0x100f +DIG_HEVAL 0x80f DIG_HSCLM 0x0 DIG_HECLM 0x0 DIG_HCTL 0x1e0 @@ -1971,7 +1972,7 @@ DIG_PULMCTL DIG_PULMCTL_HIGH 0x0 DIG_CLKCTL 0x0 DIG_GRBCTL 0x5 -DIG_VALCTL 0x23138950 +DIG_VALCTL 0x23138850 DIG_FLDCTL 0x2 DIG_SYNCOUT 0x88 DIG_TRGIN 0x0 @@ -2354,5 +2355,5 @@ DIG_IOCTL1H DIG_IOCTL0_L not_modified DIG_ENCTL not_modified [EOF] -00007FF65B44AAA8 0x400ce -00007FF65B44AA90 0xa5046900 \ No newline at end of file +00007FF77F63AAA8 0x400c9 +00007FF77F63AA90 0x6b1a737f \ No newline at end of file diff --git a/release/config/2.dcf b/release/config/2.dcf index 5da96c6..dedcd3f 100644 --- a/release/config/2.dcf +++ b/release/config/2.dcf @@ -21,12 +21,13 @@ / / / +/ [CAMERA_NAME] no name [CONFIG_FILE] 50CF ODYSSEY -Thu Dec 26 16:28:58 2024 +Fri Dec 27 11:45:33 2024 [INFO_FILE_REV] 0010.0019.0000 RADIENT/eVCL/DUAL @@ -117,9 +118,9 @@ VDT_NOVERT VDT_HSYNC 0x0 VDT_HBPORCH 0x10 VDT_HFPORCH 0x0 -VDT_HACTIVE 0x1000 -VDT_HTOTAL 0x1010 -VDT_HSYNC_FREQ 0x4bff +VDT_HACTIVE 0x800 +VDT_HTOTAL 0x810 +VDT_HSYNC_FREQ 0x9767 VDT_VSYNC 0x0 VDT_VBPORCH 0x0 VDT_VFPORCH 0x0 @@ -354,7 +355,7 @@ TAP_PIXADJY CLC_MODE 0x0 CLC_MODE_INIT_WIDTH_10_16 0x0 CLC_ACTIVE_CH0 0x1 -VDT_CL_USE_CAMERA_VALID 0x4 +VDT_CL_USE_CAMERA_VALID 0x5 CL_MODE_BITMAP 0x6 CLC_MODE_CH0 0x5 CLC_SYNC_SOURCE 0x0 @@ -1562,8 +1563,8 @@ DEF_INFO_XSIZE_DIVISOR DEF_INFO_YSIZE_DIVISOR 0x1 DEF_ADD_HACTIVE_MULTIPLEX 0x0 DEF_ADD_VACTIVE_MULTIPLEX 0x0 -DEF_HTOTAL_ENTRY 0x1010 -DEF_HACTIVE_ENTRY 0x1000 +DEF_HTOTAL_ENTRY 0x810 +DEF_HACTIVE_ENTRY 0x800 DEF_VTOTAL_ENTRY 0x200 DEF_VACTIVE_ENTRY 0x200 DEF_CL_NEW_HCROPPING 0x10 @@ -1585,7 +1586,7 @@ DEF_ADD_3MAX_TOTAL_HVBLANK_ZERO DEF_ADD_HTOTAL_EQUA_HEVAL 0x0 DEF_HOR_COUNT_MAX_BITWISE 0xffff DEF_VERT_COUNT_MAX_BITWISE 0xffff -DEF_DIG_HTOTAL 0x100f +DEF_DIG_HTOTAL 0x80f DEF_DIG_VTOTAL 0x1ff DEF_TEST_MODE_HFP_MIN 0x0 DEF_TEST_MODE_HSY_HBP_MIN_CL 0x0 @@ -1616,8 +1617,8 @@ DEF_TIMER0_PIPE_DELAY1 DEF_TIMER1_PIPE_DELAY1 0x0 DEF_TMR0_CLKTMR1_CNT 0x0 DEF_TMR1_CLKTMR0_CNT 0x0 -DEF_TIMER01_CLK_HS_FREQ 0x4c03 -DEF_TIMER01_CLK_HS_PERIOD 0xc8be +DEF_TIMER01_CLK_HS_FREQ 0x977a +DEF_TIMER01_CLK_HS_PERIOD 0x64bc DEF_TIMER0_CLK_HS_PERIOD_DLY1_CNT 0x0 DEF_TIMER0_CLK_HS_PERIOD_DLY2_CNT 0x0 DEF_TIMER0_CLK_HS_PERIOD_T1_CNT 0x0 @@ -1732,7 +1733,7 @@ DEF_DIG1_BYTESORDER [REG_DIGIT] INFO_CUSTOM 0x0 INFO_REGISTER_REV 0x1 -INFO_XSIZE 0x1000 +INFO_XSIZE 0x800 INFO_YSIZE 0x200 INFO_TYPE 0x1 INFO_BAYER 0x0 @@ -1926,13 +1927,13 @@ INFO_MASK_T2CTLH INFO_MASK_T3CTLL 0x0 INFO_MASK_T3CTLH 0x0 DIG_HCNT 0x1 -DIG_HTOTAL 0x100f +DIG_HTOTAL 0x80f DIG_HSCNT 0x0 DIG_HECNT 0x1 DIG_HSSYNC 0x0 DIG_HESYNC 0x0 DIG_HSVAL 0x10 -DIG_HEVAL 0x100f +DIG_HEVAL 0x80f DIG_HSCLM 0x0 DIG_HECLM 0x0 DIG_HCTL 0x1e0 @@ -1969,7 +1970,7 @@ DIG_PULMCTL DIG_PULMCTL_HIGH 0x0 DIG_CLKCTL 0x0 DIG_GRBCTL 0x5 -DIG_VALCTL 0x23138950 +DIG_VALCTL 0x23138850 DIG_FLDCTL 0x2 DIG_SYNCOUT 0x88 DIG_TRGIN 0x0 @@ -2352,5 +2353,5 @@ DIG_IOCTL1H DIG_IOCTL0_L not_modified DIG_ENCTL not_modified [EOF] -00007FF65B44AAA8 0x400c8 -00007FF65B44AA90 0x6c01ddfa \ No newline at end of file +00007FF77F63AAA8 0x400c3 +00007FF77F63AA90 0x38bce028 \ No newline at end of file diff --git a/ui_widget.h b/ui_widget.h index ce2014b..9b9d56d 100644 --- a/ui_widget.h +++ b/ui_widget.h @@ -16,6 +16,7 @@ #include #include #include +#include #include #include #include @@ -90,7 +91,65 @@ public: QGroupBox *groupBox_3; QPushButton *btn_test_single; QPushButton *btn_stop_test; + QPushButton *btn_tab3_backtab2_2; QWidget *tab_4; + QVBoxLayout *verticalLayout_8; + QFrame *frame_4; + QHBoxLayout *horizontalLayout_2; + QLabel *label_5; + QSpacerItem *horizontalSpacer_3; + QLabel *label_6; + QSpacerItem *horizontalSpacer_4; + QPushButton *btn_settings; + QPushButton *btn_live; + QFrame *frame_5; + QHBoxLayout *horizontalLayout_16; + QFrame *frame_running_time; + QVBoxLayout *verticalLayout_2; + QHBoxLayout *horizontalLayout_7; + QLabel *label_7; + QSpacerItem *horizontalSpacer_5; + QSpacerItem *verticalSpacer_3; + QHBoxLayout *horizontalLayout_8; + QLabel *label_10; + QLabel *label_8; + QLabel *label_11; + QLabel *label_9; + QSpacerItem *verticalSpacer_2; + QHBoxLayout *horizontalLayout_9; + QLabel *label_12; + QSpacerItem *horizontalSpacer_6; + QProgressBar *progressBar; + QFrame *frame_valve; + QVBoxLayout *verticalLayout_6; + QHBoxLayout *horizontalLayout_10; + QLabel *label_13; + QSpacerItem *horizontalSpacer_7; + QSpacerItem *verticalSpacer_4; + QHBoxLayout *horizontalLayout_11; + QLabel *label_16; + QLabel *label_17; + QSpacerItem *verticalSpacer_5; + QHBoxLayout *horizontalLayout_17; + QLabel *label_19; + QSpacerItem *horizontalSpacer_10; + QHBoxLayout *horizontalLayout_12; + QLabel *label_18; + QSpacerItem *horizontalSpacer_8; + QFrame *frame_history; + QVBoxLayout *verticalLayout_7; + QHBoxLayout *horizontalLayout_13; + QLabel *label_14; + QSpacerItem *horizontalSpacer_9; + QHBoxLayout *horizontalLayout_14; + QSpacerItem *verticalSpacer_7; + QHBoxLayout *horizontalLayout_15; + QFrame *frame_8; + QHBoxLayout *horizontalLayout_18; + QSpacerItem *horizontalSpacer_11; + QLabel *label_20; + QLabel *label_21; + QSpacerItem *horizontalSpacer_12; void setupUi(QWidget *Widget) { @@ -588,9 +647,485 @@ public: btn_stop_test = new QPushButton(groupBox_3); btn_stop_test->setObjectName("btn_stop_test"); btn_stop_test->setGeometry(QRect(210, 40, 75, 23)); + btn_tab3_backtab2_2 = new QPushButton(tab_3); + btn_tab3_backtab2_2->setObjectName("btn_tab3_backtab2_2"); + btn_tab3_backtab2_2->setGeometry(QRect(510, 770, 231, 141)); tabWidget->addTab(tab_3, QString()); tab_4 = new QWidget(); tab_4->setObjectName("tab_4"); + tab_4->setStyleSheet(QString::fromUtf8("background-color: rgb(26, 26, 26);")); + verticalLayout_8 = new QVBoxLayout(tab_4); + verticalLayout_8->setObjectName("verticalLayout_8"); + verticalLayout_8->setContentsMargins(0, -1, 0, -1); + frame_4 = new QFrame(tab_4); + frame_4->setObjectName("frame_4"); + frame_4->setFrameShape(QFrame::Shape::StyledPanel); + frame_4->setFrameShadow(QFrame::Shadow::Raised); + horizontalLayout_2 = new QHBoxLayout(frame_4); + horizontalLayout_2->setObjectName("horizontalLayout_2"); + label_5 = new QLabel(frame_4); + label_5->setObjectName("label_5"); + label_5->setStyleSheet(QString::fromUtf8("font: 700 30pt \"Microsoft YaHei UI\";\n" +"color: rgb(255, 255, 255)")); + + horizontalLayout_2->addWidget(label_5); + + horizontalSpacer_3 = new QSpacerItem(672, 20, QSizePolicy::Policy::Expanding, QSizePolicy::Policy::Minimum); + + horizontalLayout_2->addItem(horizontalSpacer_3); + + label_6 = new QLabel(frame_4); + label_6->setObjectName("label_6"); + label_6->setStyleSheet(QString::fromUtf8("font: 14pt \"Microsoft YaHei UI\";\n" +"color: rgb(170, 170, 170)")); + + horizontalLayout_2->addWidget(label_6); + + horizontalSpacer_4 = new QSpacerItem(672, 20, QSizePolicy::Policy::Expanding, QSizePolicy::Policy::Minimum); + + horizontalLayout_2->addItem(horizontalSpacer_4); + + btn_settings = new QPushButton(frame_4); + btn_settings->setObjectName("btn_settings"); + QSizePolicy sizePolicy2(QSizePolicy::Policy::Preferred, QSizePolicy::Policy::Preferred); + sizePolicy2.setHorizontalStretch(0); + sizePolicy2.setVerticalStretch(0); + sizePolicy2.setHeightForWidth(btn_settings->sizePolicy().hasHeightForWidth()); + btn_settings->setSizePolicy(sizePolicy2); + btn_settings->setMinimumSize(QSize(0, 0)); + btn_settings->setStyleSheet(QString::fromUtf8("/* btn_start \346\240\267\345\274\217 */\n" +"QPushButton#btn_settings {\n" +" background-color: rgb(52,52,52); /* \346\232\227\347\273\277\350\211\262\350\203\214\346\231\257 */\n" +" color: #ffffff; /* \347\231\275\350\211\262\346\226\207\345\255\227 */\n" +" border-radius: 12px; /* \345\234\206\350\247\222\345\215\212\345\276\204 */\n" +" font-size: 24px; /* \345\255\227\344\275\223\345\244\247\345\260\217 */\n" +" font-weight: bold; /* \347\262\227\344\275\223\345\255\227 */\n" +" padding: 10px 20px; /* \345\206\205\350\276\271\350\267\235 */\n" +"\n" +"}\n" +"\n" +"QPushButton#btn_settings:hover {\n" +" background-color: #28b45d; /* \347\250\215\344\272\256\347\232\204\346\232\227\347\273\277\350\211\262\350\203\214\346\231\257 */\n" +" border: 2px solid #1f8a4d; /* \346\232\227\347\273\277\350\211\262\350\276\271\346\241\206 */\n" +"}\n" +"\n" +"QPushButton#btn_settings:pressed {\n" +" background-color: #186a3b; /* \346\233\264\346\267\261\347\232\204\347" + "\273\277\350\211\262\350\203\214\346\231\257 */\n" +" color: #BDC3C7; /* \347\201\260\350\211\262\346\226\207\345\255\227 */\n" +" border: 2px solid #134d33; /* \346\233\264\346\267\261\347\232\204\347\273\277\350\211\262\350\276\271\346\241\206 */\n" +"}\n" +"\n" +"QPushButton#btn_start:disabled {\n" +" background-color: #7F8C8D; /* \347\201\260\350\211\262\350\203\214\346\231\257 */\n" +" color: #BDC3C7; /* \347\201\260\350\211\262\346\226\207\345\255\227 */\n" +" border: 2px solid #7F8C8D; /* \347\201\260\350\211\262\350\276\271\346\241\206 */\n" +"}")); + + horizontalLayout_2->addWidget(btn_settings); + + btn_live = new QPushButton(frame_4); + btn_live->setObjectName("btn_live"); + sizePolicy2.setHeightForWidth(btn_live->sizePolicy().hasHeightForWidth()); + btn_live->setSizePolicy(sizePolicy2); + btn_live->setMinimumSize(QSize(0, 0)); + btn_live->setStyleSheet(QString::fromUtf8("/* btn_start \346\240\267\345\274\217 */\n" +"QPushButton#btn_live {\n" +" background-color: rgb(52,52,52); /* \346\232\227\347\273\277\350\211\262\350\203\214\346\231\257 */\n" +" color: #ffffff; /* \347\231\275\350\211\262\346\226\207\345\255\227 */\n" +" border-radius: 12px; /* \345\234\206\350\247\222\345\215\212\345\276\204 */\n" +" font-size: 24px; /* \345\255\227\344\275\223\345\244\247\345\260\217 */\n" +" font-weight: bold; /* \347\262\227\344\275\223\345\255\227 */\n" +" padding: 10px 20px; /* \345\206\205\350\276\271\350\267\235 */\n" +"}\n" +"\n" +"QPushButton#btn_live:hover {\n" +" background-color: #28b45d; /* \347\250\215\344\272\256\347\232\204\346\232\227\347\273\277\350\211\262\350\203\214\346\231\257 */\n" +" border: 2px solid #1f8a4d; /* \346\232\227\347\273\277\350\211\262\350\276\271\346\241\206 */\n" +"}\n" +"\n" +"QPushButton#btn_live:pressed {\n" +" background-color: #186a3b; /* \346\233\264\346\267\261\347\232\204\347\273\277\350\211" + "\262\350\203\214\346\231\257 */\n" +" color: #BDC3C7; /* \347\201\260\350\211\262\346\226\207\345\255\227 */\n" +" border: 2px solid #134d33; /* \346\233\264\346\267\261\347\232\204\347\273\277\350\211\262\350\276\271\346\241\206 */\n" +"}\n" +"\n" +"QPushButton#btn_start:disabled {\n" +" background-color: #7F8C8D; /* \347\201\260\350\211\262\350\203\214\346\231\257 */\n" +" color: #BDC3C7; /* \347\201\260\350\211\262\346\226\207\345\255\227 */\n" +" border: 2px solid #7F8C8D; /* \347\201\260\350\211\262\350\276\271\346\241\206 */\n" +"}")); + + horizontalLayout_2->addWidget(btn_live); + + + verticalLayout_8->addWidget(frame_4); + + frame_5 = new QFrame(tab_4); + frame_5->setObjectName("frame_5"); + frame_5->setStyleSheet(QString::fromUtf8("QFrame#frame_5{\n" +"border:2px solid rgb(70,70,70);\n" +"font-family: Arial, sans-serif;\n" +" background: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 #2d2d2d, stop:1 #1a1a1a);\n" +" color: #ffffff;}")); + frame_5->setFrameShape(QFrame::Shape::StyledPanel); + frame_5->setFrameShadow(QFrame::Shadow::Raised); + horizontalLayout_16 = new QHBoxLayout(frame_5); + horizontalLayout_16->setSpacing(24); + horizontalLayout_16->setObjectName("horizontalLayout_16"); + horizontalLayout_16->setContentsMargins(38, 20, 38, 20); + frame_running_time = new QFrame(frame_5); + frame_running_time->setObjectName("frame_running_time"); + QSizePolicy sizePolicy3(QSizePolicy::Policy::Minimum, QSizePolicy::Policy::Expanding); + sizePolicy3.setHorizontalStretch(0); + sizePolicy3.setVerticalStretch(0); + sizePolicy3.setHeightForWidth(frame_running_time->sizePolicy().hasHeightForWidth()); + frame_running_time->setSizePolicy(sizePolicy3); + frame_running_time->setMinimumSize(QSize(346, 0)); + frame_running_time->setMaximumSize(QSize(16777215, 16777215)); + frame_running_time->setStyleSheet(QString::fromUtf8("QFrame#frame_running_time{\n" +"background: #2d2d2d;\n" +"border: 3px solid #444;\n" +"border-radius: 12px;\n" +"padding: 20px;\n" +"min-width: 300px;\n" +"box-shadow: 0px 8px 12px rgba(0, 0, 0, 0.5);}")); + frame_running_time->setFrameShape(QFrame::Shape::StyledPanel); + frame_running_time->setFrameShadow(QFrame::Shadow::Raised); + verticalLayout_2 = new QVBoxLayout(frame_running_time); + verticalLayout_2->setObjectName("verticalLayout_2"); + horizontalLayout_7 = new QHBoxLayout(); + horizontalLayout_7->setObjectName("horizontalLayout_7"); + label_7 = new QLabel(frame_running_time); + label_7->setObjectName("label_7"); + label_7->setStyleSheet(QString::fromUtf8("font: 700 26pt \"Microsoft YaHei UI\";\n" +"color:rgb(223,223,223);\n" +"background-color: #2d2d2d;;\n" +"")); + + horizontalLayout_7->addWidget(label_7); + + horizontalSpacer_5 = new QSpacerItem(40, 20, QSizePolicy::Policy::Expanding, QSizePolicy::Policy::Minimum); + + horizontalLayout_7->addItem(horizontalSpacer_5); + + + verticalLayout_2->addLayout(horizontalLayout_7); + + verticalSpacer_3 = new QSpacerItem(20, 357, QSizePolicy::Policy::Minimum, QSizePolicy::Policy::Expanding); + + verticalLayout_2->addItem(verticalSpacer_3); + + horizontalLayout_8 = new QHBoxLayout(); + horizontalLayout_8->setObjectName("horizontalLayout_8"); + horizontalLayout_8->setSizeConstraint(QLayout::SizeConstraint::SetMinimumSize); + label_10 = new QLabel(frame_running_time); + label_10->setObjectName("label_10"); + label_10->setStyleSheet(QString::fromUtf8("font: 700 32pt \"Microsoft YaHei UI\";\n" +"color:rgb(105,186,210);\n" +"background-color: #2d2d2d;;\n" +"")); + + horizontalLayout_8->addWidget(label_10); + + label_8 = new QLabel(frame_running_time); + label_8->setObjectName("label_8"); + QSizePolicy sizePolicy4(QSizePolicy::Policy::Minimum, QSizePolicy::Policy::Minimum); + sizePolicy4.setHorizontalStretch(0); + sizePolicy4.setVerticalStretch(0); + sizePolicy4.setHeightForWidth(label_8->sizePolicy().hasHeightForWidth()); + label_8->setSizePolicy(sizePolicy4); + label_8->setStyleSheet(QString::fromUtf8("font: 700 20pt \"Microsoft YaHei UI\";\n" +"color:rgb(105,186,210);\n" +"background-color: #2d2d2d;;\n" +"")); + + horizontalLayout_8->addWidget(label_8); + + label_11 = new QLabel(frame_running_time); + label_11->setObjectName("label_11"); + label_11->setStyleSheet(QString::fromUtf8("font: 700 32pt \"Microsoft YaHei UI\";\n" +"color:rgb(105,186,210);\n" +"background-color: #2d2d2d;;\n" +"")); + + horizontalLayout_8->addWidget(label_11); + + label_9 = new QLabel(frame_running_time); + label_9->setObjectName("label_9"); + sizePolicy4.setHeightForWidth(label_9->sizePolicy().hasHeightForWidth()); + label_9->setSizePolicy(sizePolicy4); + label_9->setStyleSheet(QString::fromUtf8("font: 700 20pt \"Microsoft YaHei UI\";\n" +"color:rgb(105,186,210);\n" +"background-color: #2d2d2d;;\n" +"")); + + horizontalLayout_8->addWidget(label_9); + + + verticalLayout_2->addLayout(horizontalLayout_8); + + verticalSpacer_2 = new QSpacerItem(20, 357, QSizePolicy::Policy::Minimum, QSizePolicy::Policy::Expanding); + + verticalLayout_2->addItem(verticalSpacer_2); + + horizontalLayout_9 = new QHBoxLayout(); + horizontalLayout_9->setObjectName("horizontalLayout_9"); + label_12 = new QLabel(frame_running_time); + label_12->setObjectName("label_12"); + label_12->setStyleSheet(QString::fromUtf8("font: 700 14pt \"Microsoft YaHei UI\";\n" +"color:rgb(169,169,169);\n" +"background-color: #2d2d2d;;\n" +"")); + + horizontalLayout_9->addWidget(label_12); + + horizontalSpacer_6 = new QSpacerItem(40, 20, QSizePolicy::Policy::Expanding, QSizePolicy::Policy::Minimum); + + horizontalLayout_9->addItem(horizontalSpacer_6); + + + verticalLayout_2->addLayout(horizontalLayout_9); + + progressBar = new QProgressBar(frame_running_time); + progressBar->setObjectName("progressBar"); + QSizePolicy sizePolicy5(QSizePolicy::Policy::Minimum, QSizePolicy::Policy::Fixed); + sizePolicy5.setHorizontalStretch(0); + sizePolicy5.setVerticalStretch(0); + sizePolicy5.setHeightForWidth(progressBar->sizePolicy().hasHeightForWidth()); + progressBar->setSizePolicy(sizePolicy5); + progressBar->setStyleSheet(QString::fromUtf8("/* \350\277\233\345\272\246\346\235\241\346\240\267\345\274\217 */\n" +"QProgressBar {\n" +" background: #444;\n" +" border: none;\n" +" height: 24px;\n" +" border-radius: 4px;\n" +"}\n" +"\n" +"QProgressBar::chunk {\n" +" background: #00bcd4;\n" +" width: 70%; /* \346\250\241\346\213\237\350\277\233\345\272\246 */\n" +"}\n" +"\n" +"/* \347\212\266\346\200\201\346\240\217\346\240\267\345\274\217 */\n" +"QStatusBar {\n" +" background: #1a1a1a;\n" +" padding: 10px 20px;\n" +" border-top: 1px solid #444;\n" +" color: #fff;\n" +"}\n" +"\n" +"QLabel#status-text {\n" +" color: #00ff00;\n" +" font-weight: bold;\n" +"}")); + progressBar->setValue(24); + + verticalLayout_2->addWidget(progressBar); + + + horizontalLayout_16->addWidget(frame_running_time); + + frame_valve = new QFrame(frame_5); + frame_valve->setObjectName("frame_valve"); + sizePolicy3.setHeightForWidth(frame_valve->sizePolicy().hasHeightForWidth()); + frame_valve->setSizePolicy(sizePolicy3); + frame_valve->setMaximumSize(QSize(16777215, 16777215)); + frame_valve->setStyleSheet(QString::fromUtf8("QFrame#frame_valve{\n" +"background: #2d2d2d;\n" +"border: 3px solid #444;\n" +"border-radius: 12px;\n" +"padding: 20px;\n" +"min-width: 300px;\n" +"box-shadow: 0px 8px 12px rgba(0, 0, 0, 0.5);}")); + frame_valve->setFrameShape(QFrame::Shape::StyledPanel); + frame_valve->setFrameShadow(QFrame::Shadow::Raised); + verticalLayout_6 = new QVBoxLayout(frame_valve); + verticalLayout_6->setObjectName("verticalLayout_6"); + horizontalLayout_10 = new QHBoxLayout(); + horizontalLayout_10->setObjectName("horizontalLayout_10"); + label_13 = new QLabel(frame_valve); + label_13->setObjectName("label_13"); + label_13->setStyleSheet(QString::fromUtf8("font: 700 26pt \"Microsoft YaHei UI\";\n" +"color:rgb(223,223,223);\n" +"background-color: #2d2d2d;;\n" +"")); + + horizontalLayout_10->addWidget(label_13); + + horizontalSpacer_7 = new QSpacerItem(40, 20, QSizePolicy::Policy::Expanding, QSizePolicy::Policy::Minimum); + + horizontalLayout_10->addItem(horizontalSpacer_7); + + + verticalLayout_6->addLayout(horizontalLayout_10); + + verticalSpacer_4 = new QSpacerItem(20, 163, QSizePolicy::Policy::Minimum, QSizePolicy::Policy::Expanding); + + verticalLayout_6->addItem(verticalSpacer_4); + + horizontalLayout_11 = new QHBoxLayout(); + horizontalLayout_11->setObjectName("horizontalLayout_11"); + label_16 = new QLabel(frame_valve); + label_16->setObjectName("label_16"); + label_16->setStyleSheet(QString::fromUtf8("font: 700 32pt \"Microsoft YaHei UI\";\n" +"color:rgb(105,186,210);\n" +"background-color: #2d2d2d;;\n" +"")); + label_16->setAlignment(Qt::AlignmentFlag::AlignRight|Qt::AlignmentFlag::AlignTrailing|Qt::AlignmentFlag::AlignVCenter); + + horizontalLayout_11->addWidget(label_16); + + label_17 = new QLabel(frame_valve); + label_17->setObjectName("label_17"); + sizePolicy4.setHeightForWidth(label_17->sizePolicy().hasHeightForWidth()); + label_17->setSizePolicy(sizePolicy4); + label_17->setStyleSheet(QString::fromUtf8("font: 700 20pt \"Microsoft YaHei UI\";\n" +"color:rgb(105,186,210);\n" +"background-color: #2d2d2d;;\n" +"")); + + horizontalLayout_11->addWidget(label_17); + + + verticalLayout_6->addLayout(horizontalLayout_11); + + verticalSpacer_5 = new QSpacerItem(20, 163, QSizePolicy::Policy::Minimum, QSizePolicy::Policy::Expanding); + + verticalLayout_6->addItem(verticalSpacer_5); + + horizontalLayout_17 = new QHBoxLayout(); + horizontalLayout_17->setObjectName("horizontalLayout_17"); + label_19 = new QLabel(frame_valve); + label_19->setObjectName("label_19"); + label_19->setStyleSheet(QString::fromUtf8("font: 700 14pt \"Microsoft YaHei UI\";\n" +"color:rgb(169,169,169);\n" +"background-color: #2d2d2d;;\n" +"")); + + horizontalLayout_17->addWidget(label_19); + + horizontalSpacer_10 = new QSpacerItem(40, 20, QSizePolicy::Policy::Expanding, QSizePolicy::Policy::Minimum); + + horizontalLayout_17->addItem(horizontalSpacer_10); + + + verticalLayout_6->addLayout(horizontalLayout_17); + + horizontalLayout_12 = new QHBoxLayout(); + horizontalLayout_12->setObjectName("horizontalLayout_12"); + label_18 = new QLabel(frame_valve); + label_18->setObjectName("label_18"); + label_18->setStyleSheet(QString::fromUtf8("font: 700 16pt \"Microsoft YaHei UI\";\n" +"color:rgb(169,169,169);\n" +"background-color: #2d2d2d;;\n" +"")); + + horizontalLayout_12->addWidget(label_18); + + horizontalSpacer_8 = new QSpacerItem(40, 20, QSizePolicy::Policy::Expanding, QSizePolicy::Policy::Minimum); + + horizontalLayout_12->addItem(horizontalSpacer_8); + + + verticalLayout_6->addLayout(horizontalLayout_12); + + + horizontalLayout_16->addWidget(frame_valve); + + frame_history = new QFrame(frame_5); + frame_history->setObjectName("frame_history"); + QSizePolicy sizePolicy6(QSizePolicy::Policy::Expanding, QSizePolicy::Policy::Expanding); + sizePolicy6.setHorizontalStretch(0); + sizePolicy6.setVerticalStretch(0); + sizePolicy6.setHeightForWidth(frame_history->sizePolicy().hasHeightForWidth()); + frame_history->setSizePolicy(sizePolicy6); + frame_history->setMaximumSize(QSize(16777215, 16777215)); + frame_history->setStyleSheet(QString::fromUtf8("QFrame#frame_history{\n" +"background: #2d2d2d;\n" +"border: 3px solid #444;\n" +"border-radius: 12px;\n" +"padding: 20px;\n" +"min-width: 300px;\n" +"box-shadow: 0px 8px 12px rgba(0, 0, 0, 0.5);}")); + frame_history->setFrameShape(QFrame::Shape::StyledPanel); + frame_history->setFrameShadow(QFrame::Shadow::Raised); + verticalLayout_7 = new QVBoxLayout(frame_history); + verticalLayout_7->setObjectName("verticalLayout_7"); + horizontalLayout_13 = new QHBoxLayout(); + horizontalLayout_13->setObjectName("horizontalLayout_13"); + label_14 = new QLabel(frame_history); + label_14->setObjectName("label_14"); + label_14->setStyleSheet(QString::fromUtf8("font: 700 26pt \"Microsoft YaHei UI\";\n" +"color:rgb(223,223,223);\n" +"background-color: #2d2d2d;;\n" +"")); + + horizontalLayout_13->addWidget(label_14); + + horizontalSpacer_9 = new QSpacerItem(40, 20, QSizePolicy::Policy::Expanding, QSizePolicy::Policy::Minimum); + + horizontalLayout_13->addItem(horizontalSpacer_9); + + + verticalLayout_7->addLayout(horizontalLayout_13); + + horizontalLayout_14 = new QHBoxLayout(); + horizontalLayout_14->setObjectName("horizontalLayout_14"); + + verticalLayout_7->addLayout(horizontalLayout_14); + + verticalSpacer_7 = new QSpacerItem(20, 163, QSizePolicy::Policy::Minimum, QSizePolicy::Policy::Expanding); + + verticalLayout_7->addItem(verticalSpacer_7); + + horizontalLayout_15 = new QHBoxLayout(); + horizontalLayout_15->setObjectName("horizontalLayout_15"); + + verticalLayout_7->addLayout(horizontalLayout_15); + + + horizontalLayout_16->addWidget(frame_history); + + horizontalLayout_16->setStretch(0, 1); + horizontalLayout_16->setStretch(1, 1); + horizontalLayout_16->setStretch(2, 2); + + verticalLayout_8->addWidget(frame_5); + + frame_8 = new QFrame(tab_4); + frame_8->setObjectName("frame_8"); + frame_8->setMinimumSize(QSize(90, 0)); + frame_8->setFrameShape(QFrame::Shape::StyledPanel); + frame_8->setFrameShadow(QFrame::Shadow::Raised); + horizontalLayout_18 = new QHBoxLayout(frame_8); + horizontalLayout_18->setObjectName("horizontalLayout_18"); + horizontalSpacer_11 = new QSpacerItem(959, 20, QSizePolicy::Policy::Expanding, QSizePolicy::Policy::Minimum); + + horizontalLayout_18->addItem(horizontalSpacer_11); + + label_20 = new QLabel(frame_8); + label_20->setObjectName("label_20"); + label_20->setStyleSheet(QString::fromUtf8("font: 18pt \"Microsoft YaHei UI\";\n" +"color: #ffffff")); + + horizontalLayout_18->addWidget(label_20); + + label_21 = new QLabel(frame_8); + label_21->setObjectName("label_21"); + label_21->setStyleSheet(QString::fromUtf8("font: 18pt \"Microsoft YaHei UI\";\n" +"color: rgb(144,255,60);r'g'b")); + + horizontalLayout_18->addWidget(label_21); + + horizontalSpacer_12 = new QSpacerItem(959, 20, QSizePolicy::Policy::Expanding, QSizePolicy::Policy::Minimum); + + horizontalLayout_18->addItem(horizontalSpacer_12); + + + verticalLayout_8->addWidget(frame_8); + tabWidget->addTab(tab_4, QString()); horizontalLayout->addWidget(tabWidget); @@ -598,7 +1133,7 @@ public: retranslateUi(Widget); - tabWidget->setCurrentIndex(1); + tabWidget->setCurrentIndex(2); QMetaObject::connectSlotsByName(Widget); @@ -646,7 +1181,26 @@ public: groupBox_3->setTitle(QCoreApplication::translate("Widget", "\350\207\252\345\212\250\345\226\267\351\230\200\346\265\213\350\257\225", nullptr)); btn_test_single->setText(QCoreApplication::translate("Widget", "\345\274\200\345\247\213\346\265\213\350\257\225", nullptr)); btn_stop_test->setText(QCoreApplication::translate("Widget", "\345\201\234\346\255\242\346\265\213\350\257\225", nullptr)); + btn_tab3_backtab2_2->setText(QCoreApplication::translate("Widget", "home", nullptr)); tabWidget->setTabText(tabWidget->indexOf(tab_3), QCoreApplication::translate("Widget", "Tab 3", nullptr)); + label_5->setText(QCoreApplication::translate("Widget", "\351\223\266\345\212\233\346\243\211\346\262\271\346\234\272\346\242\260\346\234\211\351\231\220\345\205\254\345\217\270", nullptr)); + label_6->setText(QCoreApplication::translate("Widget", "2024-12-26 10:30AM", nullptr)); + btn_settings->setText(QCoreApplication::translate("Widget", "\350\256\276\347\275\256", nullptr)); + btn_live->setText(QCoreApplication::translate("Widget", "\347\233\270\346\234\272", nullptr)); + label_7->setText(QCoreApplication::translate("Widget", "\350\277\220\350\241\214\346\227\266\351\227\264", nullptr)); + label_10->setText(QCoreApplication::translate("Widget", "482", nullptr)); + label_8->setText(QCoreApplication::translate("Widget", "\345\260\217\346\227\266", nullptr)); + label_11->setText(QCoreApplication::translate("Widget", "52", nullptr)); + label_9->setText(QCoreApplication::translate("Widget", "\345\210\206\351\222\237", nullptr)); + label_12->setText(QCoreApplication::translate("Widget", "\344\273\212\346\227\245\350\277\220\350\241\214\346\227\266\351\225\277:8\345\260\217\346\227\26615\345\210\206\351\222\23732\347\247\222", nullptr)); + label_13->setText(QCoreApplication::translate("Widget", "\345\226\267\346\260\224\346\254\241\346\225\260", nullptr)); + label_16->setText(QCoreApplication::translate("Widget", "12,233,473", nullptr)); + label_17->setText(QCoreApplication::translate("Widget", "\346\254\241", nullptr)); + label_19->setText(QCoreApplication::translate("Widget", "\344\273\212\346\227\245\347\264\257\350\256\241\345\226\267\346\260\224\346\254\241\346\225\260:", nullptr)); + label_18->setText(QCoreApplication::translate("Widget", "320\346\254\241", nullptr)); + label_14->setText(QCoreApplication::translate("Widget", "\345\216\206\345\217\262\346\225\260\346\215\256", nullptr)); + label_20->setText(QCoreApplication::translate("Widget", "\350\256\276\345\244\207\347\212\266\346\200\201: ", nullptr)); + label_21->setText(QCoreApplication::translate("Widget", "\346\255\243\345\270\270\350\277\220\350\241\214", nullptr)); tabWidget->setTabText(tabWidget->indexOf(tab_4), QCoreApplication::translate("Widget", "Tab 4", nullptr)); } // retranslateUi diff --git a/widget.cpp b/widget.cpp index 84527e2..b169e51 100644 --- a/widget.cpp +++ b/widget.cpp @@ -67,7 +67,7 @@ Widget::Widget(QWidget *parent) connect(timer, &QTimer::timeout, this, &Widget::refreshImage); timer->start(50); // 每50毫秒秒刷新一次界面 - ui->tabWidget->setCurrentIndex(1); + // ui->tabWidget->setCurrentIndex(1); } Widget::~Widget() @@ -389,3 +389,21 @@ void Widget::on_btn_tab3_backtab2_clicked() ui->tabWidget->setCurrentIndex(1); } + +void Widget::on_btn_live_clicked() +{ + ui->tabWidget->setCurrentIndex(1); +} + + +void Widget::on_btn_tab3_backtab2_2_clicked() +{ + ui->tabWidget->setCurrentIndex(3); +} + + +void Widget::on_btn_settings_clicked() +{ + ui->tabWidget->setCurrentIndex(2); +} + diff --git a/widget.h b/widget.h index 2776456..511a457 100644 --- a/widget.h +++ b/widget.h @@ -48,6 +48,12 @@ private slots: void on_btn_tab3_backtab2_clicked(); + void on_btn_live_clicked(); + + void on_btn_tab3_backtab2_2_clicked(); + + void on_btn_settings_clicked(); + private: Ui::Widget *ui; diff --git a/widget.ui b/widget.ui index 7008b76..f676136 100644 --- a/widget.ui +++ b/widget.ui @@ -35,7 +35,7 @@ background-color: rgb(228, 223, 186); - 1 + 2 true @@ -900,11 +900,796 @@ border-color: rgb(0, 0, 0); + + + + 510 + 770 + 231 + 141 + + + + home + + + + background-color: rgb(26, 26, 26); + Tab 4 + + + 0 + + + 0 + + + + + QFrame::Shape::StyledPanel + + + QFrame::Shadow::Raised + + + + + + font: 700 30pt "Microsoft YaHei UI"; +color: rgb(255, 255, 255) + + + 银力棉油机械有限公司 + + + + + + + Qt::Orientation::Horizontal + + + + 672 + 20 + + + + + + + + font: 14pt "Microsoft YaHei UI"; +color: rgb(170, 170, 170) + + + 2024-12-26 10:30AM + + + + + + + Qt::Orientation::Horizontal + + + + 672 + 20 + + + + + + + + + 0 + 0 + + + + + 0 + 0 + + + + /* btn_start 样式 */ +QPushButton#btn_settings { + background-color: rgb(52,52,52); /* 暗绿色背景 */ + color: #ffffff; /* 白色文字 */ + border-radius: 12px; /* 圆角半径 */ + font-size: 24px; /* 字体大小 */ + font-weight: bold; /* 粗体字 */ + padding: 10px 20px; /* 内边距 */ + +} + +QPushButton#btn_settings:hover { + background-color: #28b45d; /* 稍亮的暗绿色背景 */ + border: 2px solid #1f8a4d; /* 暗绿色边框 */ +} + +QPushButton#btn_settings:pressed { + background-color: #186a3b; /* 更深的绿色背景 */ + color: #BDC3C7; /* 灰色文字 */ + border: 2px solid #134d33; /* 更深的绿色边框 */ +} + +QPushButton#btn_start:disabled { + background-color: #7F8C8D; /* 灰色背景 */ + color: #BDC3C7; /* 灰色文字 */ + border: 2px solid #7F8C8D; /* 灰色边框 */ +} + + + 设置 + + + + + + + + 0 + 0 + + + + + 0 + 0 + + + + /* btn_start 样式 */ +QPushButton#btn_live { + background-color: rgb(52,52,52); /* 暗绿色背景 */ + color: #ffffff; /* 白色文字 */ + border-radius: 12px; /* 圆角半径 */ + font-size: 24px; /* 字体大小 */ + font-weight: bold; /* 粗体字 */ + padding: 10px 20px; /* 内边距 */ +} + +QPushButton#btn_live:hover { + background-color: #28b45d; /* 稍亮的暗绿色背景 */ + border: 2px solid #1f8a4d; /* 暗绿色边框 */ +} + +QPushButton#btn_live:pressed { + background-color: #186a3b; /* 更深的绿色背景 */ + color: #BDC3C7; /* 灰色文字 */ + border: 2px solid #134d33; /* 更深的绿色边框 */ +} + +QPushButton#btn_start:disabled { + background-color: #7F8C8D; /* 灰色背景 */ + color: #BDC3C7; /* 灰色文字 */ + border: 2px solid #7F8C8D; /* 灰色边框 */ +} + + + 相机 + + + + + + + + + + QFrame#frame_5{ +border:2px solid rgb(70,70,70); +font-family: Arial, sans-serif; + background: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 #2d2d2d, stop:1 #1a1a1a); + color: #ffffff;} + + + QFrame::Shape::StyledPanel + + + QFrame::Shadow::Raised + + + + 24 + + + 38 + + + 20 + + + 38 + + + 20 + + + + + + 0 + 0 + + + + + 346 + 0 + + + + + 16777215 + 16777215 + + + + QFrame#frame_running_time{ +background: #2d2d2d; +border: 3px solid #444; +border-radius: 12px; +padding: 20px; +min-width: 300px; +box-shadow: 0px 8px 12px rgba(0, 0, 0, 0.5);} + + + QFrame::Shape::StyledPanel + + + QFrame::Shadow::Raised + + + + + + + + font: 700 26pt "Microsoft YaHei UI"; +color:rgb(223,223,223); +background-color: #2d2d2d;; + + + + 运行时间 + + + + + + + Qt::Orientation::Horizontal + + + + 40 + 20 + + + + + + + + + + Qt::Orientation::Vertical + + + + 20 + 357 + + + + + + + + QLayout::SizeConstraint::SetMinimumSize + + + + + font: 700 32pt "Microsoft YaHei UI"; +color:rgb(105,186,210); +background-color: #2d2d2d;; + + + + 482 + + + + + + + + 0 + 0 + + + + font: 700 20pt "Microsoft YaHei UI"; +color:rgb(105,186,210); +background-color: #2d2d2d;; + + + + 小时 + + + + + + + font: 700 32pt "Microsoft YaHei UI"; +color:rgb(105,186,210); +background-color: #2d2d2d;; + + + + 52 + + + + + + + + 0 + 0 + + + + font: 700 20pt "Microsoft YaHei UI"; +color:rgb(105,186,210); +background-color: #2d2d2d;; + + + + 分钟 + + + + + + + + + Qt::Orientation::Vertical + + + + 20 + 357 + + + + + + + + + + font: 700 14pt "Microsoft YaHei UI"; +color:rgb(169,169,169); +background-color: #2d2d2d;; + + + + 今日运行时长:8小时15分钟32秒 + + + + + + + Qt::Orientation::Horizontal + + + + 40 + 20 + + + + + + + + + + + 0 + 0 + + + + /* 进度条样式 */ +QProgressBar { + background: #444; + border: none; + height: 24px; + border-radius: 4px; +} + +QProgressBar::chunk { + background: #00bcd4; + width: 70%; /* 模拟进度 */ +} + +/* 状态栏样式 */ +QStatusBar { + background: #1a1a1a; + padding: 10px 20px; + border-top: 1px solid #444; + color: #fff; +} + +QLabel#status-text { + color: #00ff00; + font-weight: bold; +} + + + 24 + + + + + + + + + + + 0 + 0 + + + + + 16777215 + 16777215 + + + + QFrame#frame_valve{ +background: #2d2d2d; +border: 3px solid #444; +border-radius: 12px; +padding: 20px; +min-width: 300px; +box-shadow: 0px 8px 12px rgba(0, 0, 0, 0.5);} + + + QFrame::Shape::StyledPanel + + + QFrame::Shadow::Raised + + + + + + + + font: 700 26pt "Microsoft YaHei UI"; +color:rgb(223,223,223); +background-color: #2d2d2d;; + + + + 喷气次数 + + + + + + + Qt::Orientation::Horizontal + + + + 40 + 20 + + + + + + + + + + Qt::Orientation::Vertical + + + + 20 + 163 + + + + + + + + + + font: 700 32pt "Microsoft YaHei UI"; +color:rgb(105,186,210); +background-color: #2d2d2d;; + + + + 12,233,473 + + + Qt::AlignmentFlag::AlignRight|Qt::AlignmentFlag::AlignTrailing|Qt::AlignmentFlag::AlignVCenter + + + + + + + + 0 + 0 + + + + font: 700 20pt "Microsoft YaHei UI"; +color:rgb(105,186,210); +background-color: #2d2d2d;; + + + + + + + + + + + + + Qt::Orientation::Vertical + + + + 20 + 163 + + + + + + + + + + font: 700 14pt "Microsoft YaHei UI"; +color:rgb(169,169,169); +background-color: #2d2d2d;; + + + + 今日累计喷气次数: + + + + + + + Qt::Orientation::Horizontal + + + + 40 + 20 + + + + + + + + + + + + font: 700 16pt "Microsoft YaHei UI"; +color:rgb(169,169,169); +background-color: #2d2d2d;; + + + + 320次 + + + + + + + Qt::Orientation::Horizontal + + + + 40 + 20 + + + + + + + + + + + + + + 0 + 0 + + + + + 16777215 + 16777215 + + + + QFrame#frame_history{ +background: #2d2d2d; +border: 3px solid #444; +border-radius: 12px; +padding: 20px; +min-width: 300px; +box-shadow: 0px 8px 12px rgba(0, 0, 0, 0.5);} + + + QFrame::Shape::StyledPanel + + + QFrame::Shadow::Raised + + + + + + + + font: 700 26pt "Microsoft YaHei UI"; +color:rgb(223,223,223); +background-color: #2d2d2d;; + + + + 历史数据 + + + + + + + Qt::Orientation::Horizontal + + + + 40 + 20 + + + + + + + + + + + + + Qt::Orientation::Vertical + + + + 20 + 163 + + + + + + + + + + + + + + + + + + 90 + 0 + + + + QFrame::Shape::StyledPanel + + + QFrame::Shadow::Raised + + + + + + Qt::Orientation::Horizontal + + + + 959 + 20 + + + + + + + + font: 18pt "Microsoft YaHei UI"; +color: #ffffff + + + 设备状态: + + + + + + + font: 18pt "Microsoft YaHei UI"; +color: rgb(144,255,60);r'g'b + + + 正常运行 + + + + + + + Qt::Orientation::Horizontal + + + + 959 + 20 + + + + + + + +