Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(253)

Side by Side Diff: debugger/QT/SkDebuggerGUI.cpp

Issue 830743002: debugger: Make inspector widget smaller (Closed) Base URL: https://skia.googlesource.com/skia.git@debugger-resize-02-drawop-view-resize
Patch Set: address review comments Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | debugger/QT/SkInspectorWidget.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
871 } 867 }
872 868
873 void SkDebuggerGUI::updateCommand(int newCommand) { 869 void SkDebuggerGUI::updateCommand(int newCommand) {
874 fCurrentCommandBox.setText(QString::number(newCommand)); 870 fCurrentCommandBox.setText(QString::number(newCommand));
875 } 871 }
876 872
877 void SkDebuggerGUI::updateHit(int newHit) { 873 void SkDebuggerGUI::updateHit(int newHit) {
878 fCommandHitBox.setText(QString::number(newHit)); 874 fCommandHitBox.setText(QString::number(newHit));
879 } 875 }
880 876
OLDNEW
« no previous file with comments | « no previous file | debugger/QT/SkInspectorWidget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698