1 /**************************************************************************** 2 ** 3 ** Copyright (C) 2016 The Qt Company Ltd. 4 ** Contact: https://www.qt.io/licensing/ 5 ** 6 ** This file is part of Qt Creator. 7 ** 8 ** Commercial License Usage 9 ** Licensees holding valid commercial Qt licenses may use this file in 10 ** accordance with the commercial license agreement provided with the 11 ** Software or, alternatively, in accordance with the terms contained in 12 ** a written agreement between you and The Qt Company. For licensing terms 13 ** and conditions see https://www.qt.io/terms-conditions. For further 14 ** information use the contact form at https://www.qt.io/contact-us. 15 ** 16 ** GNU General Public License Usage 17 ** Alternatively, this file may be used under the terms of the GNU 18 ** General Public License version 3 as published by the Free Software 19 ** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT 20 ** included in the packaging of this file. Please review the following 21 ** information to ensure the GNU General Public License requirements will 22 ** be met: https://www.gnu.org/licenses/gpl-3.0.html. 23 ** 24 ****************************************************************************/ 25 26 #pragma once 27 28 #include <QtGlobal> 29 30 namespace Debugger { 31 32 namespace Constants { 33 34 // Common actions 35 const char INTERRUPT[] = "Debugger.Interrupt"; 36 const char CONTINUE[] = "Debugger.Continue"; 37 const char STOP[] = "Debugger.Stop"; 38 const char ABORT[] = "Debugger.Abort"; 39 const char STEP[] = "Debugger.StepLine"; 40 const char STEPOUT[] = "Debugger.StepOut"; 41 const char NEXT[] = "Debugger.NextLine"; 42 const char RUNTOLINE[] = "Debugger.RunToLine"; 43 const char RUNTOSELECTEDFUNCTION[] = "Debugger.RunToSelectedFunction"; 44 const char JUMPTOLINE[] = "Debugger.JumpToLine"; 45 const char RETURNFROMFUNCTION[] = "Debugger.ReturnFromFunction"; 46 const char RESET[] = "Debugger.Reset"; 47 const char WATCH[] = "Debugger.AddToWatch"; 48 const char DETACH[] = "Debugger.Detach"; 49 const char OPERATE_BY_INSTRUCTION[] = "Debugger.OperateByInstruction"; 50 const char OPEN_MEMORY_EDITOR[] = "Debugger.Views.OpenMemoryEditor"; 51 const char FRAME_UP[] = "Debugger.FrameUp"; 52 const char FRAME_DOWN[] = "Debugger.FrameDown"; 53 const char QML_SHOW_APP_ON_TOP[] = "Debugger.QmlShowAppOnTop"; 54 const char QML_SELECTTOOL[] = "Debugger.QmlSelectTool"; 55 const char RELOAD_DEBUGGING_HELPERS[] = "Debugger.ReloadDebuggingHelpers"; 56 57 const char DEBUGGER_COMMON_SETTINGS_ID[] = "A.Debugger.General"; 58 const char DEBUGGER_SETTINGS_CATEGORY[] = "O.Debugger"; 59 60 // Contexts 61 const char C_CPPDEBUGGER[] = "Gdb Debugger"; 62 const char C_QMLDEBUGGER[] = "Qml/JavaScript Debugger"; 63 const char C_DEBUGGER_NOTRUNNING[] = "Debugger.NotRunning"; 64 65 const char PRESET_PERSPECTIVE_ID[] = "Debugger.Perspective.Preset"; 66 67 const char TASK_CATEGORY_DEBUGGER_DEBUGINFO[] = "Debuginfo"; 68 const char TASK_CATEGORY_DEBUGGER_RUNTIME[] = "DebugRuntime"; 69 70 const char TEXT_MARK_CATEGORY_BREAKPOINT[] = "Debugger.Mark.Breakpoint"; 71 const char TEXT_MARK_CATEGORY_LOCATION[] = "Debugger.Mark.Location"; 72 const char TEXT_MARK_CATEGORY_VALUE[] = "Debugger.Mark.Value"; 73 74 const char OPENED_BY_DEBUGGER[] = "OpenedByDebugger"; 75 const char OPENED_WITH_DISASSEMBLY[] = "DisassemblerView"; 76 const char DISASSEMBLER_SOURCE_FILE[] = "DisassemblerSourceFile"; 77 78 const char CRT_DEBUG_REPORT[] = "CrtDbgReport"; 79 80 } // namespace Constants 81 82 enum ModelRoles 83 { 84 DisplaySourceRole = 32, // Qt::UserRole 85 86 EngineStateRole, 87 EngineActionsEnabledRole, 88 RequestActivationRole, 89 RequestContextMenuRole, 90 91 // Locals and Watchers 92 LocalsINameRole, 93 LocalsNameRole, 94 LocalsExpandedRole, // The preferred expanded state to the view 95 LocalsTypeFormatRole, // Used to communicate alternative formats to the view 96 LocalsIndividualFormatRole, 97 98 // Snapshots 99 SnapshotCapabilityRole 100 }; 101 102 } // namespace Debugger 103