Changeset 102723 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Dec 28, 2023 2:00:03 PM (12 months ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerPanel.cpp
r101092 r102723 101 101 connect(m_pPreferencesWidget, &UIVMLogViewerPreferencesWidget::sigResetToDefaults, 102 102 this, &UIVMLogViewerPaneContainer::sigResetToDefaults); 103 connect(m_pPreferencesWidget, &UIVMLogViewerPreferencesWidget::sigDetach, 104 this, &UIVMLogViewerPaneContainer::sigDetach); 103 105 104 106 retranslateUi(); -
trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerPanel.h
r101092 r102723 63 63 void sigChangeFont(QFont font); 64 64 void sigResetToDefaults(); 65 void sigDetach(); 65 66 66 67 void sigShowSearchPane(); -
trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerPreferencesWidget.cpp
r101563 r102723 32 32 #include <QCheckBox> 33 33 #include <QLabel> 34 #include <QPushButton> 34 35 #include <QSpinBox> 35 36 36 37 /* GUI includes: */ 38 #include "QIDialogButtonBox.h" 37 39 #include "QIToolButton.h" 38 40 #include "UIIconPool.h" … … 52 54 , m_pOpenFontDialogButton(0) 53 55 , m_pResetToDefaultsButton(0) 56 , m_pButtonBox(0) 54 57 , m_iDefaultFontSize(9) 55 58 { … … 153 156 pMainLayout->addLayout(pContainerLayout); 154 157 pMainLayout->addStretch(1); 158 159 /* Create button-box: */ 160 m_pButtonBox = new QIDialogButtonBox; 161 if (m_pButtonBox) 162 { 163 /* Configure button-box: */ 164 m_pButtonBox->setVisible(viewer()->embeddingType() == EmbedTo_Stack); 165 m_pButtonBox->setStandardButtons(QDialogButtonBox::Close); 166 connect(m_pButtonBox->button(QIDialogButtonBox::Close), &QPushButton::pressed, 167 this, &UIVMLogViewerPreferencesWidget::sigDetach); 168 169 /* Add into layout: */ 170 pMainLayout->addWidget(m_pButtonBox); 171 } 155 172 } 156 173 … … 184 201 m_pOpenFontDialogButton->setToolTip(UIVMLogViewerWidget::tr("Open a font dialog to select font face for the logviewer")); 185 202 m_pResetToDefaultsButton->setToolTip(UIVMLogViewerWidget::tr("Reset options to application defaults")); 203 204 if (m_pButtonBox) 205 { 206 m_pButtonBox->button(QDialogButtonBox::Close)->setText(tr("Detach")); 207 m_pButtonBox->button(QDialogButtonBox::Close)->setStatusTip(tr("Open the tool in separate window")); 208 } 186 209 } 187 210 -
trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerPreferencesWidget.h
r100963 r102723 39 39 class QSpinBox; 40 40 class QLabel; 41 class QIDialogButtonBox; 41 42 class QIToolButton; 42 43 class UIVMLogViewerWidget; … … 54 55 void sigChangeFont(QFont font); 55 56 void sigResetToDefaults(); 57 void sigDetach(); 56 58 57 59 public: … … 87 89 QIToolButton *m_pResetToDefaultsButton; 88 90 91 QIDialogButtonBox *m_pButtonBox; 92 89 93 /** Default font size in points. */ 90 94 const int m_iDefaultFontSize; -
trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerWidget.cpp
r102574 r102723 796 796 connect(m_pPanel, &UIVMLogViewerPaneContainer::sigResetToDefaults, 797 797 this, &UIVMLogViewerWidget::sltResetOptionsToDefault); 798 connect(m_pPanel, &UIVMLogViewerPaneContainer::sigDetach, 799 this, &UIVMLogViewerWidget::sigDetach); 798 800 connect(m_pPanel, &UIVMLogViewerPaneContainer::sigCurrentTabChanged, 799 801 this, &UIVMLogViewerWidget::sltPanelCurrentTabChanged); -
trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerWidget.h
r102574 r102723 71 71 72 72 void sigSetCloseButtonShortCut(QKeySequence); 73 void sigDetach(); 73 74 74 75 public: … … 82 83 bool fShowToolbar = true, const QList<QUuid> &machineIDs = QList<QUuid>(), QWidget *pParent = 0); 83 84 ~UIVMLogViewerWidget(); 85 86 /** Returns the widget's embedding type. */ 87 EmbedTo embeddingType() const { return m_enmEmbedding; } 88 84 89 /** Returns the width of the current log page. return 0 if there is no current log page: */ 85 90 int defaultLogPageWidth() const; -
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIToolPaneMachine.cpp
r102420 r102723 195 195 /* Configure pane: */ 196 196 m_pPaneLogViewer->setProperty("ToolType", QVariant::fromValue(UIToolType_Logs)); 197 connect(m_pPaneLogViewer, &UIVMLogViewerWidget::sigDetach, 198 this, &UIToolPaneMachine::sigDetachLogViewer); 197 199 m_pPaneLogViewer->setSelectedVMListItems(m_items); 198 200 -
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIToolPaneMachine.h
r102420 r102723 76 76 void sigSwitchToActivityOverviewPane(); 77 77 78 /** Notifies listeners about request to detach Log Viewer pane. */ 79 void sigDetachLogViewer(); 80 78 81 public: 79 82 -
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualBoxManager.cpp
r102722 r102723 969 969 { 970 970 updateActionsAppearance(); 971 } 972 973 void UIVirtualBoxManager::sltDetachLogViewer() 974 { 975 sltOpenManagerWindow(UIToolType_Logs); 971 976 } 972 977 … … 2489 2494 connect(m_pWidget, &UIVirtualBoxManagerWidget::sigCurrentSnapshotItemChange, 2490 2495 this, &UIVirtualBoxManager::sltCurrentSnapshotItemChange); 2496 connect(m_pWidget, &UIVirtualBoxManagerWidget::sigDetachLogViewer, 2497 this, &UIVirtualBoxManager::sltDetachLogViewer); 2491 2498 2492 2499 connect(menuBar(), &QMenuBar::customContextMenuRequested, -
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualBoxManager.h
r102575 r102723 167 167 /** Handles current snapshot item change. */ 168 168 void sltCurrentSnapshotItemChange(); 169 170 /** Handles request to detach Log Viewer pane. */ 171 void sltDetachLogViewer(); 169 172 170 173 /** Handles state change for cloud machine with certain @a uId. */ -
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualBoxManagerWidget.cpp
r102479 r102723 730 730 connect(m_pPaneToolsMachine, &UIToolPaneMachine::sigSwitchToActivityOverviewPane, 731 731 this, &UIVirtualBoxManagerWidget::sltSwitchToActivityOverviewPane); 732 connect(m_pPaneToolsMachine, &UIToolPaneMachine::sigDetachLogViewer, 733 this, &UIVirtualBoxManagerWidget::sigDetachLogViewer); 732 734 733 735 /* Add into stack: */ -
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualBoxManagerWidget.h
r102422 r102723 124 124 /** @} */ 125 125 126 /** @name Tools / Log Viewer pane stuff. 127 * @{ */ 128 /** Notifies listeners about request to detach Log Viewer pane. */ 129 void sigDetachLogViewer(); 130 /** @} */ 131 126 132 public: 127 133
Note:
See TracChangeset
for help on using the changeset viewer.