release_notes.txt 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. Qt Bubble Level v.1.1
  2. =====================
  3. Qt Bubble Level is a simple Qt Quick application that uses accelerometer
  4. sensor information to calculate the inclination of the device and presents
  5. this as a traditional Bubble level. The application provides a calibration
  6. feature to handle any possible errors in accelerometer readings. The UI is
  7. made using Qt Quick and the engine gets the accelerometer data via the
  8. QtMobility QAccelerometer sensor. The application is compatible with Maemo 5
  9. with Qt 4.7.0 and Symbian^3 devices with Qt 4.7.1 (or higher) and
  10. QtMobility 1.1.0 (or higher).
  11. FILES
  12. -------------------------------------------------------------------------------
  13. src/main.cpp
  14. - The main file of the application. In practise, creates a QtMobility sensor
  15. and QDeclarativeView and connects a set of signals to the appropriate slots.
  16. The integration of QML and Qt code is done in the main function.
  17. src/taskswitcher.cpp
  18. - Provides a minimise feature via DBus to minimise the application.
  19. src/accelerometerfilter.h
  20. - Provides accelerometer data via QtMobility.
  21. src/settings.h
  22. - Provides saving and reading of angle calibration in a platform-independent
  23. way.
  24. src/bubblelevel.qml
  25. - Main QML file, implements the main layout for the graphics. Contains the
  26. location of task switcher and exit button. The location of the glass tube is
  27. also set here. Also contains the function which is used as slot connected in
  28. main.cpp.
  29. src/button.qml
  30. - Implements the functionality of a button with a minor press animation.
  31. src/tube.qml
  32. - Contains the graphics for bubble, scale, and reflection. These are drawn on
  33. different layers to provide the effect that the bubble is inside the glass
  34. tube. The conversion of device inclination to bubble position is made here.
  35. src/debian/
  36. - The directory which contains files related to Debian (Maemo) packaging.
  37. install/
  38. - The compiled installation package is located here.
  39. CLASSES AND ELEMENTS USED
  40. -------------------------------------------------------------------------------
  41. The most important Qt classes and QML elements used in the application are
  42. listed here.
  43. Qt classes
  44. ~~~~~~~~~~
  45. QDeclarativeViewer - used to interpret QML files
  46. QAccelerometer - used to get accelerometer data from the device
  47. QAccelerometerFilter - used to convert accelerometer data from radians to
  48. degrees and to signal accelerometer data to the UI
  49. QSettings - used to save and restore the correction factor from
  50. the device's memory
  51. QML elements
  52. ~~~~~~~~~~~~
  53. BubbleLevel - the main QML element, represents the whole UI. Contains the
  54. signals, functions, and one property to interact with the Qt
  55. model. Contains the Tube element and a hidden calibration
  56. dialog positioned under the QtBubbleLevel sign.
  57. Tube - represents the glass tube of the bubble level. Contains Image
  58. elements to draw the bubble, scale lines, and the reflection.
  59. Button - built from Rectangle, Image, and MouseArea, handles mouse press
  60. and implements a minor press animation by scaling the element
  61. down on mouse press.
  62. KNOWN ISSUES
  63. -------------------------------------------------------------------------------
  64. - None.
  65. INSTALLATION INSTRUCTIONS
  66. -------------------------------------------------------------------------------
  67. Mobile device (Symbian^3)
  68. ~~~~~~~~~~~~~~~~~~~~~~~~~
  69. There are two ways to install the application on the device.
  70. 0. The Qt 4.7.1 or higher libraries must be installed. See the section
  71. COMPATIBILITY for more information about installing these.
  72. 1. a) Drag the qtbubblelevel.sis file to the Nokia Ovi Suite when the device
  73. is connected with the USB cable.
  74. OR
  75. b) Send the application directly to the Messaging Inbox (for example,
  76. through Bluetooth).
  77. 2. After the installation is complete, return to the Application menu and
  78. select the Applications folder.
  79. 3. Locate the QtBubbleLevel icon and select it to launch the application.
  80. Mobile device (Maemo)
  81. ~~~~~~~~~~~~~~~~~~~~~
  82. 0. The Qt 4.7.0 libraries must be installed. See the section COMPATIBILITY for
  83. more information about the installing procedure.
  84. 1. Copy the install/qtbubblelevel_1.1.0_armel.deb file into a specific folder
  85. of the device (for example, 'MyDocs').
  86. 2. Start XTerm. Type 'sudo gainroot' to get root access.
  87. 3. 'cd' to the directory into which you copied the package (for instance,
  88. 'cd MyDocs').
  89. 4. As root, install the package:
  90. dpkg -i qtbubblelevel_1.1.0_armel.deb
  91. 5. Launch the Applications menu.
  92. 6. Locate the QtBubbleLevel icon and select it to launch the application.
  93. RUNNING THE APPLICATION
  94. -------------------------------------------------------------------------------
  95. Launch Qt Bubble Level on your device. The bubble in the glass tube will show
  96. the level of the device's x-axis relative to gravity. When the device is
  97. tilted to either direction 20 degrees or more, the bubble will be at the
  98. corresponding end of the tube.
  99. The application can be minimised with the icon in the upper left corner, or
  100. closed with the X in the upper right corner.
  101. COMPATIBILITY
  102. -------------------------------------------------------------------------------
  103. - Symbian^3 with Qt version 4.7.1 or higher.
  104. 1. Download Qt for Symbian 4.7.1 (or higher) from qt.nokia.com.
  105. 2. Drag qt_installer.sis on top of the device in Nokia Ovi Suite while
  106. the device is connected. The SIS package is found in the installation
  107. folder of Qt for SYmbian 4.7.1 (or higher).
  108. - Maemo with Qt version 4.7.0 which is included in PR1.3.
  109. 1. Use Nokia Ovi Suite for updating the device's firmware to PR1.3
  110. Tested on:
  111. - Nokia N900
  112. - Nokia N8
  113. - Nokia E7
  114. VERSION HISTORY
  115. -------------------------------------------------------------------------------
  116. 1.1 Added QtMobility and Symbian^3 support. Added the calibration feature.
  117. 1.0 Initial version. Supports only Maemo, the accelerometer information is
  118. read using the native Maemo interface. Published in FN Projects only.