Changeset 7669 in vbox
- Timestamp:
- Mar 31, 2008 3:57:16 PM (17 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox4
- Files:
-
- 1 deleted
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox4/Makefile.kmk
r7663 r7669 284 284 VirtualBox_QT_UISRCS4 += ui/VBoxVMInformationDlg.ui 285 285 286 VirtualBox_QT_UISRCS3 := $(filter-out ui/VBoxTakeSnapshotDlg.ui,$(VirtualBox_QT_UISRCS3)) 287 VirtualBox_QT_UISRCS4 += ui/VBoxTakeSnapshotDlg.ui 288 286 289 287 290 # … … 425 428 include/VBoxSharedFoldersSettings.h \ 426 429 include/VBoxSnapshotDetailsDlg.h \ 427 include/VBoxVMInformationDlg.h 430 include/VBoxVMInformationDlg.h \ 431 include/VBoxTakeSnapshotDlg.h 428 432 429 433 # Sources containing local definitions of classes that use the Q_OBJECT macro … … 501 505 src/VBoxSharedFoldersSettings.cpp \ 502 506 src/VBoxSnapshotDetailsDlg.cpp \ 503 src/VBoxVMInformationDlg.cpp 507 src/VBoxVMInformationDlg.cpp \ 508 src/VBoxTakeSnapshotDlg.cpp 504 509 505 510 ifeq ($(filter-out freebsd linux netbsd openbsd solaris,$(BUILD_TARGET)),) # X11 -
trunk/src/VBox/Frontends/VirtualBox4/src/VBoxConsoleWnd.cpp
r7663 r7669 2432 2432 CMachine cmachine = csession.GetMachine(); 2433 2433 2434 VBoxTakeSnapshotDlg dlg (this , "VBoxTakeSnapshotDlg");2434 VBoxTakeSnapshotDlg dlg (this); 2435 2435 2436 2436 QString typeId = cmachine.GetOSTypeId(); 2437 dlg. pmIcon->setPixmap (vboxGlobal().vmGuestOSTypeIcon (typeId));2437 dlg.mLbIcon->setPixmap (vboxGlobal().vmGuestOSTypeIcon (typeId)); 2438 2438 2439 2439 /* search for the max available filter index */ … … 2453 2453 index = index.GetChildren().GetItemAt (0); 2454 2454 } 2455 dlg. leName->setText (snapShotName.arg (maxSnapShotIndex + 1));2455 dlg.mLeName->setText (snapShotName.arg (maxSnapShotIndex + 1)); 2456 2456 2457 2457 if (dlg.exec() == QDialog::Accepted) … … 2460 2460 2461 2461 CProgress progress = 2462 cconsole.TakeSnapshot (dlg. leName->text().trimmed(),2463 dlg. txeDescription->text());2462 cconsole.TakeSnapshot (dlg.mLeName->text().trimmed(), 2463 dlg.mTeDescription->text()); 2464 2464 2465 2465 if (cconsole.isOk()) -
trunk/src/VBox/Frontends/VirtualBox4/ui/VBoxSnapshotsWgt.ui.h
r7250 r7669 579 579 AssertReturn (item, (void) 0); 580 580 581 VBoxTakeSnapshotDlg dlg (this , "VBoxTakeSnapshotDlg");581 VBoxTakeSnapshotDlg dlg (this); 582 582 583 583 QString typeId = mMachine.GetOSTypeId(); 584 dlg. pmIcon->setPixmap (vboxGlobal().vmGuestOSTypeIcon (typeId));584 dlg.mLbIcon->setPixmap (vboxGlobal().vmGuestOSTypeIcon (typeId)); 585 585 586 586 /* search for the max available filter index */ … … 598 598 ++ iterator; 599 599 } 600 dlg. leName->setText (snapShotName.arg (maxSnapShotIndex + 1));600 dlg.mLeName->setText (snapShotName.arg (maxSnapShotIndex + 1)); 601 601 602 602 if (dlg.exec() == QDialog::Accepted) … … 609 609 CConsole console = session.GetConsole(); 610 610 CProgress progress = 611 console.TakeSnapshot (dlg. leName->text().stripWhiteSpace(),612 dlg. txeDescription->text());611 console.TakeSnapshot (dlg.mLeName->text().stripWhiteSpace(), 612 dlg.mTeDescription->text()); 613 613 if (console.isOk()) 614 614 { -
trunk/src/VBox/Frontends/VirtualBox4/ui/VBoxTakeSnapshotDlg.ui
r7615 r7669 1 <!DOCTYPE UI><UI version="3.3" stdsetdef="1"> 2 <class>VBoxTakeSnapshotDlg</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.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 (GPL) as published by the Free Software 13 Foundation, in version 2 as it comes in the "COPYING" file of the 14 VirtualBox OSE distribution. VirtualBox OSE is distributed in the 15 hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. 16 </comment> 17 <widget class="QDialog"> 18 <property name="name"> 19 <cstring>VBoxTakeSnapshotDlg</cstring> 20 </property> 21 <property name="geometry"> 22 <rect> 23 <x>0</x> 24 <y>0</y> 25 <width>320</width> 26 <height>232</height> 27 </rect> 28 </property> 29 <property name="caption"> 30 <string>Take Snapshot of Virtual Machine</string> 31 </property> 32 <property name="sizeGripEnabled"> 33 <bool>false</bool> 34 </property> 35 <vbox> 36 <property name="name"> 37 <cstring>unnamed</cstring> 38 </property> 39 <property name="spacing"> 40 <number>10</number> 41 </property> 42 <widget class="QLayoutWidget"> 43 <property name="name"> 44 <cstring>layout10</cstring> 45 </property> 46 <hbox> 47 <property name="name"> 48 <cstring>unnamed</cstring> 49 </property> 50 <property name="spacing"> 51 <number>12</number> 52 </property> 53 <widget class="QLayoutWidget"> 54 <property name="name"> 55 <cstring>layout3</cstring> 56 </property> 57 <vbox> 58 <property name="name"> 59 <cstring>unnamed</cstring> 60 </property> 61 <widget class="QLabel"> 62 <property name="name"> 63 <cstring>pmIcon</cstring> 64 </property> 65 <property name="sizePolicy"> 66 <sizepolicy> 67 <hsizetype>4</hsizetype> 68 <vsizetype>5</vsizetype> 69 <horstretch>0</horstretch> 70 <verstretch>0</verstretch> 71 </sizepolicy> 72 </property> 73 <property name="pixmap"> 74 <pixmap>:/os_unknown.png</pixmap> 75 </property> 76 <property name="scaledContents"> 77 <bool>false</bool> 78 </property> 79 <property name="alignment"> 80 <set>AlignTop</set> 81 </property> 82 </widget> 83 <spacer> 84 <property name="name"> 85 <cstring>spacer2</cstring> 86 </property> 87 <property name="orientation"> 88 <enum>Vertical</enum> 89 </property> 90 <property name="sizeType"> 91 <enum>Expanding</enum> 92 </property> 93 <property name="sizeHint"> 94 <size> 95 <width>20</width> 96 <height>40</height> 97 </size> 98 </property> 99 </spacer> 100 </vbox> 101 </widget> 102 <widget class="QLayoutWidget"> 103 <property name="name"> 104 <cstring>layout9</cstring> 105 </property> 106 <vbox> 107 <property name="name"> 108 <cstring>unnamed</cstring> 109 </property> 110 <property name="spacing"> 111 <number>10</number> 112 </property> 113 <widget class="QLayoutWidget"> 114 <property name="name"> 115 <cstring>layout4</cstring> 116 </property> 117 <vbox> 118 <property name="name"> 119 <cstring>unnamed</cstring> 120 </property> 121 <widget class="QLabel"> 122 <property name="name"> 123 <cstring>txName</cstring> 124 </property> 125 <property name="text"> 126 <string>Snapshot &Name</string> 127 </property> 128 <property name="buddy" stdset="0"> 129 <cstring>leName</cstring> 130 </property> 131 </widget> 132 <widget class="QLineEdit"> 133 <property name="name"> 134 <cstring>leName</cstring> 135 </property> 136 <property name="frameShape"> 137 <enum>LineEditPanel</enum> 138 </property> 139 <property name="frameShadow"> 140 <enum>Sunken</enum> 141 </property> 142 </widget> 143 </vbox> 144 </widget> 145 <widget class="QLayoutWidget"> 146 <property name="name"> 147 <cstring>layout6</cstring> 148 </property> 149 <vbox> 150 <property name="name"> 151 <cstring>unnamed</cstring> 152 </property> 153 <widget class="QLabel"> 154 <property name="name"> 155 <cstring>txDescription</cstring> 156 </property> 157 <property name="text"> 158 <string>Snapshot &Description</string> 159 </property> 160 <property name="buddy" stdset="0"> 161 <cstring>txeDescription</cstring> 162 </property> 163 </widget> 164 <widget class="QTextEdit"> 165 <property name="name"> 166 <cstring>txeDescription</cstring> 167 </property> 168 <property name="textFormat"> 169 <enum>PlainText</enum> 170 </property> 171 <property name="tabChangesFocus"> 172 <bool>true</bool> 173 </property> 174 </widget> 175 </vbox> 176 </widget> 177 </vbox> 178 </widget> 179 </hbox> 1 <ui version="4.0" > 2 <class>VBoxTakeSnapshotDlg</class> 3 <widget class="QDialog" name="VBoxTakeSnapshotDlg" > 4 <property name="geometry" > 5 <rect> 6 <x>0</x> 7 <y>0</y> 8 <width>314</width> 9 <height>239</height> 10 </rect> 11 </property> 12 <property name="windowTitle" > 13 <string>Take Snapshot of Virtual Machine</string> 14 </property> 15 <layout class="QVBoxLayout" > 16 <item> 17 <layout class="QHBoxLayout" > 18 <item> 19 <layout class="QVBoxLayout" > 20 <item> 21 <widget class="QLabel" name="mLbIcon" > 22 <property name="sizePolicy" > 23 <sizepolicy vsizetype="Preferred" hsizetype="Maximum" > 24 <horstretch>0</horstretch> 25 <verstretch>0</verstretch> 26 </sizepolicy> 27 </property> 28 <property name="text" > 29 <string/> 30 </property> 180 31 </widget> 181 <widget class="QLayoutWidget"> 182 <property name="name"> 183 <cstring>Layout1</cstring> 184 </property> 185 <hbox> 186 <property name="name"> 187 <cstring>unnamed</cstring> 188 </property> 189 <property name="margin"> 190 <number>0</number> 191 </property> 192 <property name="spacing"> 193 <number>6</number> 194 </property> 195 <widget class="QPushButton"> 196 <property name="name"> 197 <cstring>buttonHelp</cstring> 198 </property> 199 <property name="text"> 200 <string>Help</string> 201 </property> 202 <property name="accel"> 203 <string>F1</string> 204 </property> 205 <property name="autoDefault"> 206 <bool>true</bool> 207 </property> 208 </widget> 209 <spacer> 210 <property name="name"> 211 <cstring>Horizontal Spacing2</cstring> 212 </property> 213 <property name="orientation"> 214 <enum>Horizontal</enum> 215 </property> 216 <property name="sizeType"> 217 <enum>Expanding</enum> 218 </property> 219 <property name="sizeHint"> 220 <size> 221 <width>20</width> 222 <height>20</height> 223 </size> 224 </property> 225 </spacer> 226 <widget class="QPushButton"> 227 <property name="name"> 228 <cstring>buttonOk</cstring> 229 </property> 230 <property name="text"> 231 <string>&OK</string> 232 </property> 233 <property name="autoDefault"> 234 <bool>true</bool> 235 </property> 236 <property name="default"> 237 <bool>true</bool> 238 </property> 239 </widget> 240 <widget class="QPushButton"> 241 <property name="name"> 242 <cstring>buttonCancel</cstring> 243 </property> 244 <property name="text"> 245 <string>Cancel</string> 246 </property> 247 <property name="autoDefault"> 248 <bool>true</bool> 249 </property> 250 </widget> 251 </hbox> 252 </widget> 253 </vbox> 254 </widget> 255 <connections> 256 <connection> 257 <sender>buttonOk</sender> 258 <signal>clicked()</signal> 259 <receiver>VBoxTakeSnapshotDlg</receiver> 260 <slot>accept()</slot> 261 </connection> 262 <connection> 263 <sender>buttonCancel</sender> 264 <signal>clicked()</signal> 265 <receiver>VBoxTakeSnapshotDlg</receiver> 266 <slot>reject()</slot> 267 </connection> 268 <connection> 269 <sender>leName</sender> 270 <signal>textChanged(const QString&)</signal> 271 <receiver>VBoxTakeSnapshotDlg</receiver> 272 <slot>leName_textChanged(const QString&)</slot> 273 </connection> 274 <connection> 275 <sender>buttonHelp</sender> 276 <signal>clicked()</signal> 277 <receiver>&vboxProblem()</receiver> 278 <slot>showHelpHelpDialog()</slot> 279 </connection> 280 </connections> 281 <tabstops> 282 <tabstop>leName</tabstop> 283 <tabstop>txeDescription</tabstop> 284 </tabstops> 285 <includes> 286 <include location="global" impldecl="in declaration">qlabel.h</include> 287 <include location="global" impldecl="in declaration">qlineedit.h</include> 288 <include location="local" impldecl="in implementation">VBoxProblemReporter.h</include> 289 <include location="local" impldecl="in implementation">VBoxUtils.h</include> 290 <include location="local" impldecl="in implementation">VBoxTakeSnapshotDlg.ui.h</include> 291 </includes> 292 <slots> 293 <slot>leName_textChanged( const QString & aText )</slot> 294 </slots> 295 <functions> 296 <function access="private">init()</function> 297 </functions> 298 <pixmapinproject/> 299 <layoutdefaults spacing="6" margin="11"/> 300 </UI> 32 </item> 33 <item> 34 <spacer> 35 <property name="orientation" > 36 <enum>Qt::Vertical</enum> 37 </property> 38 <property name="sizeHint" > 39 <size> 40 <width>20</width> 41 <height>40</height> 42 </size> 43 </property> 44 </spacer> 45 </item> 46 </layout> 47 </item> 48 <item> 49 <layout class="QVBoxLayout" > 50 <property name="spacing" > 51 <number>10</number> 52 </property> 53 <item> 54 <layout class="QVBoxLayout" > 55 <property name="spacing" > 56 <number>2</number> 57 </property> 58 <item> 59 <widget class="QLabel" name="mLbName" > 60 <property name="text" > 61 <string>Snapshot &Name</string> 62 </property> 63 <property name="buddy" > 64 <cstring>mLeName</cstring> 65 </property> 66 </widget> 67 </item> 68 <item> 69 <widget class="QLineEdit" name="mLeName" /> 70 </item> 71 </layout> 72 </item> 73 <item> 74 <layout class="QVBoxLayout" > 75 <property name="spacing" > 76 <number>2</number> 77 </property> 78 <item> 79 <widget class="QLabel" name="mLbDescription" > 80 <property name="text" > 81 <string>Snapshot &Description</string> 82 </property> 83 <property name="buddy" > 84 <cstring>mTeDescription</cstring> 85 </property> 86 </widget> 87 </item> 88 <item> 89 <widget class="QTextEdit" name="mTeDescription" /> 90 </item> 91 </layout> 92 </item> 93 </layout> 94 </item> 95 </layout> 96 </item> 97 <item> 98 <layout class="QHBoxLayout" > 99 <item> 100 <widget class="QPushButton" name="mBtnHelp" > 101 <property name="text" > 102 <string>Help</string> 103 </property> 104 <property name="shortcut" > 105 <string>F1</string> 106 </property> 107 </widget> 108 </item> 109 <item> 110 <spacer> 111 <property name="orientation" > 112 <enum>Qt::Horizontal</enum> 113 </property> 114 <property name="sizeHint" > 115 <size> 116 <width>40</width> 117 <height>20</height> 118 </size> 119 </property> 120 </spacer> 121 </item> 122 <item> 123 <widget class="QPushButton" name="mBtnOk" > 124 <property name="text" > 125 <string>&Ok</string> 126 </property> 127 <property name="default" > 128 <bool>true</bool> 129 </property> 130 </widget> 131 </item> 132 <item> 133 <widget class="QPushButton" name="mBtnCancel" > 134 <property name="text" > 135 <string>Cancel</string> 136 </property> 137 </widget> 138 </item> 139 </layout> 140 </item> 141 </layout> 142 </widget> 143 <resources/> 144 <connections/> 145 </ui>
Note:
See TracChangeset
for help on using the changeset viewer.