Changeset 2354 in vbox
- Timestamp:
- Apr 26, 2007 1:48:04 PM (18 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 18 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/Makefile
r2311 r2354 67 67 include/QIMessageBox.h \ 68 68 include/QIRichLabel.h \ 69 include/V MGlobalSettings.h \69 include/VBoxGlobalSettings.h \ 70 70 include/VBoxUtils.h \ 71 71 include/VBoxGlobal.h \ … … 127 127 src/QIMessageBox.cpp \ 128 128 src/QIRichLabel.cpp \ 129 src/V MGlobalSettings.cpp \129 src/VBoxGlobalSettings.cpp \ 130 130 src/VBoxGlobal.cpp \ 131 131 src/VBoxMediaComboBox.cpp \ -
trunk/src/VBox/Frontends/VirtualBox/include/VBoxConsoleView.h
r2221 r2354 27 27 28 28 #include "VBoxDefs.h" 29 #include "V MGlobalSettings.h"29 #include "VBoxGlobalSettings.h" 30 30 31 31 #include <qdatetime.h> … … 180 180 CConsole cconsole; 181 181 182 const V MGlobalSettings &gs;182 const VBoxGlobalSettings &gs; 183 183 184 184 CEnums::MachineState last_state; -
trunk/src/VBox/Frontends/VirtualBox/include/VBoxGlobal.h
r2319 r2354 26 26 #include "COMDefs.h" 27 27 28 #include "V MGlobalSettings.h"28 #include "VBoxGlobalSettings.h" 29 29 30 30 #include <qapplication.h> … … 154 154 CVirtualBox virtualBox() const { return vbox; } 155 155 156 const V MGlobalSettings &settings() const { return gset; }157 bool setSettings (const V MGlobalSettings &gs);156 const VBoxGlobalSettings &settings() const { return gset; } 157 bool setSettings (const VBoxGlobalSettings &gs); 158 158 159 159 VBoxSelectorWnd &selectorWnd(); … … 483 483 CVirtualBox vbox; 484 484 485 V MGlobalSettings gset;485 VBoxGlobalSettings gset; 486 486 487 487 VBoxSelectorWnd *selector_wnd; -
trunk/src/VBox/Frontends/VirtualBox/include/VBoxGlobalSettings.h
r2349 r2354 2 2 * 3 3 * VBox frontends: Qt GUI ("VirtualBox"): 4 * V MGlobalSettingsData, VMGlobalSettings class declarations4 * VBoxGlobalSettingsData, VBoxGlobalSettings class declarations 5 5 */ 6 6 … … 21 21 */ 22 22 23 #ifndef __V MGlobalSettings_h__24 #define __V MGlobalSettings_h__23 #ifndef __VBoxGlobalSettings_h__ 24 #define __VBoxGlobalSettings_h__ 25 25 26 26 #include "CIShared.h" … … 30 30 class CVirtualBox; 31 31 32 class V MGlobalSettingsData32 class VBoxGlobalSettingsData 33 33 { 34 34 public: 35 35 36 V MGlobalSettingsData();37 V MGlobalSettingsData( const VMGlobalSettingsData &that );38 virtual ~V MGlobalSettingsData();39 bool operator==( const V MGlobalSettingsData &that ) const;36 VBoxGlobalSettingsData(); 37 VBoxGlobalSettingsData( const VBoxGlobalSettingsData &that ); 38 virtual ~VBoxGlobalSettingsData(); 39 bool operator==( const VBoxGlobalSettingsData &that ) const; 40 40 41 41 private: … … 46 46 QString languageId; 47 47 48 friend class V MGlobalSettings;48 friend class VBoxGlobalSettings; 49 49 }; 50 50 51 51 ///////////////////////////////////////////////////////////////////////////// 52 52 53 class V MGlobalSettings : public QObject, public CIShared <VMGlobalSettingsData>53 class VBoxGlobalSettings : public QObject, public CIShared <VBoxGlobalSettingsData> 54 54 { 55 55 Q_OBJECT … … 61 61 public: 62 62 63 V MGlobalSettings (bool null = true)64 : CIShared <V MGlobalSettingsData> (null) {}65 V MGlobalSettings (const VMGlobalSettings &that)66 : QObject(), CIShared <V MGlobalSettingsData> (that) {}67 V MGlobalSettings &operator= (const VMGlobalSettings &that) {68 CIShared <V MGlobalSettingsData>::operator= (that);63 VBoxGlobalSettings (bool null = true) 64 : CIShared <VBoxGlobalSettingsData> (null) {} 65 VBoxGlobalSettings (const VBoxGlobalSettings &that) 66 : QObject(), CIShared <VBoxGlobalSettingsData> (that) {} 67 VBoxGlobalSettings &operator= (const VBoxGlobalSettings &that) { 68 CIShared <VBoxGlobalSettingsData>::operator= (that); 69 69 return *this; 70 70 } … … 132 132 }; 133 133 134 #endif // __V MGlobalSettings_h__134 #endif // __VBoxGlobalSettings_h__ -
trunk/src/VBox/Frontends/VirtualBox/nls/VirtualBox_de.ts
r2352 r2354 3755 3755 </context> 3756 3756 <context> 3757 <name>V MGlobalSettings</name>3757 <name>VBoxGlobalSettings</name> 3758 3758 <message> 3759 3759 <source>'%1 (0x%2)' is an invalid host key code.</source> -
trunk/src/VBox/Frontends/VirtualBox/nls/VirtualBox_es.ts
r2352 r2354 3880 3880 </context> 3881 3881 <context> 3882 <name>V MGlobalSettings</name>3882 <name>VBoxGlobalSettings</name> 3883 3883 <message> 3884 3884 <source>'%1 (0x%2)' is an invalid host key code.</source> -
trunk/src/VBox/Frontends/VirtualBox/nls/VirtualBox_fr.ts
r2352 r2354 4135 4135 </context> 4136 4136 <context> 4137 <name>V MGlobalSettings</name>4137 <name>VBoxGlobalSettings</name> 4138 4138 <message> 4139 4139 <source>'%1 (0x%2)' is an invalid host key code.</source> -
trunk/src/VBox/Frontends/VirtualBox/nls/VirtualBox_it.ts
r2352 r2354 4209 4209 </context> 4210 4210 <context> 4211 <name>V MGlobalSettings</name>4211 <name>VBoxGlobalSettings</name> 4212 4212 <message> 4213 4213 <source>'%1 (0x%2)' is an invalid host key code.</source> -
trunk/src/VBox/Frontends/VirtualBox/nls/VirtualBox_ro.ts
r2352 r2354 4243 4243 </context> 4244 4244 <context> 4245 <name>V MGlobalSettings</name>4245 <name>VBoxGlobalSettings</name> 4246 4246 <message> 4247 4247 <source>'%1 (0x%2)' is an invalid host key code.</source> -
trunk/src/VBox/Frontends/VirtualBox/nls/VirtualBox_ru.ts
r2353 r2354 3813 3813 </context> 3814 3814 <context> 3815 <name>V MGlobalSettings</name>3815 <name>VBoxGlobalSettings</name> 3816 3816 <message> 3817 3817 <source>'%1 (0x%2)' is an invalid host key code.</source> -
trunk/src/VBox/Frontends/VirtualBox/nls/VirtualBox_xx_YY.ts
r2352 r2354 3738 3738 </context> 3739 3739 <context> 3740 <name>V MGlobalSettings</name>3740 <name>VBoxGlobalSettings</name> 3741 3741 <message> 3742 3742 <source>'%1 (0x%2)' is an invalid host key code.</source> -
trunk/src/VBox/Frontends/VirtualBox/nls/VirtualBox_zh_CN.ts
r2352 r2354 4038 4038 </context> 4039 4039 <context> 4040 <name>V MGlobalSettings</name>4040 <name>VBoxGlobalSettings</name> 4041 4041 <message> 4042 4042 <source>'%1 (0x%2)' is an invalid host key code.</source> -
trunk/src/VBox/Frontends/VirtualBox/nls/VirtualBox_zh_TW.ts
r2352 r2354 4864 4864 </context> 4865 4865 <context> 4866 <name>V MGlobalSettings</name>4866 <name>VBoxGlobalSettings</name> 4867 4867 <message> 4868 4868 <source>'%1 (0x%2)' is an invalid host key code.</source> -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleWnd.cpp
r2349 r2354 714 714 void VBoxConsoleWnd::loadGuiCustomizations() 715 715 { 716 V MGlobalSettings settings = vboxGlobal().settings();716 VBoxGlobalSettings settings = vboxGlobal().settings(); 717 717 /* Process known keys */ 718 718 menuBar()->setHidden (settings.isFeatureActive ("noMenuBar")); -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxGlobal.cpp
r2328 r2354 185 185 { 186 186 // try to set the global setting to check its syntax 187 V MGlobalSettings gs (false /* non-null */);187 VBoxGlobalSettings gs (false /* non-null */); 188 188 if (gs.setPublicProperty (sKey, sVal)) 189 189 { … … 609 609 * Sets the new global settings and saves them to the VirtualBox server. 610 610 */ 611 bool VBoxGlobal::setSettings (const V MGlobalSettings &gs)611 bool VBoxGlobal::setSettings (const VBoxGlobalSettings &gs) 612 612 { 613 613 gs.save (vbox); … … 1856 1856 /** 1857 1857 * Returns the loaded (active) language ID. 1858 * Note that it may not match with V MGlobalSettings::languageId() if the1858 * Note that it may not match with VBoxGlobalSettings::languageId() if the 1859 1859 * specified language cannot be loaded. 1860 1860 * If the built-in language is active, this method returns "C". … … 2955 2955 2956 2956 // create default non-null global settings 2957 gset = V MGlobalSettings (false);2957 gset = VBoxGlobalSettings (false); 2958 2958 2959 2959 // try to load global settings -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxGlobalSettings.cpp
r2349 r2354 2 2 * 3 3 * VBox frontends: Qt GUI ("VirtualBox"): 4 * V MGlobalSettingsData, VMGlobalSettings class implementation4 * VBoxGlobalSettingsData, VBoxGlobalSettings class implementation 5 5 */ 6 6 … … 25 25 #include <qregexp.h> 26 26 27 #include "V MGlobalSettings.h"27 #include "VBoxGlobalSettings.h" 28 28 #include "QIHotKeyEdit.h" 29 29 #include "COMDefs.h" … … 31 31 #include <qvariant.h> 32 32 33 /** @class V MGlobalSettingsData34 * 35 * The V MGlobalSettingsData class incapsulates the global settings33 /** @class VBoxGlobalSettingsData 34 * 35 * The VBoxGlobalSettingsData class incapsulates the global settings 36 36 * of the VirtualBox. 37 37 */ 38 38 39 V MGlobalSettingsData::VMGlobalSettingsData()39 VBoxGlobalSettingsData::VBoxGlobalSettingsData() 40 40 { 41 41 /* default settings */ … … 59 59 } 60 60 61 V MGlobalSettingsData::VMGlobalSettingsData( const VMGlobalSettingsData &that ) {61 VBoxGlobalSettingsData::VBoxGlobalSettingsData( const VBoxGlobalSettingsData &that ) { 62 62 hostkey = that.hostkey; 63 63 autoCapture = that.autoCapture; … … 66 66 } 67 67 68 V MGlobalSettingsData::~VMGlobalSettingsData()69 { 70 } 71 72 bool V MGlobalSettingsData::operator==( const VMGlobalSettingsData &that ) const68 VBoxGlobalSettingsData::~VBoxGlobalSettingsData() 69 { 70 } 71 72 bool VBoxGlobalSettingsData::operator==( const VBoxGlobalSettingsData &that ) const 73 73 { 74 74 return this == &that || ( … … 80 80 } 81 81 82 /** @class V MGlobalSettings83 * 84 * The V MGlobalSettings class is a wrapper class for VMGlobalSettingsData82 /** @class VBoxGlobalSettings 83 * 84 * The VBoxGlobalSettings class is a wrapper class for VBoxGlobalSettingsData 85 85 * to implement implicit sharing of VirtualBox global data. 86 86 */ … … 104 104 }; 105 105 106 void V MGlobalSettings::setHostKey (int key)106 void VBoxGlobalSettings::setHostKey (int key) 107 107 { 108 108 if (!QIHotKeyEdit::isValidKey (key)) … … 117 117 } 118 118 119 bool V MGlobalSettings::isFeatureActive (const char *aFeature) const119 bool VBoxGlobalSettings::isFeatureActive (const char *aFeature) const 120 120 { 121 121 QStringList featureList = QStringList::split (',', data()->guiFeatures); … … 136 136 * @note This method emits the #propertyChanged() signal. 137 137 */ 138 void V MGlobalSettings::load (CVirtualBox &vbox)138 void VBoxGlobalSettings::load (CVirtualBox &vbox) 139 139 { 140 140 for (size_t i = 0; i < SIZEOF_ARRAY (gPropertyMap); i++) … … 160 160 * vbox.isOk() will be false to indicate this). 161 161 */ 162 void V MGlobalSettings::save (CVirtualBox &vbox) const162 void VBoxGlobalSettings::save (CVirtualBox &vbox) const 163 163 { 164 164 for (size_t i = 0; i < SIZEOF_ARRAY (gPropertyMap); i++) … … 177 177 * or QString::null if there is no such public property. 178 178 */ 179 QString V MGlobalSettings::publicProperty (const QString &publicName) const179 QString VBoxGlobalSettings::publicProperty (const QString &publicName) const 180 180 { 181 181 for (size_t i = 0; i < SIZEOF_ARRAY (gPropertyMap); i++) … … 209 209 * @note This method emits the #propertyChanged() signal. 210 210 */ 211 bool V MGlobalSettings::setPublicProperty (const QString &publicName, const QString &value)211 bool VBoxGlobalSettings::setPublicProperty (const QString &publicName, const QString &value) 212 212 { 213 213 for (size_t i = 0; i < SIZEOF_ARRAY (gPropertyMap); i++) … … 223 223 } 224 224 225 void V MGlobalSettings::setPropertyPrivate (int index, const QString &value)225 void VBoxGlobalSettings::setPropertyPrivate (int index, const QString &value) 226 226 { 227 227 if (value.isNull()) -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxSelectorWnd.cpp
r2351 r2354 635 635 void VBoxSelectorWnd::fileSettings() 636 636 { 637 V MGlobalSettings settings = vboxGlobal().settings();637 VBoxGlobalSettings settings = vboxGlobal().settings(); 638 638 CSystemProperties props = vboxGlobal().virtualBox().GetSystemProperties(); 639 639 … … 643 643 if (dlg.exec() == QDialog::Accepted) 644 644 { 645 V MGlobalSettings s = settings;645 VBoxGlobalSettings s = settings; 646 646 dlg.putBackTo (props, s); 647 647 if (!props.isOk()) -
trunk/src/VBox/Frontends/VirtualBox/src/main.cpp
r2309 r2354 170 170 if (vboxGlobal().isValid()) 171 171 { 172 V MGlobalSettings settings = vboxGlobal().settings();172 VBoxGlobalSettings settings = vboxGlobal().settings(); 173 173 /* Process known keys */ 174 174 bool noSelector = settings.isFeatureActive ("noSelector"); -
trunk/src/VBox/Frontends/VirtualBox/ui/VBoxGlobalSettingsDlg.ui
r2351 r2354 1202 1202 <include location="local" impldecl="in declaration">QIWidgetValidator.h</include> 1203 1203 <include location="local" impldecl="in declaration">QIHotKeyEdit.h</include> 1204 <include location="local" impldecl="in declaration">V MGlobalSettings.h</include>1204 <include location="local" impldecl="in declaration">VBoxGlobalSettings.h</include> 1205 1205 <include location="local" impldecl="in implementation">VBoxUtils.h</include> 1206 1206 <include location="local" impldecl="in implementation">VBoxGlobal.h</include> … … 1251 1251 <function access="private" returnType="bool">event( QEvent * )</function> 1252 1252 <function access="protected">showEvent( QShowEvent * )</function> 1253 <function>getFrom( const CSystemProperties & props, const V MGlobalSettings & gs )</function>1254 <function>putBackTo( CSystemProperties & props, V MGlobalSettings & gs )</function>1253 <function>getFrom( const CSystemProperties & props, const VBoxGlobalSettings & gs )</function> 1254 <function>putBackTo( CSystemProperties & props, VBoxGlobalSettings & gs )</function> 1255 1255 <function access="protected">setWarning( const QString & )</function> 1256 1256 <function returnType="bool">eventFilter( QObject * watched, QEvent * e )</function> -
trunk/src/VBox/Frontends/VirtualBox/ui/VBoxGlobalSettingsDlg.ui.h
r2350 r2354 553 553 554 554 /** 555 * Reads global settings from the given V MGlobalSettings instance555 * Reads global settings from the given VBoxGlobalSettings instance 556 556 * and from the given CSystemProperties object. 557 557 */ 558 558 void VBoxGlobalSettingsDlg::getFrom (const CSystemProperties &props, 559 const V MGlobalSettings &gs)559 const VBoxGlobalSettings &gs) 560 560 { 561 561 /* default folders */ … … 629 629 630 630 /** 631 * Writes global settings to the given V MGlobalSettings instance631 * Writes global settings to the given VBoxGlobalSettings instance 632 632 * and to the given CSystemProperties object. 633 633 */ 634 634 void VBoxGlobalSettingsDlg::putBackTo (CSystemProperties &props, 635 V MGlobalSettings &gs)635 VBoxGlobalSettings &gs) 636 636 { 637 637 /* default folders */
Note:
See TracChangeset
for help on using the changeset viewer.