ImportHelp.qml 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. import QtQuick 1.1
  2. import com.nokia.meego 1.0
  3. import "Logic.js" as Logic
  4. Page {
  5. id: pageImportHelp
  6. tools: ToolBarLayout {
  7. id: tool_only_back
  8. opacity: userTheme.opacityToolbar
  9. ToolIcon {
  10. id: toolIconBack
  11. //iconId: "toolbar-back"
  12. iconSource: "images/toolbar/back.png"
  13. onClicked: {
  14. pageStack.pop();
  15. }
  16. }
  17. } //ToolBarLayout
  18. QNMTitle {
  19. id: titlePage
  20. text: qsTr("Import help")
  21. image: "images/import.png"
  22. busy: false
  23. }
  24. BackgroundPage { }
  25. Image {
  26. id: titleImg
  27. anchors.horizontalCenter: parent.horizontalCenter
  28. anchors.top: titlePage.bottom
  29. anchors.topMargin: screen.orientationString == "Landscape" || screen.orientationString == "LandscapeInverted" ? 10 : 20
  30. //source: "image://theme/icon-l-user-guide"
  31. source: "images/info.png"
  32. }
  33. Flickable {
  34. id: flickArea
  35. anchors {
  36. top: titleImg.bottom
  37. bottom: parent.bottom
  38. left: parent.left
  39. right: parent.right
  40. topMargin: screen.orientationString == "Landscape" || screen.orientationString == "LandscapeInverted" ? 10 : 20
  41. leftMargin: screen.orientationString == "Landscape" || screen.orientationString == "LandscapeInverted" ? 20 : 10
  42. rightMargin: screen.orientationString == "Landscape" || screen.orientationString == "LandscapeInverted" ? 20 : 10
  43. bottomMargin: screen.orientationString == "Landscape" || screen.orientationString == "LandscapeInverted" ? 10 : 20
  44. }
  45. flickableDirection: Flickable.VerticalFlick
  46. width: parent.width
  47. height: parent.height - titleImg.height
  48. contentWidth: contentFlickArea.width
  49. contentHeight: contentFlickArea.height
  50. clip: true
  51. Column {
  52. id: contentFlickArea
  53. spacing: 10
  54. width: parent.width
  55. Text {
  56. font.pixelSize: screen.orientationString == "Landscape" || screen.orientationString == "LandscapeInverted" ? 22 : 18
  57. text: "1. " + qsTr("To import words from a file, create the XML file:") +
  58. "\n\n" +
  59. "<meewords>\n" +
  60. " <words>\n" +
  61. " <word>WRD1</word>\n" +
  62. " <translation>TRANSL1</translation>\n" +
  63. " </words>\n" +
  64. " <words>\n" +
  65. " <word>WRD2</word>\n" +
  66. " <translation>TRANSL2</translation>\n" +
  67. " </words>\n" +
  68. " ...\n" +
  69. "</meewords>\n" +
  70. "\n\n" +
  71. qsTr("where WRD - the word, TRANSL - translation of the word") + "\n\n" +
  72. "2. " + qsTr("Put the file in any directory on your device" ) + "\n\n" +
  73. "3. " + qsTr("Specify the file path") + "\n\n" +
  74. "4. " + qsTr("Select a category in which to make the import of words") + "\n\n" +
  75. "5. " + qsTr("Click the \"Start import\"") + "\n\n"
  76. }
  77. Label {
  78. font.pixelSize: screen.orientationString == "Landscape" || screen.orientationString == "LandscapeInverted" ? 22 : 18
  79. text: "<html>" + qsTr("All your questions on the project home page") + ":<br><br>" +
  80. "<a href='http://projects.developer.nokia.com/meewords'>http://projects.developer.nokia.com/meewords</a></html>"
  81. onLinkActivated: { Qt.openUrlExternally (link) }
  82. }
  83. } //Column
  84. }
  85. ScrollDecorator {
  86. flickableItem: flickArea
  87. }
  88. }