Changeset 79948 in vbox
- Timestamp:
- Jul 24, 2019 10:59:09 AM (6 years ago)
- svn:sync-xref-src-repo-rev:
- 132373
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 5 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/Makefile.kmk
r79922 r79948 888 888 src/settings/machine/UIMachineSettingsUSBFilterDetails.h \ 889 889 src/widgets/UIAddDiskEncryptionPasswordDialog.h \ 890 src/widgets/UIBaseMemorySlider.h \ 890 891 src/widgets/UIBootTable.h \ 891 892 src/widgets/UIFilePathSelector.h \ 892 893 src/widgets/UIFilmContainer.h \ 893 src/widgets/UIGuestRAMSlider.h \894 894 src/widgets/UIHostComboEditor.h \ 895 895 src/widgets/UIHotKeyEditor.h \ … … 1378 1378 src/settings/machine/UIMachineSettingsUSBFilterDetails.cpp \ 1379 1379 src/widgets/UIAddDiskEncryptionPasswordDialog.cpp \ 1380 src/widgets/UIBaseMemorySlider.cpp \ 1380 1381 src/widgets/UIBootTable.cpp \ 1381 1382 src/widgets/UIFilePathSelector.cpp \ 1382 1383 src/widgets/UIFilmContainer.cpp \ 1383 src/widgets/UIGuestRAMSlider.cpp \1384 1384 src/widgets/UIHostComboEditor.cpp \ 1385 1385 src/widgets/UIHotKeyEditor.cpp \ -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsSystem.ui
r75967 r79948 49 49 </property> 50 50 <item> 51 <widget class="UI GuestRAMSlider" name="m_pSliderMemorySize">51 <widget class="UIBaseMemorySlider" name="m_pSliderMemorySize"> 52 52 <property name="whatsThis"> 53 53 <string>Controls the amount of memory provided to the virtual machine. If you assign too much, the machine might not start.</string> … … 668 668 </customwidget> 669 669 <customwidget> 670 <class>UI GuestRAMSlider</class>670 <class>UIBaseMemorySlider</class> 671 671 <extends>QIAdvancedSlider</extends> 672 <header>UI GuestRAMSlider.h</header>672 <header>UIBaseMemorySlider.h</header> 673 673 </customwidget> 674 674 <customwidget> -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIBaseMemorySlider.cpp
r79947 r79948 1 1 /* $Id$ */ 2 2 /** @file 3 * VBox Qt GUI - UI GuestRAMSlider class implementation.3 * VBox Qt GUI - UIBaseMemorySlider class implementation. 4 4 */ 5 5 … … 18 18 /* GUI includes: */ 19 19 #include "UICommon.h" 20 #include "UI GuestRAMSlider.h"20 #include "UIBaseMemorySlider.h" 21 21 22 22 /* COM includes: */ … … 24 24 25 25 26 UI GuestRAMSlider::UIGuestRAMSlider(QWidget *pParent /* = 0 */)26 UIBaseMemorySlider::UIBaseMemorySlider(QWidget *pParent /* = 0 */) 27 27 : QIAdvancedSlider(pParent) 28 28 , m_uMinRAM(0) … … 35 35 } 36 36 37 UI GuestRAMSlider::UIGuestRAMSlider(Qt::Orientation enmOrientation, QWidget *pParent /* = 0 */)37 UIBaseMemorySlider::UIBaseMemorySlider(Qt::Orientation enmOrientation, QWidget *pParent /* = 0 */) 38 38 : QIAdvancedSlider(enmOrientation, pParent) 39 39 , m_uMinRAM(0) … … 46 46 } 47 47 48 uint UI GuestRAMSlider::minRAM() const48 uint UIBaseMemorySlider::minRAM() const 49 49 { 50 50 return m_uMinRAM; 51 51 } 52 52 53 uint UI GuestRAMSlider::maxRAMOpt() const53 uint UIBaseMemorySlider::maxRAMOpt() const 54 54 { 55 55 return m_uMaxRAMOpt; 56 56 } 57 57 58 uint UI GuestRAMSlider::maxRAMAlw() const58 uint UIBaseMemorySlider::maxRAMAlw() const 59 59 { 60 60 return m_uMaxRAMAlw; 61 61 } 62 62 63 uint UI GuestRAMSlider::maxRAM() const63 uint UIBaseMemorySlider::maxRAM() const 64 64 { 65 65 return m_uMaxRAM; 66 66 } 67 67 68 void UI GuestRAMSlider::prepare()68 void UIBaseMemorySlider::prepare() 69 69 { 70 70 ulong uFullSize = uiCommon().host().GetMemorySize(); … … 164 164 } 165 165 166 int UI GuestRAMSlider::calcPageStep(int iMaximum) const166 int UIBaseMemorySlider::calcPageStep(int iMaximum) const 167 167 { 168 168 /* Calculate a suitable page step size for the given max value. -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIBaseMemorySlider.h
r79947 r79948 1 1 /* $Id$ */ 2 2 /** @file 3 * VBox Qt GUI - UI GuestRAMSlider class declaration.3 * VBox Qt GUI - UIBaseMemorySlider class declaration. 4 4 */ 5 5 … … 16 16 */ 17 17 18 #ifndef FEQT_INCLUDED_SRC_widgets_UI GuestRAMSlider_h19 #define FEQT_INCLUDED_SRC_widgets_UI GuestRAMSlider_h18 #ifndef FEQT_INCLUDED_SRC_widgets_UIBaseMemorySlider_h 19 #define FEQT_INCLUDED_SRC_widgets_UIBaseMemorySlider_h 20 20 #ifndef RT_WITHOUT_PRAGMA_ONCE 21 21 # pragma once … … 26 26 #include "UILibraryDefs.h" 27 27 28 /** QIAdvancedSlider subclass used as a guest RAMslider. */29 class SHARED_LIBRARY_STUFF UI GuestRAMSlider : public QIAdvancedSlider28 /** QIAdvancedSlider subclass used as a base memory slider. */ 29 class SHARED_LIBRARY_STUFF UIBaseMemorySlider : public QIAdvancedSlider 30 30 { 31 31 Q_OBJECT; … … 34 34 35 35 /** Constructs guest RAM slider passing @a pParent to the base-class. */ 36 UI GuestRAMSlider(QWidget *pParent = 0);36 UIBaseMemorySlider(QWidget *pParent = 0); 37 37 /** Constructs guest RAM slider passing @a pParent and @a enmOrientation to the base-class. */ 38 UI GuestRAMSlider(Qt::Orientation enmOrientation, QWidget *pParent = 0);38 UIBaseMemorySlider(Qt::Orientation enmOrientation, QWidget *pParent = 0); 39 39 40 40 /** Returns the minimum RAM. */ … … 65 65 }; 66 66 67 #endif /* !FEQT_INCLUDED_SRC_widgets_UI GuestRAMSlider_h */67 #endif /* !FEQT_INCLUDED_SRC_widgets_UIBaseMemorySlider_h */ -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageBasic2.cpp
r79365 r79948 28 28 #include "UIWizardNewVM.h" 29 29 #include "UICommon.h" 30 #include "UI GuestRAMSlider.h"30 #include "UIBaseMemorySlider.h" 31 31 #include "QIRichTextLabel.h" 32 32 … … 60 60 QGridLayout *pMemoryLayout = new QGridLayout; 61 61 { 62 m_pRamSlider = new UI GuestRAMSlider(this);62 m_pRamSlider = new UIBaseMemorySlider(this); 63 63 { 64 64 m_pRamSlider->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed); … … 96 96 97 97 /* Setup connections: */ 98 connect(m_pRamSlider, &UI GuestRAMSlider::valueChanged,98 connect(m_pRamSlider, &UIBaseMemorySlider::valueChanged, 99 99 this, &UIWizardNewVMPageBasic2::sltRamSliderValueChanged); 100 100 connect(m_pRamEditor, static_cast<void(QSpinBox::*)(int)>(&QSpinBox::valueChanged), -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageBasic2.h
r76581 r79948 26 26 27 27 /* Forward declarations: */ 28 class UI GuestRAMSlider;28 class UIBaseMemorySlider; 29 29 class QSpinBox; 30 30 class QLabel; … … 44 44 45 45 /* Widgets: */ 46 UI GuestRAMSlider *m_pRamSlider;46 UIBaseMemorySlider *m_pRamSlider; 47 47 QSpinBox *m_pRamEditor; 48 48 QLabel *m_pRamMin; -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageExpert.cpp
r79885 r79948 29 29 /* GUI includes: */ 30 30 #include "QIToolButton.h" 31 #include "UI GuestRAMSlider.h"31 #include "UIBaseMemorySlider.h" 32 32 #include "UIIconPool.h" 33 33 #include "UIMediaComboBox.h" … … 58 58 QGridLayout *pMemoryCntLayout = new QGridLayout(m_pMemoryCnt); 59 59 { 60 m_pRamSlider = new UI GuestRAMSlider(m_pMemoryCnt);60 m_pRamSlider = new UIBaseMemorySlider(m_pMemoryCnt); 61 61 { 62 62 m_pRamSlider->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed); … … 135 135 connect(m_pNameAndSystemEditor, &UINameAndSystemEditor::sigOsTypeChanged, 136 136 this, &UIWizardNewVMPageExpert::sltOsTypeChanged); 137 connect(m_pRamSlider, &UI GuestRAMSlider::valueChanged,137 connect(m_pRamSlider, &UIBaseMemorySlider::valueChanged, 138 138 this, &UIWizardNewVMPageExpert::sltRamSliderValueChanged); 139 139 connect(m_pRamEditor, static_cast<void(QSpinBox::*)(int)>(&QSpinBox::valueChanged),
Note:
See TracChangeset
for help on using the changeset viewer.