VirtualBox

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

Last change on this file since 3806 was 3805, checked in by vboxsync, 18 years ago

2124: VirtualBox LogViewer search mechanism:

LogViewer search mechanism improvements done:

  1. [Help]...[Find][Save][Refresh][Close] dialog button's configuration.
  2. Standard Help button.
  3. Find button for toggling search-panel visibility on/off.
  4. Name filter for log files added (*.log *.log.*).
  5. Search mechanism starts by any alpha-numeric key (w/o modifiers).
  • Property svn:eol-style set to native
  • Property svn:keywords set to Date Revision Author Id
File size: 9.7 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 <widget class="QPushButton">
66 <property name="name">
67 <cstring>mHelpButton</cstring>
68 </property>
69 <property name="text">
70 <string>&amp;Help</string>
71 </property>
72 <property name="accel">
73 <string>Alt+H</string>
74 </property>
75 </widget>
76 <spacer>
77 <property name="name">
78 <cstring>spacer3</cstring>
79 </property>
80 <property name="orientation">
81 <enum>Horizontal</enum>
82 </property>
83 <property name="sizeType">
84 <enum>Expanding</enum>
85 </property>
86 <property name="sizeHint">
87 <size>
88 <width>270</width>
89 <height>20</height>
90 </size>
91 </property>
92 </spacer>
93 <widget class="QPushButton">
94 <property name="name">
95 <cstring>mFindButton</cstring>
96 </property>
97 <property name="text">
98 <string>&amp;Find</string>
99 </property>
100 <property name="accel">
101 <string>Alt+F</string>
102 </property>
103 </widget>
104 <widget class="QPushButton">
105 <property name="name">
106 <cstring>mSaveButton</cstring>
107 </property>
108 <property name="text">
109 <string>&amp;Save</string>
110 </property>
111 <property name="accel">
112 <string>Alt+S</string>
113 </property>
114 <property name="autoDefault">
115 <bool>true</bool>
116 </property>
117 <property name="default">
118 <bool>true</bool>
119 </property>
120 </widget>
121 <widget class="QPushButton">
122 <property name="name">
123 <cstring>mRefreshButton</cstring>
124 </property>
125 <property name="text">
126 <string>&amp;Refresh</string>
127 </property>
128 <property name="accel">
129 <string>Alt+R</string>
130 </property>
131 </widget>
132 <widget class="QPushButton">
133 <property name="name">
134 <cstring>mCloseButton</cstring>
135 </property>
136 <property name="text">
137 <string>&amp;Close</string>
138 </property>
139 <property name="accel">
140 <string>Alt+C</string>
141 </property>
142 </widget>
143 </hbox>
144 </widget>
145 </vbox>
146</widget>
147<toolbars>
148</toolbars>
149<connections>
150 <connection>
151 <sender>mHelpButton</sender>
152 <signal>clicked()</signal>
153 <receiver>&amp;vboxProblem()</receiver>
154 <slot>showHelpHelpDialog()</slot>
155 </connection>
156 <connection>
157 <sender>mFindButton</sender>
158 <signal>clicked()</signal>
159 <receiver>VBoxVMLogViewer</receiver>
160 <slot>search()</slot>
161 </connection>
162 <connection>
163 <sender>mSaveButton</sender>
164 <signal>clicked()</signal>
165 <receiver>VBoxVMLogViewer</receiver>
166 <slot>save()</slot>
167 </connection>
168 <connection>
169 <sender>mRefreshButton</sender>
170 <signal>clicked()</signal>
171 <receiver>VBoxVMLogViewer</receiver>
172 <slot>refresh()</slot>
173 </connection>
174 <connection>
175 <sender>mCloseButton</sender>
176 <signal>clicked()</signal>
177 <receiver>VBoxVMLogViewer</receiver>
178 <slot>close()</slot>
179 </connection>
180</connections>
181<includes>
182 <include location="local" impldecl="in declaration">VBoxGlobal.h</include>
183 <include location="local" impldecl="in implementation">VBoxProblemReporter.h</include>
184 <include location="global" impldecl="in implementation">qsizegrip.h</include>
185 <include location="global" impldecl="in implementation">qstatusbar.h</include>
186 <include location="global" impldecl="in implementation">qtabwidget.h</include>
187 <include location="global" impldecl="in implementation">qtextbrowser.h</include>
188 <include location="global" impldecl="in implementation">qdir.h</include>
189 <include location="global" impldecl="in implementation">qfiledialog.h</include>
190 <include location="global" impldecl="in implementation">qdatetime.h</include>
191 <include location="global" impldecl="in implementation">qobjectlist.h</include>
192 <include location="global" impldecl="in implementation">qcheckbox.h</include>
193 <include location="global" impldecl="in implementation">qlabel.h</include>
194 <include location="global" impldecl="in implementation">qlineedit.h</include>
195 <include location="global" impldecl="in implementation">qtoolbutton.h</include>
196 <include location="global" impldecl="in implementation">qmessagebox.h</include>
197 <include location="global" impldecl="in implementation">qfocusdata.h</include>
198</includes>
199<forwards>
200 <forward>class QSizeGrip</forward>
201 <forward>class QTabWidget</forward>
202 <forward>class QTextBrowser</forward>
203 <forward>class VBoxLogSearchPanel</forward>
204</forwards>
205<variables>
206 <variable access="private">typedef QMap &lt;QString, VBoxVMLogViewer*&gt; LogViewersMap;</variable>
207 <variable access="private">static LogViewersMap mSelfArray;</variable>
208 <variable access="private">bool mFirstRun;</variable>
209 <variable access="private">bool mIsPolished;</variable>
210 <variable access="private">QSizeGrip *mSizeGrip;</variable>
211 <variable access="private">CMachine mMachine;</variable>
212 <variable access="private">QTabWidget *mLogList;</variable>
213 <variable access="private">QStringList mLogFilesList;</variable>
214 <variable access="private">QPushButton *mDefaultButton;</variable>
215 <variable access="private">VBoxLogSearchPanel *mSearchPanel;</variable>
216</variables>
217<slots>
218 <slot access="pritave">refresh()</slot>
219 <slot access="private">save()</slot>
220 <slot access="private">search()</slot>
221</slots>
222<functions>
223 <function specifier="static">createLogViewer( CMachine&amp; )</function>
224 <function access="private">init()</function>
225 <function access="private">destroy()</function>
226 <function>setup( CMachine &amp; )</function>
227 <function returnType="const CMachine&amp;">machine()</function>
228 <function access="pritave">languageChangeImp()</function>
229 <function access="pritave" returnType="QPushButton*">searchDefaultButton()</function>
230 <function access="protected" returnType="bool">eventFilter( QObject*, QEvent* )</function>
231 <function access="protected" returnType="bool">event( QEvent* )</function>
232 <function access="protected">keyPressEvent( QKeyEvent* )</function>
233 <function access="protected">showEvent( QShowEvent* )</function>
234 <function access="protected">resizeEvent( QResizeEvent* )</function>
235 <function access="pritave">loadLogFile( const QString &amp; )</function>
236 <function access="pritave" returnType="QTextBrowser*">createLogPage( const QString &amp; )</function>
237 <function returnType="QTextBrowser*">currentLogPage()</function>
238</functions>
239<pixmapinproject/>
240<layoutdefaults spacing="6" margin="11"/>
241</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