wiview.qml 42.3 KB
Newer Older
1 2 3 4 5 6 7
import QtQuick 1.0

Rectangle {
    id: container
    objectName: "containerObj"
    width: 370
    height: 575
8 9
    color: "transparent"
//    color: "#000009"
10 11
    anchors.fill: parent

12 13 14 15 16
    Rectangle {
        id: translucentBackground
        color: "#020518"
        anchors.fill: parent
        opacity: 0.890
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34

        Image {
            id: closeButton
            objectName: "closeButtonObj"
            x: 333
            y: 11
            sourceSize.height: 28
            sourceSize.width: 28
            source: "dialog_close.png"

            signal closeButtonClicked()

            MouseArea {
                id: closeMouseArea
                anchors.fill: parent
                onClicked: closeButton.closeButtonClicked()
            }
        }
35 36
    }

37 38 39 40
    Text {
        id: title
        x: 9
        y: 34
41
        width: 209
42 43 44 45
        height: 46
        color: "#59ad0e"
        text: qsTr("What's Interesting...")
        verticalAlignment: Text.AlignVCenter
46
        font.family: "Cantarell"
47
        font.bold: false
48
        font.pixelSize: 22
49 50 51 52
    }

    Rectangle {
        id: base
53
        y: 89
54 55
        width: 370
        height: 385
56 57
        color: "transparent"
        radius: 12
58 59 60 61 62 63 64 65 66 67 68 69 70
        anchors.left: parent.left
        anchors.leftMargin: 0
        anchors.right: parent.right
        anchors.rightMargin: 0
        Item {
            id: viewsRow
            objectName: "viewsRowObj"
            width: parent.width
            anchors.top: parent.top
            anchors.bottom: parent.bottom

            signal categorySelected(int category)

71
            Rectangle {
72
                id: categoryView
73 74
                x: 0
                y: 31
75
                width: parent.width
76 77 78 79 80 81 82 83 84 85 86 87
                height: 351
                color: "transparent"

                Rectangle {
                    id: background
                    x: 20
                    y: 15
                    width: 330
                    height: 323

                    color: "#00060b"
                    radius: 12
88
                    opacity: 0.500
89 90 91
                    border.width: 4
                    border.color: "black"
                }
92

93 94 95 96 97 98 99
                Rectangle {
                    id: planetRect
                    x: 78
                    y: 23
                    width: 74
                    height: 35
                    color: "#00000000"
100

101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117
                    Text {
                        id: planetText
                        x: 0
                        y: 0
                        width: 60
                        height: 33
                        color: "#e4800d"
                        text: qsTr("Planets")
                        verticalAlignment: Text.AlignVCenter
                        horizontalAlignment: Text.AlignHCenter
                        anchors.leftMargin: 0
                        anchors.topMargin: 0
                        anchors.rightMargin: 0
                        anchors.bottomMargin: 0
                        anchors.fill: parent
                        font.family: "Cantarell"
                        font.pixelSize: 16
118 119 120 121 122

                        MouseArea {
                            id: planetMouseArea
                            anchors.fill: parent
                            hoverEnabled: true
123
                            onEntered: container.state = "planetAreaEntered"
124 125
                            onClicked: {
                                viewsRow.categorySelected(0)
126
                                oMagText.visible = false
127
                                container.state = "soTypeSelected"
128 129 130
                            }
                        }
                    }
131
                }
132

133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149
                Rectangle {
                    id: starRect
                    x: 193
                    y: 48
                    width: 136
                    height: 42
                    color: "#00000000"

                    Text {
                        id: starText
                        color: "#e4800d"
                        text: qsTr("Bright Stars")
                        verticalAlignment: Text.AlignVCenter
                        horizontalAlignment: Text.AlignHCenter
                        anchors.fill: parent
                        font.family: "Cantarell"
                        font.pixelSize: 16
150 151 152 153

                        MouseArea {
                            id: starMouseArea
                            hoverEnabled: true
154 155
                            anchors.fill: parent
                            onEntered: container.state = "starAreaEntered"
156 157
                            onClicked: {
                                viewsRow.categorySelected(1)
158
                                oMagText.visible = false
159
                                container.state = "soTypeSelected"
160 161 162
                            }
                        }
                    }
163
                }
164

165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181
                Rectangle {
                    id: conRect
                    x: 20
                    y: 107
                    width: 169
                    height: 36
                    color: "#00000000"

                    Text {
                        id: conText
                        color: "#e4800d"
                        text: qsTr("Constellations")
                        font.family: "Cantarell"
                        verticalAlignment: Text.AlignVCenter
                        horizontalAlignment: Text.AlignHCenter
                        anchors.fill: parent
                        font.pixelSize: 16
182 183 184 185 186

                        MouseArea {
                            id: conMouseArea
                            anchors.fill: parent
                            hoverEnabled: true
187
                            onEntered: container.state = "conAreaEntered"
188 189
                            onClicked: {
                                viewsRow.categorySelected(2)
190
                                oMagText.visible = false
191
                                container.state = "soTypeSelected"
192
                            }
193 194 195 196
                        }
                    }
                }

197 198 199 200 201 202 203
                Rectangle {
                    id: dsoContainer
                    x: 35
                    y: 172
                    width: 283
                    height: 166
                    color: "#00000000"
204 205

                    Rectangle {
206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222
                        id: dsoRect
                        x: 46
                        y: 6
                        width: 192
                        height: 41
                        color: "#00000000"
                        Text {
                            id: dsoText
                            x: 0
                            y: 0
                            width: 60
                            height: 33
                            color: "#e4800d"
                            text: qsTr("Deep-sky Objects")
                            verticalAlignment: Text.AlignVCenter
                            horizontalAlignment: Text.AlignHCenter
                            font.pixelSize: 16
223
                            anchors.fill: parent
224 225 226 227 228 229 230 231 232 233 234 235
                            anchors.topMargin: 0
                            MouseArea {
                                id: dsoMouseArea
                                hoverEnabled: true
                                anchors.fill: parent
                                onEntered: container.state = "dsoAreaEntered"
                                onClicked: container.state = "dsoAreaClicked"
                            }
                            anchors.rightMargin: 0
                            anchors.bottomMargin: 0
                            font.family: "Cantarell"
                            anchors.leftMargin: 0
236 237 238 239
                        }
                    }

                    Rectangle {
240 241 242 243 244 245 246 247 248 249 250 251 252
                        id: galRect
                        x: 9
                        y: 59
                        width: 97
                        height: 35
                        color: "#00000000"
                        opacity: 0.350
                        Text {
                            id: galText
                            x: 0
                            y: 0
                            width: 60
                            height: 33
253
                            color: "#6b6660"
254 255 256 257
                            text: qsTr("Galaxies")
                            verticalAlignment: Text.AlignVCenter
                            horizontalAlignment: Text.AlignHCenter
                            font.pixelSize: 16
258
                            anchors.fill: parent
259 260 261 262 263 264 265
                            anchors.topMargin: 0
                            MouseArea {
                                id: galMouseArea
                                enabled: false
                                hoverEnabled: false
                                anchors.fill: parent
                                onEntered: container.state = "galAreaEntered"
266 267
                                onClicked: {
                                    viewsRow.categorySelected(3)
268
                                    oMagText.visible = true
269 270
                                    container.state = "soTypeSelected"
                                }
271 272 273 274 275
                            }
                            anchors.rightMargin: 0
                            anchors.bottomMargin: 0
                            font.family: "Cantarell"
                            anchors.leftMargin: 0
276 277 278 279 280
                        }
                    }

                    Rectangle {
                        id: nebRect
281 282 283 284 285 286 287 288 289 290 291 292
                        x: 105
                        y: 122
                        width: 96
                        height: 35
                        color: "#00000000"
                        opacity: 0.340
                        Text {
                            id: nebText
                            x: 0
                            y: 0
                            width: 60
                            height: 33
293
                            color: "#6b6660"
294 295 296 297
                            text: qsTr("Nebulae")
                            verticalAlignment: Text.AlignVCenter
                            horizontalAlignment: Text.AlignHCenter
                            font.pixelSize: 16
298
                            anchors.fill: parent
299 300 301 302 303 304 305
                            anchors.topMargin: 0
                            MouseArea {
                                id: nebMouseArea
                                enabled: false
                                hoverEnabled: false
                                anchors.fill: parent
                                onEntered: container.state = "nebAreaEntered"
306 307
                                onClicked: {
                                    viewsRow.categorySelected(5)
308
                                    oMagText.visible = true
309 310
                                    container.state = "soTypeSelected"
                                }
311 312 313 314 315
                            }
                            anchors.rightMargin: 0
                            anchors.bottomMargin: 0
                            font.family: "Cantarell"
                            anchors.leftMargin: 0
316 317 318
                        }
                    }

319 320 321 322 323 324 325 326 327 328 329 330 331 332
                    Rectangle {
                        id: clustRect
                        x: 182
                        y: 68
                        width: 93
                        height: 35
                        color: "#00000000"
                        opacity: 0.350
                        Text {
                            id: clustText
                            x: 0
                            y: 0
                            width: 60
                            height: 33
333
                            color: "#6b6660"
334 335 336 337 338 339 340 341 342 343 344 345
                            text: qsTr("Clusters")
                            verticalAlignment: Text.AlignVCenter
                            horizontalAlignment: Text.AlignHCenter
                            font.pixelSize: 16
                            anchors.fill: parent
                            anchors.topMargin: 0
                            MouseArea {
                                id: clustMouseArea
                                enabled: false
                                hoverEnabled: false
                                anchors.fill: parent
                                onEntered: container.state = "clustAreaEntered"
346 347
                                onClicked: {
                                    viewsRow.categorySelected(4)
348
                                    oMagText.visible = true
349 350
                                    container.state = "soTypeSelected"
                                }
351 352 353 354 355
                            }
                            anchors.rightMargin: 0
                            anchors.bottomMargin: 0
                            font.family: "Cantarell"
                            anchors.leftMargin: 0
356 357 358
                        }
                    }
                }
359
            }//end of categoryView
360 361 362 363 364 365 366 367 368 369 370 371 372

            Flipable {
                id: skyObjView
                width: parent.width
                height: parent.height

                anchors.left: categoryView.right

                property bool flipped: false

                front: Rectangle {
                    id: soListContainer
                    height: parent.height
373
                    color: "transparent"
374 375
                    width: parent.width

376 377 378 379 380 381 382
                    Rectangle {
                        id: soListViewBackground
                        anchors.fill: soListViewContainer
                        color: "#00060b"
                        opacity: 0.5
                    }

383
                    Rectangle {
384

385 386 387 388 389
                        id: soListViewContainer
                        x: parent.x + 15
                        y: 31
                        width: parent.width - 30
                        height: 351
390
                        color: "transparent"
391 392 393 394 395 396 397 398
                        radius: 12
                        border.width: 4
                        border.color: "#000000"

                        ListView {
                            id: soListView
                            objectName: "soListObj"
                            anchors.fill: parent
399

400 401 402 403 404 405 406
                            signal soListItemClicked( int type, string typeName, int curIndex )
                            clip: true

                            delegate: Item {
                                id: soListItem
                                x: 5
                                height: 40
407

408 409 410 411
                                Text {
                                    id: dispText
                                    objectName: dispName
                                    text: dispName
412
                                    color: "white"
413 414 415 416
                                    anchors.verticalCenter: parent.verticalCenter
                                    font.bold: true
                                    MouseArea {
                                        anchors.fill: parent
417 418 419
                                        hoverEnabled: true
                                        onEntered: dispText.color = "yellow"
                                        onExited: dispText.color = "white"
420 421 422 423 424
                                        onClicked: {
                                            soListView.currentIndex = index
                                            soListView.soListItemClicked(type, typeName, soListView.currentIndex)
                                            skyObjView.flipped = true
                                        }
425 426 427 428
                                    }
                                }
                            }

429 430
                            model: soListModel
                        }
431 432 433 434
                    }
                }

                back: Rectangle {
435
                    id: detailsViewContainer
436
                    width: parent.width
437 438
                    height: parent.height
                    color: "transparent"
439

440 441
                    Rectangle {
                        id: detailsViewBackground
442
                        anchors.fill: detailsViewContainer
443 444 445 446
                        color: "#00060b"
                        opacity: 0.5
                    }

447 448 449 450
                    Rectangle {
                        id: detailsView
                        objectName: "detailsViewObj"
                        x: parent.x + 15
451
                        height: parent.height
452
                        width: parent.width - 30
453
                        color: "transparent"
454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472
                        radius: 12
                        border.width: 4
                        border.color: "#000000"

                        anchors.left: categoryView.right

                        Text {
                            id: soname
                            objectName: "sonameObj"
                            x: 5
                            y: 5
                            width: 273
                            height: 44
                            color: "#ffffff"
                            text: qsTr("text")
                            font.bold: true
                            horizontalAlignment: Text.AlignLeft
                            verticalAlignment: Text.AlignVCenter
                            font.pixelSize: 16
473 474
                        }

475 476
                        Text {
                            id: posText
477
                            x: 10
478 479
                            objectName: "posTextObj"
                            y: 49
480 481
                            anchors.right: parent.right
                            anchors.rightMargin: 10
482 483
                            width: 320
                            height: 16
484
                            color: "#f7f7ac"
485
                            text: qsTr("text")
486
                            font.family: "Cantarell"
487
                            horizontalAlignment: Text.AlignRight
488 489
                            font.underline: false
                            font.italic: false
490
                            font.bold: true
491
                            font.pixelSize: 12
492
                        }
493

494
                        Rectangle {
495
                            id: descTextBox
496
                            x: 0
497
                            y: 95
498
                            width: parent.width
499 500 501
                            height: 175
                            color: "#00000000"
                            radius: 10
502
                            border.color: "#585454"
503
                            Flickable {
504
                                id: flickableDescText
505 506 507 508 509 510 511 512
                                clip: true
                                flickableDirection: Flickable.VerticalFlick
                                width: parent.width
                                height: parent.height
                                anchors.top: parent.top
                                anchors.topMargin: 3
                                anchors.bottom: parent.bottom
                                anchors.bottomMargin: 4
513

514 515
                                contentWidth: parent.width
                                contentHeight: col.height
516

517 518
                                Column {
                                    id: col
519
                                    width: parent.width
520 521 522 523 524 525 526 527
                                    Text {
                                        id: descText
                                        objectName: "descTextObj"
                                        color: "#187988"
                                        text: qsTr("text")
                                        anchors.top: parent.top
                                        anchors.topMargin: 3
                                        anchors.left: parent.left
528
                                        anchors.leftMargin: 6
529 530 531 532 533
                                        clip: true
                                        wrapMode: Text.WrapAtWordBoundaryOrAnywhere
                                        width: parent.width
                                        font.pixelSize: 12
                                    }
534 535 536 537
                                }
                            }
                        }

538 539 540
                        Text {
                            id: magText
                            objectName: "magTextObj"
541 542
                            x: 130
                            y: 277
543 544 545 546
                            width: 80
                            height: 15
                            color: "#ffffff"
                            text: qsTr("text")
547
                            anchors.horizontalCenterOffset: 0
548 549 550 551 552
                            verticalAlignment: Text.AlignVCenter
                            horizontalAlignment: Text.AlignHCenter
                            anchors.horizontalCenter: parent.horizontalCenter
                            font.pixelSize: 12
                        }
553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683

                        Rectangle {
                            id: nextObjRect
                            objectName: "nextObj"
                            x: 183
                            y: 347
                            width: 147
                            height: 28
                            color: "#00000000"
                            radius: 5

                            signal nextObjClicked()

                            Rectangle {
                                id: nextObjForeground
                                radius: 5
                                anchors.fill: nextObjText
                                opacity: 0
                            }

                            MouseArea {
                                id: nextObjMouseArea
                                x: 13
                                y: 62
                                anchors.fill: nextObjText
                                hoverEnabled: true
                                onEntered: {
                                    nextObjForeground.opacity = 0.1
                                    nextObjText.color = "yellow"
                                }
                                onExited: {
                                    nextObjForeground.opacity = 0.0
                                    nextObjText.color = "white"
                                }
                                onClicked: nextObjRect.nextObjClicked()
                            }

                            Text {
                                id: nextObjText
                                objectName: "nextTextObj"
                                y: 17
                                height: 22
                                color: "white"
                                text: qsTr("Next")
                                anchors.right: nextObjIcon.left
                                anchors.rightMargin: 5
                                anchors.verticalCenter: parent.verticalCenter
                                visible: true
                                verticalAlignment: Text.AlignVCenter
                                horizontalAlignment: Text.AlignRight
                                font.bold: true
                                font.pixelSize: 11

                                x: 7
                            }

                            Image {
                                id: nextObjIcon
                                x: 123
                                y: 13
                                anchors.verticalCenter: parent.verticalCenter
                                sourceSize.height: 24
                                sourceSize.width: 24
                                source: "next.png"
                            }
                        }

                        Rectangle {
                            id: prevObjRect
                            objectName: "prevObj"
                            x: 10
                            y: 347
                            width: 147
                            height: 28
                            color: "#00000000"
                            radius: 5

                            signal prevObjClicked()

                            Rectangle {
                                id: prevObjForeground
                                radius: 5
                                anchors.fill: prevObjText
                                opacity: 0
                            }

                            MouseArea {
                                id: prevObjMouseArea
                                x: 13
                                y: 62
                                hoverEnabled: true
                                anchors.fill: prevObjText
                                onEntered: {
                                    prevObjForeground.opacity = 0.1
                                    prevObjText.color = "yellow"
                                }
                                onExited: {
                                    prevObjForeground.opacity = 0.0
                                    prevObjText.color = "white"
                                }
                                onClicked: prevObjRect.prevObjClicked()
                            }

                            Text {
                                id: prevObjText
                                objectName: "prevTextObj"
                                y: 7
                                height: 22
                                color: "#ffffff"
                                text: qsTr("Previous")
                                anchors.left: prevObjIcon.right
                                anchors.leftMargin: 5
                                anchors.verticalCenterOffset: 0
                                font.pixelSize: 11
                                visible: true
                                anchors.verticalCenter: parent.verticalCenter
                                font.bold: true
                                horizontalAlignment: Text.AlignLeft
                                verticalAlignment: Text.AlignVCenter
                            }

                            Image {
                                id: prevObjIcon
                                x: 0
                                y: 2
                                anchors.verticalCenter: parent.verticalCenter
                                sourceSize.height: 24
                                sourceSize.width: 24
                                source: "previous.png"
                            }
                        }
684 685
                    } //end of detailsView
                } //end of detailsViewContainer
686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708

                states: [
                    State {
                        name: "back"
                        PropertyChanges {
                            target: listToDetailsRotation
                            angle: 180
                        }
                        when: skyObjView.flipped
                    }
                ]

                transitions: [
                    Transition {
                        NumberAnimation { target: listToDetailsRotation; property: "angle"; duration: 400 }
                    }
                ]

                transform: Rotation {
                    id: listToDetailsRotation
                    origin.x: container.width / 2;
                    axis.y: 1; axis.z: 0
                }
709
            } //end of skyObjView
710 711
        }//end of viewsContainer
    }//end of base
712

713
    Rectangle {
714 715
        id: backButton
        x: container.width + 10
716 717 718 719 720
        y: 504
        width: 114
        height: 49
        color: "#00000000"
        radius: 5
721 722 723 724 725 726 727 728

        Rectangle {
            id: goBackForeground
            anchors.fill: parent
            radius: 5
            opacity: 0.0
        }

729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757
        Text {
            id: goBackText
            color: "#f7e808"
            text: "Go back"
            anchors.leftMargin: 45
            font.family: "Cantarell"
            font.pointSize: 13
            verticalAlignment: Text.AlignVCenter
            horizontalAlignment: Text.AlignHCenter
            anchors.fill: parent
        }

        Image {
            id: leftArrow
            anchors.right: parent.right
            anchors.rightMargin: 74
            anchors.left: parent.left
            anchors.leftMargin: 8
            anchors.top: parent.top
            anchors.topMargin: 8
            anchors.bottom: parent.bottom
            anchors.bottomMargin: 9
            source: "leftArrow.png"
        }

        MouseArea {
            x: 45
            y: 0
            anchors.fill: backButton
758 759 760
            hoverEnabled: true
            onEntered: goBackForeground.opacity = 0.2
            onExited: goBackForeground.opacity = 0.0
761 762
            onClicked: {
                if ( container.state == "soTypeSelected" )
763
                {
764 765 766 767 768 769 770 771 772 773 774 775 776
                    console.log("soTypeSelected")
                    if ( !skyObjView.flipped )
                    {
                        console.log( "skyObjView.flipped :" + skyObjView.flipped )
                        console.log( "categoryView.flipped :" + categoryView.flipped )
                        container.state = "base"
                        console.log( "container.state :"+container.state )
                    }
                    else if ( skyObjView.flipped )
                    {
                        console.log( "skyObjView.flipped :" + skyObjView.flipped )
                        skyObjView.flipped = false
                    }
777
                }
778
            }
779
        }
780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800
    }

    Image {
        id: settingsIcon
        x: 9
        y: 528
        width: 28
        height: 28
        sourceSize.height: 40
        sourceSize.width: 40
        smooth: true
        fillMode: Image.Stretch
        anchors.left: parent.left
        anchors.leftMargin: 9
        anchors.bottom: parent.bottom
        anchors.bottomMargin: 6
        source: "settingsIcon.png"

        MouseArea {
            id: settingsMouseArea
            anchors.fill: parent
801 802 803 804 805 806 807 808 809 810
            hoverEnabled: true
            onEntered: settingsForeground.opacity = 0.2
            onExited: settingsForeground.opacity = 0.0
        }

        Rectangle {
            id: settingsForeground
            anchors.fill: parent
            opacity: 0.0
            radius: 5
811 812
        }
    }
813

814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829
    Text {
        id: oMagText
        objectName: "oMagTextObj"
        x: 8
        y: 481
        width: 297
        height: 14
        color: "#ffffff"
        text: qsTr("")
        opacity: 0
        visible: false
        verticalAlignment: Text.AlignVCenter
        horizontalAlignment: Text.AlignLeft
        font.pixelSize: 12
    }

830 831
    states: [
        State {
832
            name: "base"
833 834 835 836 837 838 839 840 841 842 843 844 845 846 847

            PropertyChanges {
                target: galText
                color: "#6b6660"
            }

            PropertyChanges {
                target: nebText
                color: "#6b6660"
            }

            PropertyChanges {
                target: clustText
                color: "#6b6660"
            }
848 849 850 851 852

            PropertyChanges {
                target: oMagText
                visible: false
            }
853 854 855 856
        },
        State {
            name: "planetAreaEntered"

857
            PropertyChanges {
858 859 860
                target: planetText
                font.pixelSize: 21
                font.bold: true
861
            }
862 863 864 865
        },
        State {
            name: "starAreaEntered"

866
            PropertyChanges {
867 868 869
                target: starText
                font.bold: true
                font.pixelSize: 21
870 871 872
            }
        },
        State {
873 874
            name: "conAreaEntered"

875
            PropertyChanges {
876 877 878
                target: conText
                font.bold: true
                font.pixelSize: 21
879 880 881
            }
        },
        State {
882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962
            name: "dsoAreaEntered"

            PropertyChanges {
                target: dsoText
                font.bold: true
                font.pixelSize: 21
            }
        },
        State {
            name: "dsoAreaClicked"
            PropertyChanges {
                target: dsoText
                font.pixelSize: "21"
                font.bold: true
            }

            PropertyChanges {
                target: galRect
                opacity: 1
            }

            PropertyChanges {
                target: nebRect
                opacity: 1
            }

            PropertyChanges {
                target: clustRect
                opacity: 1
            }

            PropertyChanges {
                target: planetRect
                opacity: 0.350
            }

            PropertyChanges {
                target: conRect
                opacity: 0.350
            }

            PropertyChanges {
                target: starRect
                opacity: 0.350
            }

            PropertyChanges {
                target: clustMouseArea
                hoverEnabled: true
                enabled: true
            }

            PropertyChanges {
                target: galMouseArea
                hoverEnabled: true
                enabled: true
            }

            PropertyChanges {
                target: nebMouseArea
                hoverEnabled: true
                enabled: true
            }

            PropertyChanges {
                target: dsoMouseArea
                hoverEnabled: false
            }

            PropertyChanges {
                target: dsoContainer
                y: 160
            }

            PropertyChanges {
                target: categoryView
                x: 0
                y: 31
                width: 352
                height: 351
            }
963 964 965 966 967 968 969 970 971 972 973 974 975 976 977

            PropertyChanges {
                target: galText
                color: "#e4800d"
            }

            PropertyChanges {
                target: clustText
                color: "#e4800d"
            }

            PropertyChanges {
                target: nebText
                color: "#e4800d"
            }
978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023
        },
        State {
            name: "galAreaEntered"
            PropertyChanges {
                target: dsoText
                font.pixelSize: "21"
                font.bold: false
            }

            PropertyChanges {
                target: galRect
                opacity: 1
            }

            PropertyChanges {
                target: nebRect
                opacity: 1
            }

            PropertyChanges {
                target: clustRect
                opacity: 1
            }

            PropertyChanges {
                target: planetRect
                opacity: 0.350
            }

            PropertyChanges {
                target: conRect
                opacity: 0.350
            }

            PropertyChanges {
                target: starRect
                opacity: 0.350
            }

            PropertyChanges {
                target: dsoMouseArea
                hoverEnabled: false
            }

            PropertyChanges {
                target: galText
1024
                color: "#e4800d"
1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050
                font.bold: true
                font.pixelSize: 21
            }

            PropertyChanges {
                target: dsoContainer
                y: 160
            }

            PropertyChanges {
                target: clustMouseArea
                hoverEnabled: true
                enabled: true
            }

            PropertyChanges {
                target: galMouseArea
                hoverEnabled: true
                enabled: true
            }

            PropertyChanges {
                target: nebMouseArea
                hoverEnabled: true
                enabled: true
            }
1051 1052 1053 1054 1055 1056 1057 1058 1059 1060

            PropertyChanges {
                target: nebText
                color: "#e4800d"
            }

            PropertyChanges {
                target: clustText
                color: "#e4800d"
            }
1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106
        },
        State {
            name: "nebAreaEntered"
            PropertyChanges {
                target: dsoText
                font.pixelSize: "21"
                font.bold: false
            }

            PropertyChanges {
                target: galRect
                opacity: 1
            }

            PropertyChanges {
                target: nebRect
                opacity: 1
            }

            PropertyChanges {
                target: clustRect
                opacity: 1
            }

            PropertyChanges {
                target: planetRect
                opacity: 0.350
            }

            PropertyChanges {
                target: conRect
                opacity: 0.350
            }

            PropertyChanges {
                target: starRect
                opacity: 0.350
            }

            PropertyChanges {
                target: dsoMouseArea
                hoverEnabled: false
            }

            PropertyChanges {
                target: nebText
1107
                color: "#e4800d"
1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133
                font.bold: true
                font.pixelSize: 21
            }

            PropertyChanges {
                target: dsoContainer
                y: 160
            }

            PropertyChanges {
                target: clustMouseArea
                hoverEnabled: true
                enabled: true
            }

            PropertyChanges {
                target: nebMouseArea
                hoverEnabled: true
                enabled: true
            }

            PropertyChanges {
                target: galMouseArea
                hoverEnabled: true
                enabled: true
            }
1134 1135 1136 1137 1138 1139 1140 1141 1142 1143

            PropertyChanges {
                target: galText
                color: "#e4800d"
            }

            PropertyChanges {
                target: clustText
                color: "#e4800d"
            }
1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189
        },
        State {
            name: "clustAreaEntered"
            PropertyChanges {
                target: dsoText
                font.pixelSize: "21"
                font.bold: false
            }

            PropertyChanges {
                target: galRect
                opacity: 1
            }

            PropertyChanges {
                target: nebRect
                opacity: 1
            }

            PropertyChanges {
                target: clustRect
                opacity: 1
            }

            PropertyChanges {
                target: planetRect
                opacity: 0.350
            }

            PropertyChanges {
                target: conRect
                opacity: 0.350
            }

            PropertyChanges {
                target: starRect
                opacity: 0.350
            }

            PropertyChanges {
                target: dsoMouseArea
                hoverEnabled: false
            }

            PropertyChanges {
                target: clustText
1190
                color: "#e4800d"
1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216
                font.bold: true
                font.pixelSize: 21
            }

            PropertyChanges {
                target: dsoContainer
                y: 160
            }

            PropertyChanges {
                target: clustMouseArea
                hoverEnabled: true
                enabled: true
            }

            PropertyChanges {
                target: galMouseArea
                hoverEnabled: true
                enabled: true
            }

            PropertyChanges {
                target: nebMouseArea
                hoverEnabled: true
                enabled: true
            }
1217 1218 1219 1220 1221 1222 1223 1224 1225 1226

            PropertyChanges {
                target: nebText
                color: "#e4800d"
            }

            PropertyChanges {
                target: galText
                color: "#e4800d"
            }
1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238
        },
        State {
            name: "soTypeSelected"

            PropertyChanges {
                target: viewsRow
                x: -(container.width)
                y: 0
                anchors.topMargin: 0
                anchors.bottomMargin: 0
            }

1239 1240
            PropertyChanges {
                target: backButton
1241
                x: 236
1242
            }
1243

1244 1245 1246 1247
            PropertyChanges {
                target: oMagText
                opacity: 1
            }
1248 1249
        }
    ]
1250

1251 1252
    transitions: [
        Transition {
1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296
            from: "*"
            to: "planetAreaEntered"
            NumberAnimation { target: planetText; property: "font.pixelSize"; to: 21; duration: 150 }
            NumberAnimation { target: dsoContainer; property: "y"; to: 172; duration: 200 }
        },
        Transition {
            from: "*"
            to: "starAreaEntered"
            NumberAnimation { target: starText; property: "font.pixelSize"; to: 21; duration: 150 }
            NumberAnimation { target: dsoContainer; property: "y"; to: 172; duration: 200 }
        },
        Transition {
            from: "*"
            to: "conAreaEntered"
            NumberAnimation { target: conText; property: "font.pixelSize"; to: 21; duration: 150 }
            NumberAnimation { target: dsoContainer; property: "y"; to: 172; duration: 200 }
        },
        Transition {
            from: "*"
            to: "dsoAreaEntered"
            NumberAnimation { target: dsoText; property: "font.pixelSize"; to: 21; duration: 150 }
        },
        Transition {
            from: "*"
            to: "galAreaEntered"
            NumberAnimation { target: galText; property: "font.pixelSize"; to: 21; duration: 150 }
        },
        Transition {
            from: "*"
            to: "nebAreaEntered"
            NumberAnimation { target: nebText; property: "font.pixelSize"; to: 21; duration: 150 }
        },
        Transition {
            from: "*"
            to: "clustAreaEntered"
            NumberAnimation { target: clustText; property: "font.pixelSize"; to: 21; duration: 150 }
        },
        Transition {
            from: "*"
            to: "dsoAreaClicked"
            NumberAnimation { target: dsoContainer; property: "y"; duration: 200 }
            NumberAnimation { target: galRect; property: "opacity"; duration: 500 }
            NumberAnimation { target: nebRect; property: "opacity"; duration: 500 }
            NumberAnimation { target: clustRect; property: "opacity"; duration: 500 }
1297 1298
        },
        Transition {
1299 1300 1301
            from: "*"
            to: "soTypeSelected"
            NumberAnimation { target: viewsRow; property: "x"; duration: 250; easing.type: Easing.InOutQuad }
1302
            NumberAnimation { target: backButton; property: "x"; duration: 250; easing.type: Easing.InOutQuad }
1303
            NumberAnimation { target: oMagText; property: "opacity"; duration: 1000; easing.type: Easing.InOutQuad }
1304 1305
        },
        Transition {
1306 1307 1308
            from: "soTypeSelected"
            to: "base"
            NumberAnimation { target: viewsRow; property: "x"; duration: 250; easing.type: Easing.InOutQuad }
1309
            NumberAnimation { target: backButton; property: "x"; duration: 250; easing.type: Easing.InOutQuad }
1310
            NumberAnimation { target: oMagText; property: "opacity"; duration: 100; easing.type: Easing.InOutQuad }
1311 1312 1313
        }
    ]
}