Changeset 70792 in vbox
- Timestamp:
- Jan 29, 2018 1:12:06 PM (7 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/logviewer
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogPage.cpp
r70716 r70792 135 135 } 136 136 137 void UIVMLogPage::set FileName(const QString &strFileName)138 { 139 m_str FileName = strFileName;140 } 141 142 const QString& UIVMLogPage:: fileName() const143 { 144 return m_str FileName;137 void UIVMLogPage::setLogFileName(const QString &strLogFileName) 138 { 139 m_strLogFileName = strLogFileName; 140 } 141 142 const QString& UIVMLogPage::logFileName() const 143 { 144 return m_strLogFileName; 145 145 } 146 146 -
trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogPage.h
r70663 r70792 52 52 53 53 UIVMLogPage(QWidget *pParent = 0, int tabIndex = -1); 54 /** Destructs the VM Log-Viewer. */55 54 ~UIVMLogPage(); 55 56 56 /** Returns the width of the current log page. return 0 if there is no current log page: */ 57 57 int defaultLogPageWidth() const; … … 67 67 const QString& logString() const; 68 68 69 void set FileName(const QString &strFileName);70 const QString& fileName() const;69 void setLogFileName(const QString &strFileName); 70 const QString& logFileName() const; 71 71 72 /** Se splaintextEdit's text. Note that the text we72 /** Set plaintextEdit's text. Note that the text we 73 73 show currently might be different than 74 74 m_strLog. For example during filtering. */ … … 129 129 void updateTextEditBookmarkLineSet(); 130 130 void deleteBookmark(LogBookmark bookmark); 131 /** When settings for this changed, they are applied immediately 132 only if this is visible, if not they are applied when this becomes 133 visible. */ 131 /** When settings for this UILogPage instance changed, they are applied immediately 132 only if this is visible, if not they are applied when this becomes visible. */ 134 133 void applySettings(); 135 134 … … 139 138 QString m_strLog; 140 139 /** Stores full path and name of the log file. */ 141 QString m_str FileName;140 QString m_strLogFileName; 142 141 /** This is the index of the tab containing this widget in UIVMLogViewerWidget. */ 143 142 int m_tabIndex; -
trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerBookmarksPanel.cpp
r70715 r70792 111 111 } 112 112 113 114 113 m_pGotoSelectedBookmark = new QIToolButton(this); 115 114 if (m_pGotoSelectedBookmark) … … 133 132 pContainerLayout->setSpacing(qApp->style()->pixelMetric(QStyle::PM_LayoutHorizontalSpacing) / 2); 134 133 #endif 135 m_pPreviousButton = new QIToolButton; 136 if (m_pPreviousButton) 137 { 138 pContainerLayout->addWidget(m_pPreviousButton); 139 m_pPreviousButton->setIcon(UIIconPool::defaultIcon(UIIconPool::UIDefaultIconType_ArrowBack, this)); 140 } 141 142 m_pNextButton = new QIToolButton; 143 if (m_pNextButton){ 144 pContainerLayout->addWidget(m_pNextButton); 145 m_pNextButton->setIcon(UIIconPool::defaultIcon(UIIconPool::UIDefaultIconType_ArrowForward, this)); 146 } 134 135 m_pPreviousButton = new QIToolButton; 136 if (m_pPreviousButton) 137 { 138 pContainerLayout->addWidget(m_pPreviousButton); 139 m_pPreviousButton->setIcon(UIIconPool::defaultIcon(UIIconPool::UIDefaultIconType_ArrowBack, this)); 140 } 141 142 m_pNextButton = new QIToolButton; 143 if (m_pNextButton){ 144 pContainerLayout->addWidget(m_pNextButton); 145 m_pNextButton->setIcon(UIIconPool::defaultIcon(UIIconPool::UIDefaultIconType_ArrowForward, this)); 146 } 147 147 } 148 148 -
trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerDialog.h
r70139 r70792 77 77 78 78 void retranslateUi(); 79 80 79 CMachine m_comMachine; 81 80 }; 82 81 83 82 #endif /* !___UIVMLogViewerDialog_h___ */ 84 -
trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerPanel.h
r70706 r70792 72 72 /** Holds the reference to VM Log-Viewer this panel belongs to. */ 73 73 UIVMLogViewerWidget *m_pViewer; 74 /** Holds the instance of main-layout we create. */75 74 QHBoxLayout *m_pMainLayout; 76 /** Holds the instance of close-button we create. */77 75 QIToolButton *m_pCloseButton; 78 76 }; -
trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerSearchPanel.h
r70711 r70792 35 35 class UIVMLogViewerWidget; 36 36 37 /** QWidgetextension37 /** UIVMLogViewerPanel extension 38 38 * providing GUI for search-panel in VM Log-Viewer. */ 39 39 class UIVMLogViewerSearchPanel : public UIVMLogViewerPanel -
trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerTextEdit.h
r70663 r70792 27 27 28 28 29 /* QPlainTextEdit extension for some addtional context menu items, 30 a special scrollbar, line number area, and bookmarking support: */ 29 /* QPlainTextEdit extension with some addtional context menu items, 30 a special scrollbar, line number area, bookmarking support, 31 background watermarking etc.: */ 31 32 class UIVMLogViewerTextEdit : public QIWithRetranslateUI<QPlainTextEdit> 32 33 { -
trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerWidget.cpp
r70746 r70792 229 229 return; 230 230 231 const QString& fileName = logPage-> fileName();231 const QString& fileName = logPage->logFileName(); 232 232 if (fileName.isEmpty()) 233 233 return; … … 873 873 /* Set the file name only if we really have log file to read. */ 874 874 if (!noLogsToShow) 875 pLogPage->set FileName(strFileName);875 pLogPage->setLogFileName(strFileName); 876 876 877 877 /* Add page-container to viewer-container: */
Note:
See TracChangeset
for help on using the changeset viewer.