diff options
author | acox <andrew.cox@nokia.com> | 2012-03-20 01:44:37 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-03-22 09:12:25 +0100 |
commit | 069fa890aa886002c7961d65ebe71e2d8bddcc99 (patch) | |
tree | 9cd7159817cec40941a1c6dbfce2aee0c277b88f /examples | |
parent | 94c53cbd3f62ca853d36c483e9d2c0ee70e88a1b (diff) |
Moved qmlorganizer to test/system folder
Change-Id: I52d680f1016b57e94dc34920fb359a5f9e328a15
Reviewed-by: pengwu <peng.1.wu@nokia.com>
Reviewed-by: Pekka Kauppila <pekka.kauppila@nokia.com>
Reviewed-by: Iiro Kause <iiro.kause@nokia.com>
Diffstat (limited to 'examples')
46 files changed, 0 insertions, 4823 deletions
diff --git a/examples/qmlorganizer/contents/2010-FIFA-WorldCup.ics b/examples/qmlorganizer/contents/2010-FIFA-WorldCup.ics deleted file mode 100644 index 9d59fa354..000000000 --- a/examples/qmlorganizer/contents/2010-FIFA-WorldCup.ics +++ /dev/null @@ -1,823 +0,0 @@ -BEGIN:VCALENDAR -METHOD:PUBLISH -VERSION:2.0 -X-WR-CALNAME:2010 FIFA World Cup -PRODID:-//Apple Inc.//iCal 4.0.1//EN -X-WR-CALDESC:This calendar lists the 2010 FIFA World Cup matches in Sout - h Africa. I put them in at Central Time\, but hopefully it is accurate f - or your time zone. Due to the way Google Calendar works\, it may not tra - nslate time zones correctly. -X-APPLE-CALENDAR-COLOR:#F57802 -X-WR-TIMEZONE:Europe/Amsterdam -CALSCALE:GREGORIAN -BEGIN:VTIMEZONE -TZID:Europe/Berlin -BEGIN:DAYLIGHT -TZOFFSETFROM:+0100 -RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU -DTSTART:19810329T020000 -TZNAME:GMT+02:00 -TZOFFSETTO:+0200 -END:DAYLIGHT -BEGIN:STANDARD -TZOFFSETFROM:+0200 -RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU -DTSTART:19961027T030000 -TZNAME:GMT+01:00 -TZOFFSETTO:+0100 -END:STANDARD -END:VTIMEZONE -BEGIN:VEVENT -TRANSP:OPAQUE -DTEND:20100615T210000Z -UID:hmnchtpq4rud81o4k6gpuv54eg@google.com -DTSTAMP:20091204T224514Z -LOCATION: -DESCRIPTION: -STATUS:CONFIRMED -SEQUENCE:0 -SUMMARY:World Cup (G): Brazil vs. Korea DPR -DTSTART:20100615T183000Z -CREATED:20091204T194743Z -END:VEVENT -BEGIN:VEVENT -TRANSP:OPAQUE -DTEND:20100625T210000Z -UID:gati2cmgnvhgodn4eik9otmf78@google.com -DTSTAMP:20091204T224514Z -LOCATION: -DESCRIPTION: -STATUS:CONFIRMED -SEQUENCE:0 -SUMMARY:World Cup (H): Chile vs. Spain -DTSTART:20100625T183000Z -CREATED:20091204T200720Z -END:VEVENT -BEGIN:VEVENT -TRANSP:OPAQUE -DTEND:20100612T163000Z -UID:pbfdsbhoku39f73cou4fpapo0o@google.com -DTSTAMP:20091204T224514Z -LOCATION: -DESCRIPTION: -STATUS:CONFIRMED -SEQUENCE:2 -SUMMARY:World Cup (B): Korea Rep. vs. Greece -DTSTART:20100612T140000Z -CREATED:20091204T192743Z -END:VEVENT -BEGIN:VEVENT -TRANSP:OPAQUE -DTEND:20100613T163000Z -UID:lui0vns2i71k8dv6p3t3tp2b6c@google.com -DTSTAMP:20091204T224514Z -LOCATION: -DESCRIPTION: -STATUS:CONFIRMED -SEQUENCE:2 -SUMMARY:World Cup (D): Germany vs. Australia -DTSTART:20100613T140000Z -CREATED:20091204T194156Z -END:VEVENT -BEGIN:VEVENT -TRANSP:OPAQUE -DTEND:20100625T163000Z -UID:0dvhsppbl68pdn6hgkptn7utrs@google.com -DTSTAMP:20091204T224514Z -LOCATION: -DESCRIPTION: -STATUS:CONFIRMED -SEQUENCE:2 -SUMMARY:World Cup (G): Korea DPR vs. Cote d Ivoire -DTSTART:20100625T140000Z -CREATED:20091204T200657Z -END:VEVENT -BEGIN:VEVENT -TRANSP:OPAQUE -DTEND:20100616T140000Z -UID:h713317l5n6mg79ef2ho6ooe24@google.com -DTSTAMP:20091204T224514Z -LOCATION: -DESCRIPTION: -STATUS:CONFIRMED -SEQUENCE:0 -SUMMARY:World Cup (H): Honduras vs. Chile -DTSTART:20100616T113000Z -CREATED:20091204T194813Z -END:VEVENT -BEGIN:VEVENT -TRANSP:OPAQUE -DTEND:20100615T163000Z -UID:6q5mg61oi4d41b7upvnevtsec8@google.com -DTSTAMP:20091204T224514Z -LOCATION: -DESCRIPTION: -STATUS:CONFIRMED -SEQUENCE:0 -SUMMARY:World Cup (G): Cote d Ivoire vs. Portugal -DTSTART:20100615T140000Z -CREATED:20091204T194713Z -END:VEVENT -BEGIN:VEVENT -TRANSP:OPAQUE -DTEND:20100622T163000Z -UID:kc820t9qbks6qdog868evlcvvs@google.com -DTSTAMP:20091204T224514Z -LOCATION: -DESCRIPTION: -STATUS:CONFIRMED -SEQUENCE:0 -SUMMARY:World Cup (A): France vs. South Africa -DTSTART:20100622T140000Z -CREATED:20091204T200002Z -END:VEVENT -BEGIN:VEVENT -ATTENDEE;CN="2010 FIFA World Cup";CUTYPE=INDIVIDUAL;PARTSTAT=ACCEPTED;RO - LE=REQ-PARTICIPANT:mailto:hioolh3fpnqg16f0ef1r7p1hsg@group.calendar.goog - le.com -DTEND:20100623T163000Z -TRANSP:OPAQUE -UID:eke563hinr6439bp946p463640@google.com -DTSTAMP:20091204T224514Z -LOCATION: -DESCRIPTION: -STATUS:CONFIRMED -SEQUENCE:2 -SUMMARY:World Cup: USA vs Algeria -DTSTART:20100623T140000Z -CREATED:20091204T191533Z -END:VEVENT -BEGIN:VEVENT -TRANSP:OPAQUE -DTEND:20100620T163000Z -UID:nl517e60q2cq24qr6civm1pfn8@google.com -DTSTAMP:20091204T224514Z -LOCATION: -DESCRIPTION: -STATUS:CONFIRMED -SEQUENCE:0 -SUMMARY:World Cup (F): Italy vs. New Zealand -DTSTART:20100620T140000Z -CREATED:20091204T195709Z -END:VEVENT -BEGIN:VEVENT -TRANSP:OPAQUE -DTEND:20100622T210000Z -UID:5ng2ieeeqqj35q8orip2mqu3h0@google.com -DTSTAMP:20091204T224514Z -LOCATION: -DESCRIPTION: -STATUS:CONFIRMED -SEQUENCE:0 -SUMMARY:World Cup (B): Nigeria vs. Korea Rep. -DTSTART:20100622T183000Z -CREATED:20091204T200022Z -END:VEVENT -BEGIN:VEVENT -TRANSP:OPAQUE -DTEND:20100611T210000Z -UID:pjnr8akalph5v8bdpm2va2df04@google.com -DTSTAMP:20091204T224514Z -LOCATION: -DESCRIPTION: -STATUS:CONFIRMED -SEQUENCE:0 -SUMMARY:World Cup (A): Uruguay vs France -DTSTART:20100611T183000Z -CREATED:20091204T192513Z -END:VEVENT -BEGIN:VEVENT -TRANSP:OPAQUE -DTEND:20100613T140000Z -UID:1a12u7vtvd8d1ss5gh5pmijue0@google.com -DTSTAMP:20091204T224514Z -LOCATION: -DESCRIPTION: -STATUS:CONFIRMED -SEQUENCE:2 -SUMMARY:World Cup (C): Algeria vs. Slovenia -DTSTART:20100613T113000Z -CREATED:20091204T192827Z -END:VEVENT -BEGIN:VEVENT -TRANSP:OPAQUE -DTEND:20100612T140000Z -UID:vqmnje9vsv821u4dfrlvg218uo@google.com -DTSTAMP:20091204T224514Z -LOCATION: -DESCRIPTION: -STATUS:CONFIRMED -SEQUENCE:2 -SUMMARY:World Cup (B): Argentina vs Nigeria -DTSTART:20100612T113000Z -CREATED:20091204T192558Z -END:VEVENT -BEGIN:VEVENT -TRANSP:OPAQUE -DTEND:20100623T210000Z -UID:kf7eu8r2beq50tm0ecpp7jqhag@google.com -DTSTAMP:20091204T224514Z -LOCATION: -DESCRIPTION: -STATUS:CONFIRMED -SEQUENCE:0 -SUMMARY:World Cup (D): Ghana vs. Germany -DTSTART:20100623T183000Z -CREATED:20091204T200251Z -END:VEVENT -BEGIN:VEVENT -TRANSP:OPAQUE -DTEND:20100614T140000Z -UID:rt3c7adkl2up69g5c34m7k9atk@google.com -DTSTAMP:20091204T224514Z -LOCATION: -DESCRIPTION: -STATUS:CONFIRMED -SEQUENCE:2 -SUMMARY:World Cup (E): Netherlands vs. Denmark -DTSTART:20100614T113000Z -CREATED:20091204T194336Z -END:VEVENT -BEGIN:VEVENT -TRANSP:OPAQUE -DTEND:20100618T140000Z -UID:gh6981i2sgkq35ltgd2rivh5co@google.com -DTSTAMP:20091204T224514Z -LOCATION: -DESCRIPTION: -STATUS:CONFIRMED -SEQUENCE:0 -SUMMARY:World Cup (D): Germany vs. Serbia -DTSTART:20100618T113000Z -CREATED:20091204T195330Z -END:VEVENT -BEGIN:VEVENT -TRANSP:OPAQUE -DTEND:20100624T210000Z -UID:seulqgt7idfh46eno606gic7l8@google.com -DTSTAMP:20091204T224514Z -LOCATION: -DESCRIPTION: -STATUS:CONFIRMED -SEQUENCE:2 -SUMMARY:World Cup (E): Cameroon vs. Netherlands -DTSTART:20100624T183000Z -CREATED:20091204T200521Z -END:VEVENT -BEGIN:VEVENT -TRANSP:OPAQUE -DTEND:20100614T163000Z -UID:n47qnuit99a6n46mvfemaljso0@google.com -DTSTAMP:20091204T224514Z -LOCATION: -DESCRIPTION: -STATUS:CONFIRMED -SEQUENCE:0 -SUMMARY:World Cup (E): Japan vs. Cameroon -DTSTART:20100614T140000Z -CREATED:20091204T194531Z -END:VEVENT -BEGIN:VEVENT -TRANSP:OPAQUE -DTEND:20100619T210000Z -UID:jl83ksobjroqi7536mpsrf9fic@google.com -DTSTAMP:20091204T224514Z -LOCATION: -DESCRIPTION: -STATUS:CONFIRMED -SEQUENCE:0 -SUMMARY:World Cup (E): Cameroon vs. Denmark -DTSTART:20100619T183000Z -CREATED:20091204T195551Z -END:VEVENT -BEGIN:VEVENT -TRANSP:OPAQUE -DTEND:20100615T140000Z -UID:fcdrhvksfl422qndh4s9m69f9g@google.com -DTSTAMP:20091204T224514Z -LOCATION: -DESCRIPTION: -STATUS:CONFIRMED -SEQUENCE:0 -SUMMARY:World Cup (F): New Zealand vs. Slovakia -DTSTART:20100615T113000Z -CREATED:20091204T194647Z -END:VEVENT -BEGIN:VEVENT -TRANSP:OPAQUE -DTEND:20100618T210000Z -UID:cmje1gbghumejv823ea4hr1p4k@google.com -DTSTAMP:20091204T224514Z -LOCATION: -DESCRIPTION: -STATUS:CONFIRMED -SEQUENCE:0 -SUMMARY:World Cup (C): England vs. Algeria -DTSTART:20100618T183000Z -CREATED:20091204T195433Z -END:VEVENT -BEGIN:VEVENT -TRANSP:OPAQUE -DTEND:20100622T163000Z -UID:vliddlfau4o4fc3lcrle8cvha4@google.com -DTSTAMP:20091204T224514Z -LOCATION: -DESCRIPTION: -STATUS:CONFIRMED -SEQUENCE:2 -SUMMARY:World Cup (A): Mexico vs. Uruguay -DTSTART:20100622T140000Z -CREATED:20091204T195948Z -END:VEVENT -BEGIN:VEVENT -TRANSP:OPAQUE -DTEND:20100619T140000Z -UID:tq9isk66uhus4r0b9qek6ubcq8@google.com -DTSTAMP:20091204T224514Z -LOCATION: -DESCRIPTION: -STATUS:CONFIRMED -SEQUENCE:0 -SUMMARY:World Cup (D): Ghana vs. Australia -DTSTART:20100619T113000Z -CREATED:20091204T195501Z -END:VEVENT -BEGIN:VEVENT -TRANSP:OPAQUE -DTEND:20100619T163000Z -UID:hs26ltdpulb4inuf0j7u6eemng@google.com -DTSTAMP:20091204T224514Z -LOCATION: -DESCRIPTION: -STATUS:CONFIRMED -SEQUENCE:0 -SUMMARY:World Cup (E): Netherlands vs. Japan -DTSTART:20100619T140000Z -CREATED:20091204T195525Z -END:VEVENT -BEGIN:VEVENT -TRANSP:OPAQUE -DTEND:20100625T210000Z -UID:nc8qunlc3aeqh5jajha2s94to4@google.com -DTSTAMP:20091204T224514Z -LOCATION: -DESCRIPTION: -STATUS:CONFIRMED -SEQUENCE:2 -SUMMARY:World Cup (H): Switzerland vs. Honduras -DTSTART:20100625T183000Z -CREATED:20091204T200741Z -END:VEVENT -BEGIN:VEVENT -TRANSP:OPAQUE -DTEND:20100625T163000Z -UID:r56dccttfcm5j0cqgoeoj87gdk@google.com -DTSTAMP:20091204T224514Z -LOCATION: -DESCRIPTION: -STATUS:CONFIRMED -SEQUENCE:0 -SUMMARY:World Cup (G): Portugal vs. Brazil -DTSTART:20100625T140000Z -CREATED:20091204T200545Z -END:VEVENT -BEGIN:VEVENT -TRANSP:OPAQUE -DTEND:20100620T140000Z -UID:8u0fqct4g668h84fl53lhtipqc@google.com -DTSTAMP:20091204T224514Z -LOCATION: -DESCRIPTION: -STATUS:CONFIRMED -SEQUENCE:0 -SUMMARY:World Cup (F): Slovakia vs. Paraguay -DTSTART:20100620T113000Z -CREATED:20091204T195643Z -END:VEVENT -BEGIN:VEVENT -TRANSP:OPAQUE -DTEND:20100617T140000Z -UID:fj5glmmrh711claboqv2iqv7f4@google.com -DTSTAMP:20091204T224514Z -LOCATION: -DESCRIPTION: -STATUS:CONFIRMED -SEQUENCE:0 -SUMMARY:World Cup (A): France vs. Mexico -DTSTART:20100617T113000Z -CREATED:20091204T195040Z -END:VEVENT -BEGIN:VEVENT -TRANSP:OPAQUE -DTEND:20100621T163000Z -UID:krlomofbnafvbe1t5utkvnn72s@google.com -DTSTAMP:20091204T224514Z -LOCATION: -DESCRIPTION: -STATUS:CONFIRMED -SEQUENCE:0 -SUMMARY:World Cup (H): Chile vs. Switzerland -DTSTART:20100621T140000Z -CREATED:20091204T195857Z -END:VEVENT -BEGIN:VEVENT -TRANSP:OPAQUE -DTEND:20100620T210000Z -UID:e73g6rnfsoveeri8efjf23em2o@google.com -DTSTAMP:20091204T224514Z -LOCATION: -DESCRIPTION: -STATUS:CONFIRMED -SEQUENCE:0 -SUMMARY:World Cup (G): Brazil vs. Cote d Ivoire -DTSTART:20100620T183000Z -CREATED:20091204T195745Z -END:VEVENT -BEGIN:VEVENT -TRANSP:OPAQUE -DTEND:20100611T163000Z -UID:l1r85n07sjfpitbdd8nb03q240@google.com -DTSTAMP:20091204T224514Z -LOCATION: -DESCRIPTION: -STATUS:CONFIRMED -SEQUENCE:2 -SUMMARY:World Cup (A): South Africa vs Mexico -DTSTART:20100611T140000Z -CREATED:20091204T192253Z -END:VEVENT -BEGIN:VEVENT -TRANSP:OPAQUE -DTEND:20100621T140000Z -UID:9faliohjdtit8dfvapht5rehlk@google.com -DTSTAMP:20091204T224514Z -LOCATION: -DESCRIPTION: -STATUS:CONFIRMED -SEQUENCE:0 -SUMMARY:World Cup (G): Portugal vs. Korea DPR -DTSTART:20100621T113000Z -CREATED:20091204T195833Z -END:VEVENT -BEGIN:VEVENT -TRANSP:OPAQUE -DTEND:20100621T210000Z -UID:du879ivuckqf7heimudpne98ok@google.com -DTSTAMP:20091204T224514Z -LOCATION: -DESCRIPTION: -STATUS:CONFIRMED -SEQUENCE:0 -SUMMARY:World Cup (H): Spain vs. Honduras -DTSTART:20100621T183000Z -CREATED:20091204T195922Z -END:VEVENT -BEGIN:VEVENT -TRANSP:OPAQUE -DTEND:20100624T163000Z -UID:bdaju0gptblq192kq7tlm2lovs@google.com -DTSTAMP:20091204T224514Z -LOCATION: -DESCRIPTION: -STATUS:CONFIRMED -SEQUENCE:0 -SUMMARY:World Cup (F): Slovakia vs. Italy -DTSTART:20100624T140000Z -CREATED:20091204T200359Z -END:VEVENT -BEGIN:VEVENT -TRANSP:OPAQUE -DTEND:20100622T210000Z -UID:tqdehpl20dk44hbmpvq29mf308@google.com -DTSTAMP:20091204T224514Z -LOCATION: -DESCRIPTION: -STATUS:CONFIRMED -SEQUENCE:2 -SUMMARY:World Cup (B): Greece vs. Argentina -DTSTART:20100622T183000Z -CREATED:20091204T200100Z -END:VEVENT -BEGIN:VEVENT -ATTENDEE;CN="2010 FIFA World Cup";CUTYPE=INDIVIDUAL;PARTSTAT=ACCEPTED;RO - LE=REQ-PARTICIPANT:mailto:hioolh3fpnqg16f0ef1r7p1hsg@group.calendar.goog - le.com -DTEND:20100618T163000Z -TRANSP:OPAQUE -UID:7294evill0f2kmf60s5j0675uk@google.com -DTSTAMP:20091204T224514Z -LOCATION: -DESCRIPTION: -STATUS:CONFIRMED -SEQUENCE:2 -SUMMARY:World Cup (C): USA vs Slovenia -DTSTART:20100618T140000Z -CREATED:20091204T191447Z -END:VEVENT -BEGIN:VEVENT -TRANSP:OPAQUE -DTEND:20100614T210000Z -UID:9ttktmpdg31dlr8abd9v3iiukg@google.com -DTSTAMP:20091204T224514Z -LOCATION: -DESCRIPTION: -STATUS:CONFIRMED -SEQUENCE:0 -SUMMARY:World Cup (F): Italy vs. Paraguay -DTSTART:20100614T183000Z -CREATED:20091204T194611Z -END:VEVENT -BEGIN:VEVENT -TRANSP:OPAQUE -DTEND:20100623T210000Z -UID:ooit2jpoglhn85rl4fmtcomkak@google.com -DTSTAMP:20091204T224514Z -LOCATION: -DESCRIPTION: -STATUS:CONFIRMED -SEQUENCE:2 -SUMMARY:World Cup (D): Australia vs. Serbia -DTSTART:20100623T183000Z -CREATED:20091204T200311Z -END:VEVENT -BEGIN:VEVENT -TRANSP:OPAQUE -DTEND:20100616T163000Z -UID:iuken2fi8savbqpob6rhkaqd38@google.com -DTSTAMP:20091204T224514Z -LOCATION: -DESCRIPTION: -STATUS:CONFIRMED -SEQUENCE:0 -SUMMARY:World Cup (H): Spain vs. Switzerland -DTSTART:20100616T140000Z -CREATED:20091204T194842Z -END:VEVENT -BEGIN:VEVENT -TRANSP:OPAQUE -DTEND:20100624T163000Z -UID:lbo6b6k3jv7rgf3iklkiu4idms@google.com -DTSTAMP:20091204T224514Z -LOCATION: -DESCRIPTION: -STATUS:CONFIRMED -SEQUENCE:2 -SUMMARY:World Cup (F): Paraguay vs. New Zealand -DTSTART:20100624T140000Z -CREATED:20091204T200438Z -END:VEVENT -BEGIN:VEVENT -TRANSP:OPAQUE -DTEND:20100613T210000Z -UID:biso0e872fhqbkill5dic5k6d4@google.com -DTSTAMP:20091204T224514Z -LOCATION: -DESCRIPTION: -STATUS:CONFIRMED -SEQUENCE:2 -SUMMARY:World Cup (D): Serbia vs. Ghana -DTSTART:20100613T183000Z -CREATED:20091204T194235Z -END:VEVENT -BEGIN:VEVENT -TRANSP:OPAQUE -DTEND:20100616T210000Z -UID:f2gbe8mpn5bddqmklhl3182t80@google.com -DTSTAMP:20091204T224514Z -LOCATION: -DESCRIPTION: -STATUS:CONFIRMED -SEQUENCE:0 -SUMMARY:World Cup (A): South Africa vs. Uruguay -DTSTART:20100616T183000Z -CREATED:20091204T195018Z -END:VEVENT -BEGIN:VEVENT -TRANSP:OPAQUE -DTEND:20100623T163000Z -UID:lva6u92a5d3kem7s5qenhetljg@google.com -DTSTAMP:20091204T224514Z -LOCATION: -DESCRIPTION: -STATUS:CONFIRMED -SEQUENCE:2 -SUMMARY:World Cup (C): Slovenia vs. England -DTSTART:20100623T140000Z -CREATED:20091204T200216Z -END:VEVENT -BEGIN:VEVENT -TRANSP:OPAQUE -DTEND:20100617T210000Z -UID:69qb8sui1hcspdupd1dgjp43sk@google.com -DTSTAMP:20091204T224514Z -LOCATION: -DESCRIPTION: -STATUS:CONFIRMED -SEQUENCE:0 -SUMMARY:World Cup (B): Argentina vs. Korea Rep. -DTSTART:20100617T183000Z -CREATED:20091204T195140Z -END:VEVENT -BEGIN:VEVENT -TRANSP:OPAQUE -DTEND:20100617T163000Z -UID:j21vnoucpt6bncjfn897j1h29k@google.com -DTSTAMP:20091204T224514Z -LOCATION: -DESCRIPTION: -STATUS:CONFIRMED -SEQUENCE:0 -SUMMARY:World Cup (B): Greece vs. Nigeria -DTSTART:20100617T140000Z -CREATED:20091204T195102Z -END:VEVENT -BEGIN:VEVENT -TRANSP:OPAQUE -DTEND:20100624T210000Z -UID:j80jm97ei9ab4i6p8iiro0squg@google.com -DTSTAMP:20091204T224514Z -LOCATION: -DESCRIPTION: -STATUS:CONFIRMED -SEQUENCE:0 -SUMMARY:World Cup (E): Denmark vs. Japan -DTSTART:20100624T183000Z -CREATED:20091204T200503Z -END:VEVENT -BEGIN:VEVENT -ATTENDEE;CN="2010 FIFA World Cup";CUTYPE=INDIVIDUAL;PARTSTAT=ACCEPTED;RO - LE=REQ-PARTICIPANT:mailto:hioolh3fpnqg16f0ef1r7p1hsg@group.calendar.goog - le.com -DTEND:20100612T210000Z -TRANSP:OPAQUE -UID:chgemsmh5eks3lb03nat8hmapg@google.com -DTSTAMP:20091204T224514Z -LOCATION: -DESCRIPTION: -STATUS:CONFIRMED -SEQUENCE:2 -SUMMARY:World Cup (C): USA vs ENG -DTSTART:20100612T183000Z -CREATED:20091204T191346Z -END:VEVENT -BEGIN:VEVENT -CREATED:20091205T080346Z -UID:64084E04-0DA9-4B33-95D1-79AC69B94288 -DTEND;TZID=Europe/Berlin:20100629T223000 -TRANSP:OPAQUE -SUMMARY:match 56: 1H - 2G -DTSTART;TZID=Europe/Berlin:20100629T203000 -DTSTAMP:20091205T110824Z -SEQUENCE:4 -END:VEVENT -BEGIN:VEVENT -CREATED:20091205T080215Z -UID:ADE0C036-E788-402A-BFE2-C4A6D4ADB6AA -DTEND;TZID=Europe/Berlin:20100627T223000 -TRANSP:OPAQUE -SUMMARY:match 52: 1B - 2A -DTSTART;TZID=Europe/Berlin:20100627T203000 -DTSTAMP:20091205T110800Z -SEQUENCE:6 -END:VEVENT -BEGIN:VEVENT -CREATED:20091205T080346Z -UID:692EB017-69AE-4C9A-8DA9-216A5EB446DF -DTEND;TZID=Europe/Berlin:20100628T180000 -TRANSP:OPAQUE -SUMMARY:match 53: 1E - 2F -DTSTART;TZID=Europe/Berlin:20100628T160000 -DTSTAMP:20091205T110807Z -SEQUENCE:4 -END:VEVENT -BEGIN:VEVENT -CREATED:20091205T080924Z -UID:D8544EAB-AEF7-45F5-9AA7-C483158C1226 -DTEND;TZID=Europe/Berlin:20100703T180000 -TRANSP:OPAQUE -SUMMARY:QF match 59: winner 52 - winner 51 -DTSTART;TZID=Europe/Berlin:20100703T160000 -DTSTAMP:20091205T111536Z -SEQUENCE:4 -END:VEVENT -BEGIN:VEVENT -CREATED:20091205T081300Z -UID:E7DA6125-613C-472B-B113-BE0AA0B6940B -DTEND;TZID=Europe/Berlin:20100710T223000 -TRANSP:OPAQUE -SUMMARY:Match for third place: loser 61 - loser 62 -DTSTART;TZID=Europe/Berlin:20100710T203000 -DTSTAMP:20091205T111111Z -SEQUENCE:5 -END:VEVENT -BEGIN:VEVENT -CREATED:20091205T080355Z -UID:F0C2ACA5-40A0-4487-B1E7-C4D514FD8CC4 -DTEND;TZID=Europe/Berlin:20100628T223000 -TRANSP:OPAQUE -SUMMARY:match 54: 1G - 2H -DTSTART;TZID=Europe/Berlin:20100628T203000 -DTSTAMP:20091205T110813Z -SEQUENCE:3 -END:VEVENT -BEGIN:VEVENT -CREATED:20091205T080138Z -UID:A17719FE-9F77-4522-AD5B-1FC4AF0C2076 -DTEND;TZID=Europe/Berlin:20100626T223000 -TRANSP:OPAQUE -SUMMARY:match 50: 1C - 2D -DTSTART;TZID=Europe/Berlin:20100626T203000 -DTSTAMP:20091205T110748Z -SEQUENCE:4 -END:VEVENT -BEGIN:VEVENT -CREATED:20091205T080346Z -UID:88C6B3D2-1FC9-4665-9DF4-3D8F82AC6831 -DTEND;TZID=Europe/Berlin:20100629T180000 -TRANSP:OPAQUE -SUMMARY:match 55: 1F - 2E -DTSTART;TZID=Europe/Berlin:20100629T160000 -DTSTAMP:20091205T110819Z -SEQUENCE:4 -END:VEVENT -BEGIN:VEVENT -CREATED:20091205T080208Z -UID:DAB31292-A166-4A51-9B40-23FE4FD46B84 -DTEND;TZID=Europe/Berlin:20100627T180000 -TRANSP:OPAQUE -SUMMARY:match 51: 1D - 2C -DTSTART;TZID=Europe/Berlin:20100627T160000 -DTSTAMP:20091205T110754Z -SEQUENCE:4 -END:VEVENT -BEGIN:VEVENT -CREATED:20091205T081354Z -UID:42F0FFA6-08E4-4256-BB27-63FB6F23F47A -DTEND;TZID=Europe/Berlin:20100711T223000 -TRANSP:OPAQUE -SUMMARY:Final: winner 61 - winner 62 -DTSTART;TZID=Europe/Berlin:20100711T203000 -DTSTAMP:20091205T111003Z -SEQUENCE:4 -END:VEVENT -BEGIN:VEVENT -CREATED:20091205T081147Z -UID:0386496E-F7C9-42D8-B46B-BC1E9AFCAFD7 -DTEND;TZID=Europe/Berlin:20100706T223000 -TRANSP:OPAQUE -SUMMARY:SF match 61: winner 57 - winner 58 -DTSTART;TZID=Europe/Berlin:20100706T203000 -DTSTAMP:20091205T111658Z -SEQUENCE:7 -END:VEVENT -BEGIN:VEVENT -CREATED:20091205T081216Z -UID:6F1C10EF-9A3A-49D6-BF5F-4154556DF7BE -DTEND;TZID=Europe/Berlin:20100707T223000 -TRANSP:OPAQUE -SUMMARY:SF match 62: winner 59 - winner 60 -DTSTART;TZID=Europe/Berlin:20100707T203000 -DTSTAMP:20091205T111603Z -SEQUENCE:4 -END:VEVENT -BEGIN:VEVENT -CREATED:20091205T080124Z -UID:B6B00EAA-EC2D-4F79-88A0-D37016C93195 -DTEND;TZID=Europe/Berlin:20100626T180000 -TRANSP:OPAQUE -SUMMARY:match 49: 1A - 2B -DTSTART;TZID=Europe/Berlin:20100626T160000 -DTSTAMP:20091205T110736Z -SEQUENCE:6 -END:VEVENT -BEGIN:VEVENT -CREATED:20091205T080713Z -UID:B40893C6-C237-453C-8044-49CBDDD257BE -DTEND;TZID=Europe/Berlin:20100702T180000 -TRANSP:OPAQUE -SUMMARY:QF match 57: winner 53 - winner 54 -DTSTART;TZID=Europe/Berlin:20100702T160000 -DTSTAMP:20091205T111239Z -SEQUENCE:7 -END:VEVENT -BEGIN:VEVENT -CREATED:20091205T080809Z -UID:BF5EEDB3-DF11-46C7-A70D-CFFDDC3A4B9B -DTEND;TZID=Europe/Berlin:20100702T223000 -TRANSP:OPAQUE -SUMMARY:QF match 58: winner 49 - winner 50 -DTSTART;TZID=Europe/Berlin:20100702T203000 -DTSTAMP:20091205T111521Z -SEQUENCE:6 -END:VEVENT -BEGIN:VEVENT -CREATED:20091205T080950Z -UID:E8B14DB7-8260-4127-9F70-0394B56C8E93 -DTEND;TZID=Europe/Berlin:20100703T223000 -TRANSP:OPAQUE -SUMMARY:match 60: match 55 - match 56 -DTSTART;TZID=Europe/Berlin:20100703T203000 -DTSTAMP:20091205T110908Z -SEQUENCE:3 -END:VEVENT -END:VCALENDAR diff --git a/examples/qmlorganizer/contents/AgenderView.qml b/examples/qmlorganizer/contents/AgenderView.qml deleted file mode 100644 index adfc24352..000000000 --- a/examples/qmlorganizer/contents/AgenderView.qml +++ /dev/null @@ -1,48 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the examples of the Qt Mobility Components. -** -** $QT_BEGIN_LICENSE:BSD$ -** 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 Nokia Corporation and its Subsidiary(-ies) 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.0 -import QtOrganizer 5.0 - -Rectangle -{ - id:agenderView - anchors.fill: parent -} diff --git a/examples/qmlorganizer/contents/AttendeeDetailsView.qml b/examples/qmlorganizer/contents/AttendeeDetailsView.qml deleted file mode 100644 index e09f884f5..000000000 --- a/examples/qmlorganizer/contents/AttendeeDetailsView.qml +++ /dev/null @@ -1,140 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the examples of the Qt Mobility Components. -** -** $QT_BEGIN_LICENSE:BSD$ -** 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 Nokia Corporation and its Subsidiary(-ies) 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.0 -import QtOrganizer 5.0 - -Rectangle { - id: attendeeDetailsView - anchors.top: menuBar.bottom - opacity: 0 - width: calendar.width; - height: calendar.height - menuBar.height - property variant item - - onItemChanged: { - attendeeEditNameRow.value = "name"; - attendeeEditEmailRow.value = "name@qt.nokia.com"; - attendeeEditAttendeeIdRow.value = "contact id"; - attendeeEditRoleRow.value = 4; - } - - Image { source: "images/stripes.png"; fillMode: Image.Tile; anchors.fill: parent; opacity: 0.8 } - color: "#343434"; - - Column { - Repeater { - model: item? item.attendees : 0 - Rectangle { - width: attendeeDetailsView.width; - height: 25 - Text { - id : nameText; - width: parent.width - text: "attendee " + index + " : " + name + "," + emailAddress; - } - Button { - text: "remove" - width: parent.width / 6 - height: 30 - anchors.right: nameText.right - onClicked: { - item.removeDetail(modelData); - } - } - } - } - - FieldRow { - id: attendeeEditNameRow - label: "Attendee name" - value: "name" - } - FieldRow { - id: attendeeEditEmailRow - label: "Attendee email" - value: "name@qt.nokia.com" - } - FieldRow { - id: attendeeEditAttendeeIdRow - label: "Attendee attendeeId" - value: "" - } - RollerRow { - id: attendeeEditRoleRow - label: "Attendee role" - height: 80 - valueSet: ["Unknown", "Organizer", "Chairperson", "Host", "RequiredParticipant", "OptionalParticipant", "NonParticipant"] - } - RollerRow { - id: attendeeEditStatusRow - label: "Attendee Status" - height: 80 - valueSet: ["Unknown", "StatusAccepted", "StatusDeclined", "StatusTentative", "StatusDelegated", "StatusInProcess", "StatusCompleted"] - } - Row { - Button { - id: addAttendeeButton - text: "Add New" - width: attendeeDetailsView.width / 2 - onClicked: { - if (attendeeEditNameRow.newValue) { - var eventAttendee = Qt.createQmlObject("import QtOrganizer 5.0;EventAttendee {}", organizer); - eventAttendee.name = attendeeEditNameRow.newValue; - if (attendeeEditEmailRow.newValue) - eventAttendee.emailAddress = attendeeEditEmailRow.newValue; - if (attendeeEditAttendeeIdRow.newValue) - eventAttendee.attendeeId = attendeeEditAttendeeIdRow.newValue; - eventAttendee.participationRole = attendeeEditRoleRow.valueRoller.selectedValue() - eventAttendee.participationStatus = attendeeEditStatusRow.valueRoller.selectedValue() - item.setDetail(eventAttendee); - } - } - } - Button { - id: closeButton - text: "Close" - width: attendeeDetailsView.width / 2 - onClicked: { - calendar.state = "DetailsView"; - } - } - } - } -} diff --git a/examples/qmlorganizer/contents/Button.qml b/examples/qmlorganizer/contents/Button.qml deleted file mode 100644 index dae36e710..000000000 --- a/examples/qmlorganizer/contents/Button.qml +++ /dev/null @@ -1,92 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the examples of the Qt Mobility Components. -** -** $QT_BEGIN_LICENSE:BSD$ -** 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 Nokia Corporation and its Subsidiary(-ies) 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.0 - -// These buttons are very ugly -Rectangle { - id: container - - signal clicked - property string image: "" - property string text: "" - property int padding: 2 - - color: activePalette.button; - smooth: true - border.width: 1; - border.color: Qt.darker(activePalette.dark); - radius: 2; - - - gradient: Gradient { - GradientStop { position: 0.0; color: Qt.lighter(activePalette.button) } - GradientStop { position: 1.0; color : mr.pressed ? Qt.lighter(activePalette.light) : Qt.darker(activePalette.dark) } - } - width: stuff.width + 4 * padding - height: stuff.height + 2 * padding - - Item { - id: stuff - width: childrenRect.width; - height: childrenRect.height; - y: padding - anchors.horizontalCenter: parent.horizontalCenter - - Row { - Image { - id: imgItem; - smooth: true - width: source != "" ? 16 : 0; height: source != "" ? 16 : 0; - source: container.image; - opacity: source == "" ? 0 : 1; - } - - Text { - horizontalAlignment: Text.AlignHCenter - id: txtItem; text: container.text; font.pixelSize: 14; color: activePalette.buttonText - } - } - } - - // Don't make mr part of the size determination, since it uses anchors.fill - MouseArea { id: mr; anchors.fill: parent; onClicked: container.clicked() } - -} diff --git a/examples/qmlorganizer/contents/CheckBox.qml b/examples/qmlorganizer/contents/CheckBox.qml deleted file mode 100644 index 77d5936a0..000000000 --- a/examples/qmlorganizer/contents/CheckBox.qml +++ /dev/null @@ -1,99 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the QtDeclarative module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** This file may be used under the terms of the GNU Lesser General Public -** License version 2.1 as published by the Free Software Foundation and -** appearing in the file LICENSE.LGPL included in the packaging of this -** file. Please review the following information to ensure the GNU Lesser -** General Public License version 2.1 requirements will be met: -** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -import QtQuick 2.0 - - Rectangle { - id: checkBox; - property bool checked: false - property string checkMark: "\u2717" - - signal clicked( bool checked ) - - Component.onCompleted: { - if (!checked) - text.text = "" - else - text.text = checkMark - } - - width: text.height + 5 - height: text.height + 5 - color: "lightgrey" - opacity: 0.95 - border.width: 3 - border.color: "white" - radius: 5 - smooth: true - - Text { - id: text - anchors.verticalCenter: checkBox.verticalCenter - anchors.horizontalCenter: checkBox.horizontalCenter - color: "black" - } - - MouseArea { - id: mouseArea - - anchors.fill: parent - onClicked: { - checked = !checked - checkBox.clicked( checked ) - } - } - - states: [ - State { - id: stateChecked - - name: "checked"; when: checked - - PropertyChanges { - id: propertyChangeCheckMark - - target: text - text: checkMark - } - PropertyChanges { target: checkBox; border.color: "white"; color: "white"} - } - ] - } diff --git a/examples/qmlorganizer/contents/CheckBoxRow.qml b/examples/qmlorganizer/contents/CheckBoxRow.qml deleted file mode 100644 index 7b1c6c918..000000000 --- a/examples/qmlorganizer/contents/CheckBoxRow.qml +++ /dev/null @@ -1,76 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the QtDeclarative module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** This file may be used under the terms of the GNU Lesser General Public -** License version 2.1 as published by the Free Software Foundation and -** appearing in the file LICENSE.LGPL included in the packaging of this -** file. Please review the following information to ensure the GNU Lesser -** General Public License version 2.1 requirements will be met: -** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -import QtQuick 2.0 - -Item { - property alias label: nameField.text - property alias newValue: checkBox.checked - - signal checkBoxChanged - - height: 50 - width: detailsView.width - - Text { - id: nameField - width: parent.width * 0.4 - anchors { left: parent.left; margins: 3 } - font.bold: true - color: "white" - } - CheckBox { - id: checkBox - anchors { left: nameField.right; margins: 3 } - checked: false - onClicked: { - checkBoxChanged(); - } - } - - function setValue(initialValue) { - if (checkBox.checked != initialValue) { - checkBox.checked = initialValue; - checkBoxChanged(); - } - } - -} diff --git a/examples/qmlorganizer/contents/CollectionEditorView.qml b/examples/qmlorganizer/contents/CollectionEditorView.qml deleted file mode 100644 index a8fecb84f..000000000 --- a/examples/qmlorganizer/contents/CollectionEditorView.qml +++ /dev/null @@ -1,119 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the examples of the Qt Mobility Components. -** -** $QT_BEGIN_LICENSE:BSD$ -** 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 Nokia Corporation and its Subsidiary(-ies) 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.0 -import QtOrganizer 5.0 - -Item { - anchors.centerIn: parent - opacity: 0 - width: calendar.width; - height: calendar.height - menuBar.height - statusBar.height// - editorItems.height; - - property Collection collection; - - - Column { - id: editorItems - - spacing: 4 - opacity: 0.8 - - Text { - text: "Collection" - height: 30 - anchors { horizontalCenter: parent.horizontalCenter } - color: "White" - font { pointSize: 15; weight: Font.Bold } - } - FieldRow { - id: nameRow - label: "Name" - value: collection ? collection.name : "" - } -// FieldRow { -// id: idRow -// label: "Id" -// value: collection.collectionId -// } - FieldRow { - id: descRow - label: "Description" - value: collection? collection.description : "" - } - FieldRow { - id: colorRow - label: "Color" - value: collection? collection.color : "" - } - FieldRow { - id: imageRow - label: "Image" - value: collection? collection.image : "" - } - } - - Rectangle { - id: buttonRow - anchors { bottom: parent.bottom; left: parent.left; right: parent.right; } - height: saveCollectionButton.height - color:"#343434" - - Button { id: saveCollectionButton; text: "Save"; width: calendar.width/2; onClicked: saveCollection(); anchors.left:parent.left } - Button { id: removeCollectionButton; text: "Delete"; width: calendar.width/2; onClicked: removeCollection(); anchors.left:saveCollectionButton.right } - } - - - function saveCollection() { - var newCollection = Qt.createQmlObject('import QtQuick 2.0; import QtOrganizer 5.0; Collection {}',organizer); - newCollection.name = nameRow.newValue; - newCollection.collectionId = collection.collectionId; - newCollection.description = descRow.newValue; - newCollection.color = colorRow.newValue; - newCollection.image = imageRow.newValue; - organizer.saveCollection(newCollection); - calendar.state = "CollectionManagerView"; - } - - function removeCollection() { - organizer.removeCollection(collection.collectionId); - calendar.state = "CollectionManagerView"; - } -} diff --git a/examples/qmlorganizer/contents/CollectionManagerView.qml b/examples/qmlorganizer/contents/CollectionManagerView.qml deleted file mode 100644 index 684d2bc0c..000000000 --- a/examples/qmlorganizer/contents/CollectionManagerView.qml +++ /dev/null @@ -1,155 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the test suite of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** This file may be used under the terms of the GNU Lesser General Public -** License version 2.1 as published by the Free Software Foundation and -** appearing in the file LICENSE.LGPL included in the packaging of this -** file. Please review the following information to ensure the GNU Lesser -** General Public License version 2.1 requirements will be met: -** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -import QtQuick 2.0 -import QtOrganizer 5.0 - -Item { - anchors.centerIn: parent - opacity: 0 - width: calendar.width; - height: calendar.height - menuBar.height - statusBar.height - 50; - - property Collection collection; - - Column { - spacing: 2 - - width: parent.width; height: parent.height; - - Text { - text: "Collections:" - height: 30 - anchors { horizontalCenter: parent.horizontalCenter } - color: "White" - font { pointSize: 15; weight: Font.Bold } - } - - ListView { - id: collectionList - opacity: 0.8 - width: parent.width; height: parent.height - instructionsText.height; - model: organizer.collections - - clip: true - focus: true - delegate: listViewDelegate - } - - Text { - id: instructionsText - text: "<To start filtering collections, check the squares of wanted collections, by default all collections are enabled>" - height: 100; width: parent.width - anchors { horizontalCenter: parent.horizontalCenter } - color: "White" - wrapMode: TextEdit.WordWrap - font { italic: true } - } - } - - Component { - id: listViewDelegate - Row { - property bool isEnabledInCollectionFilter: modelCollectionFilter.ids.indexOf(collectionId) != -1 - anchors { horizontalCenter: parent.horizontalCenter } - spacing: 5 - Text { - text: name - height: 30 - color: "White" - font { weight: Font.Bold } - - MouseArea{ - anchors.fill: parent - onClicked: { - collectionList.currentIndex = index; - modifyCollection(); - } - } - } - Rectangle { - width: 20; height: 20 - border { color: "black"; width: 1; } - color: isEnabledInCollectionFilter ? "black" : "gray" - MouseArea{ - anchors.fill: parent - onClicked: { - collectionList.currentIndex = index; - isEnabledInCollectionFilter = !isEnabledInCollectionFilter; - modifyCollectionFilter(isEnabledInCollectionFilter, index); - } - } - } - } - } - - function addCollection() { - collectionEditorView.collection = Qt.createQmlObject('import QtQuick 2.0; import QtOrganizer 5.0; Collection {}',organizer); - calendar.state = "CollectionEditorView"; - } - - function modifyCollection() { - collectionEditorView.collection = organizer.collections[collectionList.currentIndex]; - calendar.state = "CollectionEditorView"; - } - - function modifyCollectionFilter(enabled, index) { - //Get exist filter id list, - var filterIdsList = modelCollectionFilter.ids; - //Collection id will be added or removed from filter - var collectionId = organizer.collections[index].collectionId; - var filterIndex = filterIdsList.indexOf(collectionId); - if (false == enabled) { - if (filterIndex >= 0) //If the enable is false, remove from the list if we found inside list - filterIdsList.splice(filterIndex, 1); - else - console.log("Warning: Collection id is not found in filter list" + collectionId); - } else {//Add this id in the filter list if we do not have it in list - if (filterIndex == -1) - filterIdsList.push(collectionId); - else - console.log("Warning: Collection id exists in filter list :" + collectionId); - } - //Update model collection filter - modelCollectionFilter.ids = filterIdsList; - } -} - diff --git a/examples/qmlorganizer/contents/CollectionRoller.qml b/examples/qmlorganizer/contents/CollectionRoller.qml deleted file mode 100644 index 08568a589..000000000 --- a/examples/qmlorganizer/contents/CollectionRoller.qml +++ /dev/null @@ -1,72 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the examples of the Qt Mobility Components. -** -** $QT_BEGIN_LICENSE:BSD$ -** 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 Nokia Corporation and its Subsidiary(-ies) 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.0 -import QtOrganizer 5.0 - -RollerRow { - label: "Collection" - valueSet: createCollectionNameValueSet(); - - function createCollectionNameValueSet() { - var collectionNameArray = new Array(); - for (var i=0;i<organizer.collections.length;i++) { - collectionNameArray.push(organizer.collections[i].name); - } - return collectionNameArray; - } - - function findCollectionArrayIndex(itemCollectionId) { - // search item's collection id - for (var i=0;i<organizer.collections.length;i++) { - if (organizer.collections[i].collectionId == itemCollectionId) { - return i; - } - } - // item's collection id not found, use default one - for (var i=0;i<organizer.collections.length;i++) { - if (organizer.collections[i].collectionId == organizer.defaultCollection().collectionId) { - return i; - } - } - return -1; - } -} - diff --git a/examples/qmlorganizer/contents/DateTimeRollerRow.qml b/examples/qmlorganizer/contents/DateTimeRollerRow.qml deleted file mode 100644 index 2b72a64e7..000000000 --- a/examples/qmlorganizer/contents/DateTimeRollerRow.qml +++ /dev/null @@ -1,174 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the QtDeclarative module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** This file may be used under the terms of the GNU Lesser General Public -** License version 2.1 as published by the Free Software Foundation and -** appearing in the file LICENSE.LGPL included in the packaging of this -** file. Please review the following information to ensure the GNU Lesser -** General Public License version 2.1 requirements will be met: -** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -import QtQuick 2.0 -import "datetimerollercontents" - -Item { - property variant value - property alias label: nameField.text - property alias dateTimeRoller : dateTimeRoller - - opacity : (enabled) ? 1.0 : 0.6 - - signal rollerChanged - - height: 100 - width: detailsView.width - - onValueChanged: { - dateTimeRoller.setDateTime(value) - } - - Text { - id: nameField - width: parent.width * 0.4 - anchors { left: parent.left; margins: 3 } - font.bold: true - color: "white" - } - - Rectangle { - id: dateTimeRoller - - width: roller.width - height: roller.height - anchors { left: nameField.right; margins: 3} - color: "white"; - border { width: 3; color: "white" } - radius: 5 - - Grid { - id: roller - spacing: 2 - columns: 5 - Title { width: day.width; label: "day" } - Title { width: month.width; label: "month" } - Title { width: year.width; label: "year" } - Title { width: hour.width; label: "hour" } - Title { width: minute.width; label: "minute" } - Spinner { - id: day - model: 31 - delegate: Text { text: dateTimeRoller.formatDigits(index+1); } - onCurrentIndexChanged: rollerChanged() - } - Spinner { - id: month - width: 40 - model: 12 - delegate: Text { text: dateTimeRoller.monthName(index+1); } - onCurrentIndexChanged: rollerChanged() - } - Spinner { - id: year - width: 60 - model: 5 - delegate: Text { text: index+2010; } - onCurrentIndexChanged: rollerChanged() - } - Spinner { - id: hour - model: 24 - delegate: Text { text: dateTimeRoller.formatDigits(index); } - onCurrentIndexChanged: rollerChanged() - } - Spinner { - id: minute - model: 60 - delegate: Text {text: dateTimeRoller.formatDigits(index); } - onCurrentIndexChanged: rollerChanged() - } - } - - // internal formatting - function formatDigits(value) {return value < 10 ? "0"+value : value;} - // internal formatting - function monthName(monthIndex) { - switch(monthIndex) - { - case 1: return "Jan."; break; - case 2: return "Feb."; break; - case 3: return "Mar."; break; - case 4: return "Apr."; break; - case 5: return "May."; break; - case 6: return "Jun."; break; - case 7: return "Jul."; break; - case 8: return "Aug."; break; - case 9: return "Sep."; break; - case 10: return "Oct."; break; - case 11: return "Nov."; break; - case 12: return "Dec."; break; - default: return monthIndex; - } - } - - // component API - - // use this to show current date - function showCurrentDateTime() { - var date = new Date(); - day.currentIndex = date.getDate()-1; - month.currentIndex = date.getMonth(); - year.currentIndex = date.getFullYear()-2010; - //hour.currentIndex = date.getHours(); - //minute.currentIndex = date.getMinutes(); - } - - // use this to read selected datetime - function selectedDateTime() { - return new Date(year.currentIndex+2010, month.currentIndex, day.currentIndex+1, hour.currentIndex, minute.currentIndex, 0 ,0); - } - - // use this to set datetime - function setDateTime(date) { - if (date == undefined) { - showCurrentDateTime(); - } else { - day.currentIndex = date.getDate()-1; - month.currentIndex = date.getMonth(); - year.currentIndex = date.getFullYear()-2010; - hour.currentIndex = date.getHours(); - minute.currentIndex = date.getMinutes(); - } - } - } -} diff --git a/examples/qmlorganizer/contents/DayView.qml b/examples/qmlorganizer/contents/DayView.qml deleted file mode 100644 index 08e44b578..000000000 --- a/examples/qmlorganizer/contents/DayView.qml +++ /dev/null @@ -1,191 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the examples of the Qt Mobility Components. -** -** $QT_BEGIN_LICENSE:BSD$ -** 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 Nokia Corporation and its Subsidiary(-ies) 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.0 -import QtOrganizer 5.0 - -Flickable -{ - Rectangle { - id : dayView - - anchors.fill : parent - opacity : parent.opacity - color: "#9eaf30" - gradient: Gradient { - GradientStop { - position: 0.00; - color: "#9eaf30"; - } - GradientStop { - position: 0.89; - color: "#ffffff"; - } - } - - ListView { - id : hourList - model : hourModel - anchors.fill: parent - clip: true - focus: true - opacity : parent.opacity - - delegate : hourDelegate - highlight: hourHighlight - preferredHighlightBegin: hourList.height * 0.5 - preferredHighlightEnd: preferredHighlightBegin - highlightFollowsCurrentItem : true - highlightMoveSpeed : 2000 - keyNavigationWraps : true - - onCurrentIndexChanged : { - if (timelineView.opacity > 0) { - calendar.currentDate = new Date(timelineView.year, timelineView.month, currentIndex + 1); - monthList.currentIndex = timelineView.month; - currentIndex = timelineView.day - 1; - } - } - - } - Component { - id: hourHighlight - Rectangle { - width: hourList.width; - height: hourList.height /7 ; - color: "lightsteelblue" ;radius: 5 - } - } - - Component { - id: hourDelegate - - - Item { - width : hourList.width - height : childrenRect.height - property int rowIndex : index - id:hourDelegateInstanceItem - - Column { - // Draw a line under the previous Hour list tiem - Rectangle { - height : 1 - width : hourList.width - color : "black" - } - - Text { - // text: hour - text: index + ":00" - } - - - // List all, if any, of the events within this hour. - Repeater { - - focus: true - - // Simple fetch ALL events on this day...and we will filter them bu hour. - model: calendar.organizer.items? calendar.organizer.itemsByTimePeriod(new Date(calendar.year, calendar.month, calendar.day) - , new Date(calendar.year, calendar.month, calendar.day+1)) - : 0 - - Row { - spacing: 4 - Text { - id: itemText - clip: true - focus: true - - // Only display a link when the event starts within this hour...... - text: (hourDelegateInstanceItem.rowIndex == Qt.formatTime(modelData.itemStartTime, "hh")) ? "<a href=\"#\">" + modelData.displayLabel + "</a>":"" - onLinkActivated: { - detailsView.isNewItem = false; - detailsView.item = modelData; - if (detailsView.item.itemType == Type.EventOccurrence || detailsView.item.itemType == Type.TodoOccurrence) - calendar.state = "OccurrenceDialogView"; - else - calendar.state = "DetailsView"; - } - } - Rectangle { - width: 15; height: 15 - anchors { verticalCenter: parent.verticalCenter } - border { color: "black"; width: 1; } - visible: (hourDelegateInstanceItem.rowIndex == Qt.formatTime(modelData.itemStartTime, "hh")) ? true : false - color: calendar.organizer.collection(modelData.collectionId)? calendar.organizer.collection(modelData.collectionId).color : "red" - } - } - } - } - } - - } - - ListModel { - id : hourModel - ListElement {hour : "0:00"} - ListElement {hour : "1:00"} - ListElement {hour : "2:00"} - ListElement {hour : "3:00"} - ListElement {hour : "4:00"} - ListElement {hour : "5:00"} - ListElement {hour : "6:00"} - ListElement {hour : "7:00"} - ListElement {hour : "8:00"} - ListElement {hour : "9:00"} - ListElement {hour : "10:00"} - ListElement {hour : "11:00"} - ListElement {hour : "12:00"} - ListElement {hour : "13:00"} - ListElement {hour : "14:00"} - ListElement {hour : "15:00"} - ListElement {hour : "16:00"} - ListElement {hour : "17:00"} - ListElement {hour : "18:00"} - ListElement {hour : "19:00"} - ListElement {hour : "20:00"} - ListElement {hour : "21:00"} - ListElement {hour : "22:00"} - ListElement {hour : "23:00"} - } - } -} diff --git a/examples/qmlorganizer/contents/DetailsView.qml b/examples/qmlorganizer/contents/DetailsView.qml deleted file mode 100644 index 3c269f574..000000000 --- a/examples/qmlorganizer/contents/DetailsView.qml +++ /dev/null @@ -1,552 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the examples of the Qt Mobility Components. -** -** $QT_BEGIN_LICENSE:BSD$ -** 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 Nokia Corporation and its Subsidiary(-ies) 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.0 -import QtOrganizer 5.0 -import "datetimerollercontents" - -Rectangle -{ - id:detailsView - anchors.fill: parent - property bool isNewItem - property variant item - property variant rule - property variant audibleReminderdetail - - onOpacityChanged: { - // Is this view visible - if (detailsView.opacity == 1) { - // Initialize empty item - if (isNewItem) { - if (item.itemType == Type.Event || item.itemType == Type.EventOccurrence) { - item.startDateTime = new Date (calendar.year, calendar.month, calendar.day, 12); - item.endDateTime = new Date (calendar.year, calendar.month, calendar.day, 13); - } else if (item.itemType == Type.Todo || item.itemType == Type.TodoOccurrence) { - item.startDateTime = new Date (calendar.year, calendar.month, calendar.day, 12); - item.dueDateTime = new Date (calendar.year, calendar.month, calendar.day, 13); - } - } - // Initialize recurrence rule - emptyRecurrenceRule.frequency = RecurrenceRule.Invalid; - emptyRecurrenceRule.interval = 1; - emptyRecurrenceRule.limit = null; - - // Initialize UI - if (item.itemType == Type.Event || item.itemType == Type.EventOccurrence) { - customLabelRow.setValue(item.displayLabel); - customStartDateRow.dateTimeRoller.setDateTime(item.startDateTime); - customEndDateRow.dateTimeRoller.setDateTime(item.endDateTime); - customAlldayCheckBox.setValue(item.allDay); - customDescriptionRow.setValue(item.description); - customLocationRow.setValue(item.location); - customCollectionRow.value = customCollectionRow.findCollectionArrayIndex(item.collectionId); - customRsvpParticipationStatusRow.value = item.details(Detail.EventRsvp).length ? - item.detail(Detail.EventRsvp).participationStatus : - EventAttendee.StatusUnknown; - } else if (item.itemType == Type.Todo || item.itemType == Type.TodoOccurrence) { - todoCustomLabelRow.setValue(item.displayLabel); - todoCustomDueDateRow.dateTimeRoller.setDateTime(detailsView.item.dueDateTime); - todoCustomDescriptionRow.setValue(item.description); - todoCustomPriorityRow.value = detailsView.item.priority; - todoCollectionRow.value = todoCollectionRow.findCollectionArrayIndex(item.collectionId); - } - - if (item.recurrence != undefined && item.recurrence.recurrenceRules.length > 0) { - // Existing rule - rule = item.recurrence.recurrenceRules[0]; - customRecurrenceRow.setValue(true); - } else { - // New rule - rule = emptyRecurrenceRule; - customRecurrenceRow.setValue(false); - } -// customInterval.setValue(rule.interval != 1); - customRecurrenceLimitRow.setValue(rule != undefined && rule.limit != null); - customLimitDateRow.dateTimeRoller.setDateTime((rule.limit == null || typeof rule.limit == "number")? null : rule.limit); - - //Audible reminder - var audibleDetailList = item.details(Detail.AudibleReminder); - if (audibleDetailList.length > 0) { - audibleReminderdetail = item.detail(Detail.AudibleReminder); - audibleReminderCheckBox.setValue(true); - } else { - audibleReminderdetail = emptyAudibleReminder; - audibleReminderCheckBox.setValue(false); - } - } - } - - RecurrenceRule { - id: emptyRecurrenceRule - } - - AudibleReminder { - id: emptyAudibleReminder - dataUrl: "http://www.qt.nokia.com" - } - - Image { source: "images/stripes.png"; fillMode: Image.Tile; anchors.fill: parent; opacity: 0.8 } - color: "#343434"; - - Rectangle { - id: buttonRow - anchors { bottom: parent.bottom; left: parent.left; right: parent.right; } - height: saveButton.height - color:"#343434" - Button { - id: saveButton - text: "Save & Exit" - //anchors { top: parent.top; left: parent.left } - anchors { top: parent.top; left: parent.left } - width: parent.width / 2 - onClicked: { - //save item - saveButton.enabled = false; - calendar.currentDate = item.startDateTime; - if (item.detail(Detail.AudibleReminder)) { - item.setDetail(audibleReminderdetail); - } - calendar.organizer.saveItem(item); - calendar.state = "DayView"; - saveButton.enabled = true; - //"item" will be removed after saved without any signal notify. - item = null; - } - } - Button { - id: deleteButton - visible: !isNewItem - text: "Delete" - anchors { top: saveButton.top; left: saveButton.right } - //anchors { top: parent.top; left: saveButton.right } - width: parent.width / 2 - onClicked: { - calendar.organizer.removeItem(item); - calendar.state = "DayView"; - } - } - } - - ListView { - anchors {top: parent.top; bottom: buttonRow.top; left: parent.left; right: parent.right } - clip: true - opacity: 0.8 - model: { - if (item == undefined) - return null; - switch (item.itemType) { - case Type.Event: - //temporary comment because recurrence is not supported yet - // return eventItemModel; - case Type.EventOccurrence: - return eventOccurrenceItemModel; - case Type.Todo: - return todoItemModel; - default: - break; - } - return null; - } - } - - //event occurrence - VisualItemModel { - id:eventOccurrenceItemModel - - Text { - width: detailsView.width - 6; - height: 30 - text: "Event" - verticalAlignment: Text.AlignVCenter - horizontalAlignment: Text.AlignHCenter - color: "White"; - font.weight: Font.Bold - } - FieldRow { - id: customLabelRow - label: "Title" - onNewValueChanged: { - item.displayLabel = customLabelRow.newValue; - } - } - DateTimeRollerRow { - id: customStartDateRow - label: "Start Time" - onRollerChanged: { - detailsView.item.startDateTime = customStartDateRow.dateTimeRoller.selectedDateTime(); - } - } - DateTimeRollerRow { - id: customEndDateRow - label: "End Time" - onRollerChanged: { - item.endDateTime = customEndDateRow.dateTimeRoller.selectedDateTime(); - } - } - CheckBoxRow { - id: customAlldayCheckBox - label: "All day" - onCheckBoxChanged: { - item.allDay = customAlldayCheckBox.newValue - } - } - FieldRow { - id: customDescriptionRow - label: "Description" - height: 80 - onNewValueChanged: { - item.description = customDescriptionRow.newValue; - } - } - FieldRow { - id: customLocationRow - label: "Location" - onNewValueChanged: { - item.location = customLocationRow.newValue; - } - } - - CheckBoxRow { - id: customRecurrenceRow - label: "Repeated" - onCheckBoxChanged: { - if (customRecurrenceRow.newValue) - item.recurrence.recurrenceRules = [rule]; - else - item.recurrence.recurrenceRules = []; - } - } - -// CheckBoxRow { -// id: customInterval -// label: "Modify Interval" -// visible: customRecurrenceRow.newValue -// onCheckBoxChanged: { -// if (customInterval.newValue) -// rule.interval = 15; -// else -// rule.interval = 1; -// } -// } - - RollerRow { - id: customFrequencyRow - label: "Frequency" - height: visible? 100 :0 - visible: customRecurrenceRow.newValue - value: rule? rule.frequency : 0 - valueSet: ["Invalid", "Daily", "Weekly", "Monthly", "Yearly"] - onRollerChanged: { - rule.frequency = customFrequencyRow.valueRoller.selectedValue(); - } - } - - CheckBoxRow { - id: customRecurrenceLimitRow - label: "Repeat limit" - visible: customRecurrenceRow.newValue - height: visible? 60 :0 - } - - DateTimeRollerRow { - id: customLimitDateRow - label: "Repeat until" - visible: customRecurrenceRow.newValue && customRecurrenceLimitRow.newValue - height: visible? 100 :0 - onRollerChanged: { - if (customLimitDateRow.visible) - rule.limit = customLimitDateRow.dateTimeRoller.selectedDateTime(); - } - onVisibleChanged: { - if (!customRecurrenceLimitRow.newValue && rule) - rule.limit = null; - } - } - - CheckBoxRow { - id: audibleReminderCheckBox - label: "Reminder" - onCheckBoxChanged: { - if (newValue) { - audibleReminderdetail = emptyAudibleReminder; - //This function will create new detail - item.addDetail(audibleReminderdetail); - } else { - var removeDetail = item.detail(Detail.AudibleReminder); - item.removeDetail(removeDetail); - } - } - } - Item { - height: visible? 220 :0 - width: detailsView.width - id: audibleReminderDataRow - visible: audibleReminderCheckBox.newValue - Text { - id: audibleReminderDataRowText - anchors.top: parent.top - width: detailsView.width; - height: 20 - text: "Reminder" - verticalAlignment: Text.AlignVCenter - horizontalAlignment: Text.AlignHCenter - color: "White"; - font.weight: Font.Bold - } - - FieldRow { - id: customAudibleReminderRepCountRow - anchors.top: audibleReminderDataRowText.bottom - label: "Repetition count" - value: audibleReminderdetail? audibleReminderdetail.repetitionCount : 0 - onNewValueChanged: { - audibleReminderdetail.repetitionCount = newValue; - } - } - FieldRow { - id: customAudibleReminderRepDelayRow - anchors.top: customAudibleReminderRepCountRow.bottom - label: "Repetition delay" - value: audibleReminderdetail? audibleReminderdetail.repetitionDelay : 0 - onNewValueChanged: { - audibleReminderdetail.repetitionDelay = newValue; - } - } - FieldRow { - id: customAudibleReminderSecBeforeStartRow - anchors.top: customAudibleReminderRepDelayRow.bottom - label: "Seconds before start" - value: audibleReminderdetail? audibleReminderdetail.secondsBeforeStart : 0 - onNewValueChanged: { - audibleReminderdetail.secondsBeforeStart = newValue; - } - } - FieldRow { - anchors.top: customAudibleReminderSecBeforeStartRow.bottom - label: "Data url" - value: audibleReminderdetail? audibleReminderdetail.dataUrl : "" - onNewValueChanged: { - audibleReminderdetail.dataUrl = newValue; - } - } - } - - CollectionRoller { - id: customCollectionRow - onCurrentIndexChanged: { - item.collectionId = organizer.collections[currentIndex].collectionId; - } - } - - RollerRow { - id: customRsvpParticipationStatusRow - valueRoller.clip: true // clipping to roller-component.. - label: "Partic. status" - valueSet: ["Unknown", "Accepted", "Declined", "Tentative", "Delegated", "InProcess", "Completed"] - onCurrentIndexChanged: { - // rsvp-detail included only if modified on the view - if (EventAttendee.StatusUnknown != customRsvpParticipationStatusRow.currentIndex) { - var rsvpDetail; - if (item.details(Detail.EventRsvp).length) { - rsvpDetail = item.detail(Detail.EventRsvp); - } else { - rsvpDetail = Qt.createQmlObject("import QtOrganizer 5.0; EventRsvp{}", organizer); - } - rsvpDetail.participationStatus = customRsvpParticipationStatusRow.currentIndex; - item.setDetail(rsvpDetail); - } else if (item.details(Detail.EventRsvp).length) { - item.removeDetail(item.detail(Detail.EventRsvp)); - } - } - } - - Column { - id : tagColumn - Repeater { - model: item? (item.itemDetails? item.details(Detail.Tag) : 0) : 0 - Rectangle { - width: detailsView.width; - height: childrenRect.height - Text { - width: detailsView.width - text: "Tag " + index + " : " + modelData.tag; - } - Button { - text: "remove" - width: detailsView.width / 6 - anchors.right: parent.right - onClicked: { - item.removeDetail(modelData); - } - } - } - } - } - FieldRow { - id: tagRow - anchors { top: tagColumn.bottom; margins: height / 3 } - label: "New Tag" - value: "NewTag" - } - Row { - anchors.horizontalCenter: tagRow.horizontalCenter - Button { - text: "Add tag" - width: detailsView.width / 4 - onClicked: { - if (tagRow.newValue) { - var tag = Qt.createQmlObject("import QtOrganizer 5.0;Tag {}", organizer); - tag.tag = tagRow.newValue; - item.setDetail(tag); - } - } - } - Button { - text: "Birthday" - width: detailsView.width / 4 - onClicked: { - var tagList = item.details(Detail.Tag) - var found = false; - for (var i=0; i< tagList.length; i++) { - if (tagList[i].tag == "ANNIVERSARY") - found = true; - } - if (!found) { - var tag = Qt.createQmlObject("import QtOrganizer 5.0;Tag {}", organizer); - tag.tag = "ANNIVERSARY"; - item.setDetail(tag); - } - } - } - } - Column { - id: attendeeColumn - Repeater { - model: item? item.attendees : 0 - Rectangle { - width: detailsView.width; - height: childrenRect.height - Text { - width: detailsView.width - text: "attendee " + index + " : " + name + "," + emailAddress; - } - Button { - text: "remove" - width: detailsView.width / 6 - height: parent - anchors.right: parent.right - onClicked: { - item.removeDetail(modelData); - } - } - } - } - } - Button { - text: "Add Attendee" - width: detailsView.width / 2 - anchors { - horizontalCenter: tagRow.horizontalCenter; - top: attendeeColumn.bottom; - margins: height / 3 - } - onClicked: { - attendeeDetailsView.item = item; - calendar.state = "AttendeeDetailsView"; - } - } - } - - //todo - VisualItemModel { - id:todoItemModel - Text { - width: detailsView.width - 6; - height: 30 - text: "ToDo" - verticalAlignment: Text.AlignVCenter - horizontalAlignment: Text.AlignHCenter - color: "White"; - font.weight: Font.Bold - } - FieldRow { - id: todoCustomLabelRow - label: "Title" - onNewValueChanged: { - item.displayLabel = todoCustomLabelRow.newValue; - } - } - DateTimeRollerRow { - id: todoCustomDueDateRow - label: "Due Time" - onRollerChanged: { - if (item.itemType == Type.Todo) { - var startDate = todoCustomDueDateRow.dateTimeRoller.selectedDateTime(); - startDate.setHours(startDate.getHours()-1); - item.startDateTime = startDate; - item.dueDateTime = todoCustomDueDateRow.dateTimeRoller.selectedDateTime(); - } - } - } - FieldRow { - id: todoCustomDescriptionRow - label: "Description" - height: 150 - onNewValueChanged: { - item.description = todoCustomDescriptionRow.newValue; - } - } - RollerRow { - id: todoCustomPriorityRow - label: "Priority" - valueSet: ["Unknown", "Highest", "ExtremelyHigh", "VeryHigh", "High", "Medium", "Low", "VeryLow", "ExtremelyLow", "Lowest"] - onRollerChanged: { - item.priority = todoCustomPriorityRow.valueRoller.selectedValue(); - } - } - CollectionRoller { - id: todoCollectionRow - onCurrentIndexChanged: { - item.collectionId = organizer.collections[currentIndex].collectionId; - } - } - } -} diff --git a/examples/qmlorganizer/contents/FieldRow.qml b/examples/qmlorganizer/contents/FieldRow.qml deleted file mode 100644 index 6b9495fb2..000000000 --- a/examples/qmlorganizer/contents/FieldRow.qml +++ /dev/null @@ -1,82 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the QtDeclarative module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** This file may be used under the terms of the GNU Lesser General Public -** License version 2.1 as published by the Free Software Foundation and -** appearing in the file LICENSE.LGPL included in the packaging of this -** file. Please review the following information to ensure the GNU Lesser -** General Public License version 2.1 requirements will be met: -** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -import QtQuick 2.0 - -Item { - property alias label: nameField.text - property variant value - property alias newValue: textEdit.text - - height: 50 - width: detailsView.width - - Text { - id: nameField - width: parent.width * 0.4 - anchors { left: parent.left; margins: 3 } - font.bold: true - color: "white" - } - Rectangle { - id: editorField - anchors { left: nameField.right; right: parent.right; margins: 3 } - height: parent.height - nameField.height; - color: textEdit.activeFocus ? "white" : "lightgray"; - border { width: 3; color: "white" } - radius: 5 - opacity: 0.95 - TextEdit { - id: textEdit - anchors { fill: parent; margins: 3} - width: parent.width - text: value? value : "" - wrapMode: TextEdit.Wrap - } - } - - function setValue(initialValue) { - if (textEdit.text != initialValue) { - textEdit.text = initialValue; - } - } - -} diff --git a/examples/qmlorganizer/contents/InfoBar.qml b/examples/qmlorganizer/contents/InfoBar.qml deleted file mode 100644 index 9ee6b033b..000000000 --- a/examples/qmlorganizer/contents/InfoBar.qml +++ /dev/null @@ -1,76 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the examples of the Qt Organizer module. -** -** $QT_BEGIN_LICENSE:BSD$ -** 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 Nokia Corporation and its Subsidiary(-ies) 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.0 - -Rectangle { - Rectangle { - id: frameRateCounter - anchors.fill: parent - property int dummy: 0 - property int fpsCount: 0 - color: "black" - - Text { - id: fpsText - color: "white" - anchors.centerIn: parent - } - - NumberAnimation on dummy { - duration: 500 - from: 0 - to: 10000 - loops: Animation.Infinite - } - onDummyChanged: ++fpsCount; - - Timer { - interval: 1000 - repeat: true - running: true - onTriggered: { - fpsText.text = "Frame rate: " + parent.fpsCount + " fps"; - parent.fpsCount = 0; - } - } - } -} - diff --git a/examples/qmlorganizer/contents/ItemView.qml b/examples/qmlorganizer/contents/ItemView.qml deleted file mode 100644 index b2ed948f7..000000000 --- a/examples/qmlorganizer/contents/ItemView.qml +++ /dev/null @@ -1,81 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the examples of the Qt Mobility Components. -** -** $QT_BEGIN_LICENSE:BSD$ -** 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 Nokia Corporation and its Subsidiary(-ies) 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.0 - -import QtOrganizer 5.0 - -Rectangle -{ - id:itemView - property string itemId - property OrganizerItem item - property int startTime - property int endTime - onItemIdChanged :{ - if (itemId != "") { - item = calendar.organizer.item(itemId); - startTime = item.itemStartTime.getHours() * 60 + item.itemStartTime.getMinutes(); - if (item.itemType == Type.Event) - endTime = item.itemEndTime.getHours() * 60 + item.itemEndTime.getMinutes(); - else - endTime = startTime; - itemLabel.text = item.displayLabel; - itemDesc.text = item.description; - } - } - radius: 5 - color: Type.Event == item.itemType ? "steelblue" : "green" - - Column { - spacing: 2 - Text { id: itemLabel; color: "yellow"; wrapMode: Text.Wrap; font.bold: true; horizontalAlignment: Text.AlignHCenter; style: Text.Raised; verticalAlignment: Text.AlignVCenter; font.pointSize: 12 } - Text { id: itemDesc; color: "white"; wrapMode: Text.Wrap; font.pointSize: 10} - } - - MouseArea { - anchors.fill: parent - onClicked : { - detailsView.itemId = itemId - detailsView.savedItem = true - calendar.state = "DetailsView" - } - } -} diff --git a/examples/qmlorganizer/contents/MediaButton.qml b/examples/qmlorganizer/contents/MediaButton.qml deleted file mode 100644 index cdeb24c24..000000000 --- a/examples/qmlorganizer/contents/MediaButton.qml +++ /dev/null @@ -1,76 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the examples of the Qt Mobility Components. -** -** $QT_BEGIN_LICENSE:BSD$ -** 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 Nokia Corporation and its Subsidiary(-ies) 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.0 - -Item { - property string text - signal clicked - - id: container - Image { - id: normal - source: "images/button.png" - } - Image { - id: pressed - opacity: 0 - source: "images/button-pressed.png" - } - MouseArea { - id: clickRegion - anchors.fill: normal - onClicked: { container.clicked();} - } - Text { - font.bold: true - color: "white" - anchors.centerIn: normal - text: container.text - } - width: normal.width - height: childrenRect.height - - states: State { - name: "Pressed" - when: clickRegion.pressed == true - PropertyChanges { target: pressed; opacity: 1 } - } -} diff --git a/examples/qmlorganizer/contents/MenuBar.qml b/examples/qmlorganizer/contents/MenuBar.qml deleted file mode 100644 index 1d4c8bcb9..000000000 --- a/examples/qmlorganizer/contents/MenuBar.qml +++ /dev/null @@ -1,75 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the examples of the Qt Mobility Components. -** -** $QT_BEGIN_LICENSE:BSD$ -** 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 Nokia Corporation and its Subsidiary(-ies) 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.0 - -Rectangle { - id: menuBar; - - property string info; - BorderImage { source: "images/titlebar.sci"; width: parent.width; height: parent.height + 14; y: -7 } - gradient: Gradient { - GradientStop { position: 0.0; color: activePalette.dark } - GradientStop { position: 1.0; color: Qt.darker(activePalette.dark); } - } - Row { - spacing: 0 - Image { - id: quitButton - height: monthButton.height - width:height - source: "images/quit.png" - MouseArea { - anchors.fill: parent - onClicked: Qt.quit() - } - } - - Button { id: dayButton; text: "Day";onClicked: calendar.state="DayView";} - Button { id: weekButton; text: "Week";onClicked: calendar.state="WeekView";} - Button { id: monthButton; text: "Month"; onClicked: calendar.state="MonthView";} - Button { id: timelineButton; text: "Timeline";onClicked: calendar.state="TimelineView";} - Button { id: collectionButton; text: "Coll.";onClicked: calendar.state="CollectionManagerView";} - Button { id: todoButton; text: "Todos";onClicked: calendar.state="TodoView"; } - - Text { color: "#f5f210";text:info ; font.bold: true; verticalAlignment: Text.AlignVCenter; style: Text.Sunken;font.pointSize: 6} - } -} - diff --git a/examples/qmlorganizer/contents/MonthView.qml b/examples/qmlorganizer/contents/MonthView.qml deleted file mode 100644 index bd43a5778..000000000 --- a/examples/qmlorganizer/contents/MonthView.qml +++ /dev/null @@ -1,132 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the examples of the Qt Mobility Components. -** -** $QT_BEGIN_LICENSE:BSD$ -** 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 Nokia Corporation and its Subsidiary(-ies) 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.0 -import "month.js" as Month -import QtOrganizer 5.0 - -Rectangle { - id:monthView - property int month - property int year - property date startDay:new Date(year, month, 1) - property int startWeekday:startDay.getDay() - property var containItems: calendar.organizer.items ? calendar.organizer.containsItems(Month.dateOfThisDay(startDay, 1 - startWeekday), Month.dateOfThisDay(startDay, 43 - startWeekday), 86400) : undefined - anchors.fill: parent - - Grid { - id:container - anchors.fill: parent - columns: 7 - Repeater { - model:["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"] - Rectangle { width: container.width / 7 - height: 35 - color: "lightgray" - border.color: "#3f4947" - Text { text: modelData - font.bold: true - verticalAlignment: Text.AlignVCenter - style: Text.Sunken - styleColor: "#1365f3" - font.pointSize: 11 - anchors.centerIn: parent - } - MouseArea { - anchors.fill: parent - onClicked: { - calendar.state = "WeekView"; - } - } - } - } - - Repeater { model: 42 - Rectangle { - id:dayContainer - radius:10 - width: container.width / 7 - height: (container.height - 35) / 6 - color: { - if (Month.isToday(startDay, index - startWeekday +1)) { - dayContainer.radius= 20 - return "lightsteelblue"; - } - else if (monthView.containItems[index]) { - dayContainer.radius= 20 - return "yellow"; - } - else { - dayContainer.radius= 0 - return Month.getColorOfDay(startDay, index - startWeekday +1); - } - } - Text { - color: "#6ba24b"; - text: Month.getDayOfMonth(startDay, index - startWeekday +1) - font.bold: true - style: Text.Raised - font.pointSize: 10 - anchors.centerIn: parent - } - - MouseArea { - hoverEnabled:true - anchors.fill: parent - onEntered: { - dayContainer.border.color = "#1365f3"; // Set a dark blue surrounding border... - dayContainer.border.width = 3; - } - onExited: { - dayContainer.border.color = "#ffffff"; // Must reset the border and turn off else becomes graphics artifact - } - onReleased: { - dayContainer.border.color = "#ffffff"; // Must reset the border and turn off else becomes graphics artifact - } - onClicked: { - dayContainer.border.color = "#ffffff"; // Must reset the border and turn off else becomes graphics artifact - calendar.currentDate = new Date(calendar.year, calendar.month, index - startWeekday +1); - calendar.state = "DayView"; - } - } - } - } - } -} diff --git a/examples/qmlorganizer/contents/RollerRow.qml b/examples/qmlorganizer/contents/RollerRow.qml deleted file mode 100644 index 8346979ef..000000000 --- a/examples/qmlorganizer/contents/RollerRow.qml +++ /dev/null @@ -1,106 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the QtDeclarative module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** This file may be used under the terms of the GNU Lesser General Public -** License version 2.1 as published by the Free Software Foundation and -** appearing in the file LICENSE.LGPL included in the packaging of this -** file. Please review the following information to ensure the GNU Lesser -** General Public License version 2.1 requirements will be met: -** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -import QtQuick 2.0 -import "datetimerollercontents" - -Item { - property variant value - property variant valueSet - property alias label: nameField.text - property alias valueRoller : valueRoller - property alias currentIndex : valueSpinner.currentIndex - - signal rollerChanged - - height: 100 - width: detailsView.width - - onValueChanged: { - valueSpinner.currentIndex = value - } - - Text { - id: nameField - width: parent.width * 0.4 - anchors { left: parent.left; margins: 3 } - font.bold: true - color: "white" - } - - Rectangle { - id: valueRoller - - width: roller.width - height: roller.height - anchors { left: nameField.right; margins: 3} - color: "white"; - border { width: 3; color: "white" } - radius: 5 - - Grid { - id: roller - spacing: 2 - columns: 1 - Spinner { - id: valueSpinner - width: 150 - model: valueSet.length //10 - delegate: Text { text: valueRoller.valueName(index); } - onCurrentIndexChanged: rollerChanged() - } - } - - function valueName(valueIndex) { - if (valueSet.length > valueIndex) - return valueSet[valueIndex]; - else - return valueIndex; - } - - // component API - - // use this to read selected datetime - function selectedValue() { - return valueSpinner.currentIndex; - } - } -} diff --git a/examples/qmlorganizer/contents/ScrollBar.qml b/examples/qmlorganizer/contents/ScrollBar.qml deleted file mode 100644 index 96cb9fc86..000000000 --- a/examples/qmlorganizer/contents/ScrollBar.qml +++ /dev/null @@ -1,74 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the examples of the Qt Mobility Components. -** -** $QT_BEGIN_LICENSE:BSD$ -** 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 Nokia Corporation and its Subsidiary(-ies) 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.0 - -Item { - id: scrollBar - // The properties that define the scrollbar's state. - // position and pageSize are in the range 0.0 - 1.0. They are relative to the - // height of the page, i.e. a pageSize of 0.5 means that you can see 50% - // of the height of the view. - // orientation can be either 'Vertical' or 'Horizontal' - property real position - property real pageSize - property var orientation : "Vertical" - property alias bgColor: background.color - property alias fgColor: thumb.color - - // A light, semi-transparent background - Rectangle { - id: background - radius: orientation == 'Vertical' ? (width/2 - 1) : (height/2 - 1) - color: "white"; opacity: 0.3 - anchors.fill: parent - } - // Size the bar to the required size, depending upon the orientation. - Rectangle { - id: thumb - opacity: 0.7 - color: "black" - radius: orientation == 'Vertical' ? (width/2 - 1) : (height/2 - 1) - x: orientation == 'Vertical' ? 1 : (scrollBar.position * (scrollBar.width-2) + 1) - y: orientation == 'Vertical' ? (scrollBar.position * (scrollBar.height-2) + 1) : 1 - width: orientation == 'Vertical' ? (parent.width-2) : (scrollBar.pageSize * (scrollBar.width-2)) - height: orientation == 'Vertical' ? (scrollBar.pageSize * (scrollBar.height-2)) : (parent.height-2) - } -} diff --git a/examples/qmlorganizer/contents/SelectionView.qml b/examples/qmlorganizer/contents/SelectionView.qml deleted file mode 100644 index 4773cd339..000000000 --- a/examples/qmlorganizer/contents/SelectionView.qml +++ /dev/null @@ -1,66 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the examples of the Qt Mobility Components. -** -** $QT_BEGIN_LICENSE:BSD$ -** 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 Nokia Corporation and its Subsidiary(-ies) 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.0 - -Rectangle { - id: selectionView - - property alias title: title.text - property alias model: container.model - - height: 150 - width: calendar.width - anchors.centerIn: parent - opacity: 0 - - Column { - spacing: 2 - anchors { horizontalCenter: parent.horizontalCenter; verticalCenter: parent.verticalCenter } - - Text { - id: title - font { pointSize: 15; weight: Font.Bold } - } - Repeater { - id: container - } - } -} diff --git a/examples/qmlorganizer/contents/StatusBar.qml b/examples/qmlorganizer/contents/StatusBar.qml deleted file mode 100644 index c46575d4b..000000000 --- a/examples/qmlorganizer/contents/StatusBar.qml +++ /dev/null @@ -1,102 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the examples of the Qt Mobility Components. -** -** $QT_BEGIN_LICENSE:BSD$ -** 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 Nokia Corporation and its Subsidiary(-ies) 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.0 - -Item { - id: statusbar - property string status - signal leftClicked - signal rightClicked - signal addClicked - signal managerChangeClicked - - BorderImage { source: "images/titlebar.sci"; width: parent.width; height: parent.height + 14; y: -7 } - - Button {//add new item button - id: addButton - text: "+" - anchors.left: parent.left; anchors.leftMargin: 2; y: 3; width: 30; height: 32 - onClicked: statusbar.addClicked() - } - - Button { - id: leftButton - text: "<" - anchors.left: addButton.right; anchors.leftMargin: 2; y: 3; width: 30; height: 32 - onClicked: statusbar.leftClicked() - } - Text { - id:statusText - color: "#ecc70a" - text:status - font.family: "Monospace" - font.bold: true - verticalAlignment: Text.AlignVCenter - horizontalAlignment: Text.AlignHCenter - font.pointSize: 6 - anchors.left: leftButton.right - anchors.leftMargin: 2 - anchors.right: rightButton.left - anchors.rightMargin: 2 - y: 5 - - } - - Button { - id: rightButton - text: ">" - anchors.right: todayButton.left; anchors.rightMargin: 2; y: 3; width: 30; height: 32 - onClicked: statusbar.rightClicked() - } - - Button { - //change the current Date to Today - id: todayButton; - anchors.right: parent.right; anchors.leftMargin: 2; y: 3; width: 50; height: 32 - text: "Today"; - onClicked: { - var tempdate = new Date(); - calendar.currentDate = new Date(tempdate.getFullYear(), tempdate.getMonth(), tempdate.getDate()); - } - } - - -} diff --git a/examples/qmlorganizer/contents/TimelineView.qml b/examples/qmlorganizer/contents/TimelineView.qml deleted file mode 100644 index 6312ce16d..000000000 --- a/examples/qmlorganizer/contents/TimelineView.qml +++ /dev/null @@ -1,346 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the examples of the Qt Mobility Components. -** -** $QT_BEGIN_LICENSE:BSD$ -** 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 Nokia Corporation and its Subsidiary(-ies) 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.0 -import QtOrganizer 5.0 -import "timeline.js" as Timeline - -Rectangle { - id : timelineView - anchors.fill : parent - opacity : parent.opacity - property int year:calendar.year - property int month:calendar.month - property int day:calendar.day - Connections { - target: calendar - onCurrentDateChanged : { - dayList.currentIndex = day - 1; - monthList.currentIndex = month; - yearList.currentIndex = year - yearModel.start; - } - } - - //Day view - Rectangle { - id: dayView - color: "#9eaf30" - gradient: Gradient { - GradientStop { - position: 0.00; - color: "#9eaf30"; - } - GradientStop { - position: 0.89; - color: "#ffffff"; - } - } - anchors.right : parent.right - anchors.left : monthView.right - anchors.top : parent.top - anchors.bottom : parent.bottom - opacity : parent.opacity - - ListView { - id : dayList - model : dayModel - anchors.fill: parent - clip: true - focus: true - opacity : parent.opacity - - delegate : dayDelegate - highlight: dayHighlight - preferredHighlightBegin: dayList.height * 0.5 - preferredHighlightEnd: preferredHighlightBegin - highlightFollowsCurrentItem : true - highlightMoveSpeed : 2000 - keyNavigationWraps : true - - onCurrentIndexChanged : { - if (timelineView.opacity > 0) { - calendar.currentDate = new Date(timelineView.year, timelineView.month, currentIndex + 1); - monthList.currentIndex = timelineView.month; - currentIndex = timelineView.day - 1; - } - } - - } - - Component { - id: dayHighlight - Rectangle { - width: dayList.width; - height: dayList.height /7 ; - color: "lightsteelblue" ;radius: 5 - } - } - - Component { - id: dayDelegate - Item { - width : dayList.width - height : childrenRect.height - Column { - Rectangle { - height : 1 - width : dayList.width - color : "black" - } - Text { - text: day - } - Repeater { - focus: true - model:calendar.organizer.items? calendar.organizer.itemsByTimePeriod(new Date(timelineView.year,timelineView.month, index + 1), - new Date(timelineView.year,timelineView.month, index + 2)) - : 0 - - Text { - clip: true - focus: true - text: "<a href=\"#\">" + modelData.displayLabel + "</a>" - onLinkActivated: { - detailsView.isNewItem = false - detailsView.item = modelData; - if (detailsView.item.itemType == Type.EventOccurrence || detailsView.item.itemType == Type.TodoOccurrence) - calendar.state = "OccurrenceDialogView"; - else - calendar.state = "DetailsView"; - } - } - } - } - } - } - - ListModel { - id : dayModel - ListElement {day : "1"} - ListElement {day : "2"} - ListElement {day : "3"} - ListElement {day : "4"} - ListElement {day : "5"} - ListElement {day : "6"} - ListElement {day : "7"} - ListElement {day : "8"} - ListElement {day : "9"} - ListElement {day : "10"} - ListElement {day : "11"} - ListElement {day : "12"} - ListElement {day : "13"} - ListElement {day : "14"} - ListElement {day : "15"} - ListElement {day : "16"} - ListElement {day : "17"} - ListElement {day : "18"} - ListElement {day : "19"} - ListElement {day : "20"} - ListElement {day : "21"} - ListElement {day : "22"} - ListElement {day : "23"} - ListElement {day : "24"} - ListElement {day : "25"} - ListElement {day : "26"} - ListElement {day : "27"} - ListElement {day : "28"} - ListElement {day : "29"} - ListElement {day : "30"} - ListElement {day : "31"} - } - } - - //Month view - Rectangle { - id:monthView - color : "lightgray" - width : 30 - anchors.left : yearView.right - anchors.top : parent.top - anchors.bottom : parent.bottom - - ListView { - id : monthList - model : monthModel - anchors.fill: parent - clip: true - delegate : monthDelegate - highlight: monthHighlight - preferredHighlightBegin: monthList.height * 0.5 - preferredHighlightEnd: preferredHighlightBegin - highlightFollowsCurrentItem : true - highlightMoveSpeed : 1000 - Component.onCompleted : { - var now = new Date(); - var month = now.getMonth(); - monthList.currentIndex = month; - var d = Date.parse("Feb 31, 2010"); - } - onCurrentIndexChanged : { - if (timelineView.opacity > 0) { - calendar.currentDate = new Date(timelineView.year, currentIndex, timelineView.day); - currentIndex = timelineView.month; - dayList.currentIndex = timelineView.day - 1; - } - } - } - - Component { - id: monthHighlight - Rectangle { - width: monthList.width; height: monthList.height / 12 ; color: "lightsteelblue" ;radius: 5 - } - } - - Component { - id: monthDelegate - Item { - width : monthList.width - height : monthList.height / 12 - Column { - Rectangle { - height : 1 - width : monthList.width - color : "black" - } - Text { - text: month - } - } - MouseArea { - anchors.fill: parent - onClicked : monthList.currentIndex = index - } - } - } - - ListModel { - id : monthModel - ListElement {month : "Jan"} - ListElement {month : "Feb"} - ListElement {month : "Mar"} - ListElement {month : "Apr"} - ListElement {month : "May"} - ListElement {month : "Jun"} - ListElement {month : "Jul"} - ListElement {month : "Aug"} - ListElement {month : "Sep"} - ListElement {month : "Oct"} - ListElement {month : "Nov"} - ListElement {month : "Dec"} - } - } - - //Year view - Rectangle { - id:yearView - color : "gray" - anchors.top : parent.top - anchors.bottom : parent.bottom - anchors.left : parent.left - width : 50 - - - Component { - id: yearHighlight - Rectangle { - width: yearList.width; height: yearList.height / 10; color: "lightsteelblue" ;radius: 5 - } - } - - Component { - id: yearDelegate - - Item { - width : yearList.width - height : yearList.height / 10 - Column { - Rectangle { - height : 1 - width : yearList.width - color : "black" - } - Text { - text: year - } - } - MouseArea { - anchors.fill: parent - onClicked : yearList.currentIndex = index - } - } - } - - - ListView { - id : yearList - model : yearModel - delegate : yearDelegate - anchors.fill: parent - clip: true - highlight: yearHighlight - - preferredHighlightBegin: yearList.height * 0.5 - preferredHighlightEnd: preferredHighlightBegin - highlightRangeMode: "StrictlyEnforceRange" - highlightFollowsCurrentItem : true - - Component.onCompleted: Timeline.extendYearModel(true); - onCurrentIndexChanged: { - Timeline.extendYearModel(false); - if (timelineView.opacity > 0) { - calendar.currentDate = new Date(yearModel.start + currentIndex, timelineView.month, timelineView.day); - monthList.currentIndex = timelineView.month; - dayList.currentIndex = timelineView.day - 1; - } - } - - ListModel { - id : yearModel - property int start : 0; - property int end : 0; - - ListElement { - year : 0; - } - } - } - } -} diff --git a/examples/qmlorganizer/contents/TodoView.qml b/examples/qmlorganizer/contents/TodoView.qml deleted file mode 100644 index 97fb8ce79..000000000 --- a/examples/qmlorganizer/contents/TodoView.qml +++ /dev/null @@ -1,74 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the Qt Mobility Components. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** This file may be used under the terms of the GNU Lesser General Public -** License version 2.1 as published by the Free Software Foundation and -** appearing in the file LICENSE.LGPL included in the packaging of this -** file. Please review the following information to ensure the GNU Lesser -** General Public License version 2.1 requirements will be met: -** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -import QtQuick 2.0 -import QtOrganizer 5.0 - -Item { - anchors.centerIn: parent - opacity: 0 - width: calendar.width; - height: calendar.height - menuBar.height - statusBar.height - 50; - - Column { - spacing: 2 - width: parent.width; height: parent.height; - - Text { - text: "Todos:" - height: 30 - anchors { horizontalCenter: parent.horizontalCenter } - color: "white" - font { pointSize: 15; weight: Font.Bold } - } - - ListView { - width: parent.width; height: parent.height; - model: organizer.items - clip: true - delegate: Text { - anchors { horizontalCenter: parent.horizontalCenter } - color: "white" - text: "- " + displayLabel + " -" - } - } - } -} diff --git a/examples/qmlorganizer/contents/WeekView.qml b/examples/qmlorganizer/contents/WeekView.qml deleted file mode 100644 index e8bf7c598..000000000 --- a/examples/qmlorganizer/contents/WeekView.qml +++ /dev/null @@ -1,126 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the examples of the Qt Mobility Components. -** -** $QT_BEGIN_LICENSE:BSD$ -** 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 Nokia Corporation and its Subsidiary(-ies) 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.0 -import QtOrganizer 5.0 - -Rectangle -{ - id:weekView - - anchors.fill: parent - ListView { - id : dayList - anchors.fill: parent - clip: true - focus: true - opacity : parent.opacity - preferredHighlightBegin: dayList.height * 0.5 - preferredHighlightEnd: preferredHighlightBegin - highlightFollowsCurrentItem : true - highlightMoveSpeed : 2000 - keyNavigationWraps : true - Component.onCompleted : positionViewAtIndex(currentIndex, ListView.Beginning) - onOpacityChanged: { - currentIndex = calendar.weekDay; - } - - model : ListModel { - ListElement {day : "Sunday"} - ListElement {day : "Monday"} - ListElement {day : "Tuesday"} - ListElement {day : "Wednesday"} - ListElement {day : "Thursday"} - ListElement {day : "Friday"} - ListElement {day : "Saturday"} - } - - delegate: dayDelegate - - Component { - id: dayDelegate - Item { - width : dayList.width - height : childrenRect.height - Column { - Rectangle { - height : 1 - width : dayList.width - color : "black" - } - Text { - text: day - } - Repeater { - focus: true - model: calendar.organizer.items? calendar.organizer.itemsByTimePeriod(new Date(calendar.year,calendar.month, index - calendar.weekDay + calendar.day), - new Date(calendar.year,calendar.month, index - calendar.weekDay + calendar.day + 1)) - : 0 - Text { - clip: true - focus: true - text: "a <a href=\"#\">" + modelData.displayLabel + "</a>" - onLinkActivated: { - detailsView.isNewItem = false; - detailsView.item = modelData; - if (detailsView.item.itemType == Type.EventOccurrence || detailsView.item.itemType == Type.TodoOccurrence) - calendar.state = "OccurrenceDialogView"; - else - calendar.state = "DetailsView"; - } - } - } - } - } - } - - - highlight: Component { - Rectangle { - width: dayList.width - height: dayList.height /7 - color: "lightsteelblue" - radius: 5 - } - } - - } -} - diff --git a/examples/qmlorganizer/contents/datetimerollercontents/Spinner.qml b/examples/qmlorganizer/contents/datetimerollercontents/Spinner.qml deleted file mode 100755 index 34e419d7d..000000000 --- a/examples/qmlorganizer/contents/datetimerollercontents/Spinner.qml +++ /dev/null @@ -1,74 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the examples of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:BSD$ -** 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 Nokia Corporation and its Subsidiary(-ies) 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.0 - -Image { - property alias model: view.model - property alias delegate: view.delegate - property alias currentIndex: view.currentIndex - property real itemHeight: 15 - - source: "spinner-bg.png" - clip: true - focus: true - width: 30; height: 60 - - PathView { - id: view - anchors.fill: parent - clip: true - - pathItemCount: height/itemHeight - preferredHighlightBegin: 0.5 - preferredHighlightEnd: 0.5 - //highlight: Rectangle { color: "lightblue"; width: view.width; height: itemHeight+4; } - highlight: Image { source: "spinner-select.png"; width: view.width; height: itemHeight+4 } - dragMargin: view.width/2 - - path: Path { - startX: view.width/2; startY: -itemHeight/2 - PathLine { x: view.width/2; y: view.pathItemCount*itemHeight + itemHeight } - } - } - - Keys.onDownPressed: view.incrementCurrentIndex() - Keys.onUpPressed: view.decrementCurrentIndex() -} diff --git a/examples/qmlorganizer/contents/datetimerollercontents/Title.qml b/examples/qmlorganizer/contents/datetimerollercontents/Title.qml deleted file mode 100644 index fa190d0bb..000000000 --- a/examples/qmlorganizer/contents/datetimerollercontents/Title.qml +++ /dev/null @@ -1,55 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the QtDeclarative module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** This file may be used under the terms of the GNU Lesser General Public -** License version 2.1 as published by the Free Software Foundation and -** appearing in the file LICENSE.LGPL included in the packaging of this -** file. Please review the following information to ensure the GNU Lesser -** General Public License version 2.1 requirements will be met: -** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -import QtQuick 2.0 - -Rectangle { - height: 10 - property alias label: text.text - color: "black" - radius: 3 - Text { - id: text - anchors.centerIn: parent - font.pixelSize: 10 - color: "white" - } -} diff --git a/examples/qmlorganizer/contents/datetimerollercontents/spinner-bg.png b/examples/qmlorganizer/contents/datetimerollercontents/spinner-bg.png Binary files differdeleted file mode 100755 index b3556f1f9..000000000 --- a/examples/qmlorganizer/contents/datetimerollercontents/spinner-bg.png +++ /dev/null diff --git a/examples/qmlorganizer/contents/datetimerollercontents/spinner-select.png b/examples/qmlorganizer/contents/datetimerollercontents/spinner-select.png Binary files differdeleted file mode 100755 index 95a17a1fe..000000000 --- a/examples/qmlorganizer/contents/datetimerollercontents/spinner-select.png +++ /dev/null diff --git a/examples/qmlorganizer/contents/images/button-pressed.png b/examples/qmlorganizer/contents/images/button-pressed.png Binary files differdeleted file mode 100644 index e434d327f..000000000 --- a/examples/qmlorganizer/contents/images/button-pressed.png +++ /dev/null diff --git a/examples/qmlorganizer/contents/images/button.png b/examples/qmlorganizer/contents/images/button.png Binary files differdeleted file mode 100644 index 56a63ce64..000000000 --- a/examples/qmlorganizer/contents/images/button.png +++ /dev/null diff --git a/examples/qmlorganizer/contents/images/default.svg b/examples/qmlorganizer/contents/images/default.svg deleted file mode 100644 index 248199cc4..000000000 --- a/examples/qmlorganizer/contents/images/default.svg +++ /dev/null @@ -1,82 +0,0 @@ -<?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:xlink="http://www.w3.org/1999/xlink" width="48px" height="48px" id="svg1306"> - <defs id="defs1308"> - <linearGradient id="linearGradient4083"> - <stop id="stop4085" offset="0" stop-color="#ffffff" stop-opacity="0"/> - <stop offset="0.75" id="stop4089" stop-color="#ffffff" stop-opacity="0"/> - <stop id="stop4087" offset="1" stop-color="#ffffff" stop-opacity="1"/> - </linearGradient> - <linearGradient id="linearGradient4032"> - <stop id="stop4034" offset="0" stop-color="#fff7c2" stop-opacity="0.63829786"/> - <stop offset="0.59394139" id="stop4036" stop-color="#fcaf3e" stop-opacity="0.18348624"/> - <stop id="stop4038" offset="0.83850551" stop-color="#fcaf3e" stop-opacity="0.50458717"/> - <stop id="stop4040" offset="1" stop-color="#fcaf3e" stop-opacity="1"/> - </linearGradient> - <linearGradient id="linearGradient4026"> - <stop id="stop4028" offset="0" stop-color="#fff9c6" stop-opacity="1"/> - <stop offset="0.54166669" id="stop4042" stop-color="#fff28c" stop-opacity="1"/> - <stop id="stop4030" offset="1" stop-color="#ffea85" stop-opacity="1"/> - </linearGradient> - <linearGradient xlink:href="#linearGradient4026" id="linearGradient3168" gradientUnits="userSpaceOnUse" x1="-28.968945" y1="-25.326815" x2="-37.19698" y2="-9.5590506"/> - <radialGradient xlink:href="#linearGradient4032" id="radialGradient4020" cx="-33.519073" cy="-22.113297" fx="-33.519073" fy="-22.113297" r="9.5" gradientUnits="userSpaceOnUse" gradientTransform="matrix(0.487739,1.292402,-1.10267,0.497242,-41.77393,32.41492)"/> - <radialGradient xlink:href="#linearGradient4083" id="radialGradient4081" cx="23.99999" cy="23.381506" fx="23.99999" fy="23.381506" r="19.141981" gradientTransform="matrix(1.006701,2.235326e-16,-2.23715e-16,1.007522,-0.160816,0.426981)" gradientUnits="userSpaceOnUse"/> - </defs> - - <metadata id="metadata1311"> - <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>weather-clear</dc:title> - <dc:date>January 2006</dc:date> - <dc:creator> - <cc:Agent> - <dc:title>Ryan Collier (pseudo)</dc:title> - </cc:Agent> - </dc:creator> - <dc:publisher> - <cc:Agent> - <dc:title>http://www.tango-project.org</dc:title> - </cc:Agent> - </dc:publisher> - <dc:source>http://www.pseudocode.org</dc:source> - <dc:subject> - <rdf:Bag> - <rdf:li>weather</rdf:li> - <rdf:li>applet</rdf:li> - <rdf:li>notification</rdf:li> - </rdf:Bag> - </dc:subject> - <cc:license rdf:resource="http://creativecommons.org/licenses/by-sa/2.0/"/> - <dc:contributor> - <cc:Agent> - <dc:title>Garrett LeSage</dc:title> - </cc:Agent> - </dc:contributor> - </cc:Work> - <cc:License rdf:about="http://creativecommons.org/licenses/by-sa/2.0/"> - <cc:permits rdf:resource="http://web.resource.org/cc/Reproduction"/> - <cc:permits rdf:resource="http://web.resource.org/cc/Distribution"/> - <cc:requires rdf:resource="http://web.resource.org/cc/Notice"/> - <cc:requires rdf:resource="http://web.resource.org/cc/Attribution"/> - <cc:permits rdf:resource="http://web.resource.org/cc/DerivativeWorks"/> - <cc:requires rdf:resource="http://web.resource.org/cc/ShareAlike"/> - </cc:License> - </rdf:RDF> - </metadata> - <g id="layer1"> - <g> - <g opacity="0.7"> - <path d="M 24 2.5 L 21.625 9.1875 C 22.399034 9.0641318 23.191406 9 24 9 C 24.808594 9 25.600966 9.0641317 26.375 9.1875 L 24 2.5 z M 8.8125 8.78125 L 11.84375 15.21875 C 12.779034 13.928569 13.928569 12.779034 15.21875 11.84375 L 8.8125 8.78125 z M 39.21875 8.78125 L 32.78125 11.84375 C 34.071431 12.779034 35.220966 13.928569 36.15625 15.21875 L 39.21875 8.78125 z M 9.1875 21.59375 L 2.5 23.96875 L 9.1875 26.34375 C 9.0673373 25.57952 9 24.797813 9 24 C 9 23.180625 9.0608858 22.377571 9.1875 21.59375 z M 38.8125 21.625 C 38.935868 22.399034 39 23.191406 39 24 C 39 24.808594 38.935868 25.600966 38.8125 26.375 L 45.5 24 L 38.8125 21.625 z M 11.84375 32.78125 L 8.8125 39.1875 L 15.21875 36.15625 C 13.928569 35.220966 12.779034 34.071431 11.84375 32.78125 z M 36.15625 32.78125 C 35.229789 34.05926 34.087617 35.194799 32.8125 36.125 L 39.21875 39.1875 L 36.15625 32.78125 z M 21.625 38.8125 L 24 45.5 L 26.375 38.8125 C 25.600966 38.935868 24.808594 39 24 39 C 23.191406 39 22.399034 38.935868 21.625 38.8125 z " fill="#fce94f" fill-opacity="1" stroke="#fcaf3e" stroke-width="0.73732895" stroke-linecap="square" stroke-linejoin="miter" stroke-miterlimit="4" stroke-dasharray="none" stroke-opacity="1"/> - <path d="M 24 5.25 L 22.65625 9.0625 C 23.098888 9.0231486 23.547187 9 24 9 C 24.452813 9 24.901112 9.0231486 25.34375 9.0625 L 24 5.25 z M 10.78125 10.75 L 12.5 14.375 C 13.071538 13.694089 13.724004 13.038745 14.40625 12.46875 L 10.78125 10.75 z M 37.25 10.75 L 33.625 12.46875 C 34.304675 13.038189 34.961811 13.695325 35.53125 14.375 L 37.25 10.75 z M 9.0625 22.625 L 5.28125 23.96875 L 9.0625 25.3125 C 9.024981 24.880146 9 24.442031 9 24 C 9 23.536406 9.0212735 23.077908 9.0625 22.625 z M 38.9375 22.65625 C 38.976851 23.098888 39 23.547187 39 24 C 39 24.452813 38.976851 24.901112 38.9375 25.34375 L 42.71875 24 L 38.9375 22.65625 z M 35.53125 33.59375 C 34.958293 34.27954 34.309985 34.957363 33.625 35.53125 L 37.25 37.25 L 35.53125 33.59375 z M 12.5 33.625 L 10.78125 37.21875 L 14.375 35.5 C 13.702932 34.935884 13.064116 34.297068 12.5 33.625 z M 22.65625 38.9375 L 24 42.71875 L 25.34375 38.9375 C 24.901112 38.976851 24.452813 39 24 39 C 23.547187 39 23.098888 38.976851 22.65625 38.9375 z " fill="none" fill-opacity="1" stroke="url(#radialGradient4081)" stroke-width="0.84646249" stroke-linecap="square" stroke-linejoin="miter" stroke-miterlimit="4" stroke-dasharray="none" stroke-opacity="1"/> - </g> - <g> - <g> - <path transform="matrix(0.778062,-1.061285,1.061287,0.778062,67.47952,3.641324)" d="M -22.5 -17.5 A 9.5 9.5 0 1 1 -41.5,-17.5 A 9.5 9.5 0 1 1 -22.5 -17.5 z" fill="#ffee54" fill-opacity="1" stroke="#fcaf3e" stroke-width="0.75991178" stroke-linecap="square" stroke-linejoin="miter" stroke-miterlimit="4" stroke-dasharray="none" stroke-opacity="1"/> - <path transform="matrix(1.244257,-0.167707,0.216642,1.251844,67.61648,40.527)" d="M -22.5 -17.5 A 9.5 9.5 0 1 1 -41.5,-17.5 A 9.5 9.5 0 1 1 -22.5 -17.5 z" fill="url(#radialGradient4020)" fill-opacity="1" stroke="none" stroke-width="1.01737845" stroke-linecap="square" stroke-linejoin="miter" stroke-miterlimit="4" stroke-dasharray="none" stroke-opacity="1"/> - <path transform="matrix(0.715791,-0.976349,0.97635,0.715792,64.00044,5.269544)" d="M -22.5 -17.5 A 9.5 9.5 0 1 1 -41.5,-17.5 A 9.5 9.5 0 1 1 -22.5 -17.5 z" fill="none" fill-opacity="1" stroke="url(#linearGradient3168)" stroke-width="0.82601947" stroke-linecap="square" stroke-linejoin="miter" stroke-miterlimit="4" stroke-dasharray="none" stroke-opacity="1"/> - </g> - </g> - </g> - </g> -</svg> diff --git a/examples/qmlorganizer/contents/images/gloss.png b/examples/qmlorganizer/contents/images/gloss.png Binary files differdeleted file mode 100755 index 5d370cd93..000000000 --- a/examples/qmlorganizer/contents/images/gloss.png +++ /dev/null diff --git a/examples/qmlorganizer/contents/images/lineedit.png b/examples/qmlorganizer/contents/images/lineedit.png Binary files differdeleted file mode 100755 index 2cc38dc35..000000000 --- a/examples/qmlorganizer/contents/images/lineedit.png +++ /dev/null diff --git a/examples/qmlorganizer/contents/images/lineedit.sci b/examples/qmlorganizer/contents/images/lineedit.sci deleted file mode 100644 index 054bff78b..000000000 --- a/examples/qmlorganizer/contents/images/lineedit.sci +++ /dev/null @@ -1,5 +0,0 @@ -border.left: 10 -border.top: 10 -border.bottom: 10 -border.right: 10 -source: lineedit.png diff --git a/examples/qmlorganizer/contents/images/quit.png b/examples/qmlorganizer/contents/images/quit.png Binary files differdeleted file mode 100755 index 5bda1b6e0..000000000 --- a/examples/qmlorganizer/contents/images/quit.png +++ /dev/null diff --git a/examples/qmlorganizer/contents/images/stripes.png b/examples/qmlorganizer/contents/images/stripes.png Binary files differdeleted file mode 100755 index 9f36727ea..000000000 --- a/examples/qmlorganizer/contents/images/stripes.png +++ /dev/null diff --git a/examples/qmlorganizer/contents/images/titlebar.png b/examples/qmlorganizer/contents/images/titlebar.png Binary files differdeleted file mode 100755 index 51c90082d..000000000 --- a/examples/qmlorganizer/contents/images/titlebar.png +++ /dev/null diff --git a/examples/qmlorganizer/contents/images/titlebar.sci b/examples/qmlorganizer/contents/images/titlebar.sci deleted file mode 100644 index 0418d94cd..000000000 --- a/examples/qmlorganizer/contents/images/titlebar.sci +++ /dev/null @@ -1,5 +0,0 @@ -border.left: 10 -border.top: 12 -border.bottom: 12 -border.right: 10 -source: titlebar.png diff --git a/examples/qmlorganizer/contents/images/toolbutton.png b/examples/qmlorganizer/contents/images/toolbutton.png Binary files differdeleted file mode 100755 index 11310013e..000000000 --- a/examples/qmlorganizer/contents/images/toolbutton.png +++ /dev/null diff --git a/examples/qmlorganizer/contents/images/toolbutton.sci b/examples/qmlorganizer/contents/images/toolbutton.sci deleted file mode 100644 index 9e4f96530..000000000 --- a/examples/qmlorganizer/contents/images/toolbutton.sci +++ /dev/null @@ -1,5 +0,0 @@ -border.left: 15 -border.top: 4 -border.bottom: 4 -border.right: 15 -source: toolbutton.png diff --git a/examples/qmlorganizer/contents/month.js b/examples/qmlorganizer/contents/month.js deleted file mode 100644 index a5af8e43e..000000000 --- a/examples/qmlorganizer/contents/month.js +++ /dev/null @@ -1,73 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the examples of the Qt Mobility Components. -** -** $QT_BEGIN_LICENSE:BSD$ -** 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 Nokia Corporation and its Subsidiary(-ies) 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$ -** -****************************************************************************/ - -Date.prototype.clone = function() { return new Date(this.getTime()); } - -function getDayOfMonth(startDayOfMonth, offset) { - var day = startDayOfMonth.clone(); - day.setDate(offset); - return day.getDate(); -} - -function dateOfThisDay(startDayOfMonth, offset) { - var day = startDayOfMonth.clone(); - day.setDate(offset); - return day; -} - -function getColorOfDay(startDayOfMonth, offset) { - - var newDay = startDayOfMonth.clone(); - newDay.setDate(offset); - if (newDay.getMonth() == startDayOfMonth.getMonth()) - return "white"; - else - return "lightgray"; - -} - -function isToday(startDayOfMonth, offset) { - - var newDay = startDayOfMonth.clone(); - newDay.setDate(offset); - var today = new Date(); - return newDay.toDateString() == today.toDateString(); -} - diff --git a/examples/qmlorganizer/contents/test.ics b/examples/qmlorganizer/contents/test.ics deleted file mode 100644 index 5e04064b0..000000000 --- a/examples/qmlorganizer/contents/test.ics +++ /dev/null @@ -1,116 +0,0 @@ -BEGIN:VCALENDAR -PRODID:-//Google Inc//Google Calendar 70.9054//EN -VERSION:2.0 -CALSCALE:GREGORIAN -METHOD:PUBLISH -X-WR-TIMEZONE:Australia/Brisbane -BEGIN:VTIMEZONE -TZID:Australia/Brisbane -X-LIC-LOCATION:Australia/Brisbane -BEGIN:STANDARD -TZOFFSETFROM:+1000 -TZOFFSETTO:+1000 -TZNAME:EST -DTSTART:19700101T000000 -END:STANDARD -END:VTIMEZONE -BEGIN:VEVENT -DTSTART:20101208T220000Z -DTEND:20101209T070000Z -DTSTAMP:20101208T051153Z -UID:2b0kl4063br3vsaeucrtcjbsjg@google.com -CREATED:20101208T050327Z -DESCRIPTION:starts 2010-12-09 8AM finishes 5PM -LAST-MODIFIED:20101208T050327Z -LOCATION: -SEQUENCE:0 -STATUS:CONFIRMED -SUMMARY:Event 2 -TRANSP:OPAQUE -END:VEVENT -BEGIN:VEVENT -DTSTART:20101207T220000Z -DTEND:20101208T030000Z -DTSTAMP:20101208T051153Z -UID:damefeu5f2nqh3gn4m5k8lb5uc@google.com -CREATED:20101208T050202Z -DESCRIPTION:starts 2010-12-08 8AM finishes 1PM -LAST-MODIFIED:20101208T050202Z -LOCATION: -SEQUENCE:0 -STATUS:CONFIRMED -SUMMARY:Event 1 -TRANSP:OPAQUE -END:VEVENT -BEGIN:VEVENT -DTSTART:20101216T000000Z -DTEND:20101216T060000Z -DTSTAMP:20101208T051153Z -UID:boml7lf8psqpm0162vqj950rhc@google.com -CREATED:20101208T050550Z -DESCRIPTION:starts after Event 3 and finishes 4PM -LAST-MODIFIED:20101208T050550Z -LOCATION: -SEQUENCE:0 -STATUS:CONFIRMED -SUMMARY:Event 4 -TRANSP:OPAQUE -END:VEVENT -BEGIN:VEVENT -DTSTART:20101216T060000Z -DTEND:20101216T070000Z -DTSTAMP:20101208T051153Z -UID:ev13id8q3hivd567snio7gcga4@google.com -CREATED:20101208T050643Z -DESCRIPTION:start after end of Event 4 finishing at 5PM -LAST-MODIFIED:20101208T050643Z -LOCATION: -SEQUENCE:0 -STATUS:CONFIRMED -SUMMARY:Event 5 -TRANSP:OPAQUE -END:VEVENT -BEGIN:VEVENT -DTSTART:20101215T220000Z -DTEND:20101216T000000Z -DTSTAMP:20101208T051153Z -UID:888gl35dsh59cp9pksj05c8ruc@google.com -CREATED:20101208T050446Z -DESCRIPTION:starts 2010-12-15 at 8AM finishes 10AM -LAST-MODIFIED:20101208T051055Z -LOCATION: -SEQUENCE:0 -STATUS:CONFIRMED -SUMMARY:Event 3 -TRANSP:OPAQUE -END:VEVENT -BEGIN:VEVENT -DTSTART:20110108T010000Z -DTEND:20110108T020000Z -DTSTAMP:20101208T051153Z -UID:uh7i70c6ir733bp2i1ccpmgeas@google.com -CREATED:20101208T050752Z -DESCRIPTION:start a month from 2010-12-08 at 11AM finish at 2PM -LAST-MODIFIED:20101208T050752Z -LOCATION: -SEQUENCE:0 -STATUS:CONFIRMED -SUMMARY:Event 6 -TRANSP:OPAQUE -END:VEVENT -BEGIN:VEVENT -DTSTART;TZID=Australia/Brisbane:20101210T103000 -DTEND;TZID=Australia/Brisbane:20101210T113000 -RRULE:FREQ=WEEKLY;INTERVAL=4;BYDAY=FR -DTSTAMP:20101208T051153Z -UID:0oc9mbqeddtdag0406psh8ckic@google.com -CREATED:20101208T050926Z -DESCRIPTION:starts 2010-12-10 at 11AM finishing 1PM\, repeating for 4 weeks -LAST-MODIFIED:20101208T050926Z -LOCATION: -SEQUENCE:0 -STATUS:CONFIRMED -SUMMARY:Event 7 -TRANSP:OPAQUE -END:VEVENT -END:VCALENDAR diff --git a/examples/qmlorganizer/contents/timeline.js b/examples/qmlorganizer/contents/timeline.js deleted file mode 100644 index 438193314..000000000 --- a/examples/qmlorganizer/contents/timeline.js +++ /dev/null @@ -1,93 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the examples of the Qt Mobility Components. -** -** $QT_BEGIN_LICENSE:BSD$ -** 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 Nokia Corporation and its Subsidiary(-ies) 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$ -** -****************************************************************************/ - -function changeDate() { - //TODO -} - -function changeToday() { - yearList.currentIndex = timelineView.year - yearModel.start; - monthList.currentIndex = timelineView.month; - dayList.positionViewAtIndex(timelineView.day, ListView.Center); - dayList.currentIndex = timelineView.day; -} -function extendYearModel(init) { - - var start = yearModel.start; - var end = yearModel.end; - var now = new Date(); - var year = 1900 + now.getYear(); - - if (init) { - //initializes the year model - if (yearModel.count == 1) { - yearModel.set(0, {"year" : year}); - start = year; - end = year; - } - } - - if (start == 0) return; - - //extends forward - if (yearList.currentIndex == yearList.count - 1) { - for (var i = 0; i < 10; i ++) { - end++; - yearModel.append({"year" : end}); - } - } - - - //extends backward - if (yearList.currentIndex == 0) { - for (var i = 0; i < 10; i ++) { - start--; - if (start == 1900) - break; - yearModel.insert(1, {"year" : start}); - } - yearModel.move(0, 10, 1); - } - yearModel.start = start; - yearModel.end = end; - if (init) { - yearList.currentIndex = year - start; - } -} diff --git a/examples/qmlorganizer/organizer.qml b/examples/qmlorganizer/organizer.qml deleted file mode 100644 index 496c3bc0a..000000000 --- a/examples/qmlorganizer/organizer.qml +++ /dev/null @@ -1,342 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the examples of the Qt Mobility Components. -** -** $QT_BEGIN_LICENSE:BSD$ -** 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 Nokia Corporation and its Subsidiary(-ies) 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.0 -import QtOrganizer 5.0 -import "contents" - -Rectangle { - id: calendar - width: 400 - height: 640 - property date currentDate:new Date() - property int year:currentDate.getFullYear() - property int month:currentDate.getMonth() - property int day:currentDate.getDate() - property int hour:currentDate.getHours() - property int weekDay:currentDate.getDay() - property string status:currentDate.toDateString() - property string preState: "MonthView" - - color: "#343434"; - Image { source: "contents/images/stripes.png"; fillMode: Image.Tile; anchors.fill: parent; opacity: 1 } - - state: "MonthView"; - - CollectionFilter { - id: modelCollectionFilter - ids: { - var idList = []; - var list = organizer.collections; - for (var i = 0; i< list.length; i++) { - idList.push(list[i].collectionId); - } - return idList; - } - } - - DetailFilter { - id: todoFilter - detail: Detail.ItemType - field: Type.FieldType - value: Type.Todo - } - - IntersectionFilter { - id: intersectionFilter - filters: [modelCollectionFilter] - } - - SystemPalette { id: activePalette } - property OrganizerModel organizer:OrganizerModel{ - id: organizer - manager:"qtorganizer:jsondb:id=qml" - //manager:"qtorganizer:memory:id=qml" - startPeriod:'2009-01-01' - endPeriod:'2012-12-31' - autoUpdate:true - filter: intersectionFilter - Component.onCompleted : { - if (managerName == "memory") - organizer.importItems(Qt.resolvedUrl("contents/test.ics")); - } - onItemsFetched: { - // this is for occurrenceDialog - console.log("QML --- ITEMS FETCHED" + fetchedItems[0].displayLabel + fetchedItems[0].itemStartTime); - if (fetchedItems.length == 1) { - detailsView.isNewItem = false; - detailsView.item = fetchedItems[0]; - calendar.state = "DetailsView"; - } - } - } - - InfoBar { - id: infoBar; - anchors { - left: parent.left; right: parent.right; top: parent.top - } - height: 20 - } - - MenuBar { - id: menuBar; - anchors { - left: parent.left; right: parent.right; top: infoBar.bottom - } - height: 35; opacity: 0.9 - info: organizer.error + "\nTotal:" + organizer.itemCount - } - - StatusBar { - id: statusBar; status:calendar.status; width: parent.width; height: 35; opacity: 0.9; anchors.bottom: calendar.bottom - onLeftClicked: { - if (calendar.state == "MonthView") { - calendar.currentDate = new Date(calendar.year, calendar.month - 1, calendar.day); - } else if (calendar.state == "WeekView") { - calendar.currentDate = new Date(calendar.year, calendar.month , calendar.day - 7); - } else if (calendar.state == "DayView" || calendar.state == "TimelineView") { - calendar.currentDate = new Date(calendar.year, calendar.month , calendar.day - 1); - } - - } - - //rightClick - onRightClicked: { - if (calendar.state == "MonthView") { - calendar.currentDate = new Date(calendar.year, calendar.month + 1, calendar.day); - } else if (calendar.state == "WeekView") { - calendar.currentDate = new Date(calendar.year, calendar.month , calendar.day + 7); - } else if (calendar.state == "DayView" || calendar.state == "TimelineView") { - calendar.currentDate = new Date(calendar.year, calendar.month , calendar.day + 1); - } - } - - //add new item clicked - onAddClicked : { - calendar.preState = calendar.state; - if (calendar.state != "CollectionManagerView") { - calendar.state = "AddNewItemSelectView"; - } else { - collectionManagerView.addCollection(); - } - } - } - - states: [ - State {name: "MonthView"; PropertyChanges { target: monthView; opacity: 1; }}, - State {name: "TimelineView"; PropertyChanges { target: timelineView; opacity: 1; }}, - State {name: "WeekView"; PropertyChanges { target: weekView; opacity: 1; }}, - State {name: "DayView"; PropertyChanges { target: dayView; opacity: 1; }}, - State {name: "AgenderView"; PropertyChanges { target: agenderView; opacity: 1; }}, - State { - name: "DetailsView"; - PropertyChanges { target: detailsView; opacity: 1;} - PropertyChanges { target: statusBar; opacity: 0; } - }, - State {name: "AddNewItemSelectView"; PropertyChanges { target: addNewItemview; opacity: 0.8; }}, - State {name: "OccurrenceDialogView"; PropertyChanges { target: occurrenceDialog; opacity: 0.8; }}, - State {name: "CollectionManagerView"; PropertyChanges { target: collectionManagerView; opacity: 1; }}, - State { - name: "CollectionEditorView"; - PropertyChanges { target: collectionEditorView; opacity: 1; } - PropertyChanges { target: statusBar; opacity: 0; } - }, - State {name: "TodoView"; PropertyChanges { target: todoView; opacity: 1; }}, - State {name: "AttendeeDetailsView"; PropertyChanges { target: attendeeDetailsView; opacity: 1; }} - ] - transitions: [ - Transition { - NumberAnimation { - properties: "opacity" - easing.type: "Linear" - duration: 10 - } - } - ] - - // some views are based on certain filters - onStateChanged: { - if (state == "TodoView") { - intersectionFilter.filters = [todoFilter, modelCollectionFilter]; - } else if (intersectionFilter.filters.length != 1) { - // No need to change the filter if filter is the same - // (Currently changing the filter triggers also a full update.) - intersectionFilter.filters = [modelCollectionFilter]; - } - } - - Item { - id: contentArea; - anchors.top: menuBar.bottom; - anchors.left: calendar.left; - anchors.right: calendar.right; - anchors.bottom: (statusBar.opacity != 0) ? statusBar.top : statusBar.bottom; - - MonthView { - id: monthView; - width: calendar.width; - height: calendar.height - menuBar.height - statusBar.height; - opacity: 0; - month:calendar.month - year:calendar.year - anchors.fill: contentArea; - } - TimelineView { - id: timelineView; - width: calendar.width; - height: calendar.height - menuBar.height - statusBar.height; - opacity: 0; - anchors.fill: contentArea; - } - WeekView { - id: weekView; - width: calendar.width; - height: calendar.height - menuBar.height - statusBar.height; - opacity: 0; - anchors.fill: contentArea; - } - DayView { - id: dayView; - width: calendar.width; - height: calendar.height - menuBar.height - statusBar.height; - opacity: 0; - anchors.fill: contentArea; - } - - AgenderView { - id: agenderView; - width: calendar.width; - height: calendar.height - menuBar.height - statusBar.height; - opacity: 0; - anchors.fill: contentArea; - } - DetailsView { - id: detailsView; - width: calendar.width; - height: calendar.height - menuBar.height - statusBar.height; - opacity: 0; - anchors.fill: contentArea; - } - SelectionView { - id: addNewItemview; - title: "Select type:" - - model: VisualItemModel { - Button { - text: "New event" - width: addNewItemview.width / 2 - onClicked: { - detailsView.isNewItem = true; - detailsView.item = createEmptyItem(Type.Event); - calendar.state = "DetailsView"; - } - } - Button { - text: "New todo-item" - width: addNewItemview.width / 2 - onClicked: { - detailsView.isNewItem = true; - detailsView.item = createEmptyItem(Type.Todo); - calendar.state = "DetailsView"; - } - } - Button { - text: "Cancel" - width: addNewItemview.width / 2 - onClicked: { - calendar.state = calendar.preState; - } - } - - } - } - SelectionView { - id: occurrenceDialog; - //title: "This is a recurring item. Open this instance or whole series?" - title: "Recurring item" - - model: VisualItemModel { - Button { - text: "Open this instance" - width: addNewItemview.width / 2 - onClicked: { - calendar.state = "DetailsView"; - } - } - Button { - text: "Open whole series" - width: addNewItemview.width / 2 - onClicked: { - var parentDetail = detailsView.item.detail(Detail.Parent); - organizer.fetchItems([parentDetail.parentId]); - } - } - } - } - CollectionManagerView { - id: collectionManagerView; - } - CollectionEditorView { - id: collectionEditorView; - } - TodoView { - id: todoView; - } - AttendeeDetailsView { - id: attendeeDetailsView; - } - } - - function createEmptyItem(type) - { - if (type == Type.Event) { - return Qt.createQmlObject("import QtOrganizer 5.0; Event { }", organizer); - } else if (type == Type.Todo) { - return Qt.createQmlObject("import QtOrganizer 5.0; Todo { }", organizer); - // } else if (type == Type.EventOccurrence) { - // return Qt.createQmlObject("import QtOrganizer 5.0; EventOccurrence { }", organizer); - // } else if (type == Type.TodoOccurrence) { - // return Qt.createQmlObject("import QtOrganizer 5.0; TodoOccurrence { }", organizer); - } else { - return Qt.createQmlObject("import QtOrganizer 5.0; Event { }", organizer); - } - } -} diff --git a/examples/qmlorganizer/qmlorganizer.qmlproject b/examples/qmlorganizer/qmlorganizer.qmlproject deleted file mode 100644 index d4909f868..000000000 --- a/examples/qmlorganizer/qmlorganizer.qmlproject +++ /dev/null @@ -1,16 +0,0 @@ -import QmlProject 1.0 - -Project { - /* Include .qml, .js, and image files from current directory and subdirectories */ - QmlFiles { - directory: "." - } - JavaScriptFiles { - directory: "." - } - ImageFiles { - directory: "." - } - /* List of plugin directories passed to QML runtime */ - // importPaths: [ " ../exampleplugin " ] -} |