Changeset 101011 in vbox
- Timestamp:
- Sep 4, 2023 6:09:24 PM (15 months ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 103 edited
- 2 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/Makefile.kmk
r100989 r101011 901 901 src/settings/editors/UIDisplayScreenFeaturesEditor.h \ 902 902 src/settings/editors/UIDragAndDropEditor.h \ 903 src/settings/editors/UIEditor.h \ 903 904 src/settings/editors/UIExecutionCapEditor.h \ 904 905 src/settings/editors/UIFontScaleEditor.h \ … … 1487 1488 src/settings/editors/UIDisplayScreenFeaturesEditor.cpp \ 1488 1489 src/settings/editors/UIDragAndDropEditor.cpp \ 1490 src/settings/editors/UIEditor.cpp \ 1489 1491 src/settings/editors/UIExecutionCapEditor.cpp \ 1490 1492 src/settings/editors/UIFontScaleEditor.cpp \ -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIAccelerationFeaturesEditor.cpp
r98103 r101011 37 37 38 38 UIAccelerationFeaturesEditor::UIAccelerationFeaturesEditor(QWidget *pParent /* = 0 */) 39 : QIWithRetranslateUI<QWidget>(pParent)39 : UIEditor(pParent) 40 40 , m_fEnableNestedPaging(false) 41 41 , m_pLabel(0) -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIAccelerationFeaturesEditor.h
r98103 r101011 33 33 34 34 /* GUI includes: */ 35 #include " QIWithRetranslateUI.h"35 #include "UIEditor.h" 36 36 37 37 /* Forward declarations: */ … … 40 40 class QLabel; 41 41 42 /** QWidget subclass used as acceleration features editor. */43 class SHARED_LIBRARY_STUFF UIAccelerationFeaturesEditor : public QIWithRetranslateUI<QWidget>42 /** UIEditor sub-class used as acceleration features editor. */ 43 class SHARED_LIBRARY_STUFF UIAccelerationFeaturesEditor : public UIEditor 44 44 { 45 45 Q_OBJECT; -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIAudioControllerEditor.cpp
r98103 r101011 42 42 43 43 UIAudioControllerEditor::UIAudioControllerEditor(QWidget *pParent /* = 0 */) 44 : QIWithRetranslateUI<QWidget>(pParent)44 : UIEditor(pParent) 45 45 , m_enmValue(KAudioControllerType_Max) 46 46 , m_pLabel(0) -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIAudioControllerEditor.h
r98103 r101011 32 32 #endif 33 33 34 /* Qt includes: */35 #include <QWidget>36 37 34 /* GUI includes: */ 38 #include "QIWithRetranslateUI.h" 39 #include "UILibraryDefs.h" 35 #include "UIEditor.h" 40 36 41 37 /* COM includes: */ … … 47 43 class QLabel; 48 44 49 /** QWidget subclass used as an audio controller editor. */50 class SHARED_LIBRARY_STUFF UIAudioControllerEditor : public QIWithRetranslateUI<QWidget>45 /** UIEditor sub-class used as an audio controller editor. */ 46 class SHARED_LIBRARY_STUFF UIAudioControllerEditor : public UIEditor 51 47 { 52 48 Q_OBJECT; -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIAudioFeaturesEditor.cpp
r98103 r101011 36 36 37 37 UIAudioFeaturesEditor::UIAudioFeaturesEditor(QWidget *pParent /* = 0 */) 38 : QIWithRetranslateUI<QWidget>(pParent)38 : UIEditor(pParent) 39 39 , m_fEnableOutput(false) 40 40 , m_fEnableInput(false) -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIAudioFeaturesEditor.h
r98103 r101011 33 33 34 34 /* GUI includes: */ 35 #include " QIWithRetranslateUI.h"35 #include "UIEditor.h" 36 36 37 37 /* Forward declarations: */ … … 40 40 class QLabel; 41 41 42 /** QWidget subclass used as audio features editor. */43 class SHARED_LIBRARY_STUFF UIAudioFeaturesEditor : public QIWithRetranslateUI<QWidget>42 /** UIEditor sub-class used as audio features editor. */ 43 class SHARED_LIBRARY_STUFF UIAudioFeaturesEditor : public UIEditor 44 44 { 45 45 Q_OBJECT; -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIAudioHostDriverEditor.cpp
r98103 r101011 42 42 43 43 UIAudioHostDriverEditor::UIAudioHostDriverEditor(QWidget *pParent /* = 0 */) 44 : QIWithRetranslateUI<QWidget>(pParent)44 : UIEditor(pParent) 45 45 , m_enmValue(KAudioDriverType_Max) 46 46 , m_pLabel(0) -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIAudioHostDriverEditor.h
r98103 r101011 32 32 #endif 33 33 34 /* Qt includes: */35 #include <QWidget>36 37 34 /* GUI includes: */ 38 #include "QIWithRetranslateUI.h" 39 #include "UILibraryDefs.h" 35 #include "UIEditor.h" 40 36 41 37 /* COM includes: */ … … 47 43 class QLabel; 48 44 49 /** QWidget subclass used as an audio host driver editor. */50 class SHARED_LIBRARY_STUFF UIAudioHostDriverEditor : public QIWithRetranslateUI<QWidget>45 /** UIEditor sub-class used as an audio host driver editor. */ 46 class SHARED_LIBRARY_STUFF UIAudioHostDriverEditor : public UIEditor 51 47 { 52 48 Q_OBJECT; -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIAudioSettingsEditor.cpp
r98103 r101011 39 39 40 40 UIAudioSettingsEditor::UIAudioSettingsEditor(QWidget *pParent /* = 0 */) 41 : QIWithRetranslateUI<QWidget>(pParent)41 : UIEditor(pParent) 42 42 , m_fFeatureEnabled(false) 43 43 , m_pCheckboxFeature(0) -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIAudioSettingsEditor.h
r98103 r101011 32 32 #endif 33 33 34 /* Qt includes: */35 #include <QWidget>36 37 34 /* GUI includes: */ 38 #include "QIWithRetranslateUI.h" 39 #include "UILibraryDefs.h" 35 #include "UIEditor.h" 40 36 #include "UIPortForwardingTable.h" 41 37 … … 49 45 class UIAudioHostDriverEditor; 50 46 51 /** QWidget subclass used as a audio settings editor. */52 class SHARED_LIBRARY_STUFF UIAudioSettingsEditor : public QIWithRetranslateUI<QWidget>47 /** UIEditor sub-class used as a audio settings editor. */ 48 class SHARED_LIBRARY_STUFF UIAudioSettingsEditor : public UIEditor 53 49 { 54 50 Q_OBJECT; -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIAutoCaptureKeyboardEditor.cpp
r98103 r101011 36 36 37 37 UIAutoCaptureKeyboardEditor::UIAutoCaptureKeyboardEditor(QWidget *pParent /* = 0 */) 38 : QIWithRetranslateUI<QWidget>(pParent)38 : UIEditor(pParent) 39 39 , m_fValue(false) 40 40 , m_pLabel(0) -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIAutoCaptureKeyboardEditor.h
r98103 r101011 33 33 34 34 /* GUI includes: */ 35 #include " QIWithRetranslateUI.h"35 #include "UIEditor.h" 36 36 37 37 /* Forward declarations: */ … … 39 39 class QLabel; 40 40 41 /** QWidget subclass used as an auto capture keyboard editor. */42 class SHARED_LIBRARY_STUFF UIAutoCaptureKeyboardEditor : public QIWithRetranslateUI<QWidget>41 /** UIEditor sub-class used as an auto capture keyboard editor. */ 42 class SHARED_LIBRARY_STUFF UIAutoCaptureKeyboardEditor : public UIEditor 43 43 { 44 44 Q_OBJECT; -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIBaseMemoryEditor.cpp
r98103 r101011 249 249 250 250 UIBaseMemoryEditor::UIBaseMemoryEditor(QWidget *pParent /* = 0 */) 251 : QIWithRetranslateUI<QWidget>(pParent)251 : UIEditor(pParent) 252 252 , m_iValue(0) 253 253 , m_pLayout(0) -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIBaseMemoryEditor.h
r98103 r101011 32 32 #endif 33 33 34 /* Qt includes: */35 #include <QWidget>36 37 34 /* GUI includes: */ 38 #include "QIWithRetranslateUI.h" 39 #include "UILibraryDefs.h" 35 #include "UIEditor.h" 40 36 41 37 /* Forward declarations: */ … … 45 41 class UIBaseMemorySlider; 46 42 47 /** QWidget subclass used as a base memory editor. */48 class SHARED_LIBRARY_STUFF UIBaseMemoryEditor : public QIWithRetranslateUI<QWidget>43 /** UIEditor sub-class used as a base memory editor. */ 44 class SHARED_LIBRARY_STUFF UIBaseMemoryEditor : public UIEditor 49 45 { 50 46 Q_OBJECT; -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIBootOrderEditor.cpp
r98103 r101011 444 444 445 445 UIBootOrderEditor::UIBootOrderEditor(QWidget *pParent /* = 0 */) 446 : QIWithRetranslateUI<QWidget>(pParent)446 : UIEditor(pParent) 447 447 , m_pLayout(0) 448 448 , m_pLabel(0) … … 481 481 /* Skip events sent to unrelated objects: */ 482 482 if (m_pTable && pObject != m_pTable) 483 return QIWithRetranslateUI<QWidget>::eventFilter(pObject, pEvent);483 return UIEditor::eventFilter(pObject, pEvent); 484 484 485 485 /* Handle only required event types: */ … … 499 499 500 500 /* Call to base-class: */ 501 return QIWithRetranslateUI<QWidget>::eventFilter(pObject, pEvent);501 return UIEditor::eventFilter(pObject, pEvent); 502 502 } 503 503 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIBootOrderEditor.h
r98103 r101011 33 33 34 34 /* GUI includes: */ 35 #include "QIWithRetranslateUI.h" 36 #include "UILibraryDefs.h" 35 #include "UIEditor.h" 37 36 38 37 /* COM includes: */ … … 93 92 94 93 95 /** QWidget subclass used as boot order editor. */96 class SHARED_LIBRARY_STUFF UIBootOrderEditor : public QIWithRetranslateUI<QWidget>94 /** UIEditor sub-class used as boot order editor. */ 95 class SHARED_LIBRARY_STUFF UIBootOrderEditor : public UIEditor 97 96 { 98 97 Q_OBJECT; -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIChipsetEditor.cpp
r98103 r101011 42 42 43 43 UIChipsetEditor::UIChipsetEditor(QWidget *pParent /* = 0 */) 44 : QIWithRetranslateUI<QWidget>(pParent)44 : UIEditor(pParent) 45 45 , m_enmValue(KChipsetType_Max) 46 46 , m_pLabel(0) -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIChipsetEditor.h
r98103 r101011 32 32 #endif 33 33 34 /* Qt includes: */35 #include <QWidget>36 37 34 /* GUI includes: */ 38 #include "QIWithRetranslateUI.h" 39 #include "UILibraryDefs.h" 35 #include "UIEditor.h" 40 36 41 37 /* COM includes: */ … … 47 43 class QLabel; 48 44 49 /** QWidget subclass used as a chipset editor. */50 class SHARED_LIBRARY_STUFF UIChipsetEditor : public QIWithRetranslateUI<QWidget>45 /** UIEditor sub-class used as a chipset editor. */ 46 class SHARED_LIBRARY_STUFF UIChipsetEditor : public UIEditor 51 47 { 52 48 Q_OBJECT; -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIColorThemeEditor.cpp
r98103 r101011 38 38 39 39 UIColorThemeEditor::UIColorThemeEditor(QWidget *pParent /* = 0 */) 40 : QIWithRetranslateUI<QWidget>(pParent)40 : UIEditor(pParent) 41 41 , m_enmValue(UIColorThemeType_Auto) 42 42 , m_pLabel(0) -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIColorThemeEditor.h
r98103 r101011 32 32 #endif 33 33 34 /* Qt includes: */35 #include <QWidget>36 37 34 /* GUI includes: */ 38 #include " QIWithRetranslateUI.h"35 #include "UIEditor.h" 39 36 #include "UIExtraDataDefs.h" 40 #include "UILibraryDefs.h"41 37 42 38 /* Forward declarations: */ … … 44 40 class QLabel; 45 41 46 /** QWidget subclass used as a color theme editor. */47 class SHARED_LIBRARY_STUFF UIColorThemeEditor : public QIWithRetranslateUI<QWidget>42 /** UIEditor sub-class used as a color theme editor. */ 43 class SHARED_LIBRARY_STUFF UIColorThemeEditor : public UIEditor 48 44 { 49 45 Q_OBJECT; -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIDefaultMachineFolderEditor.cpp
r98103 r101011 37 37 38 38 UIDefaultMachineFolderEditor::UIDefaultMachineFolderEditor(QWidget *pParent /* = 0 */) 39 : QIWithRetranslateUI<QWidget>(pParent)39 : UIEditor(pParent) 40 40 , m_strValue(QString()) 41 41 , m_pLayout(0) -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIDefaultMachineFolderEditor.h
r98103 r101011 32 32 #endif 33 33 34 /* Qt includes: */35 #include <QWidget>36 37 34 /* GUI includes: */ 38 #include "QIWithRetranslateUI.h" 39 #include "UILibraryDefs.h" 35 #include "UIEditor.h" 40 36 41 37 /* Forward declarations: */ … … 44 40 class UIFilePathSelector; 45 41 46 /** QWidget subclass used as a default machine folder editor. */47 class SHARED_LIBRARY_STUFF UIDefaultMachineFolderEditor : public QIWithRetranslateUI<QWidget>42 /** UIEditor sub-class used as a default machine folder editor. */ 43 class SHARED_LIBRARY_STUFF UIDefaultMachineFolderEditor : public UIEditor 48 44 { 49 45 Q_OBJECT; -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIDescriptionEditor.cpp
r98103 r101011 35 35 36 36 UIDescriptionEditor::UIDescriptionEditor(QWidget *pParent /* = 0 */) 37 : QIWithRetranslateUI<QWidget>(pParent)37 : UIEditor(pParent) 38 38 , m_pTextEdit(0) 39 39 { -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIDescriptionEditor.h
r98103 r101011 33 33 34 34 /* GUI includes: */ 35 #include " QIWithRetranslateUI.h"35 #include "UIEditor.h" 36 36 37 37 /* Forward declarations: */ 38 38 class QTextEdit; 39 39 40 /** QWidget subclass used as machine description editor. */41 class SHARED_LIBRARY_STUFF UIDescriptionEditor : public QIWithRetranslateUI<QWidget>40 /** UIEditor sub-class used as machine description editor. */ 41 class SHARED_LIBRARY_STUFF UIDescriptionEditor : public UIEditor 42 42 { 43 43 Q_OBJECT; -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIDiskEncryptionSettingsEditor.cpp
r98103 r101011 39 39 40 40 UIDiskEncryptionSettingsEditor::UIDiskEncryptionSettingsEditor(QWidget *pParent /* = 0 */) 41 : QIWithRetranslateUI<QWidget>(pParent)41 : UIEditor(pParent) 42 42 , m_fFeatureEnabled(false) 43 43 , m_enmCipherType(UIDiskEncryptionCipherType_Max) -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIDiskEncryptionSettingsEditor.h
r98103 r101011 33 33 34 34 /* GUI includes: */ 35 #include " QIWithRetranslateUI.h"35 #include "UIEditor.h" 36 36 37 37 /* COM includes: */ … … 43 43 class QLabel; 44 44 class QLineEdit; 45 class QWidget;46 45 47 /** QWidget subclass used as a disk encryption settings editor. */48 class SHARED_LIBRARY_STUFF UIDiskEncryptionSettingsEditor : public QIWithRetranslateUI<QWidget>46 /** UIEditor sub-class used as a disk encryption settings editor. */ 47 class SHARED_LIBRARY_STUFF UIDiskEncryptionSettingsEditor : public UIEditor 49 48 { 50 49 Q_OBJECT; -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIDisplayFeaturesEditor.cpp
r100064 r101011 39 39 40 40 UIDisplayFeaturesEditor::UIDisplayFeaturesEditor(QWidget *pParent /* = 0 */) 41 : QIWithRetranslateUI<QWidget>(pParent)41 : UIEditor(pParent) 42 42 , m_fActivateOnMouseHover(false) 43 43 , m_fDisableHostScreenSaver(false) -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIDisplayFeaturesEditor.h
r98103 r101011 33 33 34 34 /* GUI includes: */ 35 #include " QIWithRetranslateUI.h"35 #include "UIEditor.h" 36 36 37 37 /* Forward declarations: */ … … 40 40 class QLabel; 41 41 42 /** QWidget subclass used as display features editor. */43 class SHARED_LIBRARY_STUFF UIDisplayFeaturesEditor : public QIWithRetranslateUI<QWidget>42 /** UIEditor sub-class used as display features editor. */ 43 class SHARED_LIBRARY_STUFF UIDisplayFeaturesEditor : public UIEditor 44 44 { 45 45 Q_OBJECT; -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIDisplayScreenFeaturesEditor.cpp
r98103 r101011 36 36 37 37 UIDisplayScreenFeaturesEditor::UIDisplayScreenFeaturesEditor(QWidget *pParent /* = 0 */) 38 : QIWithRetranslateUI<QWidget>(pParent)38 : UIEditor(pParent) 39 39 , m_fEnable3DAcceleration(false) 40 40 , m_pLabel(0) -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIDisplayScreenFeaturesEditor.h
r98103 r101011 33 33 34 34 /* GUI includes: */ 35 #include " QIWithRetranslateUI.h"35 #include "UIEditor.h" 36 36 37 37 /* Forward declarations: */ … … 40 40 class QLabel; 41 41 42 /** QWidget subclass used as machine display screen features editor. */43 class SHARED_LIBRARY_STUFF UIDisplayScreenFeaturesEditor : public QIWithRetranslateUI<QWidget>42 /** UIEditor sub-class used as machine display screen features editor. */ 43 class SHARED_LIBRARY_STUFF UIDisplayScreenFeaturesEditor : public UIEditor 44 44 { 45 45 Q_OBJECT; -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIDragAndDropEditor.cpp
r98103 r101011 42 42 43 43 UIDragAndDropEditor::UIDragAndDropEditor(QWidget *pParent /* = 0 */) 44 : QIWithRetranslateUI<QWidget>(pParent)44 : UIEditor(pParent) 45 45 , m_enmValue(KDnDMode_Max) 46 46 , m_pLabel(0) -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIDragAndDropEditor.h
r98103 r101011 32 32 #endif 33 33 34 /* Qt includes: */35 #include <QWidget>36 37 34 /* GUI includes: */ 38 #include "QIWithRetranslateUI.h" 39 #include "UILibraryDefs.h" 35 #include "UIEditor.h" 40 36 41 37 /* COM includes: */ … … 47 43 class QLabel; 48 44 49 /** QWidget subclass used as a drag&drop editor. */50 class SHARED_LIBRARY_STUFF UIDragAndDropEditor : public QIWithRetranslateUI<QWidget>45 /** UIEditor sub-class used as a drag&drop editor. */ 46 class SHARED_LIBRARY_STUFF UIDragAndDropEditor : public UIEditor 51 47 { 52 48 Q_OBJECT; -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIEditor.cpp
r101004 r101011 1 1 /* $Id$ */ 2 2 /** @file 3 * VBox Qt GUI - UI DescriptionEditor class implementation.3 * VBox Qt GUI - UIEditor class implementation. 4 4 */ 5 5 … … 26 26 */ 27 27 28 /* Qt includes: */29 #include <QTextEdit>30 #include <QVBoxLayout>31 32 28 /* GUI includes: */ 33 #include "UI DescriptionEditor.h"29 #include "UIEditor.h" 34 30 35 31 36 UI DescriptionEditor::UIDescriptionEditor(QWidget *pParent /* = 0 */)32 UIEditor::UIEditor(QWidget *pParent /* = 0 */) 37 33 : QIWithRetranslateUI<QWidget>(pParent) 38 , m_pTextEdit(0)39 34 { 40 prepare();41 35 } 42 43 void UIDescriptionEditor::setValue(const QString &strValue)44 {45 /* Update cached value and46 * text-edit if value has changed: */47 if (m_strValue != strValue)48 {49 m_strValue = strValue;50 if (m_pTextEdit)51 m_pTextEdit->setPlainText(strValue);52 }53 }54 55 QString UIDescriptionEditor::value() const56 {57 return m_pTextEdit ? m_pTextEdit->toPlainText() : m_strValue;58 }59 60 void UIDescriptionEditor::retranslateUi()61 {62 if (m_pTextEdit)63 m_pTextEdit->setToolTip(tr("Holds the description of the virtual machine. The description field is useful "64 "for commenting on configuration details of the installed guest OS."));65 }66 67 void UIDescriptionEditor::prepare()68 {69 /* Prepare main layout: */70 QVBoxLayout *pLayout = new QVBoxLayout(this);71 if (pLayout)72 {73 pLayout->setContentsMargins(0, 0, 0, 0);74 75 /* Prepare text-edit: */76 m_pTextEdit = new QTextEdit(this);77 if (m_pTextEdit)78 {79 setFocusProxy(m_pTextEdit);80 m_pTextEdit->setAcceptRichText(false);81 #ifdef VBOX_WS_MAC82 m_pTextEdit->setMinimumHeight(150);83 #endif84 85 pLayout->addWidget(m_pTextEdit);86 }87 }88 89 /* Apply language settings: */90 retranslateUi();91 } -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIEditor.h
r101004 r101011 1 1 /* $Id$ */ 2 2 /** @file 3 * VBox Qt GUI - UI DescriptionEditor class declaration.3 * VBox Qt GUI - UIEditor class declaration. 4 4 */ 5 5 … … 26 26 */ 27 27 28 #ifndef FEQT_INCLUDED_SRC_settings_editors_UI DescriptionEditor_h29 #define FEQT_INCLUDED_SRC_settings_editors_UI DescriptionEditor_h28 #ifndef FEQT_INCLUDED_SRC_settings_editors_UIEditor_h 29 #define FEQT_INCLUDED_SRC_settings_editors_UIEditor_h 30 30 #ifndef RT_WITHOUT_PRAGMA_ONCE 31 31 # pragma once … … 35 35 #include "QIWithRetranslateUI.h" 36 36 37 /* Forward declarations: */ 38 class QTextEdit; 39 40 /** QWidget subclass used as machine description editor. */ 41 class SHARED_LIBRARY_STUFF UIDescriptionEditor : public QIWithRetranslateUI<QWidget> 37 /** QWidget sub-class used as editor interface. */ 38 class SHARED_LIBRARY_STUFF UIEditor : public QIWithRetranslateUI<QWidget> 42 39 { 43 40 Q_OBJECT; … … 46 43 47 44 /** Constructs editor passing @a pParent to the base-class. */ 48 UIDescriptionEditor(QWidget *pParent = 0); 49 50 /** Defines editor @a strValue. */ 51 void setValue(const QString &strValue); 52 /** Returns editor value. */ 53 QString value() const; 45 UIEditor(QWidget *pParent = 0); 54 46 55 47 protected: 56 48 57 /** Handles translation event. */ 58 virtual void retranslateUi() RT_OVERRIDE; 59 60 private: 61 62 /** Prepares all. */ 63 void prepare(); 64 65 /** Holds the value to be set. */ 66 QString m_strValue; 67 68 /** Holds the check-box instance. */ 69 QTextEdit *m_pTextEdit; 49 /** Holds the list of sub-editors. */ 50 QList<UIEditor*> m_editors; 70 51 }; 71 52 72 #endif /* !FEQT_INCLUDED_SRC_settings_editors_UI DescriptionEditor_h */53 #endif /* !FEQT_INCLUDED_SRC_settings_editors_UIEditor_h */ -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIExecutionCapEditor.cpp
r98103 r101011 39 39 40 40 UIExecutionCapEditor::UIExecutionCapEditor(QWidget *pParent /* = 0 */) 41 : QIWithRetranslateUI<QWidget>(pParent)41 : UIEditor(pParent) 42 42 , m_uMinExecCap(1) 43 43 , m_uMedExecCap(40) -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIExecutionCapEditor.h
r98103 r101011 32 32 #endif 33 33 34 /* Qt includes: */35 #include <QWidget>36 37 34 /* GUI includes: */ 38 #include " QIWithRetranslateUI.h"35 #include "UIEditor.h" 39 36 40 37 /* Forward declarations: */ … … 44 41 class QIAdvancedSlider; 45 42 46 /** QWidget subclass used as a execution cap editor. */47 class SHARED_LIBRARY_STUFF UIExecutionCapEditor : public QIWithRetranslateUI<QWidget>43 /** UIEditor sub-class used as a execution cap editor. */ 44 class SHARED_LIBRARY_STUFF UIExecutionCapEditor : public UIEditor 48 45 { 49 46 Q_OBJECT; -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIFontScaleEditor.cpp
r98103 r101011 61 61 62 62 UIFontScaleEditor::UIFontScaleEditor(QWidget *pParent) 63 : QIWithRetranslateUI<QWidget>(pParent)63 : UIEditor(pParent) 64 64 , m_pLayout(0) 65 65 , m_pLabel(0) -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIFontScaleEditor.h
r98103 r101011 33 33 34 34 /* GUI includes: */ 35 #include "QIWithRetranslateUI.h" 36 #include "UILibraryDefs.h" 35 #include "UIEditor.h" 37 36 38 37 /* Forward declarations: */ 39 38 class QGridLayout; 40 39 class QLabel; 41 class QSpinBox;42 class QWidget;43 40 class QIAdvancedSlider; 44 41 class UIFontScaleFactorSpinBox; 45 42 46 /** QWidget reimplementationproviding GUI with monitor scale factor editing functionality.43 /** UIEditor sub-class providing GUI with monitor scale factor editing functionality. 47 44 * It includes a combo box to select a monitor, a slider, and a spinbox to display/modify values. 48 45 * The first item in the combo box is used to change the scale factor of all monitors. */ 49 class SHARED_LIBRARY_STUFF UIFontScaleEditor : public QIWithRetranslateUI<QWidget>46 class SHARED_LIBRARY_STUFF UIFontScaleEditor : public UIEditor 50 47 { 51 48 Q_OBJECT; … … 93 90 void setSpinBoxValue(int iValue); 94 91 95 96 92 /** @name Member widgets. 97 93 * @{ */ 98 QGridLayout *m_pLayout;99 QLabel *m_pLabel;100 QIAdvancedSlider *m_pScaleSlider;101 UIFontScaleFactorSpinBox 102 QLabel *m_pMinScaleLabel;103 QLabel *m_pMaxScaleLabel;94 QGridLayout *m_pLayout; 95 QLabel *m_pLabel; 96 QIAdvancedSlider *m_pScaleSlider; 97 UIFontScaleFactorSpinBox *m_pScaleSpinBox; 98 QLabel *m_pMinScaleLabel; 99 QLabel *m_pMaxScaleLabel; 104 100 /** @} */ 101 105 102 /** Hold the factor by which we divided spinbox's @a range to set slider's range to make slider mouse move stop on ticks. */ 106 103 const int m_iSliderRangeDivisor; -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIGraphicsControllerEditor.cpp
r98103 r101011 42 42 43 43 UIGraphicsControllerEditor::UIGraphicsControllerEditor(QWidget *pParent /* = 0 */) 44 : QIWithRetranslateUI<QWidget>(pParent)44 : UIEditor(pParent) 45 45 , m_enmValue(KGraphicsControllerType_Max) 46 46 , m_pLayout(0) -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIGraphicsControllerEditor.h
r98103 r101011 32 32 #endif 33 33 34 /* Qt includes: */35 #include <QWidget>36 37 34 /* GUI includes: */ 38 #include "QIWithRetranslateUI.h" 39 #include "UILibraryDefs.h" 35 #include "UIEditor.h" 40 36 41 37 /* COM includes: */ … … 47 43 class QLabel; 48 44 49 /** QWidget subclass used as a graphics controller editor. */50 class SHARED_LIBRARY_STUFF UIGraphicsControllerEditor : public QIWithRetranslateUI<QWidget>45 /** UIEditor sub-class used as a graphics controller editor. */ 46 class SHARED_LIBRARY_STUFF UIGraphicsControllerEditor : public UIEditor 51 47 { 52 48 Q_OBJECT; -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UILanguageSettingsEditor.cpp
r98103 r101011 211 211 212 212 UILanguageSettingsEditor::UILanguageSettingsEditor(QWidget *pParent /* = 0 */) 213 : QIWithRetranslateUI<QWidget>(pParent)213 : UIEditor(pParent) 214 214 , m_fPolished(false) 215 215 , m_pLabelSeparator(0) … … 268 268 { 269 269 /* Call to base-class: */ 270 QIWithRetranslateUI<QWidget>::showEvent(pEvent);270 UIEditor::showEvent(pEvent); 271 271 272 272 /* Polish if necessary: */ -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UILanguageSettingsEditor.h
r98103 r101011 33 33 34 34 /* GUI includes: */ 35 #include " QIWithRetranslateUI.h"35 #include "UIEditor.h" 36 36 37 37 /* Forward declartions: */ … … 41 41 class QITreeWidget; 42 42 43 /** QWidget subclass used as a language settings editor. */44 class SHARED_LIBRARY_STUFF UILanguageSettingsEditor : public QIWithRetranslateUI<QWidget>43 /** UIEditor sub-class used as a language settings editor. */ 44 class SHARED_LIBRARY_STUFF UILanguageSettingsEditor : public UIEditor 45 45 { 46 46 Q_OBJECT; -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIMaximumGuestScreenSizeEditor.cpp
r100899 r101011 67 67 68 68 UIMaximumGuestScreenSizeEditor::UIMaximumGuestScreenSizeEditor(QWidget *pParent /* = 0 */) 69 : QIWithRetranslateUI<QWidget>(pParent)69 : UIEditor(pParent) 70 70 , m_pLayout(0) 71 71 , m_pLabelPolicy(0) -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIMaximumGuestScreenSizeEditor.h
r98103 r101011 32 32 #endif 33 33 34 /* Qt includes: */35 #include <QWidget>36 37 34 /* GUI includes: */ 38 #include " QIWithRetranslateUI.h"35 #include "UIEditor.h" 39 36 #include "UIExtraDataDefs.h" 40 #include "UILibraryDefs.h"41 37 42 38 /* Forward declarations: */ … … 69 65 70 66 71 /** QWidget subclass used as a maximum guest screen size editor. */72 class SHARED_LIBRARY_STUFF UIMaximumGuestScreenSizeEditor : public QIWithRetranslateUI<QWidget>67 /** UIEditor sub-class used as a maximum guest screen size editor. */ 68 class SHARED_LIBRARY_STUFF UIMaximumGuestScreenSizeEditor : public UIEditor 73 69 { 74 70 Q_OBJECT; -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIMiniToolbarSettingsEditor.cpp
r98103 r101011 36 36 37 37 UIMiniToolbarSettingsEditor::UIMiniToolbarSettingsEditor(QWidget *pParent /* = 0 */) 38 : QIWithRetranslateUI<QWidget>(pParent)38 : UIEditor(pParent) 39 39 , m_fShowMiniToolbar(false) 40 40 , m_fMiniToolbarAtTop(false) -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIMiniToolbarSettingsEditor.h
r98103 r101011 33 33 34 34 /* GUI includes: */ 35 #include " QIWithRetranslateUI.h"35 #include "UIEditor.h" 36 36 37 37 /* Forward declarations: */ … … 40 40 class QLabel; 41 41 42 /** QWidget subclass used as mini-toolbar editor. */43 class SHARED_LIBRARY_STUFF UIMiniToolbarSettingsEditor : public QIWithRetranslateUI<QWidget>42 /** UIEditor sub-class used as mini-toolbar editor. */ 43 class SHARED_LIBRARY_STUFF UIMiniToolbarSettingsEditor : public UIEditor 44 44 { 45 45 Q_OBJECT; -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIMonitorCountEditor.cpp
r98103 r101011 43 43 44 44 UIMonitorCountEditor::UIMonitorCountEditor(QWidget *pParent /* = 0 */) 45 : QIWithRetranslateUI<QWidget>(pParent)45 : UIEditor(pParent) 46 46 , m_iValue(1) 47 47 , m_pLayout(0) -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIMonitorCountEditor.h
r98103 r101011 32 32 #endif 33 33 34 /* Qt includes: */35 #include <QWidget>36 37 34 /* GUI includes: */ 38 #include "QIWithRetranslateUI.h" 39 #include "UILibraryDefs.h" 35 #include "UIEditor.h" 40 36 41 37 /* Forward declarations: */ … … 45 41 class QIAdvancedSlider; 46 42 47 /** QWidget subclass used as a monitor count editor. */48 class SHARED_LIBRARY_STUFF UIMonitorCountEditor : public QIWithRetranslateUI<QWidget>43 /** UIEditor sub-class used as a monitor count editor. */ 44 class SHARED_LIBRARY_STUFF UIMonitorCountEditor : public UIEditor 49 45 { 50 46 Q_OBJECT; -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIMotherboardFeaturesEditor.cpp
r98103 r101011 39 39 40 40 UIMotherboardFeaturesEditor::UIMotherboardFeaturesEditor(QWidget *pParent /* = 0 */) 41 : QIWithRetranslateUI<QWidget>(pParent)41 : UIEditor(pParent) 42 42 , m_fEnableIoApic(false) 43 43 , m_fEnableUtcTime(false) -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIMotherboardFeaturesEditor.h
r98103 r101011 33 33 34 34 /* GUI includes: */ 35 #include " QIWithRetranslateUI.h"35 #include "UIEditor.h" 36 36 37 37 /* Forward declarations: */ … … 41 41 class QPushButton; 42 42 43 /** QWidget subclass used as motherboard features editor. */44 class SHARED_LIBRARY_STUFF UIMotherboardFeaturesEditor : public QIWithRetranslateUI<QWidget>43 /** UIEditor sub-class used as motherboard features editor. */ 44 class SHARED_LIBRARY_STUFF UIMotherboardFeaturesEditor : public UIEditor 45 45 { 46 46 Q_OBJECT; -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UINameAndSystemEditor.cpp
r100241 r101011 56 56 bool fChooseEdition /* = false */, 57 57 bool fChooseType /* = true */) 58 : QIWithRetranslateUI<QWidget>(pParent)58 : UIEditor(pParent) 59 59 , m_fChooseName(fChooseName) 60 60 , m_fChoosePath(fChoosePath) -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UINameAndSystemEditor.h
r98103 r101011 32 32 #endif 33 33 34 /* Qt includes: */35 #include <QWidget>36 37 34 /* GUI includes: */ 38 #include "QIWithRetranslateUI.h" 39 #include "UILibraryDefs.h" 35 #include "UIEditor.h" 40 36 41 37 /* COM includes: */ … … 52 48 class UIMarkableLineEdit; 53 49 54 /** QWidget subclass providing complex editor for basic VM parameters. */55 class SHARED_LIBRARY_STUFF UINameAndSystemEditor : public QIWithRetranslateUI<QWidget>50 /** UIEditor sub-class providing complex editor for basic VM parameters. */ 51 class SHARED_LIBRARY_STUFF UINameAndSystemEditor : public UIEditor 56 52 { 57 53 Q_OBJECT; -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UINetworkAttachmentEditor.cpp
r98103 r101011 54 54 55 55 UINetworkAttachmentEditor::UINetworkAttachmentEditor(QWidget *pParent /* = 0 */) 56 : QIWithRetranslateUI<QWidget>(pParent)56 : UIEditor(pParent) 57 57 , m_enmRestrictedNetworkAttachmentTypes(UIExtraDataMetaDefs::DetailsElementOptionTypeNetwork_Invalid) 58 58 , m_enmType(KNetworkAttachmentType_Max) -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UINetworkAttachmentEditor.h
r98103 r101011 32 32 #endif 33 33 34 /* Qt includes: */35 #include <QWidget>36 37 34 /* GUI includes: */ 38 #include " QIWithRetranslateUI.h"35 #include "UIEditor.h" 39 36 #include "UIExtraDataDefs.h" 40 #include "UILibraryDefs.h"41 37 42 38 /* COM includes: */ … … 48 44 class QLabel; 49 45 50 /** QWidget subclass used as a network attachment editor. */51 class SHARED_LIBRARY_STUFF UINetworkAttachmentEditor : public QIWithRetranslateUI<QWidget>46 /** UIEditor sub-class used as a network attachment editor. */ 47 class SHARED_LIBRARY_STUFF UINetworkAttachmentEditor : public UIEditor 52 48 { 53 49 Q_OBJECT; -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UINetworkFeaturesEditor.cpp
r98103 r101011 49 49 50 50 UINetworkFeaturesEditor::UINetworkFeaturesEditor(QWidget *pParent /* = 0 */) 51 : QIWithRetranslateUI<QWidget>(pParent)51 : UIEditor(pParent) 52 52 , m_fAdvancedButtonExpanded(false) 53 53 , m_enmAdapterType(KNetworkAdapterType_Null) -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UINetworkFeaturesEditor.h
r98103 r101011 33 33 34 34 /* GUI includes: */ 35 #include " QIWithRetranslateUI.h"35 #include "UIEditor.h" 36 36 #include "UIMachineSettingsPortForwardingDlg.h" 37 37 … … 49 49 class QIToolButton; 50 50 51 /** QWidget subclass used as a network features editor. */52 class SHARED_LIBRARY_STUFF UINetworkFeaturesEditor : public QIWithRetranslateUI<QWidget>51 /** UIEditor sub-class used as a network features editor. */ 52 class SHARED_LIBRARY_STUFF UINetworkFeaturesEditor : public UIEditor 53 53 { 54 54 Q_OBJECT; -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UINetworkSettingsEditor.cpp
r98103 r101011 38 38 39 39 UINetworkSettingsEditor::UINetworkSettingsEditor(QWidget *pParent /* = 0 */) 40 : QIWithRetranslateUI<QWidget>(pParent)40 : UIEditor(pParent) 41 41 , m_fFeatureEnabled(false) 42 42 , m_pCheckboxFeature(0) -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UINetworkSettingsEditor.h
r98103 r101011 32 32 #endif 33 33 34 /* Qt includes: */35 #include <QWidget>36 37 34 /* GUI includes: */ 38 #include "QIWithRetranslateUI.h" 39 #include "UILibraryDefs.h" 35 #include "UIEditor.h" 40 36 #include "UIPortForwardingTable.h" 41 37 … … 48 44 class UINetworkFeaturesEditor; 49 45 50 /** QWidget subclass used as a network settings editor. */51 class SHARED_LIBRARY_STUFF UINetworkSettingsEditor : public QIWithRetranslateUI<QWidget>46 /** UIEditor sub-class used as a network settings editor. */ 47 class SHARED_LIBRARY_STUFF UINetworkSettingsEditor : public UIEditor 52 48 { 53 49 Q_OBJECT; -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIParavirtProviderEditor.cpp
r98103 r101011 42 42 43 43 UIParavirtProviderEditor::UIParavirtProviderEditor(QWidget *pParent /* = 0 */) 44 : QIWithRetranslateUI<QWidget>(pParent)44 : UIEditor(pParent) 45 45 , m_enmValue(KParavirtProvider_Max) 46 46 , m_pLabel(0) -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIParavirtProviderEditor.h
r98103 r101011 32 32 #endif 33 33 34 /* Qt includes: */35 #include <QWidget>36 37 34 /* GUI includes: */ 38 #include "QIWithRetranslateUI.h" 39 #include "UILibraryDefs.h" 35 #include "UIEditor.h" 40 36 41 37 /* COM includes: */ … … 47 43 class QLabel; 48 44 49 /** QWidget subclass used as an paravirtualization provider editor. */50 class SHARED_LIBRARY_STUFF UIParavirtProviderEditor : public QIWithRetranslateUI<QWidget>45 /** UIEditor sub-class used as an paravirtualization provider editor. */ 46 class SHARED_LIBRARY_STUFF UIParavirtProviderEditor : public UIEditor 51 47 { 52 48 Q_OBJECT; -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIPointingHIDEditor.cpp
r98103 r101011 42 42 43 43 UIPointingHIDEditor::UIPointingHIDEditor(QWidget *pParent /* = 0 */) 44 : QIWithRetranslateUI<QWidget>(pParent)44 : UIEditor(pParent) 45 45 , m_enmValue(KPointingHIDType_Max) 46 46 , m_pLabel(0) -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIPointingHIDEditor.h
r98103 r101011 32 32 #endif 33 33 34 /* Qt includes: */35 #include <QWidget>36 37 34 /* GUI includes: */ 38 #include "QIWithRetranslateUI.h" 39 #include "UILibraryDefs.h" 35 #include "UIEditor.h" 40 36 41 37 /* COM includes: */ … … 47 43 class QLabel; 48 44 49 /** QWidget subclass used as a pointing HID editor. */50 class SHARED_LIBRARY_STUFF UIPointingHIDEditor : public QIWithRetranslateUI<QWidget>45 /** UIEditor sub-class used as a pointing HID editor. */ 46 class SHARED_LIBRARY_STUFF UIPointingHIDEditor : public UIEditor 51 47 { 52 48 Q_OBJECT; -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIProcessorFeaturesEditor.cpp
r98103 r101011 36 36 37 37 UIProcessorFeaturesEditor::UIProcessorFeaturesEditor(QWidget *pParent /* = 0 */) 38 : QIWithRetranslateUI<QWidget>(pParent)38 : UIEditor(pParent) 39 39 , m_fEnablePae(false) 40 40 , m_fEnableNestedVirtualization(false) -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIProcessorFeaturesEditor.h
r98103 r101011 33 33 34 34 /* GUI includes: */ 35 #include " QIWithRetranslateUI.h"35 #include "UIEditor.h" 36 36 37 37 /* Forward declarations: */ … … 40 40 class QLabel; 41 41 42 /** QWidget subclass used as processor features editor. */43 class SHARED_LIBRARY_STUFF UIProcessorFeaturesEditor : public QIWithRetranslateUI<QWidget>42 /** UIEditor sub-class used as processor features editor. */ 43 class SHARED_LIBRARY_STUFF UIProcessorFeaturesEditor : public UIEditor 44 44 { 45 45 Q_OBJECT; -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIProxyFeaturesEditor.cpp
r98103 r101011 39 39 40 40 UIProxyFeaturesEditor::UIProxyFeaturesEditor(QWidget *pParent /* = 0 */) 41 : QIWithRetranslateUI<QWidget>(pParent)41 : UIEditor(pParent) 42 42 , m_enmProxyMode(KProxyMode_Max) 43 43 , m_pButtonGroup(0) -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIProxyFeaturesEditor.h
r98103 r101011 33 33 34 34 /* GUI includes: */ 35 #include " QIWithRetranslateUI.h"35 #include "UIEditor.h" 36 36 37 37 /* COM includes: */ … … 44 44 class QILineEdit; 45 45 46 /** QWidget subclass used as global proxy features editor. */47 class SHARED_LIBRARY_STUFF UIProxyFeaturesEditor : public QIWithRetranslateUI<QWidget>46 /** UIEditor sub-class used as global proxy features editor. */ 47 class SHARED_LIBRARY_STUFF UIProxyFeaturesEditor : public UIEditor 48 48 { 49 49 Q_OBJECT; -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIRecordingSettingsEditor.cpp
r98103 r101011 51 51 52 52 UIRecordingSettingsEditor::UIRecordingSettingsEditor(QWidget *pParent /* = 0 */) 53 : QIWithRetranslateUI<QWidget>(pParent)53 : UIEditor(pParent) 54 54 , m_fFeatureEnabled(false) 55 55 , m_fOptionsAvailable(false) -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIRecordingSettingsEditor.h
r98103 r101011 33 33 34 34 /* GUI includes: */ 35 #include " QIWithRetranslateUI.h"35 #include "UIEditor.h" 36 36 #include "UISettingsDefs.h" 37 37 38 38 /* COM includes: */ 39 39 #include "COMEnums.h" 40 41 /* Other VBox includes: */42 #include <VBox/com/com.h>43 40 44 41 /* Forward declarations: */ … … 52 49 class UIFilmContainer; 53 50 54 /** QWidget subclass used as a recording settings editor. */55 class SHARED_LIBRARY_STUFF UIRecordingSettingsEditor : public QIWithRetranslateUI<QWidget>51 /** UIEditor sub-class used as a recording settings editor. */ 52 class SHARED_LIBRARY_STUFF UIRecordingSettingsEditor : public UIEditor 56 53 { 57 54 Q_OBJECT; -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIScaleFactorEditor.cpp
r98103 r101011 44 44 45 45 UIScaleFactorEditor::UIScaleFactorEditor(QWidget *pParent) 46 : QIWithRetranslateUI<QWidget>(pParent)46 : UIEditor(pParent) 47 47 , m_pLayout(0) 48 48 , m_pLabel(0) -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIScaleFactorEditor.h
r98103 r101011 33 33 34 34 /* GUI includes: */ 35 #include "QIWithRetranslateUI.h" 36 #include "UILibraryDefs.h" 35 #include "UIEditor.h" 37 36 38 37 /* Forward declarations: */ … … 41 40 class QLabel; 42 41 class QSpinBox; 43 class QWidget;44 42 class QIAdvancedSlider; 45 43 46 /** QWidget reimplementationproviding GUI with monitor scale factor editing functionality.44 /** UIEditor sub-class providing GUI with monitor scale factor editing functionality. 47 45 * It includes a combo box to select a monitor, a slider, and a spinbox to display/modify values. 48 46 * The first item in the combo box is used to change the scale factor of all monitors. */ 49 class SHARED_LIBRARY_STUFF UIScaleFactorEditor : public QIWithRetranslateUI<QWidget>47 class SHARED_LIBRARY_STUFF UIScaleFactorEditor : public UIEditor 50 48 { 51 49 Q_OBJECT; -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UISharedClipboardEditor.cpp
r98103 r101011 42 42 43 43 UISharedClipboardEditor::UISharedClipboardEditor(QWidget *pParent /* = 0 */) 44 : QIWithRetranslateUI<QWidget>(pParent)44 : UIEditor(pParent) 45 45 , m_enmValue(KClipboardMode_Max) 46 46 , m_pLabel(0) -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UISharedClipboardEditor.h
r98103 r101011 32 32 #endif 33 33 34 /* Qt includes: */35 #include <QWidget>36 37 34 /* GUI includes: */ 38 #include "QIWithRetranslateUI.h" 39 #include "UILibraryDefs.h" 35 #include "UIEditor.h" 40 36 41 37 /* COM includes: */ … … 47 43 class QLabel; 48 44 49 /** QWidget subclass used as a shared clipboard editor. */50 class SHARED_LIBRARY_STUFF UISharedClipboardEditor : public QIWithRetranslateUI<QWidget>45 /** UIEditor sub-class used as a shared clipboard editor. */ 46 class SHARED_LIBRARY_STUFF UISharedClipboardEditor : public UIEditor 51 47 { 52 48 Q_OBJECT; -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UISharedFoldersEditor.cpp
r98103 r101011 277 277 278 278 UISharedFoldersEditor::UISharedFoldersEditor(QWidget *pParent /* = 0 */) 279 : QIWithRetranslateUI<QWidget>(pParent)279 : UIEditor(pParent) 280 280 , m_pLabelSeparator(0) 281 281 , m_pLayoutTree(0) … … 394 394 { 395 395 /* Call to base-class: */ 396 QIWithRetranslateUI<QWidget>::showEvent(pEvent);396 UIEditor::showEvent(pEvent); 397 397 398 398 /* Connect header-resize signal just before widget is shown -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UISharedFoldersEditor.h
r98103 r101011 33 33 34 34 /* GUI includes: */ 35 #include " QIWithRetranslateUI.h"35 #include "UIEditor.h" 36 36 #include "UIExtraDataDefs.h" 37 37 … … 90 90 }; 91 91 92 /** QWidget subclass used as a shared folders editor. */93 class SHARED_LIBRARY_STUFF UISharedFoldersEditor : public QIWithRetranslateUI<QWidget>92 /** UIEditor sub-class used as a shared folders editor. */ 93 class SHARED_LIBRARY_STUFF UISharedFoldersEditor : public UIEditor 94 94 { 95 95 Q_OBJECT; -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIShortcutConfigurationEditor.cpp
r100346 r101011 820 820 821 821 UIShortcutConfigurationEditor::UIShortcutConfigurationEditor(QWidget *pParent /* = 0 */) 822 : QIWithRetranslateUI<QWidget>(pParent)822 : UIEditor(pParent) 823 823 , m_pModelManager(0) 824 824 , m_pModelRuntime(0) -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIShortcutConfigurationEditor.h
r98103 r101011 33 33 34 34 /* GUI includes: */ 35 #include " QIWithRetranslateUI.h"35 #include "UIEditor.h" 36 36 37 37 /* Forward declartions: */ … … 152 152 typedef QList<UIShortcutConfigurationItem> UIShortcutConfigurationList; 153 153 154 /** QWidget subclass used as a shortcut configuration editor. */155 class SHARED_LIBRARY_STUFF UIShortcutConfigurationEditor : public QIWithRetranslateUI<QWidget>154 /** UIEditor sub-class used as a shortcut configuration editor. */ 155 class SHARED_LIBRARY_STUFF UIShortcutConfigurationEditor : public UIEditor 156 156 { 157 157 Q_OBJECT; -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UISnapshotFolderEditor.cpp
r98103 r101011 37 37 38 38 UISnapshotFolderEditor::UISnapshotFolderEditor(QWidget *pParent /* = 0 */) 39 : QIWithRetranslateUI<QWidget>(pParent)39 : UIEditor(pParent) 40 40 , m_pLabel(0) 41 41 , m_pSelector(0) -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UISnapshotFolderEditor.h
r98103 r101011 32 32 #endif 33 33 34 /* Qt includes: */35 #include <QWidget>36 37 34 /* GUI includes: */ 38 #include "QIWithRetranslateUI.h" 39 #include "UILibraryDefs.h" 35 #include "UIEditor.h" 40 36 41 37 /* Forward declarations: */ … … 44 40 class UIFilePathSelector; 45 41 46 /** QWidget subclass used as a snapshot folder editor. */47 class SHARED_LIBRARY_STUFF UISnapshotFolderEditor : public QIWithRetranslateUI<QWidget>42 /** UIEditor sub-class used as a snapshot folder editor. */ 43 class SHARED_LIBRARY_STUFF UISnapshotFolderEditor : public UIEditor 48 44 { 49 45 Q_OBJECT; -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIStorageSettingsEditor.cpp
r100344 r101011 2825 2825 2826 2826 UIStorageSettingsEditor::UIStorageSettingsEditor(QWidget *pParent /* = 0 */) 2827 : QIWithRetranslateUI<QWidget>(pParent)2827 : UIEditor(pParent) 2828 2828 , m_fLoadingInProgress(0) 2829 2829 , m_enmConfigurationAccessLevel(ConfigurationAccessLevel_Null) … … 3213 3213 3214 3214 /* Call to base-class: */ 3215 QIWithRetranslateUI<QWidget>::showEvent(pEvent);3215 UIEditor::showEvent(pEvent); 3216 3216 } 3217 3217 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIStorageSettingsEditor.h
r98103 r101011 33 33 34 34 /* GUI includes: */ 35 #include " QIWithRetranslateUI.h"35 #include "UIEditor.h" 36 36 #include "UIMediumDefs.h" 37 37 #include "UISettingsDefs.h" … … 164 164 }; 165 165 166 /** QWidget subclass used as acceleration features editor. */167 class SHARED_LIBRARY_STUFF UIStorageSettingsEditor : public QIWithRetranslateUI<QWidget>166 /** UIEditor sub-class used as acceleration features editor. */ 167 class SHARED_LIBRARY_STUFF UIStorageSettingsEditor : public UIEditor 168 168 { 169 169 Q_OBJECT; -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UITpmEditor.cpp
r98103 r101011 42 42 43 43 UITpmEditor::UITpmEditor(QWidget *pParent /* = 0 */) 44 : QIWithRetranslateUI<QWidget>(pParent)44 : UIEditor(pParent) 45 45 , m_enmValue(KTpmType_Max) 46 46 , m_pLabel(0) -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UITpmEditor.h
r98103 r101011 32 32 #endif 33 33 34 /* Qt includes: */35 #include <QWidget>36 37 34 /* GUI includes: */ 38 #include "QIWithRetranslateUI.h" 39 #include "UILibraryDefs.h" 35 #include "UIEditor.h" 40 36 41 37 /* COM includes: */ … … 47 43 class QLabel; 48 44 49 /** QWidget subclass used as a TPM editor. */50 class SHARED_LIBRARY_STUFF UITpmEditor : public QIWithRetranslateUI<QWidget>45 /** UIEditor sub-class used as a TPM editor. */ 46 class SHARED_LIBRARY_STUFF UITpmEditor : public UIEditor 51 47 { 52 48 Q_OBJECT; -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIUSBControllerEditor.cpp
r98103 r101011 40 40 41 41 UIUSBControllerEditor::UIUSBControllerEditor(QWidget *pParent /* = 0 */) 42 : QIWithRetranslateUI<QWidget>(pParent)42 : UIEditor(pParent) 43 43 , m_enmValue(KUSBControllerType_Max) 44 44 , m_pRadioButtonUSB1(0) -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIUSBControllerEditor.h
r98103 r101011 32 32 #endif 33 33 34 /* Qt includes: */35 #include <QWidget>36 37 34 /* GUI includes: */ 38 #include "QIWithRetranslateUI.h" 39 #include "UILibraryDefs.h" 35 #include "UIEditor.h" 40 36 41 37 /* COM includes: */ … … 45 41 class QRadioButton; 46 42 47 /** QWidget subclass used as a USB controller editor. */48 class SHARED_LIBRARY_STUFF UIUSBControllerEditor : public QIWithRetranslateUI<QWidget>43 /** UIEditor sub-class used as a USB controller editor. */ 44 class SHARED_LIBRARY_STUFF UIUSBControllerEditor : public UIEditor 49 45 { 50 46 Q_OBJECT; … … 88 84 89 85 /** Holds the USB1 radio-button instance. */ 90 QRadioButton 86 QRadioButton *m_pRadioButtonUSB1; 91 87 /** Holds the USB2 radio-button instance. */ 92 QRadioButton 88 QRadioButton *m_pRadioButtonUSB2; 93 89 /** Holds the USB3 radio-button instance. */ 94 QRadioButton 90 QRadioButton *m_pRadioButtonUSB3; 95 91 }; 96 92 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIUSBFiltersEditor.cpp
r99062 r101011 213 213 214 214 UIUSBFiltersEditor::UIUSBFiltersEditor(QWidget *pParent /* = 0 */) 215 : QIWithRetranslateUI<QWidget>(pParent)215 : UIEditor(pParent) 216 216 , m_pLabelSeparator(0) 217 217 , m_pLayoutTree(0) -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIUSBFiltersEditor.h
r98103 r101011 33 33 34 34 /* GUI includes: */ 35 #include " QIWithRetranslateUI.h"35 #include "UIEditor.h" 36 36 #include "UIExtraDataDefs.h" 37 37 … … 97 97 }; 98 98 99 /** QWidget subclass used as a USB filters editor. */100 class SHARED_LIBRARY_STUFF UIUSBFiltersEditor : public QIWithRetranslateUI<QWidget>99 /** UIEditor sub-class used as a USB filters editor. */ 100 class SHARED_LIBRARY_STUFF UIUSBFiltersEditor : public UIEditor 101 101 { 102 102 Q_OBJECT; -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIUSBSettingsEditor.cpp
r98103 r101011 37 37 38 38 UIUSBSettingsEditor::UIUSBSettingsEditor(QWidget *pParent /* = 0 */) 39 : QIWithRetranslateUI<QWidget>(pParent)39 : UIEditor(pParent) 40 40 , m_fFeatureEnabled(false) 41 41 , m_pCheckboxFeature(0) -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIUSBSettingsEditor.h
r98103 r101011 32 32 #endif 33 33 34 /* Qt includes: */35 #include <QWidget>36 37 34 /* GUI includes: */ 38 #include "QIWithRetranslateUI.h" 39 #include "UILibraryDefs.h" 35 #include "UIEditor.h" 40 36 #include "UIUSBFiltersEditor.h" 41 37 … … 47 43 class UIUSBControllerEditor; 48 44 49 /** QWidget subclass used as a USB settings editor. */50 class SHARED_LIBRARY_STUFF UIUSBSettingsEditor : public QIWithRetranslateUI<QWidget>45 /** UIEditor sub-class used as a USB settings editor. */ 46 class SHARED_LIBRARY_STUFF UIUSBSettingsEditor : public UIEditor 51 47 { 52 48 Q_OBJECT; -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIUpdateSettingsEditor.cpp
r98103 r101011 39 39 40 40 UIUpdateSettingsEditor::UIUpdateSettingsEditor(QWidget *pParent /* = 0 */) 41 : QIWithRetranslateUI<QWidget>(pParent)41 : UIEditor(pParent) 42 42 , m_pCheckBox(0) 43 43 , m_pWidgetUpdateSettings(0) -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIUpdateSettingsEditor.h
r98103 r101011 36 36 37 37 /* GUI includes: */ 38 #include " QIWithRetranslateUI.h"38 #include "UIEditor.h" 39 39 #include "UIUpdateDefs.h" 40 40 … … 46 46 class QLabel; 47 47 48 /** QWidget subclass used as a update settings editor. */49 class SHARED_LIBRARY_STUFF UIUpdateSettingsEditor : public QIWithRetranslateUI<QWidget>48 /** UIEditor sub-class used as a update settings editor. */ 49 class SHARED_LIBRARY_STUFF UIUpdateSettingsEditor : public UIEditor 50 50 { 51 51 Q_OBJECT; -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIVRDEAuthLibraryEditor.cpp
r98103 r101011 37 37 38 38 UIVRDEAuthLibraryEditor::UIVRDEAuthLibraryEditor(QWidget *pParent /* = 0 */) 39 : QIWithRetranslateUI<QWidget>(pParent)39 : UIEditor(pParent) 40 40 , m_strValue(QString()) 41 41 , m_pLabel(0) -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIVRDEAuthLibraryEditor.h
r98103 r101011 32 32 #endif 33 33 34 /* Qt includes: */35 #include <QWidget>36 37 34 /* GUI includes: */ 38 #include "QIWithRetranslateUI.h" 39 #include "UILibraryDefs.h" 35 #include "UIEditor.h" 40 36 41 37 /* Forward declarations: */ … … 44 40 class UIFilePathSelector; 45 41 46 /** QWidget subclass used as a VRDE auth library editor. */47 class SHARED_LIBRARY_STUFF UIVRDEAuthLibraryEditor : public QIWithRetranslateUI<QWidget>42 /** UIEditor sub-class used as a VRDE auth library editor. */ 43 class SHARED_LIBRARY_STUFF UIVRDEAuthLibraryEditor : public UIEditor 48 44 { 49 45 Q_OBJECT; -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIVRDESettingsEditor.cpp
r98103 r101011 39 39 40 40 UIVRDESettingsEditor::UIVRDESettingsEditor(QWidget *pParent /* = 0 */) 41 : QIWithRetranslateUI<QWidget>(pParent)41 : UIEditor(pParent) 42 42 , m_fFeatureEnabled(false) 43 43 , m_enmAuthType(KAuthType_Max) -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIVRDESettingsEditor.h
r98103 r101011 33 33 34 34 /* GUI includes: */ 35 #include " QIWithRetranslateUI.h"35 #include "UIEditor.h" 36 36 37 37 /* COM includes: */ … … 45 45 class QWidget; 46 46 47 /** QWidget subclass used as a VRDE settings editor. */48 class SHARED_LIBRARY_STUFF UIVRDESettingsEditor : public QIWithRetranslateUI<QWidget>47 /** UIEditor sub-class used as a VRDE settings editor. */ 48 class SHARED_LIBRARY_STUFF UIVRDESettingsEditor : public UIEditor 49 49 { 50 50 Q_OBJECT; -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIVideoMemoryEditor.cpp
r98103 r101011 43 43 44 44 UIVideoMemoryEditor::UIVideoMemoryEditor(QWidget *pParent /* = 0 */) 45 : QIWithRetranslateUI<QWidget>(pParent)45 : UIEditor(pParent) 46 46 , m_iValue(0) 47 47 , m_comGuestOSType(CGuestOSType()) -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIVideoMemoryEditor.h
r98103 r101011 32 32 #endif 33 33 34 /* Qt includes: */35 #include <QWidget>36 37 34 /* GUI includes: */ 38 #include "QIWithRetranslateUI.h" 39 #include "UILibraryDefs.h" 35 #include "UIEditor.h" 40 36 41 37 /* COM includes: */ … … 49 45 class QIAdvancedSlider; 50 46 51 /** QWidget subclass used as a video memory editor. */52 class SHARED_LIBRARY_STUFF UIVideoMemoryEditor : public QIWithRetranslateUI<QWidget>47 /** UIEditor sub-class used as a video memory editor. */ 48 class SHARED_LIBRARY_STUFF UIVideoMemoryEditor : public UIEditor 53 49 { 54 50 Q_OBJECT; -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIVirtualCPUEditor.cpp
r98103 r101011 43 43 44 44 UIVirtualCPUEditor::UIVirtualCPUEditor(QWidget *pParent /* = 0 */) 45 : QIWithRetranslateUI<QWidget>(pParent)45 : UIEditor(pParent) 46 46 , m_uMinVCPUCount(1) 47 47 , m_uMaxVCPUCount(1) -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIVirtualCPUEditor.h
r98103 r101011 32 32 #endif 33 33 34 /* Qt includes: */35 #include <QWidget>36 37 34 /* GUI includes: */ 38 #include " QIWithRetranslateUI.h"35 #include "UIEditor.h" 39 36 40 37 /* Forward declarations: */ … … 44 41 class QIAdvancedSlider; 45 42 46 /** QWidget subclass used as a virtual CPU editor. */47 class SHARED_LIBRARY_STUFF UIVirtualCPUEditor : public QIWithRetranslateUI<QWidget>43 /** UIEditor sub-class used as a virtual CPU editor. */ 44 class SHARED_LIBRARY_STUFF UIVirtualCPUEditor : public UIEditor 48 45 { 49 46 Q_OBJECT; -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIVisualStateEditor.cpp
r98103 r101011 40 40 41 41 UIVisualStateEditor::UIVisualStateEditor(QWidget *pParent /* = 0 */) 42 : QIWithRetranslateUI<QWidget>(pParent)42 : UIEditor(pParent) 43 43 , m_enmValue(UIVisualStateType_Invalid) 44 44 , m_pLayout(0) -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIVisualStateEditor.h
r98103 r101011 34 34 /* Qt includes: */ 35 35 #include <QUuid> 36 #include <QWidget>37 36 38 37 /* GUI includes: */ 39 #include " QIWithRetranslateUI.h"38 #include "UIEditor.h" 40 39 #include "UIExtraDataDefs.h" 41 #include "UILibraryDefs.h"42 40 43 41 /* Forward declarations: */ … … 46 44 class QLabel; 47 45 48 /** QWidget subclass used as a visual state editor. */49 class SHARED_LIBRARY_STUFF UIVisualStateEditor : public QIWithRetranslateUI<QWidget>46 /** UIEditor sub-class used as a visual state editor. */ 47 class SHARED_LIBRARY_STUFF UIVisualStateEditor : public UIEditor 50 48 { 51 49 Q_OBJECT; -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIMenuBarEditorWindow.cpp
r100064 r101011 333 333 const QUuid &uMachineID /* = QUuid() */, 334 334 UIActionPool *pActionPool /* = 0 */) 335 : QIWithRetranslateUI2<QWidget>(pParent)335 : UIEditor(pParent) 336 336 , m_fPrepared(false) 337 337 , m_fStartedFromVMSettings(fStartedFromVMSettings) -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIMenuBarEditorWindow.h
r98103 r101011 37 37 38 38 /* GUI includes: */ 39 #include " QIWithRetranslateUI.h"39 #include "UIEditor.h" 40 40 #include "UIExtraDataDefs.h" 41 #include "UILibraryDefs.h"42 41 #include "UISlidingToolBar.h" 43 42 … … 72 71 73 72 74 /** QWidget subclass73 /** UIEditor sub-class 75 74 * used as menu-bar editor widget. */ 76 class SHARED_LIBRARY_STUFF UIMenuBarEditorWidget : public QIWithRetranslateUI2<QWidget>75 class SHARED_LIBRARY_STUFF UIMenuBarEditorWidget : public UIEditor 77 76 { 78 77 Q_OBJECT; -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIStatusBarEditorWindow.cpp
r100344 r101011 443 443 bool fStartedFromVMSettings /* = true */, 444 444 const QUuid &uMachineID /* = QString() */) 445 : QIWithRetranslateUI2<QWidget>(pParent)445 : UIEditor(pParent) 446 446 , m_fPrepared(false) 447 447 , m_fStartedFromVMSettings(fStartedFromVMSettings) -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIStatusBarEditorWindow.h
r98103 r101011 38 38 39 39 /* GUI includes: */ 40 #include " QIWithRetranslateUI.h"40 #include "UIEditor.h" 41 41 #include "UIExtraDataDefs.h" 42 #include "UILibraryDefs.h"43 42 #include "UISlidingToolBar.h" 44 43 … … 71 70 72 71 73 /** QWidget subclass72 /** UIEditor sub-class 74 73 * used as status-bar editor widget. */ 75 class SHARED_LIBRARY_STUFF UIStatusBarEditorWidget : public QIWithRetranslateUI2<QWidget>74 class SHARED_LIBRARY_STUFF UIStatusBarEditorWidget : public UIEditor 76 75 { 77 76 Q_OBJECT;
Note:
See TracChangeset
for help on using the changeset viewer.