VirtualBox

source: vbox/trunk/src/VBox/Frontends/VirtualBox/ui/VBoxSharedFoldersSettings.ui@ 4062

最後變更 在這個檔案從4062是 4062,由 vboxsync 提交於 18 年 前

Shared Folders improvements/bug fixes:

  1. Update only the edited and newly created folders on Shared Folders Dialog accepting.
  2. Strict the user to enter only the non-existing (for this group: Global, Machine, Transient) folder's name during the Add&Edit operations. Note: user allowed to enter the same name for the edit operation.
  3. Keeps exact order of precedence for the folders groups (Permanent, Transient) in all languages.
  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Author Date Id Revision
檔案大小: 11.6 KB
 
1<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
2<class>VBoxSharedFoldersSettings</class>
3<comment>
4:mode=html:tabSize=4:indentSize=4:noTabs=true:
5:folding=explicit:collapseFolds=1:
6
7# Copyright (C) 2006-2007 innotek GmbH
8#
9# This file is part of VirtualBox Open Source Edition (OSE), as
10# available from http://www.alldomusa.eu.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="QWidget">
22 <property name="name">
23 <cstring>VBoxSharedFoldersSettings</cstring>
24 </property>
25 <property name="geometry">
26 <rect>
27 <x>0</x>
28 <y>0</y>
29 <width>286</width>
30 <height>247</height>
31 </rect>
32 </property>
33 <property name="sizePolicy">
34 <sizepolicy>
35 <hsizetype>7</hsizetype>
36 <vsizetype>7</vsizetype>
37 <horstretch>0</horstretch>
38 <verstretch>0</verstretch>
39 </sizepolicy>
40 </property>
41 <property name="caption">
42 <string>VBoxSharedFoldersSettings</string>
43 <comment>don't translate</comment>
44 </property>
45 <vbox>
46 <property name="name">
47 <cstring>unnamed</cstring>
48 </property>
49 <property name="margin">
50 <number>0</number>
51 </property>
52 <property name="spacing">
53 <number>10</number>
54 </property>
55 <widget class="QGroupBox">
56 <property name="name">
57 <cstring>gbSharedFolders</cstring>
58 </property>
59 <property name="title">
60 <string>Shared &amp;Folders</string>
61 </property>
62 <hbox>
63 <property name="name">
64 <cstring>unnamed</cstring>
65 </property>
66 <widget class="QListView">
67 <column>
68 <property name="text">
69 <string>Name</string>
70 </property>
71 <property name="clickable">
72 <bool>true</bool>
73 </property>
74 <property name="resizable">
75 <bool>true</bool>
76 </property>
77 </column>
78 <column>
79 <property name="text">
80 <string>Path</string>
81 </property>
82 <property name="clickable">
83 <bool>true</bool>
84 </property>
85 <property name="resizable">
86 <bool>true</bool>
87 </property>
88 </column>
89 <property name="name">
90 <cstring>listView</cstring>
91 </property>
92 <property name="allColumnsShowFocus">
93 <bool>true</bool>
94 </property>
95 <property name="resizeMode">
96 <enum>AllColumns</enum>
97 </property>
98 <property name="whatsThis" stdset="0">
99 <string>&lt;qt&gt;Lists all shared folders accessible to this machine.
100Use
101&lt;tt&gt;net use x: \\vboxsvr\share&lt;/tt&gt;
102to access a shared folder named &lt;i&gt;share&lt;/i&gt; from a DOS-like OS, or
103&lt;tt&gt;mount -t vboxsf share mount_point&lt;/tt&gt;
104to access it from a Linux OS. This feature requires Guest Additions.&lt;/qt&gt;</string>
105 </property>
106 </widget>
107 <widget class="QLayoutWidget">
108 <property name="name">
109 <cstring>layout101</cstring>
110 </property>
111 <vbox>
112 <property name="name">
113 <cstring>unnamed</cstring>
114 </property>
115 <property name="spacing">
116 <number>0</number>
117 </property>
118 <widget class="QToolButton">
119 <property name="name">
120 <cstring>tbAdd</cstring>
121 </property>
122 <property name="focusPolicy">
123 <enum>TabFocus</enum>
124 </property>
125 <property name="text">
126 <string></string>
127 </property>
128 <property name="accel">
129 <string>Ins</string>
130 </property>
131 <property name="textLabel">
132 <string>Add a new shared folder (Ins)</string>
133 </property>
134 <property name="autoRaise">
135 <bool>true</bool>
136 </property>
137 <property name="whatsThis" stdset="0">
138 <string>Adds a new shared folder definition.</string>
139 </property>
140 </widget>
141 <widget class="QToolButton">
142 <property name="name">
143 <cstring>tbEdit</cstring>
144 </property>
145 <property name="focusPolicy">
146 <enum>TabFocus</enum>
147 </property>
148 <property name="text">
149 <string></string>
150 </property>
151 <property name="accel">
152 <string>Space</string>
153 </property>
154 <property name="textLabel">
155 <string>Edit the selected shared folder (Space)</string>
156 </property>
157 <property name="autoRaise">
158 <bool>true</bool>
159 </property>
160 <property name="whatsThis" stdset="0">
161 <string>Edits the selected shared folder definition.</string>
162 </property>
163 </widget>
164 <widget class="QToolButton">
165 <property name="name">
166 <cstring>tbRemove</cstring>
167 </property>
168 <property name="focusPolicy">
169 <enum>TabFocus</enum>
170 </property>
171 <property name="text">
172 <string></string>
173 </property>
174 <property name="accel">
175 <string>Del</string>
176 </property>
177 <property name="textLabel">
178 <string>Remove the selected shared folder (Del)</string>
179 </property>
180 <property name="autoRaise">
181 <bool>true</bool>
182 </property>
183 <property name="whatsThis" stdset="0">
184 <string>Removes the selected shared folder definition.</string>
185 </property>
186 </widget>
187 <spacer>
188 <property name="name">
189 <cstring>spacer76</cstring>
190 </property>
191 <property name="orientation">
192 <enum>Vertical</enum>
193 </property>
194 <property name="sizeType">
195 <enum>Expanding</enum>
196 </property>
197 <property name="sizeHint">
198 <size>
199 <width>21</width>
200 <height>101</height>
201 </size>
202 </property>
203 </spacer>
204 </vbox>
205 </widget>
206 </hbox>
207 </widget>
208 </vbox>
209</widget>
210<connections>
211 <connection>
212 <sender>listView</sender>
213 <signal>doubleClicked(QListViewItem*)</signal>
214 <receiver>VBoxSharedFoldersSettings</receiver>
215 <slot>processDoubleClick(QListViewItem*)</slot>
216 </connection>
217</connections>
218<includes>
219 <include location="local" impldecl="in declaration">VBoxGlobal.h</include>
220 <include location="local" impldecl="in implementation">VBoxUtils.h</include>
221 <include location="local" impldecl="in implementation">VBoxProblemReporter.h</include>
222 <include location="global" impldecl="in implementation">qfiledialog.h</include>
223 <include location="global" impldecl="in implementation">qlabel.h</include>
224 <include location="global" impldecl="in implementation">qlineedit.h</include>
225 <include location="global" impldecl="in implementation">qregexp.h</include>
226</includes>
227<variables>
228 <variable access="public">enum SFDialogType { WrongType, GlobalType = 0x01, MachineType = 0x02, ConsoleType = 0x04 };</variable>
229 <variable access="private">bool mIsListViewChanged;</variable>
230 <variable access="private">int mDialogType;</variable>
231 <variable access="private">CMachine mMachine;</variable>
232 <variable access="private">CConsole mConsole;</variable>
233</variables>
234<slots>
235 <slot>tbAddPressed()</slot>
236 <slot>tbEditPressed()</slot>
237 <slot>tbRemovePressed()</slot>
238 <slot>processOnItem( QListViewItem* )</slot>
239 <slot>processCurrentChanged( QListViewItem* )</slot>
240 <slot>processDoubleClick( QListViewItem* )</slot>
241</slots>
242<functions>
243 <function access="private">init()</function>
244 <function>setDialogType( int )</function>
245 <function returnType="int">dialogType() {return mDialogType;}</function>
246 <function access="private">removeSharedFolder( const QString &amp;, const QString &amp;, VBoxSharedFoldersSettings::SFDialogType )</function>
247 <function access="private">createSharedFolder( const QString &amp;, const QString &amp;, VBoxSharedFoldersSettings::SFDialogType )</function>
248 <function>getFromGlobal()</function>
249 <function>getFromMachine( const CMachine &amp; )</function>
250 <function>getFromConsole( const CConsole &amp; )</function>
251 <function access="private">getFrom( const CSharedFolderEnumerator &amp;, QListViewItem* )</function>
252 <function>putBackToGlobal()</function>
253 <function>putBackToMachine()</function>
254 <function>putBackToConsole()</function>
255 <function access="private">putBackTo( CSharedFolderEnumerator &amp;, QListViewItem* )</function>
256 <function access="private" returnType="QListViewItem*">searchRoot( bool )</function>
257 <function access="private" returnType="bool">isEditable( const QString &amp; )</function>
258</functions>
259<pixmapinproject/>
260<layoutdefaults spacing="6" margin="11"/>
261</UI>
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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