Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

ZGlobal Namespace Reference

This file defines Motorola's layout requirements. More...


[NOHEADER]

QRect getDlgTranMR ()
 Middle transient Dialog area. More...

QRect getDlgTranMCstR ()
 Middle transient Dialog CST area. More...

QRect getDlgTranMContentR ()
 Middle transient Dialog Content area (DlgTranM - DlgTranMCst). More...

QRect getDlgTranSR ()
 Small transient Dialog area. More...

QRect getDlgTranSCstR ()
 Small transient Dialog CST area. More...

QRect getDlgTranSContentR ()
 Small transient Dialog Content area (DlgTranS - DlgTranSCst). More...


Enumerations

enum  TouchSoundType_T { CLICK = 0, TONE, SILENT, THEMED }
 enumerates all possible touch screen sound configurations. More...


Functions

void setInputMethod (const QUuid &inputMethod=IMID_UNDEFINED)
 Set the input method. More...

void hideInputWidget ()
 Hide the input method widget. More...

void showInputWidget (int mwId, int show, bool local=false)
 Show the input method widget. More...

void setInputMethod (int mwId, const QUuid &inputMethod, bool local=false)
 Set the input method. More...

QRect getGnb_1R ()
 GNB button areas. More...

QRect getGnb_2R ()
QRect getGnb_3R ()
QRect getGnb_4R ()
QRect getGnb_5R ()
QRect getStatusBar_1R ()
 GNB-StatusBar 5 button areas. More...

QRect getStatusBar_2R ()
QRect getStatusBar_3R ()
QRect getStatusBar_4R ()
QRect getStatusBar_5R ()
QRect getCst1_1R ()
QRect getCst2_1R ()
 CST 2 button areas. More...

QRect getCst2_2R ()
QRect getCst2a_1R ()
 CST 2 button(a) areas |__________|__________|. More...

QRect getCst2a_2R ()
QRect getCst2b_1R ()
 CST 2 button(b) areas |___|_________________|. More...

QRect getCst2b_2R ()
QRect getCst2c_1R ()
 CST 2 button(c) areas |_________________|___|. More...

QRect getCst2c_2R ()
QRect getCst3_1R ()
 CST 3 button areas |___|_____________|___|. More...

QRect getCst3_3R ()
QRect getCst3_2R ()
QRect getCst3a_1R ()
 CST 3 button(a) areas |___|________|________|. More...

QRect getCst3a_2R ()
QRect getCst3a_3R ()
QRect getCst3b_1R ()
 CST 3 button(b) areas |___|________|________|. More...

QRect getCst3b_2R ()
QRect getCst3b_3R ()
QRect getCst3c_1R ()
 CST 3 button(c) areas |___|________|________|. More...

QRect getCst3c_2R ()
QRect getCst3c_3R ()
QRect getCst4a_1R ()
 CST 4 button(a) areas |___|_______________|___|___|. More...

QRect getCst4a_4R ()
QRect getCst4a_3R ()
QRect getCst4a_2R ()
QRect getCst4b_1R ()
 CST 4 button(b) areas |___|________|________|___|. More...

QRect getCst4b_4R ()
QRect getCst4b_2R ()
QRect getCst4b_3R ()
QRect getCst4c_1R ()
 CST 4 button(c) areas |___|____|_____|___________|. More...

QRect getCst4c_2R ()
QRect getCst4c_3R ()
QRect getCst4c_4R ()
QRect getCst5_1R ()
 CST 5 button areas |___|_____|_____|___|___|. More...

QRect getCst5_2R ()
QRect getCst5_4R ()
QRect getCst5_5R ()
QRect getCst5_3R ()
QRect getCst6_1R ()
 CST 6 button areas: only when InputWidget trigger button appears with 5 CST buttons. More...

QRect getCst6_2R ()
QRect getCst6_5R ()
QRect getCst6_6R ()
QRect getCst6_3R ()
QRect getCst6_4R ()
QRect getDlgAR ()
 Dialog A location. More...

QRect getDlgACstR ()
 Dialog A CST area. More...

QRect getDlgAContentR ()
 Dialog A Content area (DlgA - DlgACst). More...

QRect getDlgATitleR ()
 Dialog A Title area. More...

QRect getDlgASubContentR ()
 Dialog A (content-title) area. More...

QRect getDlgA1_1R ()
 Dialog A 1 button area |______________________|. More...

QRect getDlgA2a_1R ()
 Dialog A 2 button(a) area |__________|___________|. More...

QRect getDlgA2a_2R ()
QRect getDlgA2b_1R ()
 Dialog A 2 button(b) area |_______________|____|. More...

QRect getDlgA2b_2R ()
QRect getDlgA3a_1R ()
 Dialog A 3 button(a) area |___|________________|___|. More...

QRect getDlgA3a_3R ()
QRect getDlgA3a_2R ()
QRect getDlgA3b_1R ()
 Dialog A 3 button(b) area |______|______|______|. More...

QRect getDlgA3b_3R ()
QRect getDlgA3b_2R ()
QRect getDlgA3c_1R ()
 Dialog A 3 button(c) area |___|__________|___________|. More...

QRect getDlgA3c_3R ()
QRect getDlgA3c_2R ()
QRect getDlgMR ()
 Dialog M. More...

QRect getDlgMTitleR ()
 Dialog MA title area. More...

QRect getDlgMCstR ()
 Dialog MA CST area. More...

QRect getDlgMContentR ()
 Dialog MA content area. More...

QRect getDlgBCR ()
 Dialog B/C location. More...

QRect getDlgBCstR ()
 Dialog B CST area. More...

QRect getDlgBContentR ()
 Dialog B Content area (DlgB - DlgBCst). More...

QRect getDlgB1_1R ()
 Dialog B 1 button area. More...

QRect getDlgB2_1R ()
 Dialog B 2 button areas. More...

QRect getDlgB2_2R ()
QRect getDlgCTitleR ()
 Dialog C Title area. More...

QRect getDlgInfoMR ()
 Middle information Dialog area. More...

QRect getDlgInfoMCstR ()
 Middle information Dialog CST area. More...

QRect getDlgInfoMContentR ()
 Middle information Dialog Content area (DlgInfoM - DlgInfoMCst). More...

QRect getDlgInfoSR ()
 Small information Dialog area. More...

QRect getDlgInfoSCstR ()
 Small information Dialog CST area. More...

QRect getDlgInfoSContentR ()
 Small information Dialog Content area (DlgInfoS - DlgInfoSCst). More...

QRect getDlgSelLR ()
 Selection Dialog areas Large selection Dialog area. More...

QRect getDlgSelLCstR ()
 Large selection Dialog CST area. More...

QRect getDlgSelLContentR ()
 Large selection Dialog Content area (DlgSelL - DlgSelLCst). More...

QRect getDlgSelLTitleR ()
 Large selection Dialog Title area. More...

QRect getDlgSelLSubContentR ()
 Large selection Dialog (content-title) area. More...

QRect getDlgSelMR ()
 Middle selection Dialog area. More...

QRect getDlgSelMCstR ()
 Middle selection Dialog CST area. More...

QRect getDlgSelMContentR ()
 Middle selection Dialog Content area (DlgSelM - DlgSelMCst). More...

QRect getDlgSelMTitleR ()
 Middle selection Dialog Title area. More...

QRect getDlgSelMSubContentR ()
 Middle selection Dialog (content-title) area. More...

QRect getDlgSelSR ()
 Small selection Dialog area. More...

QRect getDlgSelSCstR ()
 Small selection Dialog CST area. More...

QRect getDlgSelSContentR ()
 Small selection Dialog Content area (DlgSelM - DlgSelMCst). More...

QRect getDlgSelSTitleR ()
 Small selection Dialog Title area. More...

QRect getDlgSelSSubContentR ()
 Small selection Dialog (content-title) area. More...

int getLineHeight ()
 Two functions to keep old code working well. More...

int getLineSpace ()
 line space for multi-line widget, such as ZMultiLineEdit. More...

QRect mapFromGlobalR (QWidget *self, QRect gRect)
QRect diffRect (QRect parent, QRect child)
 Return the difference of two rectangles belonging to a parent widget and a child widget. More...

