Changeset 80554 in vbox
- Timestamp:
- Sep 2, 2019 2:27:53 PM (6 years ago)
- svn:sync-xref-src-repo-rev:
- 133061
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/runtime
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIConsoleEventHandler.cpp
r79365 r80554 27 27 28 28 /* COM includes: */ 29 #include "COMEnums.h" 29 30 #include "CEventListener.h" 30 31 #include "CEventSource.h" … … 81 82 /** Notifies about audio adapter state change. */ 82 83 void sigAudioAdapterChange(); 84 /** Notifies clipboard mode change. */ 85 void sigClipboardModeChange(KClipboardMode enmMode); 86 /** Notifies drag and drop mode change. */ 87 void sigDnDModeChange(KDnDMode enmMode); 83 88 84 89 public: … … 270 275 this, SLOT(sltShowWindow(qint64 &)), 271 276 Qt::DirectConnection); 272 connect(m_pQtListener->getWrapped(), SIGNAL(sigAudioAdapterChange()), 273 this, SIGNAL(sigAudioAdapterChange()), 277 connect(m_pQtListener->getWrapped(), &UIMainEventListener::sigAudioAdapterChange, 278 this, &UIConsoleEventHandlerProxy::sigAudioAdapterChange, 279 Qt::DirectConnection); 280 connect(m_pQtListener->getWrapped(), &UIMainEventListener::sigClipboardModeChange, 281 this, &UIConsoleEventHandlerProxy::sigClipboardModeChange, 282 Qt::DirectConnection); 283 connect(m_pQtListener->getWrapped(), &UIMainEventListener::sigDnDModeChange, 284 this, &UIConsoleEventHandlerProxy::sigDnDModeChange, 274 285 Qt::DirectConnection); 275 286 } … … 434 445 this, SIGNAL(sigAudioAdapterChange()), 435 446 Qt::QueuedConnection); 447 connect(m_pProxy, &UIConsoleEventHandlerProxy::sigClipboardModeChange, 448 this, &UIConsoleEventHandler::sigClipboardModeChange, 449 Qt::QueuedConnection); 450 connect(m_pProxy, &UIConsoleEventHandlerProxy::sigDnDModeChange, 451 this, &UIConsoleEventHandler::sigDnDModeChange, 452 Qt::QueuedConnection); 436 453 } 437 454 438 455 #include "UIConsoleEventHandler.moc" 439 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIConsoleEventHandler.h
r80044 r80554 87 87 /** Notifies about audio adapter state change. */ 88 88 void sigAudioAdapterChange(); 89 /** Notifies clipboard mode change. */ 90 void sigClipboardModeChange(KClipboardMode enmMode); 91 /** Notifies drag and drop mode change. */ 92 void sigDnDModeChange(KDnDMode enmMode); 89 93 90 94 public: … … 123 127 124 128 #endif /* !FEQT_INCLUDED_SRC_runtime_UIConsoleEventHandler_h */ 125 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/information/UIInformationConfiguration.cpp
r80379 r80554 71 71 } 72 72 73 74 73 void UIInformationConfiguration::createTableItems() 75 74 { … … 140 139 m_pTableWidget->resizeColumnToContents(2); 141 140 } 142 143 144 141 145 142 void UIInformationConfiguration::prepareObjects() … … 166 163 } 167 164 168 169 170 165 void UIInformationConfiguration::insertInfoRows(const UITextTable &table, const QFontMetrics &fontMetrics, 171 166 QTextDocument &textDocument, int &iMaxColumn1Length) -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/information/UIInformationRuntime.cpp
r80545 r80554 71 71 /********************************************************************************************************************************* 72 72 * UIRuntimeInfoWidget definition. * 73 ******************************************************************1***************************************************************/ 73 *********************************************************************************************************************************/ 74 /** A QTablWidget extention to show some runtime attributes. Some of these are updated in response to IConsole events. Uptime field 75 * is updated thru a QTimer. */ 74 76 class UIRuntimeInfoWidget : public QIWithRetranslateUI<QTableWidget> 75 77 { … … 1230 1232 QVector<QString> allNames;// = new ArrayList<IUnknown>(); 1231 1233 QVector<CUnknown> allObjects;// = new ArrayList<IUnknown>(); 1232 1233 1234 QVector<QString> aReturnNames; 1234 1235 QVector<CUnknown> aReturnObjects; … … 1238 1239 QVector<ULONG> aReturnDataIndices; 1239 1240 QVector<ULONG> aReturnDataLengths; 1240 1241 /* Make a query to CPerformanceCollector to fetch some metrics (e.g RAM usage): */ 1241 1242 QVector<LONG> returnData = m_performanceMonitor.QueryMetricsData(m_nameList, 1242 1243 m_objectList, … … 1250 1251 quint64 iTotalRAM = 0; 1251 1252 quint64 iFreeRAM = 0; 1252 1253 /* Parse the result we get from CPerformanceCollector to get respective values: */ 1253 1254 for (int i = 0; i < aReturnNames.size(); ++i) 1254 1255 { … … 1366 1367 m_performanceMonitor = uiCommon().virtualBox().GetPerformanceCollector(); 1367 1368 m_machineDebugger = m_console.GetDebugger(); 1368 1369 1369 if (m_performanceMonitor.isNull()) 1370 1370 return; … … 1392 1392 m_subMetrics.insert(m_strCPUMetricName, UIMetric(m_strCPUMetricName, "%", iMaximumQueueSize)); 1393 1393 { 1394 1395 1394 /* Network metric: */ 1396 1395 UIMetric networkMetric(m_strNetworkMetricName, "B", iMaximumQueueSize); … … 1542 1541 return; 1543 1542 } 1544 1545 1543 NetMetric.addData(0, iReceiveRate); 1546 1544 NetMetric.addData(1, iTransmitRate); -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/information/UIInformationRuntime.h
r80543 r80554 152 152 153 153 private slots: 154 154 /** Reads the metric values for several sources and calls corresponding update functions. */ 155 155 void sltTimeout(); 156 void sltGuestAdditionsStateChange(); 157 void sltGuestMonitorChange(KGuestMonitorChangedEventType changeType, ulong uScreenId, QRect screenGeo); 158 void sltVRDEChange(); 159 void sltClipboardChange(KClipboardMode enmMode); 160 void sltDnDModeChange(KDnDMode enmMode); 156 /** @name These functions are connected to API events and implement necessary updates. 157 * @{ */ 158 void sltGuestAdditionsStateChange(); 159 void sltGuestMonitorChange(KGuestMonitorChangedEventType changeType, ulong uScreenId, QRect screenGeo); 160 void sltVRDEChange(); 161 void sltClipboardChange(KClipboardMode enmMode); 162 void sltDnDModeChange(KDnDMode enmMode); 163 /** @} */ 161 164 162 165 private: 163 166 164 /** Prepares layout. */165 167 void prepareObjects(); 166 168 void prepareMetrics(); … … 175 177 QString dataColorString(const QString &strChartName, int iDataIndex); 176 178 void runTimeAttributes(); 177 178 179 QVector<DebuggerMetricData> getTotalCounterFromDegugger(const QString &strQuery); 179 180
Note:
See TracChangeset
for help on using the changeset viewer.