VirtualBox

source: vbox/trunk/src/VBox/Frontends/VirtualBox/ui/VBoxVMLogViewer.ui@ 3619

Last change on this file since 3619 was 3610, checked in by vboxsync, 18 years ago

#2124: VirtualBox LogViewer search mechanism.
VirtualBox LogViewer default search mechanism implemented:

  1. The Search Mechanism panel could be invoked for the LogViewer with the opened logs inside by the Ctrl-F keys combination. If there is other opinions about how to invoke this panel (other combination, button or menu), please let me know.
  1. This mechanism allows the incremental search in forward direction and search for the required phrase in both directions. Currently supported key-combinations are F3/Shift-F3 and nls-linked Ctrl-N/Ctrl-P (Next/Previous - could be different for other languages).
  1. Case-Sensitive feature supported.
  1. Log-browser scrolling and selection upon the required target is found.
  • Property svn:eol-style set to native
  • Property svn:keywords set to Date Revision Author Id
File size: 8.4 KB
Line 
1<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
2<class>VBoxVMLogViewer</class>
3<comment>
4:mode=html:tabSize=4:indentSize=4:noTabs=true:
5:folding=explicit:collapseFolds=1:
6
7# Copyright (C) 2007 innotek GmbH
8#
9# This file is part of VirtualBox Open Source Edition (OSE), as
10# available from http://www.virtualbox.org. This file is free software;
11# you can redistribute it and/or modify it under the terms of the GNU
12# General Public License as published by the Free Software Foundation,
13# in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
14# distribution. VirtualBox OSE is distributed in the hope that it will
15# be useful, but WITHOUT ANY WARRANTY of any kind.
16#
17# If you received this file as part of a commercial VirtualBox
18# distribution, then only the terms of your commercial VirtualBox
19# license agreement apply instead of the previous paragraph.
20</comment>
21<widget class="QMainWindow">
22 <property name="name">
23 <cstring>VBoxVMLogViewer</cstring>
24 </property>
25 <property name="geometry">
26 <rect>
27 <x>0</x>
28 <y>0</y>
29 <width>600</width>
30 <height>480</height>
31 </rect>
32 </property>
33 <property name="caption">
34 <string>Log Viewer</string>
35 </property>
36 <vbox>
37 <property name="name">
38 <cstring>unnamed</cstring>
39 </property>
40 <property name="margin">
41 <number>10</number>
42 </property>
43 <property name="spacing">
44 <number>10</number>
45 </property>
46 <widget class="QFrame">
47 <property name="name">
48 <cstring>mLogsFrame</cstring>
49 </property>
50 <property name="frameShape">
51 <enum>NoFrame</enum>
52 </property>
53 <property name="frameShadow">
54 <enum>Plain</enum>
55 </property>
56 </widget>
57 <widget class="QLayoutWidget">
58 <property name="name">
59 <cstring>layout2</cstring>
60 </property>
61 <hbox>
62 <property name="name">
63 <cstring>unnamed</cstring>
64 </property>
65 <spacer>
66 <property name="name">
67 <cstring>spacer3</cstring>
68 </property>
69 <property name="orientation">
70 <enum>Horizontal</enum>
71 </property>
72 <property name="sizeType">
73 <enum>Expanding</enum>
74 </property>
75 <property name="sizeHint">
76 <size>
77 <width>270</width>
78 <height>20</height>
79 </size>
80 </property>
81 </spacer>
82 <widget class="QPushButton">
83 <property name="name">
84 <cstring>mSaveButton</cstring>
85 </property>
86 <property name="text">
87 <string>&amp;Save</string>
88 </property>
89 <property name="accel">
90 <string>Alt+S</string>
91 </property>
92 <property name="autoDefault">
93 <bool>true</bool>
94 </property>
95 <property name="default">
96 <bool>true</bool>
97 </property>
98 </widget>
99 <widget class="QPushButton">
100 <property name="name">
101 <cstring>mRefreshButton</cstring>
102 </property>
103 <property name="text">
104 <string>&amp;Refresh</string>
105 </property>
106 <property name="accel">
107 <string>Alt+R</string>
108 </property>
109 </widget>
110 <widget class="QPushButton">
111 <property name="name">
112 <cstring>mCloseButton</cstring>
113 </property>
114 <property name="text">
115 <string>&amp;Close</string>
116 </property>
117 <property name="accel">
118 <string>Alt+C</string>
119 </property>
120 </widget>
121 </hbox>
122 </widget>
123 </vbox>
124</widget>
125<toolbars>
126</toolbars>
127<connections>
128 <connection>
129 <sender>mCloseButton</sender>
130 <signal>clicked()</signal>
131 <receiver>VBoxVMLogViewer</receiver>
132 <slot>close()</slot>
133 </connection>
134 <connection>
135 <sender>mSaveButton</sender>
136 <signal>clicked()</signal>
137 <receiver>VBoxVMLogViewer</receiver>
138 <slot>save()</slot>
139 </connection>
140 <connection>
141 <sender>mRefreshButton</sender>
142 <signal>clicked()</signal>
143 <receiver>VBoxVMLogViewer</receiver>
144 <slot>refresh()</slot>
145 </connection>
146</connections>
147<includes>
148 <include location="local" impldecl="in declaration">VBoxGlobal.h</include>
149 <include location="global" impldecl="in implementation">qsizegrip.h</include>
150 <include location="global" impldecl="in implementation">qstatusbar.h</include>
151 <include location="global" impldecl="in implementation">qtabwidget.h</include>
152 <include location="global" impldecl="in implementation">qtextbrowser.h</include>
153 <include location="global" impldecl="in implementation">qdir.h</include>
154 <include location="global" impldecl="in implementation">qfiledialog.h</include>
155 <include location="global" impldecl="in implementation">qdatetime.h</include>
156 <include location="global" impldecl="in implementation">qobjectlist.h</include>
157 <include location="global" impldecl="in implementation">qcheckbox.h</include>
158 <include location="global" impldecl="in implementation">qlabel.h</include>
159 <include location="global" impldecl="in implementation">qlineedit.h</include>
160 <include location="global" impldecl="in implementation">qtoolbutton.h</include>
161 <include location="global" impldecl="in implementation">qmessagebox.h</include>
162 <include location="global" impldecl="in implementation">qfocusdata.h</include>
163</includes>
164<forwards>
165 <forward>class QSizeGrip</forward>
166 <forward>class QTabWidget</forward>
167 <forward>class QTextBrowser</forward>
168 <forward>class VBoxLogSearchPanel</forward>
169</forwards>
170<variables>
171 <variable access="private">typedef QMap &lt;QString, VBoxVMLogViewer*&gt; LogViewersMap;</variable>
172 <variable access="private">static LogViewersMap mSelfArray;</variable>
173 <variable access="private">bool mFirstRun;</variable>
174 <variable access="private">bool mIsPolished;</variable>
175 <variable access="private">QSizeGrip *mSizeGrip;</variable>
176 <variable access="private">CMachine mMachine;</variable>
177 <variable access="private">QTabWidget *mLogList;</variable>
178 <variable access="private">QStringList mLogFilesList;</variable>
179 <variable access="private">QPushButton *mDefaultButton;</variable>
180 <variable access="private">VBoxLogSearchPanel *mSearchPanel;</variable>
181</variables>
182<slots>
183 <slot access="pritave">refresh()</slot>
184 <slot access="private">save()</slot>
185</slots>
186<functions>
187 <function specifier="static">createLogViewer( CMachine&amp; )</function>
188 <function access="private">init()</function>
189 <function access="private">destroy()</function>
190 <function>setup( CMachine &amp; )</function>
191 <function returnType="const CMachine&amp;">machine()</function>
192 <function access="pritave">languageChangeImp()</function>
193 <function access="pritave" returnType="QPushButton*">searchDefaultButton()</function>
194 <function access="protected" returnType="bool">eventFilter( QObject*, QEvent* )</function>
195 <function access="protected" returnType="bool">event( QEvent* )</function>
196 <function access="protected">keyPressEvent( QKeyEvent* )</function>
197 <function access="protected">showEvent( QShowEvent* )</function>
198 <function access="protected">resizeEvent( QResizeEvent* )</function>
199 <function access="pritave">loadLogFile( const QString &amp; )</function>
200 <function access="pritave" returnType="QTextBrowser*">createLogPage( const QString &amp; )</function>
201 <function returnType="QTextBrowser*">currentLogPage()</function>
202</functions>
203<pixmapinproject/>
204<layoutdefaults spacing="6" margin="11"/>
205</UI>
Note: See TracBrowser for help on using the repository browser.

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