QRect getScreenR ()
QRect getDesktopRect ()
QRect getGnbR ()
QRect getCstR ()
QRect getHomeR ()
QRect getContentR ()
QRect getStatusBarR ()
QRect getSubContentR ()
QRect getSmallContentR ()
QRect getKbR ()
QRect getCSTRect ()
QRect getGNBRect ()
QRect getMainWidgetRect ()
void getPopupMenuTopLeft (QWidget *base, QPopupMenu *popup, QPoint &pos)
 Calculate the prefered popup menu position. More...

int getFontSize (EZX_FONT_SIZE_T fontSizeType)
 Function to get the font size. More...


Detailed Description

This file defines Motorola's layout requirements.

This header is model dependent.

As different LRS are involved in new product, for example, A780, model dependent headers must be created and symbolically linked to ZLRS.h

See also:
ZLayout.h for the function naming rules , ZGlobal.h


Enumeration Type Documentation

enum ZGlobal::TouchSoundType_T
 

enumerates all possible touch screen sound configurations.

One of these enumeration value is valid for the software system in all time.

Enumeration values:
CLICK   Play a quick sound at the moment of touching screen, analog to click.
TONE   Play a slip of sound when screen touched, counterpart to @see CLICK.
SILENT   No sound played when screen touched.
THEMED   The sound is theme configurated.


Function Documentation

QRect ZGlobal::diffRect ( QRect parent,
QRect child )
 

Return the difference of two rectangles belonging to a parent widget and a child widget.

Parameters:
parent:   parent widget rectangle area in global screen coordinates
child:   child widget rectangle area in global screen coordinates
Returns:
A child rectangle area in parent widget coordinates
See also:
ZDiffR(parent, child)

 //parent widget is a dialog B with 2 buttons matching LRS DlgB2_2
 class DialogWidget
 {
     DialogWidget() //constructor
     {
         ...
         //sample child widget is a button
         QPushButton child1=new QPushButton(this);
         //get correct layout area based on the case that DialogWidget
         //adopts ZGlobal::getDlgBCR( ) layout definition
         QRect tmp=
             ZGlobal::diffRect(ZGlobal::getDlgBCR(), ZGlobal::getDlgB2_2R());
         //turn on layout regulation
         child1->setGeometry(tmp);
         ...
     }
 };

QRect ZGlobal::getCSTRect ( )
 

Returns:
The rect of CST area

QRect ZGlobal::getContentR ( )
 

Returns:
content area (screen-gnb-cst)

QRect ZGlobal::getCst1_1R ( )
 

QRect ZGlobal::getCst2_1R ( )
 

CST 2 button areas.

Note:
compatible and same as Cst2a

QRect ZGlobal::getCst2_2R ( )
 

QRect ZGlobal::getCst2a_1R ( )
 

CST 2 button(a) areas |__________|__________|.

QRect ZGlobal::getCst2a_2R ( )
 

QRect ZGlobal::getCst2b_1R ( )
 

CST 2 button(b) areas |___|_________________|.

QRect ZGlobal::getCst2b_2R ( )
 

QRect ZGlobal::getCst2c_1R ( )
 

CST 2 button(c) areas |_________________|___|.

QRect ZGlobal::getCst2c_2R ( )
 

QRect ZGlobal::getCst3_1R ( )
 

CST 3 button areas |___|_____________|___|.

QRect ZGlobal::getCst3_2R ( )
 

QRect ZGlobal::getCst3_3R ( )
 

QRect ZGlobal::getCst3a_1R ( )
 

CST 3 button(a) areas |___|________|________|.

Note:
LRS0.9.4 3(b)

QRect ZGlobal::getCst3a_2R ( )
 

QRect ZGlobal::getCst3a_3R ( )
 

QRect ZGlobal::getCst3b_1R ( )
 

CST 3 button(b) areas |___|________|________|.

Note:
LRS0.9.4 3(c)

QRect ZGlobal::getCst3b_2R ( )
 

QRect ZGlobal::getCst3b_3R ( )
 

QRect ZGlobal::getCst3c_1R ( )
 

CST 3 button(c) areas |___|________|________|.

Note:
LRS0.9.4 3(d)

QRect ZGlobal::getCst3c_2R ( )
 

QRect ZGlobal::getCst3c_3R ( )
 

QRect ZGlobal::getCst4a_1R ( )
 

