Editing QML-EnhancedCalcExample

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:
-
{{expand}}
 
-
 
== About the Enhanced Calc Example ==
== About the Enhanced Calc Example ==
Line 32: Line 30:
</source>
</source>
-
We use column layout for the numeric operations (the field that shows the calculations) layout, with small indentation (2 px) and small padding.  
+
We use column layout for the numeric operations (the field that shows the calcuations) layout, with small intendation (2 px) and small padding.  
<source lang="javascript">
<source lang="javascript">
Line 94: Line 92:
</source>
</source>
-
Common operations to clean the calculations are on one row, along with special wider toggle button for advanced mode.  
+
Common operations to clean the calcuations are on one row, along with speacial wider toggle button for advanced mode.  
<source lang="javascript">
<source lang="javascript">
Line 174: Line 172:
</source>
</source>
-
States definition for advanced mode. Basic mode doesn't need to be defined, as we have defined that already as the default mode of operation. For advanced state, we modify the backspace to be visible, we move basic buttons a bit, we enable advanced and trigonometry buttons and move them a bit for visual candy.
+
States definition for advanced mode. Basic mode doesn't need to be defined, as we have defined that already as the default mode of operation. For advanced state, we modify the bacspace to be visible, we move basic buttons a bit, we enable advanced and trigonometry buttons and move them a bit for visual candy.
<source lang="javascript">
<source lang="javascript">
Line 185: Line 183:
Above defines the animations for the transition to and from advanced mode.
Above defines the animations for the transition to and from advanced mode.
 +
== CalcButton ==
== CalcButton ==
Line 222: Line 221:
</source>
</source>
-
On the above, we define the bg of the button and the highlight of the button. The highlight is img and the bg image is, well, bgimg.
+
On the above, we define the bg of the button and the highlight of the button. THe highlight is img and the bg image is, well, bgimg.
<source lang="javascript">
<source lang="javascript">
Line 265: Line 264:
</source>
</source>
-
Above defines the transitions for the button.
+
Above defines the transitions for the button.  
 +
 
== Calculator.js ==
== Calculator.js ==

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)

Templates used on this page: