# Ui Template

## Revision History <a href="#toc212628598" id="toc212628598"></a>

<table data-header-hidden><thead><tr><th></th><th></th><th width="149"></th><th></th></tr></thead><tbody><tr><td>VERSION</td><td>AUTHOR</td><td>CHANGE</td><td>DATE</td></tr><tr><td>1.0</td><td>Burçin Büyükçakıroğlu</td><td>Ui </td><td>06.11.2014</td></tr></tbody></table>

## 1. Description

The document explains the usage of our interface functions with examples for developers creating a banking application.

## **2.  Settings Qt Creater**

The settings in the 'Build Settings' tab should be as follows. The step order specified in 'Build steps' must be in the same sequence.

<figure><img src="https://3563879677-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKr9flrh8h32VY15Dvp8T%2Fuploads%2FjowyQuY2AFI0XN7WnklH%2FScreenshot%202025-03-24%20at%201.16.25%E2%80%AFPM.png?alt=media&#x26;token=2cd3cc4c-7973-48a2-abad-9f0ad3ccb1f1" alt="" width="563"><figcaption></figcaption></figure>

## **2.  Menu Structor**

The menu consists of three sections:

• Header\
• Body\
• Footer

The body section of the menu can be used for three different purposes:

• List\
• Edit\
• Pop-up\
• Status

### 2.1 List Menu

The list menu allows the listing of submenus. Additionally, three buttons can be defined at the bottom.

To create a list menu, the following steps must be defined:

```cpp
menu->bodyItemEnable(menu->ListMenu);  

menu->headerSetText("Title");  
menu->bodyMenuAddItemToList("1st Item", "", 1);  
menu->bodyMenuAddItemToList("2nd Item", "", 2);  
…..  
…..  
menu->bodyMenuCreateItemList(); 
```

<div align="left"><figure><img src="https://3563879677-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKr9flrh8h32VY15Dvp8T%2Fuploads%2FvI6QYYvgAFwlnk9vRIAw%2FScreenshot%202025-03-24%20at%201.19.38%E2%80%AFPM.png?alt=media&#x26;token=ba2a8d56-8b39-41f2-b442-11404ef2b4d4" alt="" width="183"><figcaption></figcaption></figure></div>

### 2.2 Pop-up Menu

The **Pop-up menu** is a type of menu that appears over the active menu and is used for purposes such as warnings, errors, information, and asking questions.

```cpp
menu->bodyPopUpSetHeader(CBody_PopUp::Confirmation, "POPUP Header");
menu->bodyPopUpSetButtons(CBody_PopUp::Ok_Cancel, "   OKEY", "   CANCEL");
menu->bodyPopUpSetText("Warning Message", 2);
menu->bodyPopUpShow();
int ret = 0;
menu->bodyPopUpGetRet(&ret);
if(ret == 0)
{
	// press Okey
}
else
{
	// press Cancel
}

```

<div align="left"><figure><img src="https://3563879677-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKr9flrh8h32VY15Dvp8T%2Fuploads%2FR3gLyTh3BO40SqxcaFIL%2Fimage.png?alt=media&#x26;token=0ae1fe8b-674a-4c14-a387-a1f8f8a12114" alt=""><figcaption></figcaption></figure></div>

### **2.3 Status Notification Menu**

This menu type is used to provide status notifications related to performed operations.

```
menu->bodyItemEnable(menu->TextLine);
menu->footerClearButtonContents();
menu->bodyTextWrite("State Message", 2 /*Line No*/);

```

<div align="left"><figure><img src="https://3563879677-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKr9flrh8h32VY15Dvp8T%2Fuploads%2F7KiHB9v0WganvSKnCnJ1%2Fimage.png?alt=media&#x26;token=8c6ab9cd-29fe-4264-af22-029e0c518c1b" alt=""><figcaption></figcaption></figure></div>

### **2.4 Edit Menu**

The **Edit Menu** allows data entry using the keypad.

```cpp
menu->bodyItemEnable(menu->EditLine);
menu->bodyEditLineSetFormat(CBody_EditLine::Amount, 10);
menu->headerSet("Header");
menu->bodyEditLineSetTitle("EditBox Message");

```

<div align="left"><figure><img src="https://3563879677-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKr9flrh8h32VY15Dvp8T%2Fuploads%2F5xoNusEPPVoEyD7hcPMc%2Fimage.png?alt=media&#x26;token=bc9cfa90-dac7-4e71-a0ff-dc29407b925e" alt=""><figcaption></figcaption></figure></div>
