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

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

Issue 18279002: Separate showing and hiding the debugger settings and inspector. (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « debugger/QT/SkDebuggerGUI.h ('k') | no next file » | 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 26 matching lines...) Expand all
37 , fActionProfile(this) 37 , fActionProfile(this)
38 , fActionCancel(this) 38 , fActionCancel(this)
39 , fActionClearBreakpoints(this) 39 , fActionClearBreakpoints(this)
40 , fActionClearDeletes(this) 40 , fActionClearDeletes(this)
41 , fActionClose(this) 41 , fActionClose(this)
42 , fActionCreateBreakpoint(this) 42 , fActionCreateBreakpoint(this)
43 , fActionDelete(this) 43 , fActionDelete(this)
44 , fActionDirectory(this) 44 , fActionDirectory(this)
45 , fActionGoToLine(this) 45 , fActionGoToLine(this)
46 , fActionInspector(this) 46 , fActionInspector(this)
47 , fActionSettings(this)
47 , fActionPlay(this) 48 , fActionPlay(this)
48 , fActionPause(this) 49 , fActionPause(this)
49 , fActionRewind(this) 50 , fActionRewind(this)
50 , fActionSave(this) 51 , fActionSave(this)
51 , fActionSaveAs(this) 52 , fActionSaveAs(this)
52 , fActionShowDeletes(this) 53 , fActionShowDeletes(this)
53 , fActionStepBack(this) 54 , fActionStepBack(this)
54 , fActionStepForward(this) 55 , fActionStepForward(this)
55 , fActionZoomIn(this) 56 , fActionZoomIn(this)
56 , fActionZoomOut(this) 57 , fActionZoomOut(this)
(...skipping 18 matching lines...) Expand all
75 connect(&fActionDirectory, SIGNAL(triggered()), this, SLOT(toggleDirectory() )); 76 connect(&fActionDirectory, SIGNAL(triggered()), this, SLOT(toggleDirectory() ));
76 connect(&fDirectoryWidget, SIGNAL(currentItemChanged(QListWidgetItem*, QList WidgetItem*)), this, SLOT(loadFile(QListWidgetItem *))); 77 connect(&fDirectoryWidget, SIGNAL(currentItemChanged(QListWidgetItem*, QList WidgetItem*)), this, SLOT(loadFile(QListWidgetItem *)));
77 connect(&fActionDelete, SIGNAL(triggered()), this, SLOT(actionDelete())); 78 connect(&fActionDelete, SIGNAL(triggered()), this, SLOT(actionDelete()));
78 connect(&fListWidget, SIGNAL(itemDoubleClicked(QListWidgetItem*)), this, SLO T(toggleBreakpoint())); 79 connect(&fListWidget, SIGNAL(itemDoubleClicked(QListWidgetItem*)), this, SLO T(toggleBreakpoint()));
79 connect(&fActionRewind, SIGNAL(triggered()), this, SLOT(actionRewind())); 80 connect(&fActionRewind, SIGNAL(triggered()), this, SLOT(actionRewind()));
80 connect(&fActionPlay, SIGNAL(triggered()), this, SLOT(actionPlay())); 81 connect(&fActionPlay, SIGNAL(triggered()), this, SLOT(actionPlay()));
81 connect(&fActionStepBack, SIGNAL(triggered()), this, SLOT(actionStepBack())) ; 82 connect(&fActionStepBack, SIGNAL(triggered()), this, SLOT(actionStepBack())) ;
82 connect(&fActionStepForward, SIGNAL(triggered()), this, SLOT(actionStepForwa rd())); 83 connect(&fActionStepForward, SIGNAL(triggered()), this, SLOT(actionStepForwa rd()));
83 connect(&fActionBreakpoint, SIGNAL(triggered()), this, SLOT(actionBreakpoint s())); 84 connect(&fActionBreakpoint, SIGNAL(triggered()), this, SLOT(actionBreakpoint s()));
84 connect(&fActionInspector, SIGNAL(triggered()), this, SLOT(actionInspector() )); 85 connect(&fActionInspector, SIGNAL(triggered()), this, SLOT(actionInspector() ));
85 connect(&fActionInspector, SIGNAL(triggered()), this, SLOT(actionSettings()) ); 86 connect(&fActionSettings, SIGNAL(triggered()), this, SLOT(actionSettings())) ;
86 connect(&fFilter, SIGNAL(activated(QString)), this, SLOT(toggleFilter(QStrin g))); 87 connect(&fFilter, SIGNAL(activated(QString)), this, SLOT(toggleFilter(QStrin g)));
87 connect(&fActionProfile, SIGNAL(triggered()), this, SLOT(actionProfile())); 88 connect(&fActionProfile, SIGNAL(triggered()), this, SLOT(actionProfile()));
88 connect(&fActionCancel, SIGNAL(triggered()), this, SLOT(actionCancel())); 89 connect(&fActionCancel, SIGNAL(triggered()), this, SLOT(actionCancel()));
89 connect(&fActionClearBreakpoints, SIGNAL(triggered()), this, SLOT(actionClea rBreakpoints())); 90 connect(&fActionClearBreakpoints, SIGNAL(triggered()), this, SLOT(actionClea rBreakpoints()));
90 connect(&fActionClearDeletes, SIGNAL(triggered()), this, SLOT(actionClearDel etes())); 91 connect(&fActionClearDeletes, SIGNAL(triggered()), this, SLOT(actionClearDel etes()));
91 connect(&fActionClose, SIGNAL(triggered()), this, SLOT(actionClose())); 92 connect(&fActionClose, SIGNAL(triggered()), this, SLOT(actionClose()));
92 connect(fSettingsWidget.getVisibilityButton(), SIGNAL(toggled(bool)), this, SLOT(actionCommandFilter())); 93 connect(fSettingsWidget.getVisibilityButton(), SIGNAL(toggled(bool)), this, SLOT(actionCommandFilter()));
93 #if SK_SUPPORT_GPU 94 #if SK_SUPPORT_GPU
94 connect(fSettingsWidget.getGLCheckBox(), SIGNAL(toggled(bool)), this, SLOT(a ctionGLWidget(bool))); 95 connect(fSettingsWidget.getGLCheckBox(), SIGNAL(toggled(bool)), this, SLOT(a ctionGLWidget(bool)));
95 #endif 96 #endif
(...skipping 603 matching lines...) Expand 10 before | Expand all | Expand 10 after
699 fActionProfile.setText("Profile"); 700 fActionProfile.setText("Profile");
700 fActionProfile.setDisabled(true); 701 fActionProfile.setDisabled(true);
701 702
702 QIcon inspector; 703 QIcon inspector;
703 inspector.addFile(QString::fromUtf8(":/inspector.png"), 704 inspector.addFile(QString::fromUtf8(":/inspector.png"),
704 QSize(), QIcon::Normal, QIcon::Off); 705 QSize(), QIcon::Normal, QIcon::Off);
705 fActionInspector.setShortcut(QKeySequence(tr("Ctrl+I"))); 706 fActionInspector.setShortcut(QKeySequence(tr("Ctrl+I")));
706 fActionInspector.setIcon(inspector); 707 fActionInspector.setIcon(inspector);
707 fActionInspector.setText("Inspector"); 708 fActionInspector.setText("Inspector");
708 709
710 QIcon settings;
711 settings.addFile(QString::fromUtf8(":/inspector.png"),
712 QSize(), QIcon::Normal, QIcon::Off);
713 fActionSettings.setShortcut(QKeySequence(tr("Ctrl+G")));
714 fActionSettings.setIcon(settings);
715 fActionSettings.setText("Settings");
716
709 QIcon play; 717 QIcon play;
710 play.addFile(QString::fromUtf8(":/play.png"), QSize(), 718 play.addFile(QString::fromUtf8(":/play.png"), QSize(),
711 QIcon::Normal, QIcon::Off); 719 QIcon::Normal, QIcon::Off);
712 fActionPlay.setShortcut(QKeySequence(tr("Ctrl+P"))); 720 fActionPlay.setShortcut(QKeySequence(tr("Ctrl+P")));
713 fActionPlay.setIcon(play); 721 fActionPlay.setIcon(play);
714 fActionPlay.setText("Play"); 722 fActionPlay.setText("Play");
715 723
716 QIcon pause; 724 QIcon pause;
717 pause.addFile(QString::fromUtf8(":/pause.png"), QSize(), 725 pause.addFile(QString::fromUtf8(":/pause.png"), QSize(),
718 QIcon::Normal, QIcon::Off); 726 QIcon::Normal, QIcon::Off);
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
812 820
813 fSpacer.setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); 821 fSpacer.setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
814 822
815 fToolBar.addAction(&fActionRewind); 823 fToolBar.addAction(&fActionRewind);
816 fToolBar.addAction(&fActionStepBack); 824 fToolBar.addAction(&fActionStepBack);
817 fToolBar.addAction(&fActionPause); 825 fToolBar.addAction(&fActionPause);
818 fToolBar.addAction(&fActionStepForward); 826 fToolBar.addAction(&fActionStepForward);
819 fToolBar.addAction(&fActionPlay); 827 fToolBar.addAction(&fActionPlay);
820 fToolBar.addSeparator(); 828 fToolBar.addSeparator();
821 fToolBar.addAction(&fActionInspector); 829 fToolBar.addAction(&fActionInspector);
830 fToolBar.addAction(&fActionSettings);
822 fToolBar.addSeparator(); 831 fToolBar.addSeparator();
823 fToolBar.addAction(&fActionProfile); 832 fToolBar.addAction(&fActionProfile);
824 833
825 fToolBar.addSeparator(); 834 fToolBar.addSeparator();
826 fToolBar.addWidget(&fSpacer); 835 fToolBar.addWidget(&fSpacer);
827 fToolBar.addWidget(&fFilter); 836 fToolBar.addWidget(&fFilter);
828 fToolBar.addAction(&fActionCancel); 837 fToolBar.addAction(&fActionCancel);
829 838
830 // TODO(chudy): Remove static call. 839 // TODO(chudy): Remove static call.
831 fDirectoryWidgetActive = false; 840 fDirectoryWidgetActive = false;
(...skipping 24 matching lines...) Expand all
856 fMenuNavigate.addAction(&fActionGoToLine); 865 fMenuNavigate.addAction(&fActionGoToLine);
857 866
858 fMenuView.setTitle("View"); 867 fMenuView.setTitle("View");
859 fMenuView.addAction(&fActionBreakpoint); 868 fMenuView.addAction(&fActionBreakpoint);
860 fMenuView.addAction(&fActionShowDeletes); 869 fMenuView.addAction(&fActionShowDeletes);
861 fMenuView.addAction(&fActionZoomIn); 870 fMenuView.addAction(&fActionZoomIn);
862 fMenuView.addAction(&fActionZoomOut); 871 fMenuView.addAction(&fActionZoomOut);
863 872
864 fMenuWindows.setTitle("Window"); 873 fMenuWindows.setTitle("Window");
865 fMenuWindows.addAction(&fActionInspector); 874 fMenuWindows.addAction(&fActionInspector);
875 fMenuWindows.addAction(&fActionSettings);
866 fMenuWindows.addAction(&fActionDirectory); 876 fMenuWindows.addAction(&fActionDirectory);
867 877
868 fActionGoToLine.setText("Go to Line..."); 878 fActionGoToLine.setText("Go to Line...");
869 fActionGoToLine.setDisabled(true); 879 fActionGoToLine.setDisabled(true);
870 fMenuBar.addAction(fMenuFile.menuAction()); 880 fMenuBar.addAction(fMenuFile.menuAction());
871 fMenuBar.addAction(fMenuEdit.menuAction()); 881 fMenuBar.addAction(fMenuEdit.menuAction());
872 fMenuBar.addAction(fMenuView.menuAction()); 882 fMenuBar.addAction(fMenuView.menuAction());
873 fMenuBar.addAction(fMenuNavigate.menuAction()); 883 fMenuBar.addAction(fMenuNavigate.menuAction());
874 fMenuBar.addAction(fMenuWindows.menuAction()); 884 fMenuBar.addAction(fMenuWindows.menuAction());
875 885
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
992 } 1002 }
993 1003
994 // NOTE(chudy): Makes first item unselectable. 1004 // NOTE(chudy): Makes first item unselectable.
995 QStandardItemModel* model = qobject_cast<QStandardItemModel*>( 1005 QStandardItemModel* model = qobject_cast<QStandardItemModel*>(
996 fFilter.model()); 1006 fFilter.model());
997 QModelIndex firstIndex = model->index(0, fFilter.modelColumn(), 1007 QModelIndex firstIndex = model->index(0, fFilter.modelColumn(),
998 fFilter.rootModelIndex()); 1008 fFilter.rootModelIndex());
999 QStandardItem* firstItem = model->itemFromIndex(firstIndex); 1009 QStandardItem* firstItem = model->itemFromIndex(firstIndex);
1000 firstItem->setSelectable(false); 1010 firstItem->setSelectable(false);
1001 } 1011 }
OLDNEW
« no previous file with comments | « debugger/QT/SkDebuggerGUI.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698