mirror of
https://github.com/epasveer/seer.git
synced 2026-08-30 00:50:42 +08:00
Change ObjectiveC pretext from 'oc#' to '(objc)'
Makes it look like a cast.
This commit is contained in:
@@ -187,10 +187,12 @@ void SeerStackArgumentsBrowserWidget::handleContextMenu (const QPoint& pos) {
|
||||
QAction* addVariableLoggerAsteriskExpressionAction;
|
||||
QAction* addVariableLoggerAmpersandExpressionAction;
|
||||
QAction* addVariableLoggerAsteriskAmpersandExpressionAction;
|
||||
QAction* addVariableLoggerObjcExpressionAction;
|
||||
QAction* addVariableTrackerExpressionAction;
|
||||
QAction* addVariableTrackerAsteriskExpressionAction;
|
||||
QAction* addVariableTrackerAmpersandExpressionAction;
|
||||
QAction* addVariableTrackerAsteriskAmpersandExpressionAction;
|
||||
QAction* addVariableTrackerObjcExpressionAction;
|
||||
QAction* addMemoryVisualizerAction;
|
||||
QAction* addMemoryAsteriskVisualizerAction;
|
||||
QAction* addMemoryAmpersandVisualizerAction;
|
||||
@@ -208,10 +210,12 @@ void SeerStackArgumentsBrowserWidget::handleContextMenu (const QPoint& pos) {
|
||||
addVariableLoggerAsteriskExpressionAction = new QAction(QString("\"*%1\"").arg(item->text(1)));
|
||||
addVariableLoggerAmpersandExpressionAction = new QAction(QString("\"&&%1\"").arg(item->text(1)));
|
||||
addVariableLoggerAsteriskAmpersandExpressionAction = new QAction(QString("\"*&&%1\"").arg(item->text(1)));
|
||||
addVariableLoggerObjcExpressionAction = new QAction(QString("\"(objc)%1\"").arg(item->text(0)));
|
||||
addVariableTrackerExpressionAction = new QAction(QString("\"%1\"").arg(item->text(1)));
|
||||
addVariableTrackerAsteriskExpressionAction = new QAction(QString("\"*%1\"").arg(item->text(1)));
|
||||
addVariableTrackerAmpersandExpressionAction = new QAction(QString("\"&&%1\"").arg(item->text(1)));
|
||||
addVariableTrackerAsteriskAmpersandExpressionAction = new QAction(QString("\"*&&%1\"").arg(item->text(1)));
|
||||
addVariableTrackerObjcExpressionAction = new QAction(QString("\"(objc)%1\"").arg(item->text(0)));
|
||||
addMemoryVisualizerAction = new QAction(QString("\"%1\"").arg(item->text(1)));
|
||||
addMemoryAsteriskVisualizerAction = new QAction(QString("\"*%1\"").arg(item->text(1)));
|
||||
addMemoryAmpersandVisualizerAction = new QAction(QString("\"&&%1\"").arg(item->text(1)));
|
||||
@@ -233,6 +237,7 @@ void SeerStackArgumentsBrowserWidget::handleContextMenu (const QPoint& pos) {
|
||||
loggerMenu.addAction(addVariableLoggerAsteriskExpressionAction);
|
||||
loggerMenu.addAction(addVariableLoggerAmpersandExpressionAction);
|
||||
loggerMenu.addAction(addVariableLoggerAsteriskAmpersandExpressionAction);
|
||||
loggerMenu.addAction(addVariableLoggerObjcExpressionAction);
|
||||
menu.addMenu(&loggerMenu);
|
||||
|
||||
QMenu trackerMenu("Add variable to Tracker");
|
||||
@@ -240,6 +245,7 @@ void SeerStackArgumentsBrowserWidget::handleContextMenu (const QPoint& pos) {
|
||||
trackerMenu.addAction(addVariableTrackerAsteriskExpressionAction);
|
||||
trackerMenu.addAction(addVariableTrackerAmpersandExpressionAction);
|
||||
trackerMenu.addAction(addVariableTrackerAsteriskAmpersandExpressionAction);
|
||||
trackerMenu.addAction(addVariableTrackerObjcExpressionAction);
|
||||
menu.addMenu(&trackerMenu);
|
||||
|
||||
QMenu memoryVisualizerMenu("Add variable to a Memory Visualizer");
|
||||
@@ -318,6 +324,17 @@ void SeerStackArgumentsBrowserWidget::handleContextMenu (const QPoint& pos) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Handle adding a variable to log.
|
||||
if (action == addVariableLoggerObjcExpressionAction) {
|
||||
|
||||
// Emit the signals.
|
||||
if (item->text(1) != "") {
|
||||
emit addVariableLoggerExpression(QString("(objc)") + item->text(1));
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
// Handle adding a variable to track.
|
||||
if (action == addVariableTrackerExpressionAction) {
|
||||
|
||||
@@ -366,6 +383,18 @@ void SeerStackArgumentsBrowserWidget::handleContextMenu (const QPoint& pos) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Handle adding a variable to track.
|
||||
if (action == addVariableTrackerObjcExpressionAction) {
|
||||
|
||||
// Emit the signals.
|
||||
if (item->text(1) != "") {
|
||||
emit addVariableTrackerExpression(QString("(objc)") + item->text(1));
|
||||
emit refreshVariableTrackerValues();
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
// Handle adding memory to visualize.
|
||||
if (action == addMemoryVisualizerAction) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user