Changeset 7487 in vbox
- Timestamp:
- Mar 18, 2008 5:17:30 PM (17 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox4
- Files:
-
- 1 deleted
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox4/Makefile.kmk
r7480 r7487 272 272 VirtualBox_QT_UISRCS4 += ui/VBoxVMFirstRunWzd.ui 273 273 274 VirtualBox_QT_UISRCS3 := $(filter-out ui/VBoxRegistrationDlg.ui,$(VirtualBox_QT_UISRCS3)) 275 VirtualBox_QT_UISRCS4 += ui/VBoxRegistrationDlg.ui 276 274 277 275 278 # … … 408 411 include/VBoxNewVMWzd.h \ 409 412 include/VBoxNewHDWzd.h \ 410 include/VBoxVMFirstRunWzd.h 413 include/VBoxVMFirstRunWzd.h \ 414 include/VBoxRegistrationDlg.h 411 415 412 416 # Sources containing local definitions of classes that use the Q_OBJECT macro … … 480 484 src/VBoxNewVMWzd.cpp \ 481 485 src/VBoxNewHDWzd.cpp \ 482 src/VBoxVMFirstRunWzd.cpp 486 src/VBoxVMFirstRunWzd.cpp \ 487 src/VBoxRegistrationDlg.cpp 483 488 484 489 ifeq ($(filter-out freebsd linux netbsd openbsd solaris,$(BUILD_TARGET)),) # X11 -
trunk/src/VBox/Frontends/VirtualBox4/include/VBoxNetworkFramework.h
r7220 r7487 42 42 , mNetworkThread (0) {} 43 43 44 ~VBoxNetworkFramework() { delete mNetworkThread; } 44 ~VBoxNetworkFramework() 45 { 46 mNetworkThread->wait (1000); 47 delete mNetworkThread; 48 } 45 49 46 50 void postRequest (const QString &aHost, const QString &aUrl); -
trunk/src/VBox/Frontends/VirtualBox4/src/VBoxGlobal.cpp
r7466 r7487 3772 3772 { 3773 3773 /* We've got the "mutex", create a new registration dialog */ 3774 #warning port me 3775 // VBoxRegistrationDlg *dlg = 3776 // new VBoxRegistrationDlg (0, 0, false, Qt::WDestructiveClose); 3777 // dlg->setup (&mRegDlg); 3778 // Assert (dlg == mRegDlg); 3779 // mRegDlg->show(); 3774 VBoxRegistrationDlg *dlg = 3775 new VBoxRegistrationDlg (&mRegDlg, 0, Qt::WDestructiveClose); 3776 Assert (dlg == mRegDlg); 3777 mRegDlg->show(); 3780 3778 } 3781 3779 } -
trunk/src/VBox/Frontends/VirtualBox4/src/VBoxNetworkFramework.cpp
r7220 r7487 169 169 }; 170 170 171 if (mNetworkThread) 172 mNetworkThread->wait (1000); 171 173 delete mNetworkThread; 172 174 mNetworkThread = new Thread (this, aHost, aUrl); -
trunk/src/VBox/Frontends/VirtualBox4/ui/VBoxRegistrationDlg.ui
r7235 r7487 1 <!DOCTYPE UI><UI version="3.3" stdsetdef="1"> 2 <class>VBoxRegistrationDlg</class> 3 <comment> 4 5 :mode=html:tabSize=4:indentSize=4:noTabs=true: 6 :folding=explicit:collapseFolds=1: 7 8 Copyright (C) 2007 innotek GmbH 9 10 This file is part of VirtualBox Open Source Edition (OSE), as 11 available from http://www.virtualbox.org. This file is free software; 12 you can redistribute it and/or modify it under the terms of the GNU 13 General Public License (GPL) as published by the Free Software 14 Foundation, in version 2 as it comes in the "COPYING" file of the 15 VirtualBox OSE distribution. VirtualBox OSE is distributed in the 16 hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. 17 </comment> 18 <widget class="QWizard"> 19 <property name="name"> 20 <cstring>VBoxRegistrationDlg</cstring> 21 </property> 22 <property name="geometry"> 23 <rect> 24 <x>0</x> 25 <y>0</y> 26 <width>600</width> 27 <height>450</height> 28 </rect> 29 </property> 30 <property name="caption"> 31 <string>VirtualBox Registration Dialog</string> 32 </property> 33 <property name="icon"> 34 <pixmap>:/register_16px.png</pixmap> 35 </property> 36 <property name="titleFont"> 37 <font> 38 <family>Arial</family> 39 <pointsize>12</pointsize> 40 <bold>1</bold> 41 </font> 42 </property> 43 <widget class="QWidget"> 44 <property name="name"> 45 <cstring>pageReg</cstring> 46 </property> 47 <attribute name="title"> 48 <string>Welcome to the VirtualBox Registration Form!</string> 49 </attribute> 50 <hbox> 51 <property name="name"> 52 <cstring>unnamed</cstring> 53 </property> 54 <property name="spacing"> 55 <number>10</number> 56 </property> 57 <property name="resizeMode"> 58 <enum>Minimum</enum> 59 </property> 60 <widget class="QLabel"> 61 <property name="name"> 62 <cstring>pictureLabel</cstring> 63 </property> 64 <property name="sizePolicy"> 65 <sizepolicy> 66 <hsizetype>4</hsizetype> 67 <vsizetype>5</vsizetype> 68 <horstretch>0</horstretch> 69 <verstretch>0</verstretch> 70 </sizepolicy> 71 </property> 72 <property name="pixmap"> 73 <pixmap>:/vmw_new_user.png</pixmap> 74 </property> 75 <property name="alignment"> 76 <set>AlignTop</set> 77 </property> 1 <ui version="4.0" > 2 <class>VBoxRegistrationDlg</class> 3 <widget class="QDialog" name="VBoxRegistrationDlg" > 4 <property name="geometry" > 5 <rect> 6 <x>0</x> 7 <y>0</y> 8 <width>564</width> 9 <height>394</height> 10 </rect> 11 </property> 12 <property name="windowTitle" > 13 <string>VirtualBox Registration Dialog</string> 14 </property> 15 <property name="windowIcon" > 16 <iconset resource="../VirtualBox.qrc" >:/register_16px.png</iconset> 17 </property> 18 <layout class="QVBoxLayout" > 19 <property name="leftMargin" > 20 <number>0</number> 21 </property> 22 <property name="topMargin" > 23 <number>0</number> 24 </property> 25 <property name="rightMargin" > 26 <number>0</number> 27 </property> 28 <property name="bottomMargin" > 29 <number>0</number> 30 </property> 31 <item> 32 <widget class="QStackedWidget" name="mPageStack" > 33 <property name="currentIndex" > 34 <number>0</number> 35 </property> 36 <widget class="QWidget" name="mPageReg" > 37 <layout class="QVBoxLayout" > 38 <item> 39 <widget class="QLabel" name="mPageSummaryHdr" > 40 <property name="font" > 41 <font> 42 <family>Arial</family> 43 <pointsize>12</pointsize> 44 <weight>75</weight> 45 <bold>true</bold> 46 </font> 47 </property> 48 <property name="text" > 49 <string>Welcome to the VirtualBox Registration Form!</string> 50 </property> 51 </widget> 52 </item> 53 <item> 54 <widget class="Line" name="line11" > 55 <property name="orientation" > 56 <enum>Qt::Horizontal</enum> 57 </property> 58 </widget> 59 </item> 60 <item> 61 <layout class="QHBoxLayout" > 62 <item> 63 <widget class="QLabel" name="mLogoSummary" > 64 <property name="sizePolicy" > 65 <sizepolicy vsizetype="Minimum" hsizetype="Maximum" > 66 <horstretch>0</horstretch> 67 <verstretch>0</verstretch> 68 </sizepolicy> 69 </property> 70 <property name="autoFillBackground" > 71 <bool>true</bool> 72 </property> 73 <property name="pixmap" > 74 <pixmap resource="../VirtualBox.qrc" >:/vmw_new_user.png</pixmap> 75 </property> 76 <property name="alignment" > 77 <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set> 78 </property> 79 </widget> 80 </item> 81 <item> 82 <layout class="QVBoxLayout" > 83 <item> 84 <widget class="QILabel" name="mTextRegInfo" > 85 <property name="sizePolicy" > 86 <sizepolicy vsizetype="Minimum" hsizetype="Minimum" > 87 <horstretch>0</horstretch> 88 <verstretch>0</verstretch> 89 </sizepolicy> 90 </property> 91 <property name="minimumSize" > 92 <size> 93 <width>300</width> 94 <height>0</height> 95 </size> 96 </property> 97 <property name="text" > 98 <string><p>Please fill out this registration form to let us know that you use VirtualBox and, optionally, to keep you informed about VirtualBox news and updates.</p><p>Enter your full name using Latin characters and your e-mail address to the fields below. Please note that innotek will use this information only to gather product usage statistics and to send you VirtualBox newsletters. In particular, innotek will never pass your data to third parties. Detailed information about how we use your personal data can be found in the <b>Privacy Policy</b> section of the VirtualBox Manual or on the <ahref=http://www.virtualbox.org/wiki/PrivacyPolicy>Privacy Policy</a> page of the VirtualBox web-site.</p></string> 99 </property> 100 <property name="wordWrap" > 101 <bool>true</bool> 102 </property> 78 103 </widget> 79 <widget class="QLayoutWidget"> 80 <property name="name"> 81 <cstring>layout9</cstring> 82 </property> 83 <vbox> 84 <property name="name"> 85 <cstring>unnamed</cstring> 86 </property> 87 <widget class="QIRichLabel"> 88 <property name="name"> 89 <cstring>mTextLabel</cstring> 90 </property> 91 <property name="text" stdset="0"> 92 <string><p>Please fill out this registration form to let us know that you use VirtualBox and, optionally, to keep you informed about VirtualBox news and updates.</p><p>Enter your full name using Latin characters and your e-mail address to the fields below. Please note that innotek will use this information only to gather product usage statistics and to send you VirtualBox newsletters. In particular, innotek will never pass your data to third parties. Detailed information about how we use your personal data can be found in the <b>Privacy Policy</b> section of the VirtualBox Manual or on the <a href=http://www.virtualbox.org/wiki/PrivacyPolicy>Privacy Policy</a> page of the VirtualBox web-site.</p></string> 93 </property> 94 </widget> 95 <spacer> 96 <property name="name"> 97 <cstring>spWelcome</cstring> 98 </property> 99 <property name="orientation"> 100 <enum>Vertical</enum> 101 </property> 102 <property name="sizeType"> 103 <enum>Expanding</enum> 104 </property> 105 <property name="sizeHint"> 106 <size> 107 <width>20</width> 108 <height>160</height> 109 </size> 110 </property> 111 </spacer> 112 <spacer> 113 <property name="name"> 114 <cstring>widthSpacer</cstring> 115 </property> 116 <property name="orientation"> 117 <enum>Horizontal</enum> 118 </property> 119 <property name="sizeType"> 120 <enum>MinimumExpanding</enum> 121 </property> 122 <property name="sizeHint"> 123 <size> 124 <width>400</width> 125 <height>0</height> 126 </size> 127 </property> 128 </spacer> 129 <widget class="QLayoutWidget"> 130 <property name="name"> 131 <cstring>layout7</cstring> 132 </property> 133 <grid> 134 <property name="name"> 135 <cstring>unnamed</cstring> 136 </property> 137 <widget class="QLabel" row="0" column="0"> 138 <property name="name"> 139 <cstring>mNameLabel</cstring> 140 </property> 141 <property name="text"> 142 <string>&Name</string> 143 </property> 144 <property name="buddy" stdset="0"> 145 <cstring>mNameEdit</cstring> 146 </property> 147 </widget> 148 <widget class="QLineEdit" row="0" column="1"> 149 <property name="name"> 150 <cstring>mNameEdit</cstring> 151 </property> 152 <property name="whatsThis" stdset="0"> 153 <string>Enter your full name using Latin characters.</string> 154 </property> 155 </widget> 156 <widget class="QLabel" row="1" column="0"> 157 <property name="name"> 158 <cstring>mEmailLabel</cstring> 159 </property> 160 <property name="text"> 161 <string>&E-mail</string> 162 </property> 163 <property name="buddy" stdset="0"> 164 <cstring>mEmailEdit</cstring> 165 </property> 166 </widget> 167 <widget class="QLineEdit" row="1" column="1"> 168 <property name="name"> 169 <cstring>mEmailEdit</cstring> 170 </property> 171 <property name="whatsThis" stdset="0"> 172 <string>Enter your valid e-mail address.</string> 173 </property> 174 </widget> 175 <widget class="QCheckBox" row="2" column="0" rowspan="1" colspan="2"> 176 <property name="name"> 177 <cstring>mUseCheckBox</cstring> 178 </property> 179 <property name="text"> 180 <string>&Please do not use this information to contact me</string> 181 </property> 182 <property name="whatsThis" stdset="0"> 183 <string>Check this box if you do not want to receive mail from innotek at the e-mail address specified above.</string> 184 </property> 185 </widget> 186 </grid> 187 </widget> 188 </vbox> 189 </widget> 190 </hbox> 104 </item> 105 <item> 106 <spacer> 107 <property name="orientation" > 108 <enum>Qt::Vertical</enum> 109 </property> 110 <property name="sizeType" > 111 <enum>QSizePolicy::Expanding</enum> 112 </property> 113 <property name="sizeHint" > 114 <size> 115 <width>10</width> 116 <height>0</height> 117 </size> 118 </property> 119 </spacer> 120 </item> 121 <item> 122 <layout class="QGridLayout" > 123 <item row="0" column="0" > 124 <widget class="QLabel" name="mTxName" > 125 <property name="text" > 126 <string>&Name</string> 127 </property> 128 <property name="buddy" > 129 <cstring>mLeName</cstring> 130 </property> 131 </widget> 132 </item> 133 <item row="0" column="1" > 134 <widget class="QLineEdit" name="mLeName" > 135 <property name="whatsThis" > 136 <string>Enter your full name using Latin characters.</string> 137 </property> 138 </widget> 139 </item> 140 <item row="1" column="0" > 141 <widget class="QLabel" name="mTxEmail" > 142 <property name="text" > 143 <string>&E-mail</string> 144 </property> 145 <property name="buddy" > 146 <cstring>mLeEmail</cstring> 147 </property> 148 </widget> 149 </item> 150 <item row="1" column="1" > 151 <widget class="QLineEdit" name="mLeEmail" > 152 <property name="whatsThis" > 153 <string>Enter your valid e-mail address.</string> 154 </property> 155 </widget> 156 </item> 157 <item row="2" column="0" colspan="2" > 158 <widget class="QCheckBox" name="mCbUse" > 159 <property name="whatsThis" > 160 <string>Check this box if you do not want to receive mail from innotek at the e-mail address specified above.</string> 161 </property> 162 <property name="text" > 163 <string>&Please do not use this information to contact me</string> 164 </property> 165 </widget> 166 </item> 167 </layout> 168 </item> 169 </layout> 170 </item> 171 </layout> 172 </item> 173 <item> 174 <widget class="Line" name="line12" > 175 <property name="orientation" > 176 <enum>Qt::Horizontal</enum> 177 </property> 178 </widget> 179 </item> 180 <item> 181 <layout class="QHBoxLayout" > 182 <item> 183 <spacer> 184 <property name="orientation" > 185 <enum>Qt::Horizontal</enum> 186 </property> 187 <property name="sizeHint" > 188 <size> 189 <width>0</width> 190 <height>0</height> 191 </size> 192 </property> 193 </spacer> 194 </item> 195 <item> 196 <widget class="QPushButton" name="mBtnFinish" > 197 <property name="text" > 198 <string>C&onfirm</string> 199 </property> 200 <property name="default" > 201 <bool>true</bool> 202 </property> 203 </widget> 204 </item> 205 <item> 206 <spacer> 207 <property name="orientation" > 208 <enum>Qt::Horizontal</enum> 209 </property> 210 <property name="sizeType" > 211 <enum>QSizePolicy::Fixed</enum> 212 </property> 213 <property name="sizeHint" > 214 <size> 215 <width>5</width> 216 <height>0</height> 217 </size> 218 </property> 219 </spacer> 220 </item> 221 <item> 222 <widget class="QPushButton" name="mBtnCancel4" > 223 <property name="text" > 224 <string>&Cancel</string> 225 </property> 226 </widget> 227 </item> 228 </layout> 229 </item> 230 </layout> 231 </widget> 191 232 </widget> 192 </widget> 193 <customwidgets> 194 <customwidget> 195 <class>QIRichLabel</class> 196 <header location="local">QIRichLabel.h</header> 197 <sizehint> 198 <width>80</width> 199 <height>20</height> 200 </sizehint> 201 <container>0</container> 202 <sizepolicy> 203 <hordata>5</hordata> 204 <verdata>5</verdata> 205 <horstretch>0</horstretch> 206 <verstretch>0</verstretch> 207 </sizepolicy> 208 <pixmap>image0</pixmap> 209 <property type="String">text</property> 210 </customwidget> 211 </customwidgets> 212 <includes> 213 <include location="local" impldecl="in implementation">VBoxGlobal.h</include> 214 <include location="local" impldecl="in implementation">VBoxNetworkFramework.h</include> 215 <include location="local" impldecl="in implementation">VBoxProblemReporter.h</include> 216 <include location="global" impldecl="in declaration">qurl.h</include> 217 <include location="global" impldecl="in implementation">qpushbutton.h</include> 218 <include location="global" impldecl="in implementation">qtimer.h</include> 219 <include location="global" impldecl="in implementation">qvalidator.h</include> 220 <include location="global" impldecl="in implementation">qprocess.h</include> 221 </includes> 222 <forwards> 223 <forward>class VBoxNetworkFramework</forward> 224 </forwards> 225 <variables> 226 <variable access="private">VBoxRegistrationDlg **mSelf;</variable> 227 <variable access="private">QUrl mUrl;</variable> 228 <variable access="private">QTimer *mTimeout;</variable> 229 <variable access="private">bool mSuicide;</variable> 230 <variable access="private">bool mHandshake;</variable> 231 <variable access="private">VBoxNetworkFramework *mNetfw;</variable> 232 </variables> 233 <slots> 234 <slot access="private">registration()</slot> 235 <slot access="private">processTimeout()</slot> 236 <slot access="private">onNetBegin( int )</slot> 237 <slot access="private">onNetData( const QByteArray & )</slot> 238 <slot access="private">onNetEnd( const QByteArray & )</slot> 239 <slot access="private">onNetError( const QString & )</slot> 240 <slot access="private">accept()</slot> 241 <slot access="private">reject()</slot> 242 <slot access="private">validate()</slot> 243 </slots> 244 <functions> 245 <function specifier="static" returnType="bool">hasToBeShown()</function> 246 <function access="private">init()</function> 247 <function access="private">destroy()</function> 248 <function>setup( VBoxRegistrationDlg ** )</function> 249 <function access="private">languageChangeImp()</function> 250 <function access="private">postRequest( const QString & , const QString & )</function> 251 <function access="private" returnType="QString">getPlatform()</function> 252 <function>abortRegisterRequest( const QString & )</function> 253 <function access="private">showEvent( QShowEvent* )</function> 254 </functions> 255 <pixmapinproject/> 256 <layoutdefaults spacing="6" margin="11"/> 257 </UI> 233 </item> 234 </layout> 235 </widget> 236 <customwidgets> 237 <customwidget> 238 <class>QILabel</class> 239 <extends>QLabel</extends> 240 <header>QIAbstractWizard.h</header> 241 </customwidget> 242 </customwidgets> 243 <tabstops> 244 <tabstop>mBtnFinish</tabstop> 245 <tabstop>mBtnCancel4</tabstop> 246 </tabstops> 247 <resources> 248 <include location="../VirtualBox.qrc" /> 249 </resources> 250 <connections/> 251 </ui>
Note:
See TracChangeset
for help on using the changeset viewer.