Editing Documentation/Maemo 5 Developer Guide/Porting Software/Migration

Warning: You are not logged in. Your IP address will be recorded in this page's edit history.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 1: Line 1:
Because Hildon 2.2 is a big step up from previous versions, many approaches in the development of your program's graphical user interface may need to be migrated to this new interface type.
Because Hildon 2.2 is a big step up from previous versions, many approaches in the development of your program's graphical user interface may need to be migrated to this new interface type.
-
 
-
__FORCETOC__
 
== Menus ==
== Menus ==
Line 19: Line 17:
'''Example 10.1. Menu example'''
'''Example 10.1. Menu example'''
-
<pre>
+
<div class="graybox">
-
File
+
 
-
    \ New
+
File
-
    \ Open
+
    \ New
-
    \ Save
+
    \ Open
-
    \ Save As
+
    \ Save
-
    \ Quit
+
    \ Save As
-
Edit
+
    \ Quit
-
    \ Copy
+
Edit
-
    \ Paste
+
    \ Copy
-
    \ Cut
+
    \ Paste
-
    \ Indent Type
+
    \ Cut
-
        \ Tabs
+
    \ Indent Type
-
        \ Spaces
+
        \ Tabs
-
    \ Preferences
+
        \ Spaces
-
View
+
    \ Preferences
-
    \ Zoom In
+
View
-
    \ Zoom Out
+
    \ Zoom In
-
    \ Normal Size
+
    \ Zoom Out
-
    \ Highlight
+
    \ Normal Size
-
        \ C
+
    \ Highlight
-
        \ Python
+
        \ C
-
        \ JAVA
+
        \ Python
-
Help
+
        \ JAVA
-
    \ Contents
+
Help
-
    \ About
+
    \ Contents
-
</pre>
+
    \ About
 +
 
 +
</div>
Guidelines:
Guidelines:
Line 63: Line 63:
The following example shows the implementation of the menu following the above decisions. The first figure below shows the final result of the app menu. The other showd the dialog activated by the menu command "Settings".
The following example shows the implementation of the menu following the above decisions. The first figure below shows the final result of the app menu. The other showd the dialog activated by the menu command "Settings".
-
[[Image:example-migrating-menu1.png|frame|center|alt=Screenshot of a HildonAppMenu|HildonAppMenu example]]
+
[[Image:example-migrating-menu1.png|400px]]
   
   
-
[[Image:example-migrating-menu-view.png|frame|center|alt=Screenshot of the settings dialog|Settings dialog example]]  
+
[[Image:example-migrating-menu-view.png|400px]]  
Line 204: Line 204:
Consider a dialog that includes, among other widgets, a frame labeled "Proxy Preferences" and three radio buttons: "None", "Auto" and "Manual", displayed vertically like Figure 10.1 "Three radio buttons" shows. The following example shows how such task could be accomplished using a picker button. The frame label becomes the picker button's title and the three radio buttons' labels become the choices in the picker's touch selector. The screenshot below shows  the resulting graphical user interface.
Consider a dialog that includes, among other widgets, a frame labeled "Proxy Preferences" and three radio buttons: "None", "Auto" and "Manual", displayed vertically like Figure 10.1 "Three radio buttons" shows. The following example shows how such task could be accomplished using a picker button. The frame label becomes the picker button's title and the three radio buttons' labels become the choices in the picker's touch selector. The screenshot below shows  the resulting graphical user interface.
-
[[Image:choices.png|frame|center|alt=Screenshot of a picker button dialog|Example of choices in a picker button]]
+
[[Image:choices.png|Image choices|400px]]
'''Example 10.3. Migrating choice widgets'''
'''Example 10.3. Migrating choice widgets'''
Line 241: Line 241:
==Notebooks ==
==Notebooks ==
-
Because the use of notebooks is not advised in Hildon, the way to migrate a Maemo 4 dialog with a notebook to Maemo 5, is to simply put all the items inside a single pannable dialog.
+
Because the use of notebooks is not advised in Hildon, the way to migrate a Maemo 4 dialog with notebook to Maemo 5, is to simply put all the items inside a single pannable dialog.
[[Category:Development]]
[[Category:Development]]
[[Category:Documentation]]
[[Category:Documentation]]
[[Category:Fremantle]]
[[Category:Fremantle]]

Learn more about Contributing to the wiki.


Please note that all contributions to maemo.org wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see maemo.org wiki:Copyrights for details). Do not submit copyrighted work without permission!


Cancel | Editing help (opens in new window)