diff options
48 files changed, 2416 insertions, 0 deletions
diff --git a/BtnArrow.qml b/BtnArrow.qml new file mode 100644 index 0000000..4d6f987 --- /dev/null +++ b/BtnArrow.qml @@ -0,0 +1,49 @@ +// SPDX-License-Identifier: GPL-3.0+ +// Copyright (C) 2021 AISIN CORPORATION +import QtQuick 2.0 +import QtQuick.Controls 1.5 + +Item { + Button { + id: btn_arrow + width: 100 + height: 100 + + function settleState() { + if(btn_arrow.state == "1"){ + btn_arrow.state = "2"; + } else if(btn_arrow.state == "2"){ + btn_arrow.state = "3"; + } else { + btn_arrow.state = "1"; + } + } + + onClicked: { settleState() } + + Image { + id: image + width: 92 + height: 92 + anchors.verticalCenter: parent.verticalCenter + anchors.horizontalCenter: parent.horizontalCenter + source: "images/SW_Patern_1.bmp" + } + + states: [ + State { + name: "1" + PropertyChanges { target: image; source: "images/SW_Patern_1.bmp" } + }, + State { + name: "2" + PropertyChanges { target: image; source: "images/SW_Patern_2.bmp" } + }, + State { + name: "3" + PropertyChanges { target: image; source: "images/SW_Patern_3.bmp" } + } + ] + + } +} diff --git a/BtnEnlarge.qml b/BtnEnlarge.qml new file mode 100644 index 0000000..187207c --- /dev/null +++ b/BtnEnlarge.qml @@ -0,0 +1,35 @@ +// SPDX-License-Identifier: GPL-3.0+ +// Copyright (C) 2021 AISIN CORPORATION + +import QtQuick 2.0 +import QtQuick.Controls 1.5 + +Item { + Button { + width: 100 + height: 100 + opacity: 0 + + function zoomUp() { + map.zoomLevel += 1 + } + + onClicked: { zoomUp() } + } + + Image { + id: image + x: 4 + y: 4 + width: 92 + height: 92 + opacity: 1 + source: "images/04_WIDE.png" + } +} + +/*##^## +Designer { + D{i:0;autoSize:true;height:480;width:640} +} +##^##*/ diff --git a/BtnGuidance.qml b/BtnGuidance.qml new file mode 100644 index 0000000..189d40c --- /dev/null +++ b/BtnGuidance.qml @@ -0,0 +1,149 @@ +// SPDX-License-Identifier: GPL-3.0+ +// Copyright (C) 2021 AISIN CORPORATION + +import QtQuick 2.0 +import QtQuick.Controls 1.5 +import QtLocation 5.9 +import QtPositioning 5.6 + +Item { + id: btn_guidance + + // 0: idle + // 1: routing + // 2: on guide + property int sts_guide: 0 + + onSts_guideChanged: { + //console.log("onSts_guideChanged") + switch(btn_guidance.sts_guide){ + case 0: + positionTimer.stop(); + break + case 1: + break + case 2: + positionTimer.start(); + break + default: + break + } + } + + function startGuidance() { + btn_present_position.state = "Flowing" + btn_guidance.sts_guide = 2 + btn_guidance.state = "onGuide" + } + + function discardWaypoints(startFromCurrentPosition) { + if (startFromCurrentPosition === undefined) startFromCurrentPosition = false + map.initDestination(startFromCurrentPosition) + + if(btn_guidance.sts_guide != 0){ + map.qmlSignalStopDemo() + } + + if(map.center !== map.currentpostion){ + btn_present_position.state = "Optional" + } + + btn_guidance.sts_guide = 0 + btn_guidance.state = "Idle" + } + + Image { + id: discard_image + x: 4 + y: 4 + width: 92 + height: 92 + visible: false + source: "images/07_CANCEL.png" + } + + Timer { + id: positionTimer + interval: 100 + repeat: true + onTriggered: map.updatePositon() + } + + Image { + id: guidance_image + x: 4 + y: 4 + width: 92 + height: 92 + visible: false + source: "images/06_START-DEMO.png" + } + + Button { + id: discard + width: 100 + height: 100 + opacity: 0 + + visible: false + + onClicked: discardWaypoints() + } + + Button { + id: guidance + width: 100 + height: 100 + opacity: 0 + + visible: false + + onClicked: { startGuidance() } + + } + + + states: [ + State { + name: "Idle" + PropertyChanges { target: discard; visible: false } + PropertyChanges { target: discard_image; visible: false } + PropertyChanges { target: guidance; visible: false } + PropertyChanges { target: guidance_image; visible: false } + PropertyChanges { target: guidance; x: 0 } + PropertyChanges { target: guidance_image; x: 0 } + PropertyChanges { target: progress_next_cross; state: "invisible" } + }, + State { + name: "Routing" + PropertyChanges { target: discard; visible: true } + PropertyChanges { target: discard_image; visible: true } + PropertyChanges { target: guidance; visible: true } + PropertyChanges { target: guidance_image; visible: true } + PropertyChanges { target: guidance; x: -100 } + PropertyChanges { target: guidance_image; x: -100 } + PropertyChanges { target: progress_next_cross; state: "invisible" } + }, + State { + name: "onGuide" + PropertyChanges { target: discard; visible: true } + PropertyChanges { target: discard_image; visible: true } + PropertyChanges { target: guidance; visible: false } + PropertyChanges { target: guidance_image; visible: false } + PropertyChanges { target: guidance; x: 0 } + PropertyChanges { target: guidance_image; x: 0 } + PropertyChanges { target: progress_next_cross; state: "visible" } + } + ] + + transitions: Transition { + NumberAnimation { properties: "x"; easing.type: Easing.InOutQuad } + NumberAnimation { properties: "visible"; easing.type: Easing.InOutQuad } + } +} + +/*##^## +Designer { + D{i:0;autoSize:true;height:480;width:640} +} +##^##*/ diff --git a/BtnMapDirection.qml b/BtnMapDirection.qml new file mode 100644 index 0000000..8858e8a --- /dev/null +++ b/BtnMapDirection.qml @@ -0,0 +1,63 @@ +// SPDX-License-Identifier: GPL-3.0+ +// Copyright (C) 2021 AISIN CORPORATION + +import QtQuick 2.0 +import QtQuick.Controls 1.5 + +Item { + Image { + id: image + x: 0 + y: 3 + width: 92 + height: 92 + opacity: 1 + source: "images/02_NORTH-UP.png" + } + + Button { + id: btn_map_direction + width: 100 + height: 100 + iconSource: "" + opacity: 0 + visible: true + clip: false + state: "NorthUp" + + + + function settleState() { + if(root.st_heading_up){ + btn_map_direction.state = "NorthUp" + car_position_mapitem.state = "NorthUp" + root.st_heading_up = false + } else { + btn_map_direction.state = "HeadingUp" + car_position_mapitem.state = "HeadingUp" + root.st_heading_up = true + } + map.rotateMapSmooth() + } + + onClicked: { settleState() } + + states: [ + State { + name: "HeadingUp" + PropertyChanges { target: image; source: "images/01_HEADING-UP.png" } + }, + State { + name: "NorthUp" + PropertyChanges { target: image; source: "images/02_NORTH-UP.png" } + } + ] + } + +} + +/*##^## +Designer { + D{i:0;autoSize:true;height:480;width:640} +} +##^##*/ diff --git a/BtnPresentPosition.qml b/BtnPresentPosition.qml new file mode 100644 index 0000000..282259b --- /dev/null +++ b/BtnPresentPosition.qml @@ -0,0 +1,53 @@ +// SPDX-License-Identifier: GPL-3.0+ +// Copyright (C) 2021 AISIN CORPORATION + +import QtQuick 2.0 +import QtQuick.Controls 1.5 + +Item { + id: btn_present_position + + Image { + id: image_present_position + x: 4 + y: 4 + width: 92 + height: 92 + visible: false + source: "images/05_CENTER-POSITION.png" + } + + Button { + id: btn_present_position_ + width: 100 + height: 100 + opacity: 0 + visible: true + + function present_position_clicked() { + map.center = map.currentpostion + btn_present_position.state = "Flowing" + } + onClicked: { present_position_clicked() } + } + + states: [ + State{ + name: "Flowing" + PropertyChanges { target: image_present_position; visible: false } + PropertyChanges { target: btn_present_position; visible: false } + }, + State{ + name: "Optional" + PropertyChanges { target: image_present_position; visible: true } + PropertyChanges { target: btn_present_position; visible: true } + } + ] + +} + +/*##^## +Designer { + D{i:0;autoSize:true;height:480;width:640} +} +##^##*/ diff --git a/BtnShrink.qml b/BtnShrink.qml new file mode 100644 index 0000000..01ec6d2 --- /dev/null +++ b/BtnShrink.qml @@ -0,0 +1,30 @@ +// SPDX-License-Identifier: GPL-3.0+ +// Copyright (C) 2021 AISIN CORPORATION + +import QtQuick 2.0 +import QtQuick.Controls 1.5 + +Item { + Button { + id: btn_shrink + width: 100 + height: 100 + opacity: 0 + + function zoomDown() { + map.zoomLevel -= 1 + } + + onClicked: { zoomDown() } + } + + Image { + id: image + x: 4 + y: 4 + width: 92 + height: 92 + opacity: 1 + source: "images/03_DETAIL.png" + } +} @@ -0,0 +1,674 @@ + GNU GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/> + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU General Public License is a free, copyleft license for +software and other kinds of works. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +the GNU General Public License is intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. We, the Free Software Foundation, use the +GNU General Public License for most of our software; it applies also to +any other work released this way by its authors. You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + To protect your rights, we need to prevent others from denying you +these rights or asking you to surrender the rights. Therefore, you have +certain responsibilities if you distribute copies of the software, or if +you modify it: responsibilities to respect the freedom of others. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must pass on to the recipients the same +freedoms that you received. You must make sure that they, too, receive +or can get the source code. And you must show them these terms so they +know their rights. + + Developers that use the GNU GPL protect your rights with two steps: +(1) assert copyright on the software, and (2) offer you this License +giving you legal permission to copy, distribute and/or modify it. + + For the developers' and authors' protection, the GPL clearly explains +that there is no warranty for this free software. For both users' and +authors' sake, the GPL requires that modified versions be marked as +changed, so that their problems will not be attributed erroneously to +authors of previous versions. + + Some devices are designed to deny users access to install or run +modified versions of the software inside them, although the manufacturer +can do so. This is fundamentally incompatible with the aim of +protecting users' freedom to change the software. The systematic +pattern of such abuse occurs in the area of products for individuals to +use, which is precisely where it is most unacceptable. Therefore, we +have designed this version of the GPL to prohibit the practice for those +products. If such problems arise substantially in other domains, we +stand ready to extend this provision to those domains in future versions +of the GPL, as needed to protect the freedom of users. + + Finally, every program is threatened constantly by software patents. +States should not allow patents to restrict development and use of +software on general-purpose computers, but in those that do, we wish to +avoid the special danger that patents applied to a free program could +make it effectively proprietary. To prevent this, the GPL assures that +patents cannot be used to render the program non-free. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Use with the GNU Affero General Public License. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU Affero General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the special requirements of the GNU Affero General Public License, +section 13, concerning interaction through a network will apply to the +combination as such. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + <one line to give the program's name and a brief idea of what it does.> + Copyright (C) <year> <name of author> + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. + +Also add information on how to contact you by electronic and paper mail. + + If the program does terminal interaction, make it output a short +notice like this when it starts in an interactive mode: + + <program> Copyright (C) <year> <name of author> + This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, your program's commands +might be different; for a GUI interface, you would use an "about box". + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU GPL, see +<http://www.gnu.org/licenses/>. + + The GNU General Public License does not permit incorporating your program +into proprietary programs. If your program is a subroutine library, you +may consider it more useful to permit linking proprietary applications with +the library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. But first, please read +<http://www.gnu.org/philosophy/why-not-lgpl.html>. diff --git a/ProgressNextCross.qml b/ProgressNextCross.qml new file mode 100644 index 0000000..89a2b7b --- /dev/null +++ b/ProgressNextCross.qml @@ -0,0 +1,49 @@ +// SPDX-License-Identifier: GPL-3.0+ +// Copyright (C) 2021 AISIN CORPORATION +import QtQuick 2.0 +import QtQuick.Controls 1.5 +import QtQuick.Controls.Styles 1.4 + +Item { + id: progress_next_cross + + visible: false + + // val [Input] + // distance to next cross. (unit = meter) + // when over the ProgressBar.maximumValue/m, progress bar indicates max (same as ProgressBar.maximumValue/m) + function setProgress(val) { + if (val > bar.value ) { + bar.maximumValue = val + } + + if ( 0 < val ) { + bar.value = val + }else{ + bar.value = 0 + } + } + + ProgressBar { + id: bar + width: 800 + height: 20 + orientation: Qt.Horizontal + value: 0 + minimumValue: 0 + maximumValue: 800 + + style: ProgressBarStyle { + progress: Rectangle { + color: "green" + } + } + } + states: [ + State { + name: "visible"; PropertyChanges { target: progress_next_cross; visible: true }}, + State { + name: "invisible"; PropertyChanges { target: progress_next_cross; visible: false }} + ] + +} diff --git a/RouteView.qml b/RouteView.qml new file mode 100644 index 0000000..c8dcbc4 --- /dev/null +++ b/RouteView.qml @@ -0,0 +1,37 @@ +// SPDX-License-Identifier: GPL-3.0+ +// Copyright (C) 2021 AISIN CORPORATION +import QtQuick 2.0 + +Item { + Rectangle { + width: 800 + height: 60 + color: "#6e110e0c" + border.width: 2 + radius: 10.0 + border.color: "#00000000" + + Text { + x: 10 + y: 2 + width: 780 + height: 56 + color: "#f5f5f5" + + id: routeText + verticalAlignment: Text.AlignVCenter + horizontalAlignment: Text.AlignHCenter + font.pixelSize: 24 + } + } + + function setText(string) { + routeText.text = string + } +} + +/*##^## +Designer { + D{i:0;autoSize:true;height:480;width:640} +} +##^##*/ diff --git a/images/01_HEADING-UP.png b/images/01_HEADING-UP.png Binary files differnew file mode 100644 index 0000000..a5d9192 --- /dev/null +++ b/images/01_HEADING-UP.png diff --git a/images/02_NORTH-UP.png b/images/02_NORTH-UP.png Binary files differnew file mode 100644 index 0000000..58e0558 --- /dev/null +++ b/images/02_NORTH-UP.png diff --git a/images/03_DETAIL.png b/images/03_DETAIL.png Binary files differnew file mode 100644 index 0000000..09f9fef --- /dev/null +++ b/images/03_DETAIL.png diff --git a/images/04_WIDE.png b/images/04_WIDE.png Binary files differnew file mode 100644 index 0000000..cfa8ccc --- /dev/null +++ b/images/04_WIDE.png diff --git a/images/05_CENTER-POSITION.png b/images/05_CENTER-POSITION.png Binary files differnew file mode 100644 index 0000000..e87da05 --- /dev/null +++ b/images/05_CENTER-POSITION.png diff --git a/images/06_START-DEMO.png b/images/06_START-DEMO.png Binary files differnew file mode 100644 index 0000000..2a768ee --- /dev/null +++ b/images/06_START-DEMO.png diff --git a/images/07_CANCEL.png b/images/07_CANCEL.png Binary files differnew file mode 100644 index 0000000..d70a2d4 --- /dev/null +++ b/images/07_CANCEL.png diff --git a/images/08_START.png b/images/08_START.png Binary files differnew file mode 100644 index 0000000..e1ddb62 --- /dev/null +++ b/images/08_START.png diff --git a/images/09_JUNCTION.png b/images/09_JUNCTION.png Binary files differnew file mode 100644 index 0000000..e8338bc --- /dev/null +++ b/images/09_JUNCTION.png diff --git a/images/10_11_bear_left_112px-Signal_C117a.svg.png b/images/10_11_bear_left_112px-Signal_C117a.svg.png Binary files differnew file mode 100755 index 0000000..f658a9c --- /dev/null +++ b/images/10_11_bear_left_112px-Signal_C117a.svg.png diff --git a/images/10_GOAL.png b/images/10_GOAL.png Binary files differnew file mode 100644 index 0000000..d6f9799 --- /dev/null +++ b/images/10_GOAL.png diff --git a/images/11_2_bear_right_112px-Signal_C117a.svg.png b/images/11_2_bear_right_112px-Signal_C117a.svg.png Binary files differnew file mode 100755 index 0000000..a4c9326 --- /dev/null +++ b/images/11_2_bear_right_112px-Signal_C117a.svg.png diff --git a/images/11_Header.png b/images/11_Header.png Binary files differnew file mode 100644 index 0000000..1875d7d --- /dev/null +++ b/images/11_Header.png diff --git a/images/12_Footer.png b/images/12_Footer.png Binary files differnew file mode 100644 index 0000000..5a86456 --- /dev/null +++ b/images/12_Footer.png diff --git a/images/13_Time.png b/images/13_Time.png Binary files differnew file mode 100644 index 0000000..72bab32 --- /dev/null +++ b/images/13_Time.png diff --git a/images/146px-Israely_road_sign_211.svg.png b/images/146px-Israely_road_sign_211.svg.png Binary files differnew file mode 100755 index 0000000..848477b --- /dev/null +++ b/images/146px-Israely_road_sign_211.svg.png diff --git a/images/146px-Israely_road_sign_212.svg.png b/images/146px-Israely_road_sign_212.svg.png Binary files differnew file mode 100755 index 0000000..3320ca9 --- /dev/null +++ b/images/146px-Israely_road_sign_212.svg.png diff --git a/images/14_Logo.png b/images/14_Logo.png Binary files differnew file mode 100644 index 0000000..c1435ee --- /dev/null +++ b/images/14_Logo.png diff --git a/images/15_Maps.png b/images/15_Maps.png Binary files differnew file mode 100644 index 0000000..4c36a69 --- /dev/null +++ b/images/15_Maps.png diff --git a/images/16_Multimedia.png b/images/16_Multimedia.png Binary files differnew file mode 100644 index 0000000..66f6f38 --- /dev/null +++ b/images/16_Multimedia.png diff --git a/images/17_Dashboard.png b/images/17_Dashboard.png Binary files differnew file mode 100644 index 0000000..2cda6ed --- /dev/null +++ b/images/17_Dashboard.png diff --git a/images/18_Setting.png b/images/18_Setting.png Binary files differnew file mode 100644 index 0000000..8f031ab --- /dev/null +++ b/images/18_Setting.png diff --git a/images/19_Shadow.png b/images/19_Shadow.png Binary files differnew file mode 100644 index 0000000..5a86456 --- /dev/null +++ b/images/19_Shadow.png diff --git a/images/200px-Black_close_x.svg.png b/images/200px-Black_close_x.svg.png Binary files differnew file mode 100755 index 0000000..7e82526 --- /dev/null +++ b/images/200px-Black_close_x.svg.png diff --git a/images/202px-Compass-icon_bb_N.svg.png b/images/202px-Compass-icon_bb_N.svg.png Binary files differnew file mode 100755 index 0000000..0d4ccbf --- /dev/null +++ b/images/202px-Compass-icon_bb_N.svg.png diff --git a/images/207px-Car_icon_top.svg.png b/images/207px-Car_icon_top.svg.png Binary files differnew file mode 100755 index 0000000..ab380ef --- /dev/null +++ b/images/207px-Car_icon_top.svg.png diff --git a/images/240px-Antu_file-zoom-out.svg.png b/images/240px-Antu_file-zoom-out.svg.png Binary files differnew file mode 100755 index 0000000..3041d3e --- /dev/null +++ b/images/240px-Antu_file-zoom-out.svg.png diff --git a/images/240px-Antu_kdenlive-zoom-large.svg.png b/images/240px-Antu_kdenlive-zoom-large.svg.png Binary files differnew file mode 100755 index 0000000..8daffe0 --- /dev/null +++ b/images/240px-Antu_kdenlive-zoom-large.svg.png diff --git a/images/240px-Compass_icon_NE.svg.png b/images/240px-Compass_icon_NE.svg.png Binary files differnew file mode 100755 index 0000000..72e210e --- /dev/null +++ b/images/240px-Compass_icon_NE.svg.png diff --git a/images/Emoji_u1f3c1.svg b/images/Emoji_u1f3c1.svg new file mode 100755 index 0000000..f435816 --- /dev/null +++ b/images/Emoji_u1f3c1.svg @@ -0,0 +1,19 @@ +<svg width="128" height="128" style="enable-background:new 0 0 128 128;" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
+ <g>
+ <path d="M14.67,83.13c0,0,5.19,6.89,21.23,8.32c16.04,1.44,38.5-2.81,64.35,13.99l24.14-67.57 c0,0-11.75-6.29-27.32-7.44c-15.56-1.16-27.97,4.26-41.7,2.1c-13.37-2.1-16.45-3.56-16.45-3.56L14.67,83.13z" style="fill:#FFFFFF;"/>
+ <g>
+ <path d="M100.26,108.68c-0.62,0-1.23-0.18-1.76-0.52C79,95.49,61.3,95.27,47.09,95.09 c-4.06-0.05-7.89-0.1-11.47-0.42c-16.99-1.52-22.91-8.77-23.53-9.6c-1.07-1.42-0.79-3.45,0.64-4.52c1.41-1.06,3.41-0.8,4.49,0.6 c0.15,0.18,4.99,5.83,18.96,7.08c3.34,0.3,7.05,0.35,10.98,0.39c14.22,0.17,31.73,0.39,51.4,11.96l21.81-61.05 c-4.13-1.8-12.95-5.11-23.53-5.9c-7.04-0.52-13.54,0.38-19.82,1.26c-7.44,1.04-14.47,2.02-22.15,0.81 c-13.16-2.07-16.75-3.55-17.33-3.82c-1.62-0.76-2.31-2.69-1.55-4.3c0.76-1.61,2.68-2.31,4.3-1.55c0.07,0.03,3.27,1.35,15.58,3.29 c6.75,1.06,13.3,0.15,20.25-0.83c6.62-0.92,13.46-1.88,21.19-1.3c16.05,1.19,28.09,7.55,28.59,7.82 c1.41,0.75,2.06,2.43,1.52,3.94l-24.13,67.57c-0.34,0.93-1.07,1.66-2.01,1.97C100.96,108.62,100.61,108.68,100.26,108.68z" style="fill:#2F2F2F;"/>
+ <path d="M4.68,109.75c-0.58,0-1.18-0.12-1.75-0.38c-2.17-0.97-3.14-3.52-2.17-5.69l33.69-75.25 c0.97-2.17,3.53-3.14,5.69-2.17c2.17,0.97,3.14,3.52,2.17,5.69L8.62,107.21C7.9,108.81,6.33,109.75,4.68,109.75z" style="fill:#2F2F2F;"/>
+ <path d="M33.93,41.24c-0.29,0.48-0.75,1.04-0.81,1.58c-0.14,1.33,1.96,1.29,2.86,1.47 c1.42,0.28,2.79,0.76,4.22,1.03c1.1,0.2,2.11,0.28,3.23,0.28c0.58,0,1.15,0,1.73,0c0.55-0.01,1.65-0.06,2.11-0.34 c0.55-0.34,0.86-1.31,1.1-1.86c0.42-0.96,0.92-1.88,1.3-2.86c0.67-1.74,1.81-3.24,2.34-5.04c0.18-0.61,0.75-2.11,0.43-2.72 c-0.6-1.15-3.05-0.88-4.1-1.01c-2-0.24-4-0.6-6-0.79c-0.42-0.04-0.77-0.02-1.17-0.17c-0.28-0.1-0.54-0.33-0.81-0.4 c-1.29-0.34-1.4,0.51-1.86,1.39c-0.38,0.71-0.65,1.36-0.87,2.14c-0.55,1.85-1.79,3.46-2.65,5.19c-0.34,0.67-0.65,1.35-1,2.01 C33.96,41.16,33.94,41.2,33.93,41.24z" style="fill:#2F2F2F;"/>
+ <path d="M22.46,68.17c-0.1,0.2-0.2,0.41-0.29,0.61c-0.12,0.31-0.14,0.63-0.26,0.94 c-0.14,0.35-0.65,0.83-0.44,1.25c0.13,0.24,0.88,0.37,1.11,0.45c0.73,0.26,1.49,0.43,2.26,0.57c2.53,0.46,5.01,1.24,7.58,1.52 c0.96,0.1,2.48,0.47,3.28-0.25c0.23-0.2,0.53-0.72,0.67-1.02c1.12-2.52,2.31-5,3.33-7.56c0.4-0.98,2.54-5.05,2.11-5.98 c-0.34-0.73-1.4-0.43-2.07-0.55c-1.56-0.28-3.17-0.3-4.75-0.57c-1.76-0.3-3.62-0.23-5.33-0.81c-0.41-0.13-0.96-0.5-1.35-0.22 c-0.52,0.38-0.92,1.62-1.24,2.2c-0.37,0.71-0.64,1.36-0.87,2.14c-0.55,1.85-1.79,3.46-2.65,5.19 C23.23,66.76,22.81,67.46,22.46,68.17z" style="fill:#2F2F2F;"/>
+ <path d="M42.28,55.94c-0.33,0.77-0.76,1.44-1.05,2.2c-0.38,0.98-0.39,1.04,0.6,1.29 c2.91,0.71,5.91,1.01,8.9,1.08c2.01,0.05,4.73,0.6,6.12-1.28c1.13-1.53,1.62-3.47,2.42-5.17c0.72-1.55,1.1-3.23,1.71-4.82 c0.41-1.06,1.45-2.82,0.6-3.9c-0.38-0.48-2.22-0.17-2.82-0.17c-1.44,0-2.87-0.14-4.33-0.14c-2.12,0-4.18-0.05-6.24-0.53 c-1.35-0.31-1.63,0.21-2.21,1.38c-1.14,2.3-1.45,4.77-2.5,7.05C43.03,53.91,42.7,54.95,42.28,55.94z" style="fill:#2F2F2F;"/>
+ <path d="M29.96,83.9c-0.68,1.28-1.39,2.55-2.12,3.8c-0.4,0.67-0.19,0.6,0.39,1.04 c0.38,0.29,0.64,0.77,1.07,0.97c0.42,0.2,0.98,0.15,1.46,0.28c1.37,0.38,2.77,0.63,4.2,0.69c0.85,0.04,1.7,0.16,2.55,0.27 c0.78,0.1,1.69,0.05,2.44,0.26c0.57,0.17,0.77,0.44,1.43,0.24c0.48-0.15,1.03-0.5,1.34-0.91c1.41-1.93,2.43-4.24,3.33-6.43 c0.99-2.4,1.97-4.82,2.53-7.36c0.13-0.59,0.44-1.13,0.53-1.72c0.17-1.15-0.47-1.39-1.42-1.4c-1.43-0.01-2.81-0.28-4.22-0.45 c-1.08-0.14-2.19-0.15-3.28-0.25c-0.96-0.1-1.93-0.23-2.89-0.28c-0.47-0.03-1.4-0.16-1.86-0.01c-0.41,0.14-0.69,0.74-0.85,1.14 c-0.21,0.54-0.27,1.03-0.53,1.58c-0.29,0.63-0.55,1.27-0.84,1.91C32.18,79.52,31.11,81.73,29.96,83.9z" style="fill:#2F2F2F;"/>
+ <path d="M50.2,69.51c-0.02,0.03-0.03,0.05-0.05,0.08c-0.63,1.11-2.63,3.53-1.71,4.83 c0.53,0.74,1.94,0.48,2.7,0.51c1.24,0.04,2.47,0.17,3.71,0.26c1.59,0.1,3.29-0.02,4.89,0.18c1.12,0.14,2.23,0.25,3.34,0.36 c0.82,0.08,1.55,0.47,2.37,0.56c1.61,0.16,2.13-1.03,2.66-2.32c0.34-0.84,0.83-1.56,1.1-2.43c0.32-1.04,0.83-2.04,1.36-2.99 c0.73-1.29,1.42-2.68,1.85-4.1c0.26-0.88,0.73-1.87,0.88-2.78c0.11-0.7-0.1-0.93-0.7-1.14c-0.38-0.13-0.85-0.17-1.28-0.28 c-1.31-0.33-2.58-0.4-3.94-0.57c-2.41-0.29-4.99-0.42-7.44-0.42c-1.17,0-2.3-0.15-3.46-0.14c-2.21,0.01-2.72,2.99-3.42,4.59 C52.22,65.69,51.26,67.62,50.2,69.51z" style="fill:#2F2F2F;"/>
+ <path d="M63.13,40.71c-0.66,1.27-0.96,2.46-1.48,3.76c-0.18,0.47-0.25,0.94-0.44,1.39 c2.76,0.33,5.63-0.14,8.42-0.04c3.39,0.13,6.76,0.44,10.16,0.48c0.54,0,0.67-0.01,1.01-0.42c1.08-1.28,1.11-3.23,1.63-4.76 c0.93-2.74,1.62-5.54,2.86-8.18c0.42-0.86,1.11-2.71-0.48-2.75c-0.46-0.01-0.92,0.22-1.38,0.26c-0.58,0.04-1.18,0-1.76-0.01 c-1.15-0.01-2.28,0.09-3.42,0.21c-2.04,0.23-4.21,0.25-6.21,0.7c-1.44,0.33-2.98,0.36-4.41,0.71c-1.33,0.33-1.92,2.44-2.25,3.57 c-0.25,0.86-0.69,1.65-1.01,2.5C64.03,39.01,63.59,39.86,63.13,40.71z" style="fill:#2F2F2F;"/>
+ <path d="M74.81,56.62c-0.07,0.15-0.13,0.29-0.2,0.43c-0.56,1.32-0.96,2.69-1.55,4 c-0.61,1.33,0.43,1.46,1.54,1.46c4.85,0,9.31,1.56,14.04,1.91c1.09,0.08,2.14,0.55,3.21,0.72c1.28,0.2,1.29-0.79,1.78-1.78 c0.42-0.85,0.72-1.7,1.09-2.56c0.81-1.88,1.36-3.8,2.09-5.72c0.43-1.13,0.77-2.28,1.16-3.42c0.17-0.5,0.51-0.95,0.64-1.47 c0.12-0.48,0.12-0.84,0.32-1.31c0.27-0.64,0.25-0.88-0.4-1.12c-5.74-2.12-11.53-2.83-17.62-2.86c-0.39,0-0.72,0.17-1.1,0.18 c-1.11,2.28-1.96,4.51-2.88,6.91C76.32,53.57,75.5,55.07,74.81,56.62z" style="fill:#2F2F2F;"/>
+ <path d="M60.6,86.46c-0.07,0.14-0.14,0.28-0.21,0.43c-0.63,1.29-1.1,2.64-1.76,3.91 c-0.68,1.3,0.36,1.47,1.48,1.53c2.41,0.12,4.84,0.26,7.23,0.65c2.23,0.36,4.12,1.36,6.26,1.84c0.92,0.21,3.18,0.96,4.08,0.82 c1.57-0.24,2.25-3.93,2.74-5.19c0.78-2.04,1.59-4.07,2.31-6.14c0.58-1.66,1.77-3.29,2.12-4.97c0.62-3.09-15.25-4.14-17.53-4.27 c-0.39-0.02-0.72,0.13-1.11,0.12c-1.22,2.22-2.19,4.41-3.24,6.75C62.27,83.5,61.38,84.95,60.6,86.46z" style="fill:#2F2F2F;"/>
+ <path d="M85.8,74.77c-0.07,0.14-0.14,0.28-0.21,0.43c-0.39,0.78-0.71,1.58-1.05,2.38 c-0.17,0.39-1.01,1.58-0.93,1.95c0.23,0.17,0.44,0.47,0.66,0.6c0.31,0.19,0.6,0.08,1.01,0.12c1.47,0.15,2.92,0.54,4.38,0.74 c2.55,0.36,5.06,0.79,7.59,1.27c3.13,0.6,6.12,1.63,9.04,2.88c0.4,0.18,0.96,0.72,1.4,0.79c0.38,0.06,0.45-0.09,0.7-0.46 c0.39-0.56,0.8-1.24,1.11-1.84c0.66-1.29,0.8-2.86,1.29-4.23c0.53-1.46,0.98-2.93,1.55-4.36c0.48-1.19,0.8-2.46,1.34-3.62 c1.06-2.27,0.19-2.72-1.93-3.85c-5.49-2.94-13.11-3.87-19.24-4.2c-0.4-0.02-0.72,0.13-1.11,0.12c-1.22,2.22-2.19,4.41-3.24,6.75 C87.47,71.8,86.57,73.25,85.8,74.77z" style="fill:#2F2F2F;"/>
+ <path d="M99.73,44.45c-0.12,0.26-0.24,0.53-0.37,0.79c-0.35,0.73-0.67,1.52-0.96,2.28 c-0.23,0.62-0.72,1.16-0.69,1.87c0.44-0.02,0.95,0.21,1.38,0.33c0.94,0.27,1.9,0.22,2.84,0.44c0.83,0.19,1.57,0.39,2.42,0.51 c2.26,0.31,4.49,0.75,6.72,1.17c1.65,0.31,3.27,0.75,4.87,1.28c0.71,0.24,2.98,1.41,3.63,0.84c0.27-0.24,0.42-0.81,0.55-1.14 c0.58-1.41,1.15-2.95,1.55-4.43c0.37-1.36,0.91-2.59,1.37-3.91c0.46-1.29,0.67-2.64,1.12-3.91c0.16-0.44,0.45-0.84,0.65-1.26 c0.62-1.27,0.21-2.45-1.07-3.03c-1.77-0.81-3.69-1.34-5.57-1.79c-2.31-0.54-4.67-0.91-7.03-1.16c-1.01-0.11-1.98-0.39-2.99-0.54 c-0.77-0.12-1.6-0.45-2.34-0.51c-1-0.09-2.46,4.51-2.93,5.41C101.72,39.9,100.79,42.19,99.73,44.45z" style="fill:#2F2F2F;"/>
+ </g>
+ </g>
+</svg>
\ No newline at end of file diff --git a/images/HEB_project_flow_icon_04_checkered_flag.svg b/images/HEB_project_flow_icon_04_checkered_flag.svg new file mode 100755 index 0000000..7c00d2c --- /dev/null +++ b/images/HEB_project_flow_icon_04_checkered_flag.svg @@ -0,0 +1,160 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:cc="http://creativecommons.org/ns#"
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:svg="http://www.w3.org/2000/svg"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+ width="93.543304"
+ height="93.543304"
+ id="svg4806"
+ version="1.1"
+ inkscape:version="0.48.2 r9819"
+ sodipodi:docname="HEB_project_flow_icon_03_wrench_and_nuts.svg">
+ <defs
+ id="defs3" />
+ <sodipodi:namedview
+ inkscape:document-units="mm"
+ id="base"
+ pagecolor="#ffffff"
+ bordercolor="#666666"
+ borderopacity="1.0"
+ inkscape:pageopacity="0.0"
+ inkscape:pageshadow="2"
+ inkscape:zoom="1.979899"
+ inkscape:cx="65.177509"
+ inkscape:cy="-10.893685"
+ inkscape:current-layer="layer1"
+ showgrid="true"
+ units="mm"
+ fit-margin-top="0.5"
+ fit-margin-left="0.5"
+ fit-margin-right="0.5"
+ fit-margin-bottom="0.5"
+ inkscape:window-width="1280"
+ inkscape:window-height="1002"
+ inkscape:window-x="1272"
+ inkscape:window-y="-8"
+ inkscape:window-maximized="1">
+ <inkscape:grid
+ type="xygrid"
+ id="grid4812"
+ empspacing="5"
+ visible="true"
+ enabled="true"
+ snapvisiblegridlinesonly="true" />
+ </sodipodi:namedview>
+ <metadata
+ id="metadata4">
+ <rdf:RDF>
+ <cc:Work
+ rdf:about="">
+ <dc:format>image/svg+xml</dc:format>
+ <dc:type
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+ <dc:title></dc:title>
+ </cc:Work>
+ </rdf:RDF>
+ </metadata>
+ <g
+ inkscape:label="Layer 1"
+ inkscape:groupmode="layer"
+ id="layer1"
+ transform="translate(-268.22835,-230.59053)">
+ <rect
+ style="fill:#55d400;fill-opacity:1;stroke:none"
+ id="rect4814"
+ width="90"
+ height="90"
+ x="270"
+ y="232.36218"
+ rx="14.173228"
+ ry="14.173228" />
+ <g
+ id="g3349-1"
+ transform="matrix(0.51768837,0.13871419,-0.13871419,0.51768837,257.89183,-114.17755)"
+ style="fill:#ffffff">
+ <path
+ inkscape:connector-curvature="0"
+ id="path3317-4"
+ d="m 330.73493,650.19583 0,-6.77018 1.43265,-0.70264 c 0.78795,-0.38645 2.71987,-1.48363 4.29315,-2.43819 l 2.86049,-1.73555 -1.5e-4,6.74187 -1.5e-4,6.74186 -2.96717,1.80395 c -1.63194,0.99218 -3.56379,2.1021 -4.293,2.4665 l -1.32582,0.66255 0,-6.77017 z"
+ style="fill:#ffffff;fill-opacity:1;stroke:none" />
+ <path
+ inkscape:connector-curvature="0"
+ id="path3319-3"
+ d="m 319.62325,669.38246 0,-6.76792 2.44177,-0.68631 c 1.34298,-0.37747 3.50114,-1.13892 4.7959,-1.6921 1.29477,-0.55319 2.41199,-1.00579 2.48272,-1.00579 0.0707,0 0.1286,3.01886 0.1286,6.70857 l 0,6.70858 -2.08344,0.96213 c -2.07778,0.95952 -6.6768,2.54077 -7.38976,2.54077 -0.32335,0 -0.37579,-0.94452 -0.37579,-6.76793 z"
+ style="fill:#ffffff;fill-opacity:1;stroke:none" />
+ <path
+ inkscape:connector-curvature="0"
+ id="path3321-9"
+ d="m 330.73518,680.27824 2.5e-4,-6.7795 2.08319,-1.11977 c 1.89919,-1.02086 4.49057,-2.54515 5.93439,-3.4907 l 0.56821,-0.37211 -0.007,6.78444 -0.007,6.78444 -2.83381,1.68356 c -1.5586,0.92597 -3.48726,2.04483 -4.28591,2.48636 l -1.45209,0.80278 2.5e-4,-6.7795 z"
+ style="fill:#ffffff;fill-opacity:1;stroke:none" />
+ <path
+ inkscape:connector-curvature="0"
+ id="path3323-8"
+ d="m 319.62325,699.39363 0,-6.80879 1.07329,-0.27602 c 2.16455,-0.55665 5.16031,-1.59658 6.9448,-2.41076 l 1.8309,-0.83536 0,6.80847 0,6.80848 -1.90702,0.86905 c -1.78475,0.81334 -7.11422,2.65373 -7.68476,2.65373 -0.16823,0 -0.25721,-2.35556 -0.25721,-6.8088 z"
+ style="fill:#ffffff;fill-opacity:1;stroke:none" />
+ <path
+ inkscape:connector-curvature="0"
+ id="path3325-8"
+ d="m 311.16322,691.435 c -0.83337,-0.18293 -1.99821,-0.52717 -2.58851,-0.76496 l -1.07329,-0.43235 0,-6.77751 0,-6.77751 1.40653,0.48392 c 1.74719,0.60112 5.7759,1.02528 7.87425,0.82903 l 1.57836,-0.14761 0,6.81928 0,6.81928 -1.17167,0.16059 c -1.79547,0.2461 -4.34733,0.15625 -6.02567,-0.21216 z"
+ style="fill:#ffffff;fill-opacity:1;stroke:none" />
+ <path
+ inkscape:connector-curvature="0"
+ id="path3327-0"
+ d="m 311.41576,661.48931 c -0.55558,-0.11608 -1.63518,-0.41615 -2.39911,-0.66681 l -1.38896,-0.45574 -0.0672,-6.86945 -0.0672,-6.86945 1.32986,0.45484 c 2.41723,0.82676 4.62928,1.11322 7.16115,0.92737 l 2.3762,-0.17442 0,6.80219 0,6.8022 -0.78918,0.15784 c -1.08298,0.2166 -4.92358,0.14886 -6.15562,-0.10857 z"
+ style="fill:#ffffff;fill-opacity:1;stroke:none" />
+ <path
+ inkscape:connector-curvature="0"
+ id="path3329-8"
+ d="m 304.04556,673.1792 c -1.13679,-0.79652 -3.4919,-2.52783 -5.23358,-3.84734 l -3.16669,-2.39911 -0.007,-6.65817 -0.007,-6.65817 0.68919,0.45158 c 0.37906,0.24837 1.88932,1.38488 3.35614,2.52559 2.82782,2.19913 5.53936,4.03407 6.33392,4.28625 0.45584,0.14468 0.47989,0.49313 0.47989,6.95382 0,3.74083 -0.0852,6.79977 -0.18941,6.79765 -0.10417,-0.002 -1.1195,-0.65557 -2.2563,-1.4521 z"
+ style="fill:#ffffff;fill-opacity:1;stroke:none" />
+ <path
+ inkscape:connector-curvature="0"
+ id="path3331-7"
+ d="m 304.69952,703.64277 c -0.88964,-0.57444 -2.81076,-1.97715 -4.26917,-3.11713 -1.45841,-1.13999 -3.13463,-2.38973 -3.72494,-2.7772 l -1.07328,-0.7045 0,-6.6587 c 0,-3.66229 0.0592,-6.6587 0.13156,-6.6587 0.0724,0 1.97735,1.39211 4.23332,3.09359 2.25597,1.70147 4.64007,3.3775 5.29801,3.7245 l 1.19625,0.63091 0,6.75583 c 0,3.71571 -0.0392,6.75583 -0.0871,6.75583 -0.0479,0 -0.815,-0.46999 -1.70463,-1.04443 z"
+ style="fill:#ffffff;fill-opacity:1;stroke:none" />
+ <path
+ inkscape:connector-curvature="0"
+ id="path3333-7"
+ d="m 291.84405,679.6717 c -1.31951,-0.8178 -3.7344,-2.17878 -5.36643,-3.0244 l -2.96732,-1.5375 0,-6.67704 c 0,-3.67237 0.0597,-6.67704 0.13257,-6.67704 0.34313,0 4.1222,2.01985 7.25243,3.87629 l 3.47065,2.05835 0.002,6.7554 c 9.5e-4,3.71547 -0.0267,6.74582 -0.0614,6.73412 -0.0347,-0.0117 -1.14273,-0.69038 -2.46225,-1.50818 z"
+ style="fill:#ffffff;fill-opacity:1;stroke:none" />
+ <path
+ inkscape:connector-curvature="0"
+ id="path3335-8"
+ d="m 292.63511,650.121 c -1.76718,-1.11753 -7.91151,-4.42921 -8.65633,-4.66561 -0.44101,-0.13997 -0.46848,-0.54758 -0.46848,-6.9502 0,-3.74083 0.0754,-6.80151 0.16758,-6.80151 0.53834,0 9.60074,5.15624 10.38017,5.90601 0.24577,0.23641 0.30433,1.84073 0.25254,6.918 l -0.0674,6.61021 -1.60806,-1.0169 z"
+ style="fill:#ffffff;fill-opacity:1;stroke:none" />
+ <path
+ inkscape:connector-curvature="0"
+ id="path3339-3"
+ d="m 280.35357,658.80685 c -1.11117,-0.48335 -3.49765,-1.36849 -5.3033,-1.96697 l -3.283,-1.08815 -0.0672,-6.83458 -0.0672,-6.83458 1.32986,0.39052 c 1.81784,0.53382 5.7677,2.01299 7.83272,2.93324 l 1.70463,0.75965 0,6.78471 c 0,3.7316 -0.0284,6.77353 -0.0631,6.75985 -0.0347,-0.0137 -0.97227,-0.42034 -2.08344,-0.90369 z"
+ style="fill:#ffffff;fill-opacity:1;stroke:none" />
+ <path
+ inkscape:connector-curvature="0"
+ id="path3341-8"
+ d="m 280.47984,688.84958 c -1.04172,-0.45156 -3.45662,-1.34383 -5.36644,-1.98282 l -3.4724,-1.1618 0,-6.79759 c 0,-3.73867 0.0478,-6.79759 0.10612,-6.79759 0.0584,0 1.39366,0.44024 2.96732,0.9783 4.03528,1.37974 7.55667,2.82973 7.68512,3.16446 0.0601,0.15651 0.0788,3.2396 0.0418,6.85131 l -0.0675,6.56675 -1.89403,-0.82102 z"
+ style="fill:#ffffff;fill-opacity:1;stroke:none" />
+ <path
+ inkscape:connector-curvature="0"
+ id="path3343-3"
+ d="m 266.46397,669.56009 c -1.80565,-0.39391 -4.27736,-0.84857 -5.4927,-1.01033 l -2.20971,-0.29413 0,-6.89588 0,-6.89588 0.94702,0.13766 c 1.50604,0.21892 8.68097,1.60274 9.72271,1.8752 l 0.94702,0.24769 0,6.8088 c 0,5.2962 -0.0701,6.8015 -0.31567,6.77594 -0.17362,-0.0181 -1.79302,-0.35515 -3.59867,-0.74907 z"
+ style="fill:#ffffff;fill-opacity:1;stroke:none" />
+ <path
+ inkscape:connector-curvature="0"
+ id="path3345-7"
+ d="m 266.84278,639.63727 c -1.45841,-0.32387 -3.8733,-0.77983 -5.36644,-1.01326 l -2.71478,-0.42441 0,-6.81826 0,-6.81827 1.45209,0.16441 c 1.62182,0.18362 5.86083,0.97653 8.46003,1.58246 l 1.70463,0.39738 0,6.79133 c 0,6.31173 -0.0312,6.78907 -0.44194,6.75939 -0.24307,-0.0176 -1.63518,-0.29691 -3.09359,-0.62077 z"
+ style="fill:#ffffff;fill-opacity:1;stroke:none" />
+ <rect
+ y="623.36218"
+ x="254"
+ height="129"
+ width="3"
+ id="rect3347-1"
+ style="fill:#ffffff;fill-opacity:1;stroke:none" />
+ </g>
+ </g>
+</svg>
diff --git a/images/MUTCD_RS-113.svg b/images/MUTCD_RS-113.svg new file mode 100755 index 0000000..dac8ff4 --- /dev/null +++ b/images/MUTCD_RS-113.svg @@ -0,0 +1,210 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<svg
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:cc="http://creativecommons.org/ns#"
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:svg="http://www.w3.org/2000/svg"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+ width="90.597931"
+ height="90.597931"
+ viewBox="0 0 255.68748 255.68749"
+ version="1.1"
+ id="svg2"
+ inkscape:version="0.48.2 r9819"
+ sodipodi:docname="MUTCD RS-098.svg">
+ <metadata
+ id="metadata62">
+ <rdf:RDF>
+ <cc:Work
+ rdf:about="">
+ <dc:format>image/svg+xml</dc:format>
+ <dc:type
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+ <dc:title></dc:title>
+ </cc:Work>
+ </rdf:RDF>
+ </metadata>
+ <defs
+ id="defs60">
+ <clipPath
+ clipPathUnits="userSpaceOnUse"
+ id="clipPath3564">
+ <path
+ inkscape:connector-curvature="0"
+ d="m 63,43 512.622,0 0,313.129 L 63,356.129 63,43 z"
+ id="path3566" />
+ </clipPath>
+ </defs>
+ <sodipodi:namedview
+ pagecolor="#ffffff"
+ bordercolor="#666666"
+ borderopacity="1"
+ objecttolerance="10"
+ gridtolerance="10"
+ guidetolerance="10"
+ inkscape:pageopacity="0"
+ inkscape:pageshadow="2"
+ inkscape:window-width="1280"
+ inkscape:window-height="1004"
+ id="namedview58"
+ showgrid="false"
+ fit-margin-top="0"
+ fit-margin-left="0"
+ fit-margin-right="0"
+ fit-margin-bottom="0"
+ inkscape:zoom="4.8826954"
+ inkscape:cx="83.159137"
+ inkscape:cy="40.717393"
+ inkscape:window-x="-8"
+ inkscape:window-y="-8"
+ inkscape:window-maximized="1"
+ inkscape:current-layer="svg2"
+ showguides="true"
+ inkscape:guide-bbox="true" />
+ <polygon
+ points="315,545 235,375 315,205 395,375 "
+ id="polygon10"
+ style="fill:none;stroke:#ffffff;stroke-width:40"
+ transform="translate(17744.427,14390.473)" />
+ <!-- draw the bicycle -->
+ <!-- RIGHT -->
+ <!-- LANE -->
+ <!-- ONLY -->
+ <path
+ inkscape:connector-curvature="0"
+ d="m 22.004643,254.8459 211.663127,0 c 5.57392,0 11.02432,-2.2577 14.97189,-6.2088 3.94053,-3.937 6.1948,-9.3839 6.1948,-14.9578 l 0,-211.6632 c 0,-5.5738 -2.25426,-11.0207 -6.1948,-14.9718 -3.94757,-3.937 -9.39797,-6.1948 -14.97189,-6.1948 l -211.663127,0 c -5.57036,0 -11.02077,2.2578 -14.9577696,6.1948 -3.94759,3.9511 -6.20888999,9.398 -6.20888999,14.9718 l 0,211.6632 c 0,7.2566 3.85232999,14.1111 9.96243959,18.0058 3.48545,2.2154 7.16845,2.7375 11.20422,3.1608"
+ style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:1.69333339;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
+ id="path3026" />
+ <path
+ inkscape:connector-curvature="0"
+ d="m 22.004643,249.5543 c -3.15383,0 -5.80672,-0.7091 -8.36083,-2.3284 -4.6249196,-2.9421 -7.5141696,-8.1385 -7.5141696,-13.5466 l 0,-211.6632 c 0,-4.1733 1.69334,-8.2691 4.6566696,-11.2324 2.94217,-2.9422 7.0485,-4.6426 11.21833,-4.6426 l 211.663127,0 c 4.18397,0 8.29028,1.6898 11.23245,4.6426 2.95277,2.9422 4.64255,7.0485 4.64255,11.2324 l 0,211.6632 c 0,4.1698 -1.70035,8.2761 -4.64255,11.2183 -2.96333,2.9633 -7.05555,4.6567 -11.23245,4.6567 l -211.663127,0 z"
+ style="fill:#713907;fill-opacity:1;fill-rule:evenodd;stroke:none"
+ id="path3050" />
+ <path
+ d="m 144.67416,19.315799 -15.49048,15.412861 15.49048,15.522222 -13.14098,0 -15.4693,-15.522222 15.4693,-15.412861 13.14098,0 z"
+ style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none"
+ id="path8462"
+ inkscape:connector-curvature="0" />
+ <path
+ d="m 111.09677,205.72357 15.49047,15.41287 -15.49047,15.51516 13.13392,0 15.47635,-15.51516 -15.47635,-15.41287 -13.13392,0 z"
+ style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none"
+ id="path8466"
+ inkscape:connector-curvature="0" />
+ <path
+ d="m 96.220132,157.4283 0.01411,9.58497 c 0,5.25639 -4.258028,9.49325 -9.500306,9.49325 -5.242278,0 -9.482666,-4.23686 -9.482666,-9.49325 l 0.01411,-9.58497 -9.637889,0 0,-31.07972 0,-0.0141 c 0,-6.78039 4.561417,-12.4707 10.784416,-14.18873 L 89.538521,85.736798 c 1.591028,-3.894667 5.415139,-6.628694 9.888361,-6.628694 l 56.885408,0 c 4.49087,0 8.30792,2.734027 9.91306,6.628694 l 11.09486,26.408942 c 6.24064,1.71803 10.80911,7.40834 10.80911,14.18873 l 0,0.0141 0,31.07972 -9.65905,0 0.0141,9.58497 c 0,5.25639 -4.24392,9.49325 -9.47561,9.49325 -5.25639,0 -9.4862,-4.23686 -9.4862,-9.49325 l 0,-9.58497 -63.302438,0 z m -9.719027,-19.54036 c 4.402666,0 7.948083,-3.56306 7.948083,-7.94456 0,-4.40266 -3.545417,-7.95161 -7.948083,-7.95161 -4.399139,0 -7.9375,3.54895 -7.9375,7.95161 0,4.3815 3.538361,7.94456 7.9375,7.94456 m 90.060635,-7.94456 c 0,-4.40266 -3.56306,-7.95161 -7.95161,-7.95161 -4.39561,0 -7.95161,3.54895 -7.95161,7.95161 0,4.3815 3.556,7.94456 7.95161,7.94456 4.38855,0 7.95161,-3.56306 7.95161,-7.94456 m -8.77006,-18.31975 -9.51794,-22.821193 c -0.39864,-1.157111 -1.52047,-1.989667 -2.8187,-1.989667 l -55.15327,0 c -1.308804,0 -2.42711,0.832556 -2.825749,1.989667 l -9.535583,22.821193 79.851242,0 z"
+ style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none"
+ id="path8470"
+ inkscape:connector-curvature="0" />
+ <path
+ d="m 213.40938,35.402465 c 0,3.77825 3.04094,6.7945 6.85094,6.7945 3.71828,0 6.80508,-3.01625 6.80508,-6.7945 0,-3.760611 -3.0868,-6.783916 -6.80508,-6.783916 -3.81,0 -6.85094,3.023305 -6.85094,6.783916"
+ style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none"
+ id="path8474"
+ inkscape:connector-curvature="0" />
+ <path
+ d="m 42.368605,220.21921 c 0,-3.76766 -3.026833,-6.78744 -6.850944,-6.78744 -3.711222,0 -6.790972,3.01978 -6.790972,6.78744 0,3.76767 3.07975,6.7945 6.790972,6.7945 3.824111,0 6.850944,-3.02683 6.850944,-6.7945"
+ style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none"
+ id="path8478"
+ inkscape:connector-curvature="0" />
+ <path
+ d="m 66.304577,227.72985 c 3.781778,0 6.7945,-3.03741 6.7945,-6.85447 0,-3.72181 -3.012722,-6.7945 -6.7945,-6.7945 -3.753555,0 -6.7945,3.07269 -6.7945,6.7945 0,3.81706 3.040945,6.85447 6.7945,6.85447"
+ style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none"
+ id="path8482"
+ inkscape:connector-curvature="0" />
+ <path
+ d="m 97.116541,227.85332 c 3.750029,0 6.787449,-3.03036 6.787449,-6.81566 0,-3.73945 -3.03742,-6.79803 -6.787449,-6.79803 -3.767667,0 -6.868583,3.05858 -6.868583,6.79803 0,3.7853 3.100916,6.81566 6.868583,6.81566"
+ style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none"
+ id="path8486"
+ inkscape:connector-curvature="0" />
+ <path
+ d="m 158.68649,227.85332 c 3.75708,0 6.7945,-3.03036 6.7945,-6.81566 0,-3.73945 -3.03742,-6.79803 -6.7945,-6.79803 -3.78178,0 -6.83331,3.05858 -6.83331,6.79803 0,3.7853 3.05153,6.81566 6.83331,6.81566"
+ style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none"
+ id="path8490"
+ inkscape:connector-curvature="0" />
+ <path
+ d="m 189.42402,227.85332 c 3.75708,0 6.83683,-3.03036 6.83683,-6.81566 0,-3.73945 -3.07975,-6.79803 -6.83683,-6.79803 -3.82412,0 -6.78392,3.05858 -6.78392,6.79803 0,3.7853 2.9598,6.81566 6.78392,6.81566"
+ style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none"
+ id="path8494"
+ inkscape:connector-curvature="0" />
+ <path
+ d="m 220.19717,227.77219 c 3.83117,0 6.82273,-3.04095 6.82273,-6.82978 0,-3.72886 -2.99156,-6.7945 -6.82273,-6.7945 -3.7465,0 -6.78744,3.06564 -6.78744,6.7945 0,3.78883 3.04094,6.82978 6.78744,6.82978"
+ style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none"
+ id="path8498"
+ inkscape:connector-curvature="0" />
+ <path
+ d="m 42.368605,189.31588 c 0,-3.77472 -3.026833,-6.79803 -6.850944,-6.79803 -3.711222,0 -6.790972,3.02331 -6.790972,6.79803 0,3.75708 3.07975,6.7945 6.790972,6.7945 3.824111,0 6.850944,-3.03742 6.850944,-6.7945"
+ style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none"
+ id="path8502"
+ inkscape:connector-curvature="0" />
+ <path
+ d="m 42.368605,158.34552 c 0,-3.75003 -3.026833,-6.78744 -6.80861,-6.78744 -3.753556,0 -6.808612,3.03741 -6.808612,6.78744 0,3.76767 3.055056,6.85447 6.808612,6.85447 3.781777,0 6.80861,-3.0868 6.80861,-6.85447"
+ style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none"
+ id="path8506"
+ inkscape:connector-curvature="0" />
+ <path
+ d="m 42.368605,127.39633 c 0,-3.71475 -3.026833,-6.7945 -6.80861,-6.7945 -3.753556,0 -6.808612,3.07975 -6.808612,6.7945 0,3.80294 3.055056,6.84036 6.808612,6.84036 3.781777,0 6.80861,-3.03742 6.80861,-6.84036"
+ style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none"
+ id="path8510"
+ inkscape:connector-curvature="0" />
+ <path
+ d="m 42.368605,96.443603 c 0,-3.753555 -3.026833,-6.787444 -6.80861,-6.787444 -3.753556,0 -6.808612,3.033889 -6.808612,6.787444 0,3.781777 3.055056,6.836837 6.808612,6.836837 3.781777,0 6.80861,-3.05506 6.80861,-6.836837"
+ style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none"
+ id="path8514"
+ inkscape:connector-curvature="0" />
+ <path
+ d="m 42.368605,65.526159 c 0,-3.753555 -3.026833,-6.833305 -6.80861,-6.833305 -3.753556,0 -6.808612,3.07975 -6.808612,6.833305 0,3.721806 3.055056,6.808611 6.808612,6.808611 3.781777,0 6.80861,-3.086805 6.80861,-6.808611"
+ style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none"
+ id="path8518"
+ inkscape:connector-curvature="0" />
+ <path
+ d="m 42.368605,34.584021 c 0,-3.824111 -3.026833,-6.815666 -6.822722,-6.815666 -3.718277,0 -6.7945,2.991555 -6.7945,6.815666 0,3.753555 3.076223,6.7945 6.7945,6.7945 3.795889,0 6.822722,-3.040945 6.822722,-6.7945"
+ style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none"
+ id="path8522"
+ inkscape:connector-curvature="0" />
+ <path
+ d="m 189.41696,27.768355 c -3.76767,0 -6.80508,3.033888 -6.80508,6.815666 0,3.7465 3.03741,6.808611 6.80508,6.808611 3.75708,0 6.85094,-3.062111 6.85094,-6.808611 0,-3.781778 -3.09386,-6.815666 -6.85094,-6.815666"
+ style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none"
+ id="path8526"
+ inkscape:connector-curvature="0" />
+ <path
+ d="m 158.64768,27.768355 c -3.7218,0 -6.80861,3.033888 -6.80861,6.815666 0,3.7465 3.08681,6.808611 6.80861,6.808611 3.79589,0 6.83331,-3.062111 6.83331,-6.808611 0,-3.781778 -3.03742,-6.815666 -6.83331,-6.815666"
+ style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none"
+ id="path8530"
+ inkscape:connector-curvature="0" />
+ <path
+ d="m 97.116541,27.768355 c -3.753556,0 -6.833306,3.033888 -6.833306,6.815666 0,3.7465 3.07975,6.808611 6.833306,6.808611 3.824109,0 6.801559,-3.062111 6.801559,-6.808611 0,-3.781778 -2.97745,-6.815666 -6.801559,-6.815666"
+ style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none"
+ id="path8534"
+ inkscape:connector-curvature="0" />
+ <path
+ d="m 66.339855,27.768355 c -3.750028,0 -6.836833,3.033888 -6.836833,6.815666 0,3.7465 3.086805,6.808611 6.836833,6.808611 3.831167,0 6.805083,-3.062111 6.805083,-6.808611 0,-3.781778 -2.973916,-6.815666 -6.805083,-6.815666"
+ style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none"
+ id="path8538"
+ inkscape:connector-curvature="0" />
+ <path
+ d="m 213.40938,66.298743 c 0,3.771194 3.04094,6.7945 6.85094,6.7945 3.71828,0 6.79097,-3.023306 6.79097,-6.7945 0,-3.760611 -3.07269,-6.801556 -6.79097,-6.801556 -3.81,0 -6.85094,3.040945 -6.85094,6.801556"
+ style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none"
+ id="path8542"
+ inkscape:connector-curvature="0" />
+ <path
+ d="m 213.40938,97.237353 c 0,3.718277 3.02683,6.787447 6.80861,6.787447 3.73239,0 6.80155,-3.06917 6.80155,-6.787447 0,-3.81 -3.06916,-6.836833 -6.80155,-6.836833 -3.78178,0 -6.80861,3.026833 -6.80861,6.836833"
+ style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none"
+ id="path8546"
+ inkscape:connector-curvature="0" />
+ <path
+ d="m 213.40938,128.12658 c 0,3.76061 3.02683,6.8333 6.80861,6.8333 3.73239,0 6.80155,-3.07269 6.80155,-6.8333 0,-3.71475 -3.06916,-6.7945 -6.80155,-6.7945 -3.78178,0 -6.80861,3.07975 -6.80861,6.7945"
+ style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none"
+ id="path8550"
+ inkscape:connector-curvature="0" />
+ <path
+ d="m 213.40938,159.11105 c 0,3.7465 3.02683,6.78744 6.80861,6.78744 3.73239,0 6.80155,-3.04094 6.80155,-6.78744 0,-3.78531 -3.06916,-6.84389 -6.80155,-6.84389 -3.78178,0 -6.80861,3.05858 -6.80861,6.84389"
+ style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none"
+ id="path8554"
+ inkscape:connector-curvature="0" />
+ <path
+ d="m 213.40938,190.00733 c 0,3.76766 3.02683,6.8333 6.80861,6.8333 3.73239,0 6.80155,-3.06564 6.80155,-6.8333 0,-3.71475 -3.06916,-6.80156 -6.80155,-6.80156 -3.78178,0 -6.80861,3.08681 -6.80861,6.80156"
+ style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none"
+ id="path8558"
+ inkscape:connector-curvature="0" />
+</svg>
diff --git a/images/SW_Patern_3.bmp b/images/SW_Patern_3.bmp Binary files differnew file mode 100755 index 0000000..822900e --- /dev/null +++ b/images/SW_Patern_3.bmp diff --git a/images/posimark_r.png b/images/posimark_r.png Binary files differnew file mode 100755 index 0000000..826f299 --- /dev/null +++ b/images/posimark_r.png diff --git a/images/position02.svg b/images/position02.svg new file mode 100755 index 0000000..b30be8d --- /dev/null +++ b/images/position02.svg @@ -0,0 +1,33 @@ +<?xml version="1.0" encoding="utf-8"?>
+<!-- Generator: Adobe Illustrator 23.0.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
+<svg version="1.1" id="レイヤー_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px"
+ y="0px" viewBox="0 0 282 282" style="enable-background:new 0 0 282 282;" xml:space="preserve">
+<style type="text/css">
+ .st0{fill:url(#SVGID_1_);}
+ .st1{fill:url(#SVGID_2_);}
+</style>
+<g>
+
+ <linearGradient id="SVGID_1_" gradientUnits="userSpaceOnUse" x1="-75.9173" y1="141" x2="238.0237" y2="141" gradientTransform="matrix(1 0 0 -1 0 282)">
+ <stop offset="0" style="stop-color:#540000"/>
+ <stop offset="0.3637" style="stop-color:#912020"/>
+ <stop offset="0.4563" style="stop-color:#992323"/>
+ <stop offset="0.5223" style="stop-color:#A32929"/>
+ <stop offset="0.646" style="stop-color:#E54A4A"/>
+ <stop offset="0.6904" style="stop-color:#FF8585"/>
+ <stop offset="0.7301" style="stop-color:#FC5656"/>
+ <stop offset="0.8325" style="stop-color:#AD2D2D"/>
+ <stop offset="0.9853" style="stop-color:#8E2020"/>
+ </linearGradient>
+ <polygon class="st0" points="141,6 22,276 141,202 260,276 "/>
+
+ <linearGradient id="SVGID_2_" gradientUnits="userSpaceOnUse" x1="-75.9173" y1="43" x2="238.0237" y2="43" gradientTransform="matrix(1 0 0 -1 0 282)">
+ <stop offset="0.1824" style="stop-color:#BF3636"/>
+ <stop offset="0.3972" style="stop-color:#E04848"/>
+ <stop offset="0.5743" style="stop-color:#F45151"/>
+ <stop offset="0.6904" style="stop-color:#FF5757"/>
+ <stop offset="1" style="stop-color:#8E2020"/>
+ </linearGradient>
+ <path class="st1" d="M22,276c2.8-1.8,119-74,119-74l119,74l-119-24.2L22,276z"/>
+</g>
+</svg>
diff --git a/mominavi.cpp b/mominavi.cpp new file mode 100644 index 0000000..1679182 --- /dev/null +++ b/mominavi.cpp @@ -0,0 +1,29 @@ +// SPDX-License-Identifier: GPL-3.0+ +// Copyright (C) 2021 AISIN CORPORATION + +#include <QGuiApplication> +#include <QQmlApplicationEngine> +#include <QQmlContext> + + +int main(int argc, char *argv[]) +{ + QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling); + + QGuiApplication app(argc, argv); + QQmlApplicationEngine engine; + + const QUrl url(QStringLiteral("qrc:/mominavi.qml")); + QObject::connect(&engine, &QQmlApplicationEngine::objectCreated, + &app, [url](QObject *obj, const QUrl &objUrl) { + if (!obj && url == objUrl) + QCoreApplication::exit(-1); + }, Qt::QueuedConnection); + engine.load(url); + + QObject *rootObject = engine.rootObjects().constFirst(); + QString StrEnv = qgetenv("MOMIMAP_MAPBOX_ACCESS_TOKEN"); + rootObject->setProperty("mapbox_access_token", StrEnv); + + return app.exec(); +} diff --git a/mominavi.pro b/mominavi.pro new file mode 100644 index 0000000..3dd5fbc --- /dev/null +++ b/mominavi.pro @@ -0,0 +1,36 @@ +# SPDX-License-Identifier: GPL-3.0+ +# Copyright (C) 2021 AISIN CORPORATION + +QT += quick positioning qml + +CONFIG += c++11 + +# The following define makes your compiler emit warnings if you use +# any Qt feature that has been marked deprecated (the exact warnings +# depend on your compiler). Refer to the documentation for the +# deprecated API to know how to port your code away from it. +DEFINES += QT_DEPRECATED_WARNINGS + +# You can also make your code fail to compile if it uses deprecated APIs. +# In order to do so, uncomment the following line. +# You can also select to disable deprecated APIs only up to a certain version of Qt. +#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 + +SOURCES += \ + mominavi.cpp + +RESOURCES += \ + mominavi.qrc + +# Additional import path used to resolve QML modules in Qt Creator's code model +QML_IMPORT_PATH = + +# Additional import path used to resolve QML modules just for Qt Quick Designer +QML_DESIGNER_IMPORT_PATH = + +# Default rules for deployment. +qnx: target.path = /tmp/$${TARGET}/bin +else: unix:!android: target.path = /usr/bin +!isEmpty(target.path): INSTALLS += target + +HEADERS += diff --git a/mominavi.qml b/mominavi.qml new file mode 100644 index 0000000..c9bd6e9 --- /dev/null +++ b/mominavi.qml @@ -0,0 +1,743 @@ +/**************************************************************************** +** +** Copyright (C) 2016 The Qt Company Ltd. +** Copyright (C) 2021 AISIN CORPORATION +** Contact: https://www.qt.io/licensing/ +** +** SPDX-License-Identifier: BSD-3-Clause-Clear +** +** This file is part of the examples of the Qt Toolkit. +** +** $QT_BEGIN_LICENSE:BSD$ +** Commercial License Usage +** Licensees holding valid commercial Qt licenses may use this file in +** accordance with the commercial license agreement provided with the +** Software or, alternatively, in accordance with the terms contained in +** a written agreement between you and The Qt Company. For licensing terms +** and conditions see https://www.qt.io/terms-conditions. For further +** information use the contact form at https://www.qt.io/contact-us. +** +** BSD License Usage +** Alternatively, you may use this file under the terms of the BSD license +** as follows: +** +** "Redistribution and use in source and binary forms, with or without +** modification, are permitted provided that the following conditions are +** met: +** * Redistributions of source code must retain the above copyright +** notice, this list of conditions and the following disclaimer. +** * Redistributions in binary form must reproduce the above copyright +** notice, this list of conditions and the following disclaimer in +** the documentation and/or other materials provided with the +** distribution. +** * Neither the name of The Qt Company Ltd nor the names of its +** contributors may be used to endorse or promote products derived +** from this software without specific prior written permission. +** +** +** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." +** +** $QT_END_LICENSE$ +** +****************************************************************************/ +import QtQuick 2.12 +import QtQuick.Layouts 1.12 +import QtQuick.Controls 2.12 +import QtLocation 5.9 +import QtPositioning 5.6 + + +ApplicationWindow { + id: root + visible: true + width: 1920 + height: 1080 + title: qsTr("mominavi") + + property real car_position_lat: 36.129 + property real car_position_lon: -115.1533 + property real car_direction: 0 //North + property real car_driving_speed: 60 // set Km/h + property bool st_heading_up: false + property real default_zoom_level : 18 + property real default_car_direction : 180 + property real car_accumulated_distance : 0 + property real positionTimer_interval : 100 + property real car_moving_distance : (car_driving_speed / 3.6) / (1000/positionTimer_interval) // Metric unit + property string mapbox_access_token : "" + property string mapbox_style_urls : "mapbox://styles/wata2ki/ckrumy7l44w3e17qlohjtv1p8" + property string mapbox_cache_dir : "/var/cache/momimap" + + Map{ + id: map + property int pathcounter : 0 + property int segmentcounter : 0 + property int waypoint_count: -1 + property int lastX : -1 + property int lastY : -1 + property int pressX : -1 + property int pressY : -1 + property int jitterThreshold : 30 + property variant currentpostion : QtPositioning.coordinate(car_position_lat, car_position_lon) + property int last_segmentcounter : -1 + property string latestRouteText : "" + + signal qmlSignalRouteInfo(double srt_lat,double srt_lon,double end_lat,double end_lon); + signal qmlSignalPosInfo(double lat,double lon,double drc,double dst); + signal qmlSignalStopDemo(); + signal qmlSignalArrvied(); + signal qmlCheckDirection(double cur_dir,double next_dir,double is_rot); + + width: parent.width + height: parent.height + plugin: Plugin { + name: "mapboxgl" + PluginParameter { name: "mapboxgl.access_token"; value: mapbox_access_token } + PluginParameter { name: "mapboxgl.mapping.additional_style_urls"; value: mapbox_style_urls } + PluginParameter { name: "mapboxgl.mapping.cache.directory"; value: mapbox_cache_dir } + } + center: QtPositioning.coordinate(car_position_lat, car_position_lon) + zoomLevel: default_zoom_level + bearing: 0 + objectName: "map" + + GeocodeModel { + id: geocodeModel + plugin: map.plugin + onStatusChanged: { + if ((status == GeocodeModel.Ready) || (status == GeocodeModel.Error)) + map.geocodeFinished() + } + onLocationsChanged: + { + if (count == 1) { + map.center.latitude = get(0).coordinate.latitude + map.center.longitude = get(0).coordinate.longitude + } + } + } + MapItemView { + model: geocodeModel + delegate: pointDelegate + } + Component { + id: pointDelegate + + MapCircle { + id: point + radius: 1000 + color: "#46a2da" + border.color: "#190a33" + border.width: 2 + smooth: true + opacity: 0.25 + center: locationData.coordinate + } + } + + function geocode(fromAddress) + { + // send the geocode request + geocodeModel.query = fromAddress + geocodeModel.update() + } + + MapQuickItem { + id: poi + sourceItem: Rectangle { width: 14; height: 14; color: "#e41e25"; border.width: 2; border.color: "white"; smooth: true; radius: 7 } + coordinate { + latitude: 36.136261 + longitude: -115.151254 + } + opacity: 1.0 + anchorPoint: Qt.point(sourceItem.width/2, sourceItem.height/2) + } + MapQuickItem { + sourceItem: Text{ + text: "Westgate" + color:"#242424" + font.bold: true + styleColor: "#ECECEC" + style: Text.Outline + } + coordinate: poi.coordinate + z:11 + anchorPoint: Qt.point(-poi.sourceItem.width * 0.5, poi.sourceItem.height * 1.5) + } + MapQuickItem { + id: car_position_mapitem + property int isRotating: 0 + sourceItem: Image { + id: car_position_mapitem_image + width: 48 + height: 48 + source: "images/position02.svg" + + transform: Rotation { + id: car_position_mapitem_image_rotate + origin.x: car_position_mapitem_image.width/2 + origin.y: car_position_mapitem_image.height/2 + angle: car_direction + } + } + anchorPoint: Qt.point(car_position_mapitem_image.width/2, car_position_mapitem_image.height/2) + coordinate: map.currentpostion + z:12 + states: [ + State { + name: "HeadingUp" + PropertyChanges { target: car_position_mapitem_image_rotate; angle: 0 } + }, + State { + name: "NorthUp" + PropertyChanges { target: car_position_mapitem_image_rotate; angle: root.car_direction } + } + ] + transitions: Transition { + RotationAnimation { + properties: "angle"; + easing.type: Easing.InOutQuad; + direction: RotationAnimation.Shortest; + duration: 200 + } + } + } + + MapQuickItem { + id: icon_start_point + anchorPoint.x: icon_start_point_image.width/2 + anchorPoint.y: icon_start_point_image.height/2 + z:11 + sourceItem: Image { + id: icon_start_point_image + width: 25 + height: 25 + source: "images/08_START.png" + } + } + + MapQuickItem { + id: icon_end_point + anchorPoint.x: icon_end_point_image.width/2 + anchorPoint.y: icon_end_point_image.height/2 + z:11 + sourceItem: Image { + id: icon_end_point_image + width: 35 + height: 35 + source: "images/10_GOAL.png" + } + } + + MapQuickItem { + id: icon_segment_point + anchorPoint.x: icon_segment_point_image.width/2 + anchorPoint.y: icon_segment_point_image.height/2 + z:11 + sourceItem: Image { + id: icon_segment_point_image + width: 25 + height: 25 + source: "images/09_JUNCTION.png" + } + } + + RouteModel { + id: routeModel + objectName: "routeModel" + plugin : Plugin { + name: "mapbox" + PluginParameter { name: "mapbox.access_token"; + value: mapbox_access_token + } + } + query: RouteQuery { + id: routeQuery + } + onStatusChanged: { + if (status == RouteModel.Ready) { + switch (count) { + case 0: + // technically not an error + // map.routeError() + break + case 1: + map.pathcounter = 0 + map.segmentcounter = 0 + break + } + } else if (status == RouteModel.Error) { + // map.routeError() + } + } + } + + Component { + id: routeDelegate + + MapRoute { + id: route + route: routeData + line.color: "#00DEE7" + line.width: 10 + z:5 + smooth: true + opacity: 0.8 + } + } + + MapItemView { + model: routeModel + delegate: routeDelegate + } + + Component { + id: mapcomponent + MapQuickItem { + id: icon_destination_point + anchorPoint.x: icon_destination_point_image.width/4 + anchorPoint.y: icon_destination_point_image.height + z:20 + coordinate: position + + sourceItem: Image { + id: icon_destination_point_image + width: 32 + height: 32 + source: "images/200px-Black_close_x.svg.png" + } + } + } + + function addDestination(coord){ + if( waypoint_count < 0 ){ + initDestination() + } + + if(waypoint_count == 0) { + // set icon_start_point + icon_start_point.coordinate = currentpostion + map.addMapItem(icon_start_point) + } + + if(waypoint_count < 9){ + routeQuery.addWaypoint(coord) + waypoint_count += 1 + + btn_guidance.sts_guide = 1 + btn_guidance.state = "Routing" + + routeModel.update() + map.qmlSignalRouteInfo(car_position_lat, car_position_lon,coord.latitude,coord.longitude) + + // update icon_end_point + icon_end_point.coordinate = coord + map.addMapItem(icon_end_point) + } + } + + function initDestination(startFromCurrentPosition){ + if (startFromCurrentPosition === undefined) startFromCurrentPosition = false + routeModel.reset(); + //console.log("initWaypoint") + + // reset currentpostion + map.currentpostion = QtPositioning.coordinate(car_position_lat, car_position_lon) + car_accumulated_distance = 0 + map.qmlSignalPosInfo(car_position_lat, car_position_lon,car_direction,car_accumulated_distance) + + routeQuery.clearWaypoints(); + routeQuery.addWaypoint(map.currentpostion) + routeQuery.travelModes = RouteQuery.CarTravel + routeQuery.routeOptimizations = RouteQuery.FastestRoute + for (var i=0; i<9; i++) { + routeQuery.setFeatureWeight(i, 0) + } + waypoint_count = 0 + pathcounter = 0 + segmentcounter = 0 + routeModel.update(); + + // remove MapItem + map.removeMapItem(icon_start_point) + map.removeMapItem(icon_end_point) + map.removeMapItem(icon_segment_point) + + // update car_position_mapitem angle + root.car_direction = root.default_car_direction + + } + + function calculateMarkerRoute() + { + var startCoordinate = QtPositioning.coordinate(car_position_lat, car_position_lon) + + //console.log("calculateMarkerRoute") + routeQuery.clearWaypoints(); + routeQuery.addWaypoint(startCoordinate) + routeQuery.addWaypoint(mouseArea.lastCoordinate) + routeQuery.travelModes = RouteQuery.CarTravel + routeQuery.routeOptimizations = RouteQuery.FastestRoute + for (var i=0; i<9; i++) { + routeQuery.setFeatureWeight(i, 0) + } + routeModel.update(); + } + + // Calculate direction from latitude and longitude between two points + function calculateDirection(lat1, lon1, lat2, lon2) { + var curlat = lat1 * Math.PI / 180; + var curlon = lon1 * Math.PI / 180; + var taglat = lat2 * Math.PI / 180; + var taglon = lon2 * Math.PI / 180; + + var Y = Math.sin(taglon - curlon); + var X = Math.cos(curlat) * Math.tan(taglat) - Math.sin(curlat) * Math.cos(Y); + var direction = 180 * Math.atan2(Y,X) / Math.PI; + if (direction < 0) { + direction = direction + 360; + } + return direction; + } + + // Calculate distance from latitude and longitude between two points + function calculateDistance(lat1, lon1, lat2, lon2) + { + var radLat1 = lat1 * Math.PI / 180; + var radLon1 = lon1 * Math.PI / 180; + var radLat2 = lat2 * Math.PI / 180; + var radLon2 = lon2 * Math.PI / 180; + + var r = 6378137.0; + + var averageLat = (radLat1 - radLat2) / 2; + var averageLon = (radLon1 - radLon2) / 2; + var result = r * 2 * Math.asin(Math.sqrt(Math.pow(Math.sin(averageLat), 2) + Math.cos(radLat1) * Math.cos(radLat2) * Math.pow(Math.sin(averageLon), 2))); + return Math.round(result); + } + + // Setting the next car position from the direction and demonstration mileage + function setNextCoordinate(curlat,curlon,direction,distance) + { + var radian = direction * Math.PI / 180 + var lat_per_meter = 111319.49079327358; + var lat_distance = distance * Math.cos(radian); + var addlat = lat_distance / lat_per_meter + var lon_distance = distance * Math.sin(radian) + var lon_per_meter = (Math.cos( (curlat+addlat) / 180 * Math.PI) * 2 * Math.PI * 6378137) / 360; + var addlon = lon_distance / lon_per_meter + map.currentpostion = QtPositioning.coordinate(curlat+addlat, curlon+addlon); + } + + MouseArea { + id: mouseArea + property variant lastCoordinate + anchors.fill: parent + acceptedButtons: Qt.LeftButton | Qt.RightButton + + onPressed : { + map.lastX = mouse.x + map.lastY = mouse.y + map.pressX = mouse.x + map.pressY = mouse.y + lastCoordinate = map.toCoordinate(Qt.point(mouse.x, mouse.y)) + } + + onPositionChanged: { + if (mouse.button === Qt.LeftButton) { + map.lastX = mouse.x + map.lastY = mouse.y + } + } + + onPressAndHold:{ + if((btn_guidance.state !== "onGuide") && (btn_guidance.state !== "Routing")) + { + if (Math.abs(map.pressX - mouse.x ) < map.jitterThreshold + && Math.abs(map.pressY - mouse.y ) < map.jitterThreshold) { + map.addDestination(lastCoordinate) + } + } + + } + } + gesture.onFlickStarted: { + btn_present_position.state = "Optional" + } + gesture.onPanStarted: { + btn_present_position.state = "Optional" + } + function updatePositon() + { + if(pathcounter <= routeModel.get(0).path.length - 1){ + + // calculate distance + var next_distance = calculateDistance(map.currentpostion.latitude, + map.currentpostion.longitude, + routeModel.get(0).path[pathcounter].latitude, + routeModel.get(0).path[pathcounter].longitude); + + // calculate direction + var next_direction = calculateDirection(map.currentpostion.latitude, + map.currentpostion.longitude, + routeModel.get(0).path[pathcounter].latitude, + routeModel.get(0).path[pathcounter].longitude); + + // calculate next cross distance + var next_cross_distance = calculateDistance(map.currentpostion.latitude, + map.currentpostion.longitude, + routeModel.get(0).segments[segmentcounter].path[0].latitude, + routeModel.get(0).segments[segmentcounter].path[0].longitude); + + // map rotateAnimation cntrol + if(root.st_heading_up) { + var is_rotating = 0; + var cur_direction = Math.floor(map.bearing); + + // check is_rorating + if(cur_direction > Math.floor(next_direction)){ + is_rotating = Math.floor(cur_direction - next_direction); + }else{ + is_rotating = Math.floor(next_direction - cur_direction); + } + + if(is_rotating > 180){ + is_rotating = 360 - is_rotating; + } + + // rotation angle case + if(is_rotating > 180){ + // driving stop hard turn + root.car_moving_distance = 0; + rot_anim.duration = 1600; + rot_anim.easing.type = Easing.OutQuint; + } else if(is_rotating > 90){ + // driving stop normal turn + root.car_moving_distance = 0; + rot_anim.duration = 800; + rot_anim.easing.type = Easing.OutQuart; + } else if(is_rotating > 60){ + // driving slow speed normal turn + root.car_moving_distance = ((car_driving_speed / 3.6) / (1000/positionTimer_interval)) * 0.3; + rot_anim.duration = 400; + rot_anim.easing.type = Easing.OutCubic; + } else if(is_rotating > 30){ + // driving half speed soft turn + root.car_moving_distance = ((car_driving_speed / 3.6) / (1000/positionTimer_interval)) * 0.5; + rot_anim.duration = 300; + rot_anim.easing.type = Easing.OutQuad; + } else { + // driving nomal speed soft turn + root.car_moving_distance = (car_driving_speed / 3.6) / (1000/positionTimer_interval); + rot_anim.duration = 200; + rot_anim.easing.type = Easing.OutQuad; + } + }else{ + // NorthUp + root.car_moving_distance = (car_driving_speed / 3.6) / (1000/positionTimer_interval); + rot_anim.duration = 200; + rot_anim.easing.type = Easing.OutQuad; + } + + root.car_direction = next_direction; + + // set next coordidnate + if(next_distance < (root.car_moving_distance * 1.5)) + { + map.currentpostion = routeModel.get(0).path[pathcounter] + car_accumulated_distance += next_distance + map.qmlSignalPosInfo(map.currentpostion.latitude, map.currentpostion.longitude,next_direction,car_accumulated_distance) + if(pathcounter < routeModel.get(0).path.length - 1){ + pathcounter++ + } + else + { + // Arrive at your destination + btn_guidance.sts_guide = 0 + map.qmlSignalArrvied() + } + }else{ + setNextCoordinate(map.currentpostion.latitude, map.currentpostion.longitude,next_direction,root.car_moving_distance) + if(pathcounter != 0){ + car_accumulated_distance += root.car_moving_distance + } + map.qmlSignalPosInfo(map.currentpostion.latitude, map.currentpostion.longitude,next_direction,car_accumulated_distance) + } + + if(btn_present_position.state === "Flowing") + { + // update map.center + map.center = map.currentpostion + } + rotateMapSmooth() + + // report a new instruction if current position matches with the head position of the segment + if(segmentcounter <= routeModel.get(0).segments.length - 1){ + if(next_cross_distance < 2){ + progress_next_cross.setProgress(0) + if(segmentcounter < routeModel.get(0).segments.length - 1){ + var routeElement = routeModel.get(0).segments[segmentcounter] + var routeText = routeElement.maneuver.instructionText + //console.debug(routeText) + routeView.setText(routeText) + segmentcounter++ + } + if(segmentcounter === routeModel.get(0).segments.length - 1){ + //img_destination_direction.state = "12" + map.removeMapItem(icon_segment_point) + }else{ + //img_destination_direction.state = routeModel.get(0).segments[segmentcounter].maneuver.direction + icon_segment_point.coordinate = routeModel.get(0).segments[segmentcounter].path[0] + map.addMapItem(icon_segment_point) + } + }else{ + if(next_cross_distance <= 330 && last_segmentcounter != segmentcounter) { + last_segmentcounter = segmentcounter + //nop + } + // update progress_next_cross + progress_next_cross.setProgress(next_cross_distance) + } + } + } + } + + function doGetRouteInfoSlot(){ + if(btn_guidance.sts_guide == 0){ // idle + map.qmlSignalPosInfo(car_position_lat, car_position_lon,car_direction,car_accumulated_distance); + }else if(btn_guidance.sts_guide == 1){ // Routing + map.qmlSignalPosInfo(car_position_lat, car_position_lon,car_direction,car_accumulated_distance); + map.qmlSignalRouteInfo(car_position_lat, car_position_lon,routeQuery.waypoints[1].latitude,routeQuery.waypoints[1].longitude); + }else if(btn_guidance.sts_guide == 2){ // onGuide + map.qmlSignalRouteInfo(car_position_lat, car_position_lon,routeQuery.waypoints[1].latitude,routeQuery.waypoints[1].longitude); + } + } + + function rotateMapSmooth(){ + if(root.st_heading_up){ + map.state = "none" + map.state = "smooth_rotate" + }else{ + map.state = "smooth_rotate_north" + } + } + + function stopMapRotation(){ + map.state = "none" + rot_anim.stop() + } + + function doPauseSimulationSlot(){ + btn_guidance.discardWaypoints(); + } + + function doGetAllRoutesSlot(){ + return routeModel.count; + } + + function doSetWaypointsSlot(latitude,longitue,startFromCurrentPosition){ + + if(btn_guidance.state !== "idle") + btn_guidance.discardWaypoints(startFromCurrentPosition); + + if(btn_present_position.state === "Optional"){ + map.center = map.currentpostion + btn_present_position.state = "Flowing" + } + + if((btn_guidance.state !== "onGuide") && (btn_guidance.state !== "Routing")) + map.addDestination(QtPositioning.coordinate(latitude,longitue)) + } + + states: [ + State { + name: "none" + }, + State { + name: "smooth_rotate" + PropertyChanges { target: map; bearing: root.car_direction } + }, + State { + name: "smooth_rotate_north" + PropertyChanges { target: map; bearing: 0 } + } + ] + + transitions: Transition { + NumberAnimation { properties: "center"; easing.type: Easing.InOutQuad } + RotationAnimation { + id: rot_anim + property: "bearing" + direction: RotationAnimation.Shortest + easing.type: Easing.OutQuad + duration: 200 + } + } + } + + BtnPresentPosition { + id: btn_present_position + anchors.right: parent.right + anchors.rightMargin: 153 + anchors.bottom: parent.bottom + anchors.bottomMargin: 162 + } + + BtnMapDirection { + id: btn_map_direction + anchors.top: parent.top + anchors.topMargin: 138 + anchors.left: parent.left + anchors.leftMargin: 47 + } + + BtnGuidance { + id: btn_guidance + anchors.top: parent.top + anchors.topMargin: 138 + anchors.right: parent.right + anchors.rightMargin: 153 + } + + BtnShrink { + id: btn_shrink + anchors.left: parent.left + anchors.leftMargin: 47 + anchors.bottom: parent.bottom + anchors.bottomMargin: 291 + } + + BtnEnlarge { + id: btn_enlarge + anchors.left: parent.left + anchors.leftMargin: 47 + anchors.bottom: parent.bottom + anchors.bottomMargin: 162 + } + + RouteView { + id: routeView + anchors.top: parent.top + anchors.topMargin: 148 + anchors.left: parent.left + anchors.leftMargin: 500 + } + + ProgressNextCross { + id: progress_next_cross + anchors.top: parent.top + anchors.topMargin: 210 + anchors.left: routeView.left + anchors.leftMargin: 0 + } +} diff --git a/mominavi.qrc b/mominavi.qrc new file mode 100644 index 0000000..f55ed53 --- /dev/null +++ b/mominavi.qrc @@ -0,0 +1,47 @@ +<RCC>
+ <qresource prefix="/">
+ <file>BtnMapDirection.qml</file>
+ <file>BtnShrink.qml</file>
+ <file>BtnEnlarge.qml</file>
+ <file>ProgressNextCross.qml</file>
+ <file>BtnGuidance.qml</file>
+ <file>BtnPresentPosition.qml</file>
+ <file>mominavi.qml</file>
+ <file>images/10_11_bear_left_112px-Signal_C117a.svg.png</file>
+ <file>images/11_2_bear_right_112px-Signal_C117a.svg.png</file>
+ <file>images/146px-Israely_road_sign_211.svg.png</file>
+ <file>images/146px-Israely_road_sign_212.svg.png</file>
+ <file>images/200px-Black_close_x.svg.png</file>
+ <file>images/202px-Compass-icon_bb_N.svg.png</file>
+ <file>images/207px-Car_icon_top.svg.png</file>
+ <file>images/240px-Antu_file-zoom-out.svg.png</file>
+ <file>images/240px-Antu_kdenlive-zoom-large.svg.png</file>
+ <file>images/240px-Compass_icon_NE.svg.png</file>
+ <file>images/Emoji_u1f3c1.svg</file>
+ <file>images/HEB_project_flow_icon_04_checkered_flag.svg</file>
+ <file>images/MUTCD_RS-113.svg</file>
+ <file>images/posimark_r.png</file>
+ <file>images/position02.svg</file>
+ <file>images/SW_Patern_3.bmp</file>
+ <file>RouteView.qml</file>
+ <file>images/07_CANCEL.png</file>
+ <file>images/06_START-DEMO.png</file>
+ <file>images/05_CENTER-POSITION.png</file>
+ <file>images/04_WIDE.png</file>
+ <file>images/03_DETAIL.png</file>
+ <file>images/02_NORTH-UP.png</file>
+ <file>images/01_HEADING-UP.png</file>
+ <file>images/10_GOAL.png</file>
+ <file>images/09_JUNCTION.png</file>
+ <file>images/08_START.png</file>
+ <file>images/19_Shadow.png</file>
+ <file>images/18_Setting.png</file>
+ <file>images/17_Dashboard.png</file>
+ <file>images/16_Multimedia.png</file>
+ <file>images/15_Maps.png</file>
+ <file>images/14_Logo.png</file>
+ <file>images/13_Time.png</file>
+ <file>images/12_Footer.png</file>
+ <file>images/11_Header.png</file>
+ </qresource>
+</RCC>
|