CST 4 button(a) areas |___|_______________|___|___|.

QRect ZGlobal::getCst4a_2R ( )
 

QRect ZGlobal::getCst4a_3R ( )
 

QRect ZGlobal::getCst4a_4R ( )
 

QRect ZGlobal::getCst4b_1R ( )
 

CST 4 button(b) areas |___|________|________|___|.

QRect ZGlobal::getCst4b_2R ( )
 

QRect ZGlobal::getCst4b_3R ( )
 

QRect ZGlobal::getCst4b_4R ( )
 

QRect ZGlobal::getCst4c_1R ( )
 

CST 4 button(c) areas |___|____|_____|___________|.

QRect ZGlobal::getCst4c_2R ( )
 

QRect ZGlobal::getCst4c_3R ( )
 

QRect ZGlobal::getCst4c_4R ( )
 

QRect ZGlobal::getCst5_1R ( )
 

CST 5 button areas |___|_____|_____|___|___|.

QRect ZGlobal::getCst5_2R ( )
 

QRect ZGlobal::getCst5_3R ( )
 

QRect ZGlobal::getCst5_4R ( )
 

QRect ZGlobal::getCst5_5R ( )
 

QRect ZGlobal::getCst6_1R ( )
 

CST 6 button areas: only when InputWidget trigger button appears with 5 CST buttons.

Note:
Useless for LRS0.9.3 - compatible interfaces

QRect ZGlobal::getCst6_2R ( )
 

QRect ZGlobal::getCst6_3R ( )
 

QRect ZGlobal::getCst6_4R ( )
 

QRect ZGlobal::getCst6_5R ( )
 

QRect ZGlobal::getCst6_6R ( )
 

QRect ZGlobal::getCstR ( )
 

Returns:
CST area

QRect ZGlobal::getDesktopRect ( )
 

Returns:
Desktop area: Same infomation as screen

QRect ZGlobal::getDlgA1_1R ( )
 

Dialog A 1 button area |______________________|.

Note:
LRS0.9.3

QRect ZGlobal::getDlgA2a_1R ( )
 

Dialog A 2 button(a) area |__________|___________|.

Note:
LRS0.9.3

QRect ZGlobal::getDlgA2a_2R ( )
 

QRect ZGlobal::getDlgA2b_1R ( )
 

Dialog A 2 button(b) area |_______________|____|.

Note:
LRS0.9.3

QRect ZGlobal::getDlgA2b_2R ( )
 

QRect ZGlobal::getDlgA3a_1R ( )
 

Dialog A 3 button(a) area |___|________________|___|.

Note:
LRS0.9.3 3(b)

QRect ZGlobal::getDlgA3a_2R ( )
 

QRect ZGlobal::getDlgA3a_3R ( )
 

QRect ZGlobal::getDlgA3b_1R ( )
 

Dialog A 3 button(b) area |______|______|______|.

Note:
LRS0.9.3 3(a)

QRect ZGlobal::getDlgA3b_2R ( )
 

QRect ZGlobal::getDlgA3b_3R ( )
 

QRect ZGlobal::getDlgA3c_1R ( )
 

Dialog A 3 button(c) area |___|__________|___________|.

Note:
LRS0.9.3

QRect ZGlobal::getDlgA3c_2R ( )
 

QRect ZGlobal::getDlgA3c_3R ( )
 

QRect ZGlobal::getDlgAContentR ( )
 

Dialog A Content area (DlgA - DlgACst).

QRect ZGlobal::getDlgACstR ( )
 

Dialog A CST area.

QRect ZGlobal::getDlgAR ( )
 

Dialog A location.

QRect ZGlobal::getDlgASubContentR ( )
 

Dialog A (content-title) area.

QRect ZGlobal::getDlgATitleR ( )
 

Dialog A Title area.

QRect ZGlobal::getDlgB1_1R ( )
 

Dialog B 1 button area.

Note:
Useless for LRS0.9.3 - compatible interface

QRect ZGlobal::getDlgB2_1R ( )
 

Dialog B 2 button areas.

Note:
Useless for LRS0.9.3 - compatible interface

QRect ZGlobal::getDlgB2_2R ( )
 

