VirtualBox

Changeset 94658 in vbox


Ignore:
Timestamp:
Apr 21, 2022 8:33:56 AM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
151021
Message:

FE/Qt: bugref:10216. Moving 'Show Log' menu item to Machine menu from debug menu. This makes vm log viewer accessible in vm windows as well (besides manager window) [build fix when VBOX_WITH_DEBUGGER_GUI is not defined].

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.cpp

    r94651 r94658  
    24482448}
    24492449
    2450 #ifdef VBOX_WITH_DEBUGGER_GUI
    2451 
    2452 void UIMachineLogic::sltShowDebugStatistics()
    2453 {
    2454     if (dbgCreated())
    2455     {
    2456         keyboardHandler()->setDebuggerActive();
    2457         const QByteArray &expandBytes = uiCommon().getDebuggerStatisticsExpand().toUtf8();
    2458         const QByteArray &filterBytes = uiCommon().getDebuggerStatisticsFilter().toUtf8();
    2459         m_pDbgGuiVT->pfnShowStatistics(m_pDbgGui, filterBytes.constData(), expandBytes.constData());
    2460     }
    2461 }
    2462 
    2463 void UIMachineLogic::sltShowDebugCommandLine()
    2464 {
    2465     if (dbgCreated())
    2466     {
    2467         keyboardHandler()->setDebuggerActive();
    2468         m_pDbgGuiVT->pfnShowCommandLine(m_pDbgGui);
    2469     }
    2470 }
    2471 
    2472 void UIMachineLogic::sltLoggingToggled(bool fState)
    2473 {
    2474     NOREF(fState);
    2475     if (!debugger().isNull() && debugger().isOk())
    2476         debugger().SetLogEnabled(fState);
    2477 }
    2478 
    24792450void UIMachineLogic::sltShowLogDialog()
    24802451{
     
    25122483    pDialog->close();
    25132484    UIVMLogViewerDialogFactory().cleanup(pDialog);
     2485}
     2486
     2487#ifdef VBOX_WITH_DEBUGGER_GUI
     2488
     2489void UIMachineLogic::sltShowDebugStatistics()
     2490{
     2491    if (dbgCreated())
     2492    {
     2493        keyboardHandler()->setDebuggerActive();
     2494        const QByteArray &expandBytes = uiCommon().getDebuggerStatisticsExpand().toUtf8();
     2495        const QByteArray &filterBytes = uiCommon().getDebuggerStatisticsFilter().toUtf8();
     2496        m_pDbgGuiVT->pfnShowStatistics(m_pDbgGui, filterBytes.constData(), expandBytes.constData());
     2497    }
     2498}
     2499
     2500void UIMachineLogic::sltShowDebugCommandLine()
     2501{
     2502    if (dbgCreated())
     2503    {
     2504        keyboardHandler()->setDebuggerActive();
     2505        m_pDbgGuiVT->pfnShowCommandLine(m_pDbgGui);
     2506    }
     2507}
     2508
     2509void UIMachineLogic::sltLoggingToggled(bool fState)
     2510{
     2511    NOREF(fState);
     2512    if (!debugger().isNull() && debugger().isOk())
     2513        debugger().SetLogEnabled(fState);
    25142514}
    25152515
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette