Changeset 101607 in vbox
- Timestamp:
- Oct 26, 2023 2:14:46 PM (11 months ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/settings
- Files:
-
- 4 edited
-
UIAdvancedSettingsDialogSpecific.cpp (modified) (1 diff)
-
UISettingsDialogSpecific.cpp (modified) (1 diff)
-
machine/UIMachineSettingsSerial.cpp (modified) (24 diffs)
-
machine/UIMachineSettingsSerial.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/settings/UIAdvancedSettingsDialogSpecific.cpp
r101596 r101607 721 721 case MachineSettingsPageType_Serial: 722 722 { 723 pSettingsPage = new UIMachineSettingsSerial Page;723 pSettingsPage = new UIMachineSettingsSerial; 724 724 addItem(":/serial_port_32px.png", ":/serial_port_24px.png", ":/serial_port_16px.png", 725 725 iPageIndex, "#serialPorts", pSettingsPage, MachineSettingsPageType_Ports); -
trunk/src/VBox/Frontends/VirtualBox/src/settings/UISettingsDialogSpecific.cpp
r101596 r101607 725 725 case MachineSettingsPageType_Serial: 726 726 { 727 pSettingsPage = new UIMachineSettingsSerial Page;727 pSettingsPage = new UIMachineSettingsSerial; 728 728 addItem(":/serial_port_32px.png", ":/serial_port_24px.png", ":/serial_port_16px.png", 729 729 iPageIndex, "#serialPorts", pSettingsPage, MachineSettingsPageType_Ports); -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsSerial.cpp
r101606 r101607 106 106 107 107 /********************************************************************************************************************************* 108 * Class UIMachineSettingsSerial Page implementation.*108 * Class UIMachineSettingsSerial implementation. * 109 109 *********************************************************************************************************************************/ 110 110 111 UIMachineSettingsSerial Page::UIMachineSettingsSerialPage()111 UIMachineSettingsSerial::UIMachineSettingsSerial() 112 112 : m_pCache(0) 113 113 , m_pTabWidget(0) … … 116 116 } 117 117 118 UIMachineSettingsSerial Page::~UIMachineSettingsSerialPage()118 UIMachineSettingsSerial::~UIMachineSettingsSerial() 119 119 { 120 120 cleanup(); 121 121 } 122 122 123 bool UIMachineSettingsSerial Page::changed() const123 bool UIMachineSettingsSerial::changed() const 124 124 { 125 125 return m_pCache ? m_pCache->wasChanged() : false; 126 126 } 127 127 128 void UIMachineSettingsSerial Page::loadToCacheFrom(QVariant &data)128 void UIMachineSettingsSerial::loadToCacheFrom(QVariant &data) 129 129 { 130 130 /* Sanity check: */ … … 177 177 } 178 178 179 void UIMachineSettingsSerial Page::getFromCache()179 void UIMachineSettingsSerial::getFromCache() 180 180 { 181 181 /* Sanity check: */ … … 198 198 } 199 199 200 void UIMachineSettingsSerial Page::putToCache()200 void UIMachineSettingsSerial::putToCache() 201 201 { 202 202 /* Sanity check: */ … … 216 216 } 217 217 218 void UIMachineSettingsSerial Page::saveFromCacheTo(QVariant &data)218 void UIMachineSettingsSerial::saveFromCacheTo(QVariant &data) 219 219 { 220 220 /* Fetch data to machine: */ … … 228 228 } 229 229 230 bool UIMachineSettingsSerial Page::validate(QList<UIValidationMessage> &messages)230 bool UIMachineSettingsSerial::validate(QList<UIValidationMessage> &messages) 231 231 { 232 232 /* Sanity check: */ … … 246 246 } 247 247 248 void UIMachineSettingsSerial Page::retranslateUi()248 void UIMachineSettingsSerial::retranslateUi() 249 249 { 250 250 /* Sanity check: */ … … 256 256 } 257 257 258 void UIMachineSettingsSerial Page::polishPage()258 void UIMachineSettingsSerial::polishPage() 259 259 { 260 260 /* Sanity check: */ … … 274 274 } 275 275 276 void UIMachineSettingsSerial Page::sltHandlePortChange()276 void UIMachineSettingsSerial::sltHandlePortChange() 277 277 { 278 278 refreshPorts(); … … 280 280 } 281 281 282 void UIMachineSettingsSerial Page::sltHandlePathChange()282 void UIMachineSettingsSerial::sltHandlePathChange() 283 283 { 284 284 refreshPaths(); … … 286 286 } 287 287 288 void UIMachineSettingsSerial Page::prepare()288 void UIMachineSettingsSerial::prepare() 289 289 { 290 290 /* Prepare cache: */ … … 299 299 } 300 300 301 void UIMachineSettingsSerial Page::prepareWidgets()301 void UIMachineSettingsSerial::prepareWidgets() 302 302 { 303 303 /* Prepare main layout: */ … … 321 321 } 322 322 323 void UIMachineSettingsSerial Page::prepareTab()323 void UIMachineSettingsSerial::prepareTab() 324 324 { 325 325 /* Prepare tab: */ … … 356 356 } 357 357 358 void UIMachineSettingsSerial Page::prepareConnections(UISerialSettingsEditor *pTabEditor)358 void UIMachineSettingsSerial::prepareConnections(UISerialSettingsEditor *pTabEditor) 359 359 { 360 360 /* Tab connections: */ 361 361 connect(pTabEditor, &UISerialSettingsEditor::sigPortAvailabilityChanged, 362 this, &UIMachineSettingsSerial Page::sltHandlePortChange);362 this, &UIMachineSettingsSerial::sltHandlePortChange); 363 363 connect(pTabEditor, &UISerialSettingsEditor::sigPortAvailabilityChanged, 364 this, &UIMachineSettingsSerial Page::sltHandlePathChange);364 this, &UIMachineSettingsSerial::sltHandlePathChange); 365 365 connect(pTabEditor, &UISerialSettingsEditor::sigStandardPortOptionChanged, 366 this, &UIMachineSettingsSerial Page::revalidate);366 this, &UIMachineSettingsSerial::revalidate); 367 367 connect(pTabEditor, &UISerialSettingsEditor::sigPortIRQChanged, 368 this, &UIMachineSettingsSerial Page::sltHandlePortChange);368 this, &UIMachineSettingsSerial::sltHandlePortChange); 369 369 connect(pTabEditor, &UISerialSettingsEditor::sigPortIOAddressChanged, 370 this, &UIMachineSettingsSerial Page::sltHandlePortChange);370 this, &UIMachineSettingsSerial::sltHandlePortChange); 371 371 connect(pTabEditor, &UISerialSettingsEditor::sigModeChanged, 372 this, &UIMachineSettingsSerial Page::revalidate);372 this, &UIMachineSettingsSerial::revalidate); 373 373 connect(pTabEditor, &UISerialSettingsEditor::sigPathChanged, 374 this, &UIMachineSettingsSerial Page::sltHandlePathChange);375 } 376 377 void UIMachineSettingsSerial Page::cleanup()374 this, &UIMachineSettingsSerial::sltHandlePathChange); 375 } 376 377 void UIMachineSettingsSerial::cleanup() 378 378 { 379 379 /* Cleanup cache: */ … … 382 382 } 383 383 384 void UIMachineSettingsSerial Page::polishTab(int iSlot)384 void UIMachineSettingsSerial::polishTab(int iSlot) 385 385 { 386 386 /* Acquire tab-editor: */ … … 400 400 } 401 401 402 void UIMachineSettingsSerial Page::getFromCache(int iSlot, const UISettingsCacheMachineSerialPort &portCache)402 void UIMachineSettingsSerial::getFromCache(int iSlot, const UISettingsCacheMachineSerialPort &portCache) 403 403 { 404 404 /* Acquire tab-editor: */ … … 420 420 } 421 421 422 void UIMachineSettingsSerial Page::putToCache(int iSlot, UISettingsCacheMachineSerialPort &portCache)422 void UIMachineSettingsSerial::putToCache(int iSlot, UISettingsCacheMachineSerialPort &portCache) 423 423 { 424 424 /* Acquire tab-editor: */ … … 444 444 } 445 445 446 QString UIMachineSettingsSerial Page::irq(int iSlot) const446 QString UIMachineSettingsSerial::irq(int iSlot) const 447 447 { 448 448 /* Acquire tab-editor: */ … … 452 452 } 453 453 454 QString UIMachineSettingsSerial Page::ioAddress(int iSlot) const454 QString UIMachineSettingsSerial::ioAddress(int iSlot) const 455 455 { 456 456 /* Acquire tab-editor: */ … … 460 460 } 461 461 462 bool UIMachineSettingsSerial Page::validate(int iSlot, QList<UIValidationMessage> &messages)462 bool UIMachineSettingsSerial::validate(int iSlot, QList<UIValidationMessage> &messages) 463 463 { 464 464 /* Acquire tab-editor: */ … … 536 536 } 537 537 538 void UIMachineSettingsSerial Page::refreshPorts()538 void UIMachineSettingsSerial::refreshPorts() 539 539 { 540 540 /* Sanity check: */ … … 554 554 } 555 555 556 void UIMachineSettingsSerial Page::refreshPaths()556 void UIMachineSettingsSerial::refreshPaths() 557 557 { 558 558 /* Sanity check: */ … … 573 573 574 574 /* static */ 575 QString UIMachineSettingsSerial Page::tabTitle(int iSlot)575 QString UIMachineSettingsSerial::tabTitle(int iSlot) 576 576 { 577 577 return QString(tr("Port %1", "serial ports")).arg(QString("&%1").arg(iSlot + 1)); 578 578 } 579 579 580 bool UIMachineSettingsSerial Page::saveData()580 bool UIMachineSettingsSerial::saveData() 581 581 { 582 582 /* Sanity check: */ … … 598 598 } 599 599 600 bool UIMachineSettingsSerial Page::savePortData(int iSlot)600 bool UIMachineSettingsSerial::savePortData(int iSlot) 601 601 { 602 602 /* Sanity check: */ -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsSerial.h
r101606 r101607 44 44 45 45 /** Machine settings: Serial page. */ 46 class SHARED_LIBRARY_STUFF UIMachineSettingsSerial Page: public UISettingsPageMachine46 class SHARED_LIBRARY_STUFF UIMachineSettingsSerial : public UISettingsPageMachine 47 47 { 48 48 Q_OBJECT; … … 51 51 52 52 /** Constructs Serial settings page. */ 53 UIMachineSettingsSerial Page();53 UIMachineSettingsSerial(); 54 54 /** Destructs Serial settings page. */ 55 virtual ~UIMachineSettingsSerial Page() RT_OVERRIDE;55 virtual ~UIMachineSettingsSerial() RT_OVERRIDE; 56 56 57 57 /** Returns ports. */
Note:
See TracChangeset
for help on using the changeset viewer.

