| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2012 Google Inc. | 2 * Copyright 2012 Google Inc. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 #include "SkDebuggerGUI.h" | 8 #include "SkDebuggerGUI.h" |
| 9 #include "SkForceLinking.h" | 9 #include "SkForceLinking.h" |
| 10 #include "SkGraphics.h" | 10 #include "SkGraphics.h" |
| (...skipping 591 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 602 fFilter.addItem("--Filter By Available Commands--"); | 602 fFilter.addItem("--Filter By Available Commands--"); |
| 603 | 603 |
| 604 fDirectoryWidget.setMinimumWidth(250); | 604 fDirectoryWidget.setMinimumWidth(250); |
| 605 fDirectoryWidget.setStyleSheet("QListWidget::Item {padding: 5px;}"); | 605 fDirectoryWidget.setStyleSheet("QListWidget::Item {padding: 5px;}"); |
| 606 | 606 |
| 607 fCanvasWidget.setSizePolicy(QSizePolicy::Expanding, | 607 fCanvasWidget.setSizePolicy(QSizePolicy::Expanding, |
| 608 QSizePolicy::Expanding); | 608 QSizePolicy::Expanding); |
| 609 | 609 |
| 610 fDrawCommandGeometryWidget.setSizePolicy(QSizePolicy::Expanding, QSizePolicy
::Expanding); | 610 fDrawCommandGeometryWidget.setSizePolicy(QSizePolicy::Expanding, QSizePolicy
::Expanding); |
| 611 | 611 |
| 612 fInspectorWidget.setSizePolicy(QSizePolicy::Expanding, | |
| 613 QSizePolicy::Expanding); | |
| 614 fInspectorWidget.setMaximumHeight(300); | |
| 615 | |
| 616 fSettingsAndImageLayout.addWidget(&fSettingsWidget); | 612 fSettingsAndImageLayout.addWidget(&fSettingsWidget); |
| 617 | 613 |
| 618 // View state group, part of inspector. | 614 // View state group, part of inspector. |
| 619 fViewStateFrame.setFrameStyle(QFrame::Panel); | 615 fViewStateFrame.setFrameStyle(QFrame::Panel); |
| 620 fViewStateFrame.setLayout(&fViewStateFrameLayout); | 616 fViewStateFrame.setLayout(&fViewStateFrameLayout); |
| 621 fViewStateFrameLayout.addWidget(&fViewStateGroup); | 617 fViewStateFrameLayout.addWidget(&fViewStateGroup); |
| 622 fViewStateGroup.setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Expanding
); | 618 fViewStateGroup.setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Expanding
); |
| 623 fViewStateGroup.setTitle("View"); | 619 fViewStateGroup.setTitle("View"); |
| 624 fViewStateLayout.addRow("Zoom Level", &fZoomBox); | 620 fViewStateLayout.addRow("Zoom Level", &fZoomBox); |
| 625 fZoomBox.setText("100%"); | 621 fZoomBox.setText("100%"); |
| (...skipping 21 matching lines...) Expand all Loading... |
| 647 | 643 |
| 648 fLeftColumnSplitter.addWidget(&fListWidget); | 644 fLeftColumnSplitter.addWidget(&fListWidget); |
| 649 fLeftColumnSplitter.addWidget(&fDirectoryWidget); | 645 fLeftColumnSplitter.addWidget(&fDirectoryWidget); |
| 650 fLeftColumnSplitter.setOrientation(Qt::Vertical); | 646 fLeftColumnSplitter.setOrientation(Qt::Vertical); |
| 651 | 647 |
| 652 fCanvasSettingsAndImageLayout.setSpacing(6); | 648 fCanvasSettingsAndImageLayout.setSpacing(6); |
| 653 fCanvasSettingsAndImageLayout.addWidget(&fCanvasWidget, 1); | 649 fCanvasSettingsAndImageLayout.addWidget(&fCanvasWidget, 1); |
| 654 fCanvasSettingsAndImageLayout.addLayout(&fSettingsAndImageLayout, 0); | 650 fCanvasSettingsAndImageLayout.addLayout(&fSettingsAndImageLayout, 0); |
| 655 | 651 |
| 656 fMainAndRightColumnLayout.setSpacing(6); | 652 fMainAndRightColumnLayout.setSpacing(6); |
| 657 fMainAndRightColumnLayout.addLayout(&fCanvasSettingsAndImageLayout); | 653 fMainAndRightColumnLayout.addLayout(&fCanvasSettingsAndImageLayout, 1); |
| 658 fMainAndRightColumnLayout.addWidget(&fInspectorWidget); | 654 fMainAndRightColumnLayout.addWidget(&fInspectorWidget, 0); |
| 659 fMainAndRightColumnWidget.setLayout(&fMainAndRightColumnLayout); | 655 fMainAndRightColumnWidget.setLayout(&fMainAndRightColumnLayout); |
| 660 | 656 |
| 661 fCentralSplitter.addWidget(&fLeftColumnSplitter); | 657 fCentralSplitter.addWidget(&fLeftColumnSplitter); |
| 662 fCentralSplitter.addWidget(&fMainAndRightColumnWidget); | 658 fCentralSplitter.addWidget(&fMainAndRightColumnWidget); |
| 663 fCentralSplitter.setStretchFactor(0, 0); | 659 fCentralSplitter.setStretchFactor(0, 0); |
| 664 fCentralSplitter.setStretchFactor(1, 1); | 660 fCentralSplitter.setStretchFactor(1, 1); |
| 665 | 661 |
| 666 SkDebuggerGUI->setCentralWidget(&fCentralSplitter); | 662 SkDebuggerGUI->setCentralWidget(&fCentralSplitter); |
| 667 SkDebuggerGUI->setStatusBar(&fStatusBar); | 663 SkDebuggerGUI->setStatusBar(&fStatusBar); |
| 668 | 664 |
| (...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 875 } | 871 } |
| 876 | 872 |
| 877 void SkDebuggerGUI::updateCommand(int newCommand) { | 873 void SkDebuggerGUI::updateCommand(int newCommand) { |
| 878 fCurrentCommandBox.setText(QString::number(newCommand)); | 874 fCurrentCommandBox.setText(QString::number(newCommand)); |
| 879 } | 875 } |
| 880 | 876 |
| 881 void SkDebuggerGUI::updateHit(int newHit) { | 877 void SkDebuggerGUI::updateHit(int newHit) { |
| 882 fCommandHitBox.setText(QString::number(newHit)); | 878 fCommandHitBox.setText(QString::number(newHit)); |
| 883 } | 879 } |
| 884 | 880 |
| OLD | NEW |