Support:Frequently Asked Questions (FAQ)

From Guiliani

Revision as of 12:15, 13 January 2017 by Sascha (talk | contribs)

General

Q: Run Guiliani on Baremetal

Could you help us on how to start running an GUIliani application on system without rtos?

A: You are currently using an evaluation version which is available for Windows and Linux. To be able to use Guiliani on other platforms (OS/HW) it has to be ported to the desired platform. Normally you will need to recompile for the target HW (new CPU means new compile). For systems without OS you will need in addition some bindings to address the target HW. For both porting steps you will need the complete source code of Guiliani which is not part of the SDK. The port can be part of a license contract or it is possible to buy a source code license which will enable you to port on your own. For licensing information and pricing please contact our sales.


Q: Sample Guiliani-Application

We got the GUIliani evaluation kit and we are able to install it and use it. We feel that the flow of the existing tutorial application is very difficult to understand. 1) Can you provide us a sample GUI application like a screen with controls on it? 2) We also need information on how to automate UI using GUIliani library.

A: For information on input-automation please look at the Guiliani Documentation. the class which you will need to use is CGUIPlaybackInput.

Creation of a simple GUI application can be done in two different ways: The first approach is using Guiliani directly and creating the dialogs with the controls using coding. This is shown with the GuilianiTutorial (see below for concrete examples). The second approach is using the GSE and using the tool to puzzle the dialogs together. As a result a set of xml files will be exported which later will be used by the streamruntime app (your app) to load and present the dialogs. The app logic can be added by you within the streamruntime app which is part of the gse visual studio project (as source). Please have a look at [1]

GuilianiTutorial: You can find within the file Tutorial01.cpp a method which is responsible to create a screen of controls. This is done inside the constructor. Have a look at the orange comments. The Tutorial01 and the other Tutorials itself is created and called on a mouse click from TutorialMain.cpp (Method CTutorialSelector::DoClick).

 CTutorial01::CTutorial01(
 CGUICompositeObject *const pParent,
 const eC_Value &vX, const eC_Value &vY,
 const eC_Value &vWidth, const eC_Value &vHeight,
 const ObjectHandle_t &eID)
 :
 CGUICompositeObject(pParent, CGUIRect(CGUIPoint(vX, vY), vWidth, vHeight), eID)
 {
   // Create an image control
   m_pImage = new CGUIImage( this, vLogoX, vLogoY, IMG_GUILIANI_LOGO); // An image is placed at the given coordinates
   // Create a ProgressBar control
   m_pProgressBar = new CGUIProgressBar(
       this,                               // Pointer to parent object
       vProgBarX, vProgBarY,   // X/Y Position
       vProgBarW, vProgBarH,    // Width, height
       IMG_BAR1,       // Image for ProgressBar Background
       IMG_BAR2 );     // Image which is used for "filling up" the bar
   m_pProgressBar->SetStepSize( 10);
   m_pProgressBar->SetFullRangeSize(eC_FromInt(180));
 
   // Create a TextField
   m_pText = new CGUIBaseTextField( this, vTut1TxtFieldX, vTut1TxtFieldY, vTut1TxtFieldW, vTut1TxtFieldH, "Please click the button!");
   m_pText->GetLabel()->SetAligned( CGUIText::V_CENTERED, CGUIText::H_CENTERED);
 
   // Create a button
   m_pButton = new CGUIButton( this, vTut1BtnX, vTut1BtnY, vTut1BtnW, vTut1BtnH, "Click me!", NULL);
 }


Q: How do i achieve rounded corners for rectangles

I am trying to create a custom icon button. I am trying to achieve the following: 1. Rounded corners 2. On clicking, the icon has to be shifted and on button release it should re-shifted to the original position. Reference UI


A:


Linux

Q: GSE sometimes does not exit properly.

A: This could happen on various Linux-Versions, especially when using VirtualBox or VMWare. Possibly your sound-card has crashed. You can deactivate the sounds-card and/or update to the latest version of virtualizing software/operating system and try again.

Windows

Renesas