QRect ZGlobal::getDlgBCR ( )
 

Dialog B/C location.

QRect ZGlobal::getDlgBContentR ( )
 

Dialog B Content area (DlgB - DlgBCst).

QRect ZGlobal::getDlgBCstR ( )
 

Dialog B CST area.

QRect ZGlobal::getDlgCTitleR ( )
 

Dialog C Title area.

QRect ZGlobal::getDlgInfoMContentR ( )
 

Middle information Dialog Content area (DlgInfoM - DlgInfoMCst).

QRect ZGlobal::getDlgInfoMCstR ( )
 

Middle information Dialog CST area.

QRect ZGlobal::getDlgInfoMR ( )
 

Middle information Dialog area.

QRect ZGlobal::getDlgInfoSContentR ( )
 

Small information Dialog Content area (DlgInfoS - DlgInfoSCst).

QRect ZGlobal::getDlgInfoSCstR ( )
 

Small information Dialog CST area.

QRect ZGlobal::getDlgInfoSR ( )
 

Small information Dialog area.

QRect ZGlobal::getDlgMContentR ( )
 

Dialog MA content area.

QRect ZGlobal::getDlgMCstR ( )
 

Dialog MA CST area.

QRect ZGlobal::getDlgMR ( )
 

Dialog M.

QRect ZGlobal::getDlgMTitleR ( )
 

Dialog MA title area.

QRect ZGlobal::getDlgSelLContentR ( )
 

Large selection Dialog Content area (DlgSelL - DlgSelLCst).

QRect ZGlobal::getDlgSelLCstR ( )
 

Large selection Dialog CST area.

QRect ZGlobal::getDlgSelLR ( )
 

Selection Dialog areas Large selection Dialog area.

QRect ZGlobal::getDlgSelLSubContentR ( )
 

Large selection Dialog (content-title) area.

QRect ZGlobal::getDlgSelLTitleR ( )
 

Large selection Dialog Title area.

QRect ZGlobal::getDlgSelMContentR ( )
 

Middle selection Dialog Content area (DlgSelM - DlgSelMCst).

QRect ZGlobal::getDlgSelMCstR ( )
 

Middle selection Dialog CST area.

QRect ZGlobal::getDlgSelMR ( )
 

Middle selection Dialog area.

QRect ZGlobal::getDlgSelMSubContentR ( )
 

Middle selection Dialog (content-title) area.

QRect ZGlobal::getDlgSelMTitleR ( )
 

Middle selection Dialog Title area.

QRect ZGlobal::getDlgSelSContentR ( )
 

Small selection Dialog Content area (DlgSelM - DlgSelMCst).

QRect ZGlobal::getDlgSelSCstR ( )
 

Small selection Dialog CST area.

QRect ZGlobal::getDlgSelSR ( )
 

Small selection Dialog area.

QRect ZGlobal::getDlgSelSSubContentR ( )
 

Small selection Dialog (content-title) area.

QRect ZGlobal::getDlgSelSTitleR ( )
 

Small selection Dialog Title area.

QRect ZGlobal::getDlgTranMContentR ( )
 

Middle transient Dialog Content area (DlgTranM - DlgTranMCst).

QRect ZGlobal::getDlgTranMCstR ( )
 

Middle transient Dialog CST area.

QRect ZGlobal::getDlgTranMR ( )
 

Middle transient Dialog area.

QRect ZGlobal::getDlgTranSContentR ( )
 

Small transient Dialog Content area (DlgTranS - DlgTranSCst).

QRect ZGlobal::getDlgTranSCstR ( )
 

Small transient Dialog CST area.

QRect ZGlobal::getDlgTranSR ( )
 

Small transient Dialog area.

int ZGlobal::getFontSize ( EZX_FONT_SIZE_T fontSizeType )
 

Function to get the font size.

Parameters:
fontSizeType   Theme "Text Size" of Small/Medium/Large
Returns:
The exact font size in terms of Theme "Text Size" of Small/Medium/Large
See also:
EZX_FONT_SIZE_T , DEFAULT_FONT_SIZE_SMALL , DEFAULT_FONT_SIZE_MEDIUM , DEFAULT_FONT_SIZE_LARGE

QRect ZGlobal::getGNBRect ( )
 

Returns:
GNB area, the same as getGnbR()
See also:
getGnbR()

QRect ZGlobal::getGnbR ( )
 

Returns:
GNB area

QRect ZGlobal::getGnb_1R ( )
 

GNB button areas.

Note:
Useless for LRS0.9.3 - compatible interfaces

QRect ZGlobal::getGnb_2R ( )
 

QRect ZGlobal::getGnb_3R ( )
 

QRect ZGlobal::getGnb_4R ( )
 

QRect ZGlobal::getGnb_5R ( )
 

QRect ZGlobal::getHomeR ( )
 

Returns:
Home area (screen-gnb)

QRect ZGlobal::getKbR ( )
 

Returns:
input keyboard area when popped up
Note:
Useless for LRS0.9.3 - compatible interface

int ZGlobal::getLineHeight ( )
 

Two functions to keep old code working well.

Returns:
The appropriate line heigth which is related to application font size
See also:
getLineSpace()

int ZGlobal::getLineSpace ( )
 

line space for multi-line widget, such as ZMultiLineEdit.

Returns:
The appropriate line spacing between lines
See also:
getLineHeight()

QRect ZGlobal::getMainWidgetRect ( )
 

Returns:
The mainwidget area, excludes CST the same as getContentR()
See also:
getContentR()

void ZGlobal::getPopupMenuTopLeft ( QWidget * base,
QPopupMenu * popup,
QPoint & pos )
 

Calculate the prefered popup menu position.

Parameters:
base   ???
popup   The popup menu widget
pos   Prefered position to show the popup menu widget popup
Note:
Deprecated interface

QRect ZGlobal::getScreenR ( )
 

Returns:
Screen area: same as Desktop area, just a different name.

QRect ZGlobal::getSmallContentR ( )
 

Returns:
The small content rect, use it when the kb appears

QRect ZGlobal::getStatusBarR ( )
 

Returns:
GNB_Status Bar area: in Content area actually

QRect ZGlobal::getStatusBar_1R ( )
 

GNB-StatusBar 5 button areas.

Note:
Useless for LRS0.9.3 - compatible interfaces

QRect ZGlobal::getStatusBar_2R ( )
 

QRect ZGlobal::getStatusBar_3R ( )
 

QRect ZGlobal::getStatusBar_4R ( )
 

QRect ZGlobal::getStatusBar_5R ( )
 

QRect ZGlobal::getSubContentR ( )
 

Returns:
Content -(GNB_StatusBar) area

void ZGlobal::hideInputWidget ( )
 

Hide the input method widget.

Note:
the function will be implemented in the A780

QRect ZGlobal::mapFromGlobalR ( QWidget * self,
QRect gRect )
 

Parameters:
gRect   rectangle area in global screen coordinates
self   the widget gRect are going to turn on
Returns:
rectangle area in widget coordinate, translated from global screen rectangle gRect
See also:
ZSetLayout(widgetPtr, globalR)

 //parent widget is a CST with 4 buttons matching LRS CST 4(b)
 class CSTWidget
 {
     CSTWidget() //constructor
     {
         ...
         //child widget is a button
         QPushButton child1=new QPushButton(this);
         //get correct layout area
         QRect tmp=ZGlobal::mapFromGlobalR(child1, ZGlobal::getCst4b_1R());
         //turn on layout regulation
         child1->setGeometry(tmp);
         ...
     }
 };

void ZGlobal::setInputMethod ( int mwId,
const QUuid & inputMethod,
bool local = false )
 

Set the input method.

Parameters:
mwId   the id of the widget which is bound with input widget
inputMethod   the input method selected

For internal use only.

void ZGlobal::setInputMethod ( const QUuid & inputMethod = IMID_UNDEFINED )
 

Set the input method.

Parameters:
inputMethod   the input method selected. If the input method is not specified, the default input method will be used

See also:
ZApplication

See also:
ZMainWidget

Note:
the function will be implemented in the A780

void ZGlobal::showInputWidget ( int mwId,
int show,
bool local = false )
 

Show the input method widget.

Parameters:
mwId   the id of the widget which is bound with input widget

For internal use only.


Generated at Wed Mar 3 13:23:13 2004 by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001