Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
V
VC66_7C
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ISUZU
VC66_7C
Commits
921095a3
Commit
921095a3
authored
Feb 15, 2022
by
hu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整界面逻辑
parent
fe802455
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
132 additions
and
12 deletions
+132
-12
Key_user.c
source/Application/APP/Key/Key_user.c
+76
-7
GUI.c
source/Application/Graphic/GUI/GUI.c
+49
-2
GUI.h
source/Application/Graphic/GUI/GUI.h
+2
-0
Menu_user.c
source/Application/Graphic/Menu/Menu_user.c
+2
-0
DisplaySch_user.c
source/Application/Graphic/UE/DisplaySch_user.c
+3
-3
No files found.
source/Application/APP/Key/Key_user.c
View file @
921095a3
...
...
@@ -344,6 +344,10 @@ void Key_Operation_Up(Key_Event_en_t enKeyEvent)
{
NextMenu
(
MenuOptTab
[
bCurMenuIDX
].
VK_IDX_UP
);
}
else
{
;
/*Do Nothing!*/
}
}
else
if
(
enKeyEvent
==
KEY_EVENT_LONG_PRESS
)
{
...
...
@@ -370,7 +374,18 @@ void Key_Operation_Up(Key_Event_en_t enKeyEvent)
{
if
(
enKeyEvent
==
KEY_EVENT_SHORT_PRESS
)
{
;
/*D0 Nothing!*/
/*工厂模式*/
/*经销商模式*/
if
(((
bCurMenuIDX
>=
_FAC_DSP_LEVEL1MENU_1
)
&&
(
bCurMenuIDX
<=
_FAC_DSP_LEVEL1MENU_6
))
||
((
bCurMenuIDX
>=
_FAC_DSP_LEVEL1_3MENU_1
)
&&
(
bCurMenuIDX
<=
_FAC_DSP_LEVEL1_3MENU_2
))
||
((
bCurMenuIDX
>=
_DEA_DSP_LEVEL1MENU_1
)
&&
(
bCurMenuIDX
<=
_DEA_DSP_LEVEL1MENU_6
))
||
((
bCurMenuIDX
>=
_DEA_DSP_LEVEL1_3MENU_1
)
&&
(
bCurMenuIDX
<=
_DEA_DSP_LEVEL1_3MENU_2
)))
{
NextMenu
(
MenuOptTab
[
bCurMenuIDX
].
VK_IDX_UP
);
}
else
{
;
/*Do Nothing!*/
}
}
else
if
(
enKeyEvent
==
KEY_EVENT_LONG_PRESS
)
{
...
...
@@ -708,6 +723,10 @@ void Key_Operation_Down(Key_Event_en_t enKeyEvent)
{
NextMenu
(
MenuOptTab
[
bCurMenuIDX
].
VK_IDX_DOWN
);
}
else
{
;
/*Do Nothing!*/
}
}
else
if
(
enKeyEvent
==
KEY_EVENT_LONG_PRESS
)
{
...
...
@@ -734,7 +753,18 @@ void Key_Operation_Down(Key_Event_en_t enKeyEvent)
{
if
(
enKeyEvent
==
KEY_EVENT_SHORT_PRESS
)
{
;
/*D0 Nothing!*/
/*工厂模式*/
/*经销商模式*/
if
(((
bCurMenuIDX
>=
_FAC_DSP_LEVEL1MENU_1
)
&&
(
bCurMenuIDX
<=
_FAC_DSP_LEVEL1MENU_6
))
||
((
bCurMenuIDX
>=
_FAC_DSP_LEVEL1_3MENU_1
)
&&
(
bCurMenuIDX
<=
_FAC_DSP_LEVEL1_3MENU_2
))
||
((
bCurMenuIDX
>=
_DEA_DSP_LEVEL1MENU_1
)
&&
(
bCurMenuIDX
<=
_DEA_DSP_LEVEL1MENU_6
))
||
((
bCurMenuIDX
>=
_DEA_DSP_LEVEL1_3MENU_1
)
&&
(
bCurMenuIDX
<=
_DEA_DSP_LEVEL1_3MENU_2
)))
{
NextMenu
(
MenuOptTab
[
bCurMenuIDX
].
VK_IDX_DOWN
);
}
else
{
;
/*Do Nothing!*/
}
}
else
if
(
enKeyEvent
==
KEY_EVENT_LONG_PRESS
)
{
...
...
@@ -826,11 +856,22 @@ void Key_Operation_Enter(Key_Event_en_t enKeyEvent)
NextMenu
(
_MN_DSP_RETURN_MENU
);
}
/*工厂模式 经销商模式*/
else
if
((
bCurMenuIDX
>=
_FAC_DSP_LEVEL1MENU_1
)
&&
(
bCurMenuIDX
<=
_DEA_DSP_LEVEL2_1MENU_4
))
else
if
((
bCurMenuIDX
>=
_FAC_DSP_LEVEL0MENU_1
)
&&
(
bCurMenuIDX
<=
_MN_DSP_MENU_MAX
))
{
if
((
bCurMenuIDX
==
_FAC_DSP_LEVEL1MENU_5
)
||
(
bCurMenuIDX
==
_DEA_DSP_LEVEL1MENU_5
))
{
K_Line_Set
.
K_Line_LID51
=
1u
;
}
else
{
NextMenu
(
MenuOptTab
[
bCurMenuIDX
].
VK_IDX_ENTER
);
}
}
else
{
;
/*Do Nothing!*/
}
}
else
if
(
enKeyEvent
==
KEY_EVENT_LONG_PRESS
)
{
/*Go Enter*/
...
...
@@ -861,7 +902,22 @@ void Key_Operation_Enter(Key_Event_en_t enKeyEvent)
{
if
(
enKeyEvent
==
KEY_EVENT_SHORT_PRESS
)
{
;
/*D0 Nothing!*/
/*工厂模式 经销商模式*/
if
((
bCurMenuIDX
>=
_FAC_DSP_LEVEL0MENU_1
)
&&
(
bCurMenuIDX
<=
_MN_DSP_MENU_MAX
))
{
if
((
bCurMenuIDX
==
_FAC_DSP_LEVEL1MENU_5
)
||
(
bCurMenuIDX
==
_DEA_DSP_LEVEL1MENU_5
))
{
K_Line_Set
.
K_Line_LID51
=
1u
;
}
else
{
NextMenu
(
MenuOptTab
[
bCurMenuIDX
].
VK_IDX_ENTER
);
}
}
else
{
;
/*Do Nothing!*/
}
}
else
if
(
enKeyEvent
==
KEY_EVENT_LONG_PRESS
)
{
...
...
@@ -954,6 +1010,11 @@ void Key_Operation_Return(Key_Event_en_t enKeyEvent)
MenuFlag
.
Menu_Return
=
0
;
NextMenu
(
MenuFlag
.
Menu_Enter_Return
);
}
/*工厂模式 经销商模式*/
else
if
((
bCurMenuIDX
>=
_FAC_DSP_LEVEL0MENU_1
)
&&
(
bCurMenuIDX
<=
_MN_DSP_MENU_MAX
))
{
NextMenu
(
MenuOptTab
[
bCurMenuIDX
].
VK_IDX_EXIT
);
}
else
{
;
/*do nothing*/
...
...
@@ -984,7 +1045,15 @@ void Key_Operation_Return(Key_Event_en_t enKeyEvent)
/*----有车速,无报警----*/
if
(
enKeyEvent
==
KEY_EVENT_SHORT_PRESS
)
{
;
/*Do Nothing!*/
/*工厂模式 经销商模式*/
if
((
bCurMenuIDX
>=
_FAC_DSP_LEVEL0MENU_1
)
&&
(
bCurMenuIDX
<=
_MN_DSP_MENU_MAX
))
{
NextMenu
(
MenuOptTab
[
bCurMenuIDX
].
VK_IDX_EXIT
);
}
else
{
;
/*do nothing*/
}
}
else
if
(
enKeyEvent
==
KEY_EVENT_LONG_PRESS
)
{
...
...
@@ -1047,7 +1116,7 @@ void Key_Operation_Menu(Key_Event_en_t enKeyEvent)
/*自检模式进入经销商模式*/
else
if
(
bCurMenuIDX
==
_MN_DSP_Menu_Test
)
{
MenuFlag
.
Meun_Test_Dealer
=
1u
;
K_Line_Set
.
K_Line_LID51
=
0x02
;
}
}
else
if
(
enKeyEvent
==
KEY_EVENT_LONG_PRESS
)
...
...
source/Application/Graphic/GUI/GUI.c
View file @
921095a3
...
...
@@ -6367,6 +6367,30 @@ void Loc_Display_Blue(void)
R_WM_FrameWait
(
0
,
0
);
}
/*--------------------------------------------------------------------------
* Function Name : GUI_FacMenu_Display
* Description :
* Input : None
* Output : None
* Return : None
* onther : 区域
--------------------------------------------------------------------------*/
void
GUI_FacMenu_Display
(
uint8_t
Mode
)
{
if
(
Mode
==
GUI_DISP_MODE_NORMAL
)
{
GUI_General_Display
(
MENU_Sprite
,
CN_User_Menu1_wenzi
,
GUI_BLENDMODE_SRC_OVER
);
/*menu*/
GUI_General_Display
(
MENU_Sprite
,
CN_fengexian
,
GUI_BLENDMODE_SRC_OVER
);
/*line*/
GUI_General_Display
(
MENU_Sprite
,
CN_gundongtiao
,
GUI_BLENDMODE_SRC_OVER
);
/*长度条*/
GUI_General_Display
(
MENU_Sprite
,
CN_Fty_Menu2_06_1black
,
GUI_BLENDMODE_SRC_OVER
);
}
else
{
GUI_General_Display
(
MENU_Sprite
,
SpriteSize
,
GUI_BLENDMODE_SRC_OVER
);
}
}
/*--------------------------------------------------------------------------
* Function Name : GUI_BG_FacMenu_Display
* Description :
...
...
@@ -6928,6 +6952,29 @@ void GUI_BG_FacMeter_Display(uint8_t Mode)
}
}
/*--------------------------------------------------------------------------
* Function Name : GUI_DeaMenu_Display
* Description :
* Input : None
* Output : None
* Return : None
* onther : 区域
--------------------------------------------------------------------------*/
void
GUI_DeaMenu_Display
(
uint8_t
Mode
)
{
if
(
Mode
==
GUI_DISP_MODE_NORMAL
)
{
GUI_General_Display
(
MENU_Sprite
,
CN_User_Menu1_wenzi
,
GUI_BLENDMODE_SRC_OVER
);
/*menu*/
GUI_General_Display
(
MENU_Sprite
,
CN_fengexian
,
GUI_BLENDMODE_SRC_OVER
);
/*line*/
GUI_General_Display
(
MENU_Sprite
,
CN_gundongtiao
,
GUI_BLENDMODE_SRC_OVER
);
/*长度条*/
GUI_General_Display
(
MENU_Sprite
,
CN_DLR_Menu2_07_1black
,
GUI_BLENDMODE_SRC_OVER
);
}
else
{
GUI_General_Display
(
MENU_Sprite
,
SpriteSize
,
GUI_BLENDMODE_SRC_OVER
);
}
}
/*--------------------------------------------------------------------------
* Function Name : GUI_BG_DeaMenu_Display
* Description :
...
...
@@ -7171,7 +7218,7 @@ void GUI_BG_DeaDTCClear3_Display(uint8_t Mode)
GUI_General_Display
(
MENU_Sprite
,
CN_Fty_Menu2_02_wenzi
,
GUI_BLENDMODE_SRC_OVER
);
/*menu*/
GUI_General_Display
(
MENU_Sprite
,
CN_fengexian
,
GUI_BLENDMODE_SRC_OVER
);
/*line*/
GUI_General_Display
(
MENU_Sprite
,
CN_Fty_Menu2_02_
2
,
GUI_BLENDMODE_SRC_OVER
);
GUI_General_Display
(
MENU_Sprite
,
CN_Fty_Menu2_02_
3
,
GUI_BLENDMODE_SRC_OVER
);
}
else
{
...
...
@@ -7194,7 +7241,7 @@ void GUI_BG_DeaDTCClear4_Display(uint8_t Mode)
GUI_General_Display
(
MENU_Sprite
,
CN_Fty_Menu2_02_wenzi
,
GUI_BLENDMODE_SRC_OVER
);
/*menu*/
GUI_General_Display
(
MENU_Sprite
,
CN_fengexian
,
GUI_BLENDMODE_SRC_OVER
);
/*line*/
GUI_General_Display
(
MENU_Sprite
,
CN_Fty_Menu2_02_
2
,
GUI_BLENDMODE_SRC_OVER
);
GUI_General_Display
(
MENU_Sprite
,
CN_Fty_Menu2_02_
4
,
GUI_BLENDMODE_SRC_OVER
);
}
else
{
...
...
source/Application/Graphic/GUI/GUI.h
View file @
921095a3
...
...
@@ -418,6 +418,7 @@ void GUI_BG_UserSet_SYSD_IDLING_Display(uint8_t Mode); /**/
void
GUI_BG_UserSet_SYSD_Parking_Display
(
uint8_t
Mode
);
/**/
void
GUI_BG_User_Light1_Display
(
uint8_t
Mode
);
/**/
void
GUI_BG_User_Light2_Display
(
uint8_t
Mode
);
/**/
void
GUI_FacMenu_Display
(
uint8_t
Mode
);
/*工厂模式MENU*/
void
GUI_BG_FacMenu_Display
(
uint8_t
Mode
);
/*工厂模式*/
void
GUI_BG_FacMenu1_Display
(
uint8_t
Mode
);
/**/
void
GUI_BG_FacMenu2_Display
(
uint8_t
Mode
);
/**/
...
...
@@ -430,6 +431,7 @@ void GUI_BG_FacDTCClear2_Display(uint8_t Mode); /*工厂模式清除DTC2
void
GUI_BG_FacDTCClear3_Display
(
uint8_t
Mode
);
/*工厂模式清除DTC2*/
void
GUI_BG_FacDTCClear4_Display
(
uint8_t
Mode
);
/*工厂模式清除DTC2*/
void
GUI_BG_FacMeter_Display
(
uint8_t
Mode
);
/*工厂模式仪表显示*/
void
GUI_DeaMenu_Display
(
uint8_t
Mode
);
/*经销商模式MENU*/
void
GUI_BG_DeaMenu_Display
(
uint8_t
Mode
);
/*经销商模式*/
void
GUI_BG_DeaMenu1_Display
(
uint8_t
Mode
);
/**/
void
GUI_BG_DeaMenu2_Display
(
uint8_t
Mode
);
/**/
...
...
source/Application/Graphic/Menu/Menu_user.c
View file @
921095a3
...
...
@@ -1663,6 +1663,7 @@ void LevelF0Menu_1Enter(void)
void
LevelF0Menu_1Do
(
void
)
{
GUI_OftenShow_Display
();
GUI_FacMenu_Display
(
GUI_DISP_MODE_NORMAL
);
}
void
LevelF0Menu_1Exit
(
void
)
{}
...
...
@@ -1856,6 +1857,7 @@ void LevelD0Menu_1Enter(void)
void
LevelD0Menu_1Do
(
void
)
{
GUI_OftenShow_Display
();
GUI_DeaMenu_Display
(
GUI_DISP_MODE_NORMAL
);
}
void
LevelD0Menu_1Exit
(
void
)
{}
...
...
source/Application/Graphic/UE/DisplaySch_user.c
View file @
921095a3
...
...
@@ -191,7 +191,7 @@ void DisplayServices(void)
/*经销商模式*/
else
if
(
MenuFlag
.
Menu_Popup_Flag
==
3u
)
{
if
(
(
K_Line_Set
.
K_Line_LID51
==
0x01u
)
&&
(
MenuFlag
.
Meun_Test_Dealer
!=
1u
))
/*MenuFlag.Key_MenuTest_ShortNum EOL51变化时要清零*/
if
(
K_Line_Set
.
K_Line_LID51
==
0x01u
)
{
MenuFlag
.
Menu_Popup_Flag
=
1u
;
}
...
...
@@ -211,7 +211,7 @@ void DisplayServices(void)
{
MenuFlag
.
Menu_Popup_Flag
=
1u
;
}
else
if
(
MenuFlag
.
Meun_Test_Dealer
==
1
u
)
else
if
(
K_Line_Set
.
K_Line_LID51
==
0x02
u
)
{
MenuFlag
.
Menu_Dealer
=
1u
;
}
...
...
@@ -426,7 +426,7 @@ void GUI_DisplayServices(void)
}
if
(((
bCurMenuIDX
>
_MN_DSP_LEVEPOPUP
)
&&
(
bCurMenuIDX
<
_MN_DSP_LEVEL3_5_MENU_1
))
||
(
bCurMenuIDX
>=
_FAC_DSP_LEVEL
1
MENU_1
))
(
bCurMenuIDX
>=
_FAC_DSP_LEVEL
0
MENU_1
))
{
loc_Del_Sprite
(
ADAS_Sprite
,
Gear_Sprite
);
if
(
Common_Get_window_Sta
()
!=
0u
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment