VirtualBox

Ignore:
Timestamp:
Aug 11, 2017 1:14:04 PM (7 years ago)
Author:
vboxsync
Message:

FE/Qt: Wipe out parallel ports settings since they are unused (hidden) for many years.

Location:
trunk/src/VBox/Frontends/VirtualBox
Files:
15 deleted
18 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/Makefile.kmk

    r68392 r68394  
    418418        src/settings/machine/UIMachineSettingsInterface.h \
    419419        src/settings/machine/UIMachineSettingsNetwork.h \
    420         src/settings/machine/UIMachineSettingsParallel.h \
    421420        src/settings/machine/UIMachineSettingsPortForwardingDlg.h \
    422421        src/settings/machine/UIMachineSettingsSF.h \
     
    560559        src/settings/global/UIGlobalSettingsInput.cpp \
    561560        src/settings/machine/UIMachineSettingsNetwork.cpp \
    562         src/settings/machine/UIMachineSettingsParallel.cpp \
    563561        src/settings/machine/UIMachineSettingsSerial.cpp \
    564562        src/settings/machine/UIMachineSettingsStorage.cpp \
     
    736734        src/settings/machine/UIMachineSettingsInterface.cpp \
    737735        src/settings/machine/UIMachineSettingsNetwork.cpp \
    738         src/settings/machine/UIMachineSettingsParallel.cpp \
    739736        src/settings/machine/UIMachineSettingsPortForwardingDlg.cpp \
    740737        src/settings/machine/UIMachineSettingsSF.cpp \
  • trunk/src/VBox/Frontends/VirtualBox/VBoxUI.pro

    r67535 r68394  
    4040    src/settings/machine/UIMachineSettingsNetwork.ui \
    4141    src/settings/machine/UIMachineSettingsSerial.ui \
    42     src/settings/machine/UIMachineSettingsParallel.ui \
    4342    src/settings/machine/UIMachineSettingsUSB.ui \
    4443    src/settings/machine/UIMachineSettingsUSBFilterDetails.ui \
  • trunk/src/VBox/Frontends/VirtualBox/VirtualBox2.qrc

    r68368 r68394  
    2929        <file alias="os_xandros.png">images/os_xandros.png</file>
    3030        <file alias="os_xandros_64.png">images/os_xandros_64.png</file>
    31         <file alias="parallel_port_16px.png">images/parallel_port_16px.png</file>
    32         <file alias="parallel_port_24px.png">images/parallel_port_24px.png</file>
    33         <file alias="parallel_port_32px.png">images/parallel_port_32px.png</file>
    34         <file alias="parallel_port_warning_16px.png">images/parallel_port_warning_16px.png</file>
    3531        <file alias="pin_16px.png">images/pin_16px.png</file>
    3632        <file alias="preview_empty_16to10_242x167px.png">images/preview_empty_16to10_242x167px.png</file>
  • trunk/src/VBox/Frontends/VirtualBox/VirtualBox2_hidpi.qrc

    r68368 r68394  
    3838        <file alias="os_xandros_64_hidpi.png">images/hidpi/os_xandros_64_hidpi.png</file>
    3939        <file alias="os_xandros_hidpi.png">images/hidpi/os_xandros_hidpi.png</file>
    40         <file alias="parallel_port_16px_hidpi.png">images/hidpi/parallel_port_16px_hidpi.png</file>
    41         <file alias="parallel_port_24px_hidpi.png">images/hidpi/parallel_port_24px_hidpi.png</file>
    42         <file alias="parallel_port_32px_hidpi.png">images/hidpi/parallel_port_32px_hidpi.png</file>
    43         <file alias="parallel_port_warning_16px_hidpi.png">images/hidpi/parallel_port_warning_16px_hidpi.png</file>
    4440        <file alias="pin_16px_hidpi.png">images/hidpi/pin_16px_hidpi.png</file>
    4541        <file alias="preview_empty_16to10_242x167px_hidpi.png">images/hidpi/preview_empty_16to10_242x167px_hidpi.png</file>
  • trunk/src/VBox/Frontends/VirtualBox/src/converter/UIConverterBackendGlobal.cpp

    r68342 r68394  
    976976        case DetailsElementType_Network:     strResult = QApplication::translate("VBoxGlobal", "Network", "DetailsElementType"); break;
    977977        case DetailsElementType_Serial:      strResult = QApplication::translate("VBoxGlobal", "Serial ports", "DetailsElementType"); break;
    978 #ifdef VBOX_WITH_PARALLEL_PORTS
    979         case DetailsElementType_Parallel:    strResult = QApplication::translate("VBoxGlobal", "Parallel ports", "DetailsElementType"); break;
    980 #endif /* VBOX_WITH_PARALLEL_PORTS */
    981978        case DetailsElementType_USB:         strResult = QApplication::translate("VBoxGlobal", "USB", "DetailsElementType"); break;
    982979        case DetailsElementType_SF:          strResult = QApplication::translate("VBoxGlobal", "Shared folders", "DetailsElementType"); break;
     
    10061003    keys << QApplication::translate("VBoxGlobal", "Network", "DetailsElementType");        values << DetailsElementType_Network;
    10071004    keys << QApplication::translate("VBoxGlobal", "Serial ports", "DetailsElementType");   values << DetailsElementType_Serial;
    1008 #ifdef VBOX_WITH_PARALLEL_PORTS
    1009     keys << QApplication::translate("VBoxGlobal", "Parallel ports", "DetailsElementType"); values << DetailsElementType_Parallel;
    1010 #endif /* VBOX_WITH_PARALLEL_PORTS */
    10111005    keys << QApplication::translate("VBoxGlobal", "USB", "DetailsElementType");            values << DetailsElementType_USB;
    10121006    keys << QApplication::translate("VBoxGlobal", "Shared folders", "DetailsElementType"); values << DetailsElementType_SF;
     
    10341028        case DetailsElementType_Network:     strResult = "network"; break;
    10351029        case DetailsElementType_Serial:      strResult = "serialPorts"; break;
    1036 #ifdef VBOX_WITH_PARALLEL_PORTS
    1037         case DetailsElementType_Parallel:    strResult = "parallelPorts"; break;
    1038 #endif /* VBOX_WITH_PARALLEL_PORTS */
    10391030        case DetailsElementType_USB:         strResult = "usb"; break;
    10401031        case DetailsElementType_SF:          strResult = "sharedFolders"; break;
     
    10641055    keys << "network";       values << DetailsElementType_Network;
    10651056    keys << "serialPorts";   values << DetailsElementType_Serial;
    1066 #ifdef VBOX_WITH_PARALLEL_PORTS
    1067     keys << "parallelPorts"; values << DetailsElementType_Parallel;
    1068 #endif /* VBOX_WITH_PARALLEL_PORTS */
    10691057    keys << "usb";           values << DetailsElementType_USB;
    10701058    keys << "sharedFolders"; values << DetailsElementType_SF;
     
    10911079        case DetailsElementType_Network:     return UIIconPool::iconSet(":/nw_16px.png");
    10921080        case DetailsElementType_Serial:      return UIIconPool::iconSet(":/serial_port_16px.png");
    1093 #ifdef VBOX_WITH_PARALLEL_PORTS
    1094         case DetailsElementType_Parallel:    return UIIconPool::iconSet(":/parallel_port_16px.png");
    1095 #endif /* VBOX_WITH_PARALLEL_PORTS */
    10961081        case DetailsElementType_USB:         return UIIconPool::iconSet(":/usb_16px.png");
    10971082        case DetailsElementType_SF:          return UIIconPool::iconSet(":/sf_16px.png");
     
    13171302        case MachineSettingsPageType_Ports:     strResult = "Ports"; break;
    13181303        case MachineSettingsPageType_Serial:    strResult = "Serial"; break;
    1319         case MachineSettingsPageType_Parallel:  strResult = "Parallel"; break;
    13201304        case MachineSettingsPageType_USB:       strResult = "USB"; break;
    13211305        case MachineSettingsPageType_SF:        strResult = "SharedFolders"; break;
     
    13441328    keys << "Ports";         values << MachineSettingsPageType_Ports;
    13451329    keys << "Serial";        values << MachineSettingsPageType_Serial;
    1346     keys << "Parallel";      values << MachineSettingsPageType_Parallel;
    13471330    keys << "USB";           values << MachineSettingsPageType_USB;
    13481331    keys << "SharedFolders"; values << MachineSettingsPageType_SF;
     
    13681351        case MachineSettingsPageType_Ports:     return UIIconPool::pixmap(":/serial_port_warning_16px.png");
    13691352        case MachineSettingsPageType_Serial:    return UIIconPool::pixmap(":/serial_port_warning_16px.png");
    1370         case MachineSettingsPageType_Parallel:  return UIIconPool::pixmap(":/parallel_port_warning_16px.png");
    13711353        case MachineSettingsPageType_USB:       return UIIconPool::pixmap(":/usb_warning_16px.png");
    13721354        case MachineSettingsPageType_SF:        return UIIconPool::pixmap(":/sf_warning_16px.png");
     
    17321714        case InformationElementType_Network:           strResult = QApplication::translate("VBoxGlobal", "Network", "InformationElementType"); break;
    17331715        case InformationElementType_Serial:            strResult = QApplication::translate("VBoxGlobal", "Serial ports", "InformationElementType"); break;
    1734 #ifdef VBOX_WITH_PARALLEL_PORTS
    1735         case InformationElementType_Parallel:          strResult = QApplication::translate("VBoxGlobal", "Parallel ports", "InformationElementType"); break;
    1736 #endif /* VBOX_WITH_PARALLEL_PORTS */
    17371716        case InformationElementType_USB:               strResult = QApplication::translate("VBoxGlobal", "USB", "InformationElementType"); break;
    17381717        case InformationElementType_SharedFolders:     strResult = QApplication::translate("VBoxGlobal", "Shared folders", "InformationElementType"); break;
     
    17651744    keys << QApplication::translate("VBoxGlobal", "Network", "InformationElementType");            values << InformationElementType_Network;
    17661745    keys << QApplication::translate("VBoxGlobal", "Serial ports", "InformationElementType");       values << InformationElementType_Serial;
    1767 #ifdef VBOX_WITH_PARALLEL_PORTS
    1768     keys << QApplication::translate("VBoxGlobal", "Parallel ports", "InformationElementType");     values << InformationElementType_Parallel;
    1769 #endif /* VBOX_WITH_PARALLEL_PORTS */
    17701746    keys << QApplication::translate("VBoxGlobal", "USB", "InformationElementType");                values << InformationElementType_USB;
    17711747    keys << QApplication::translate("VBoxGlobal", "Shared folders", "InformationElementType");     values << InformationElementType_SharedFolders;
     
    17961772        case InformationElementType_Network:           strResult = "network"; break;
    17971773        case InformationElementType_Serial:            strResult = "serialPorts"; break;
    1798 #ifdef VBOX_WITH_PARALLEL_PORTS
    1799         case InformationElementType_Parallel:          strResult = "parallelPorts"; break;
    1800 #endif /* VBOX_WITH_PARALLEL_PORTS */
    18011774        case InformationElementType_USB:               strResult = "usb"; break;
    18021775        case InformationElementType_SharedFolders:     strResult = "sharedFolders"; break;
     
    18271800    keys << "network";            values << InformationElementType_Network;
    18281801    keys << "serialPorts";        values << InformationElementType_Serial;
    1829 #ifdef VBOX_WITH_PARALLEL_PORTS
    1830     keys << "parallelPorts";      values << InformationElementType_Parallel;
    1831 #endif /* VBOX_WITH_PARALLEL_PORTS */
    18321802    keys << "usb";                values << InformationElementType_USB;
    18331803    keys << "sharedFolders";      values << InformationElementType_SharedFolders;
     
    18551825        case InformationElementType_Network:           return UIIconPool::iconSet(":/nw_16px.png");
    18561826        case InformationElementType_Serial:            return UIIconPool::iconSet(":/serial_port_16px.png");
    1857 #ifdef VBOX_WITH_PARALLEL_PORTS
    1858         case InformationElementType_Parallel:          return UIIconPool::iconSet(":/parallel_port_16px.png");
    1859 #endif /* VBOX_WITH_PARALLEL_PORTS */
    18601827        case InformationElementType_USB:               return UIIconPool::iconSet(":/usb_16px.png");
    18611828        case InformationElementType_SharedFolders:     return UIIconPool::iconSet(":/sf_16px.png");
  • trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataDefs.h

    r68304 r68394  
    573573    MachineSettingsPageType_Ports,
    574574    MachineSettingsPageType_Serial,
    575     MachineSettingsPageType_Parallel,
    576575    MachineSettingsPageType_USB,
    577576    MachineSettingsPageType_SF,
     
    635634    DetailsElementType_Network,
    636635    DetailsElementType_Serial,
    637 #ifdef VBOX_WITH_PARALLEL_PORTS
    638     DetailsElementType_Parallel,
    639 #endif /* VBOX_WITH_PARALLEL_PORTS */
    640636    DetailsElementType_USB,
    641637    DetailsElementType_SF,
     
    754750    InformationElementType_Network,
    755751    InformationElementType_Serial,
    756 #ifdef VBOX_WITH_PARALLEL_PORTS
    757     InformationElementType_Parallel,
    758 #endif /* VBOX_WITH_PARALLEL_PORTS */
    759752    InformationElementType_USB,
    760753    InformationElementType_SharedFolders,
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMessageCenter.cpp

    r68190 r68394  
    6161# include "CAudioAdapter.h"
    6262# include "CNATEngine.h"
    63 # include "CParallelPort.h"
    6463# include "CSerialPort.h"
    6564# include "CSharedFolder.h"
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.cpp

    r68315 r68394  
    103103# include "CNetworkAdapter.h"
    104104# include "CSerialPort.h"
    105 # include "CParallelPort.h"
    106105# include "CUSBController.h"
    107106# include "CHostUSBDevice.h"
  • trunk/src/VBox/Frontends/VirtualBox/src/precomp.h

    r68392 r68394  
    385385#include "CNetworkAdapter.h"
    386386//#include "CNetworkAdapterChangedEvent.h" - only used once
    387 #include "CParallelPort.h"
    388387#include "CProgress.h"
    389388//#include "CRuntimeErrorEvent.h" - only used once
     
    517516#include "UIMachineSettingsInterface.h"
    518517#include "UIMachineSettingsNetwork.h"
    519 #include "UIMachineSettingsParallel.h"
    520518#include "UIMachineSettingsPortForwardingDlg.h"
    521519#include "UIMachineSettingsSF.h"
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/information/UIInformationConfiguration.cpp

    r65337 r68394  
    127127        }
    128128
    129 #ifdef VBOX_WITH_PARALLEL_PORTS
    130         /* Create parallel-ports data-item: */
    131         UIInformationDataItem *pParallelPorts = new UIInformationDataParallelPorts(m_machine, m_console, m_pModel);
    132         AssertPtrReturnVoid(pParallelPorts);
    133         {
    134             /* Add parallel-ports data-item to model: */
    135             m_pModel->addItem(pParallelPorts);
    136         }
    137 #endif /* VBOX_WITH_PARALLEL_PORTS */
    138 
    139129        /* Create usb data-item: */
    140130        UIInformationDataItem *pUSB = new UIInformationDataUSB(m_machine, m_console, m_pModel);
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/information/UIInformationDataItem.cpp

    r65891 r68394  
    3838# include "CVRDEServer.h"
    3939# include "CAudioAdapter.h"
    40 # include "CParallelPort.h"
    4140# include "CSharedFolder.h"
    4241# include "CUSBController.h"
     
    506505
    507506
    508 #ifdef VBOX_WITH_PARALLEL_PORTS
    509 /*********************************************************************************************************************************
    510 *   Class UIInformationDataParallelPorts implementation.                                                                         *
    511 *********************************************************************************************************************************/
    512 
    513 UIInformationDataParallelPorts::UIInformationDataParallelPorts(const CMachine &machine, const CConsole &console, UIInformationModel *pModel)
    514     : UIInformationDataItem(InformationElementType_Parallel, machine, console, pModel)
    515 {
    516 }
    517 
    518 QVariant UIInformationDataParallelPorts::data(const QModelIndex &index, int role) const
    519 {
    520     /* For particular role: */
    521     switch (role)
    522     {
    523         case Qt::DecorationRole:
    524         {
    525             return QString(":/parallel_port_16px.png");
    526         }
    527 
    528         case Qt::UserRole + 1:
    529         {
    530             ulong count = vboxGlobal().virtualBox().GetSystemProperties().GetParallelPortCount();
    531             for (ulong slot = 0; slot < count; slot ++)
    532             {
    533                 CParallelPort port = m_machine.GetParallelPort(slot);
    534                 if (port.GetEnabled())
    535                 {
    536                     QString data = vboxGlobal().toLPTPortName(port.GetIRQ(), port.GetIOBase()) +
    537                         QString(" (<nobr>%1</nobr>)")
    538                                .arg(QDir::toNativeSeparators(port.GetPath()));
    539                     p_text << UITextTableLine(tr("Port %1", "details report (parallel ports)").arg(port.GetSlot() + 1), data);
    540                 }
    541             }
    542             if (p_text.count() == 0)
    543                 p_text << UITextTableLine(tr("Disabled", "details report (parallel ports)"), QString());
    544         }
    545 
    546         default:
    547             break;
    548     }
    549     return QVariant();
    550 }
    551 #endif /* VBOX_WITH_PARALLEL_PORTS */
    552 
    553 
    554507/*********************************************************************************************************************************
    555508*   Class UIInformationDataUSB implementation.                                                                                   *
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/information/UIInformationDataItem.h

    r65287 r68394  
    203203
    204204
    205 #ifdef VBOX_WITH_PARALLEL_PORTS
    206 /** UIInformationDataItem extension for the details-element type 'Parallel ports'. */
    207 class UIInformationDataParallelPorts : public UIInformationDataItem
    208 {
    209     Q_OBJECT;
    210 
    211 public:
    212 
    213     /** Constructs details-element object.
    214       * @param  machine  Brings the machine reference.
    215       * @param  console  Brings the machine console reference.
    216       * @param  pModel   Brings the information model this item belings to. */
    217     UIInformationDataParallelPorts(const CMachine &machine, const CConsole &console, UIInformationModel *pModel);
    218 
    219     /** Returns data for item specified by @a index for the @a iRole. */
    220     virtual QVariant data(const QModelIndex &index, int iRole = Qt::DisplayRole) const;
    221 };
    222 #endif /* VBOX_WITH_PARALLEL_PORTS */
    223 
    224 
    225205/** UIInformationDataItem extension for the details-element type 'USB'. */
    226206class UIInformationDataUSB : public UIInformationDataItem
  • trunk/src/VBox/Frontends/VirtualBox/src/selector/UISnapshotDetailsWidget.cpp

    r68366 r68394  
    5353# include "CMediumAttachment.h"
    5454# include "CNetworkAdapter.h"
    55 # ifdef VBOX_WITH_PARALLEL_PORTS
    56 #  include "CParallelPort.h"
    57 # endif
    5855# include "CSerialPort.h"
    5956# include "CSharedFolder.h"
     
    963960                    AssertPtrReturnVoid(m_details[DetailsElementType_Serial]);
    964961                    pLayout2->addWidget(m_details[DetailsElementType_Serial]);
    965 
    966 #ifdef VBOX_WITH_PARALLEL_PORTS
    967                     /* Create 'Parallel' element: */
    968                     m_details[DetailsElementType_Parallel] = createDetailsElement(DetailsElementType_Parallel);
    969                     AssertPtrReturnVoid(m_details[DetailsElementType_Parallel]);
    970                     pLayout2->addWidget(m_details[DetailsElementType_Parallel]);
    971 #endif
    972962
    973963                    /* Create 'USB' element: */
     
    16691659            break;
    16701660        }
    1671 #ifdef VBOX_WITH_PARALLEL_PORTS
    1672         case DetailsElementType_Parallel:
    1673         {
    1674             /* Nothing: */
    1675             int iRowCount = 0;
    1676             QString strItem;
    1677 
    1678             /* Enumerate all the serial ports (up to acquired/limited count): */
    1679             const ulong iCount = vboxGlobal().virtualBox().GetSystemProperties().GetParallelPortCount();
    1680             for (ulong iSlot = 0; iSlot < iCount; ++iSlot)
    1681             {
    1682                 /* Get current parallel port: */
    1683                 const CParallelPort &comParallel = comMachine.GetParallelPort(iSlot);
    1684                 if (comParallel.GetEnabled())
    1685                 {
    1686                     /* Compose the data: */
    1687                     QString strData = toLPTPortName(comParallel.GetIRQ(), comParallel.GetIOBase())
    1688                                     + QString(" (<nobr>%1</nobr>)").arg(QDir::toNativeSeparators(comParallel.GetPath()));
    1689                     /* Here goes the record: */
    1690                     ++iRowCount;
    1691                     strItem += QString(sSectionItemTpl2).arg(QApplication::translate("UIGDetails", "Port %1", "details (parallel)")
    1692                                                                 .arg(comParallel.GetSlot() + 1),
    1693                                                              strData);
    1694                 }
    1695             }
    1696 
    1697             /* Handle side-case: */
    1698             if (strItem.isNull())
    1699             {
    1700                 ++iRowCount;
    1701                 strItem = QString(sSectionItemTpl1).arg(QApplication::translate("UIGDetails", "Disabled", "details (parallel)"));
    1702             }
    1703 
    1704             /* Append report: */
    1705             strReport += strSectionTpl
    1706                 .arg(1 + iRowCount) /* rows */
    1707                 .arg("details://parallelPorts", /* icon */
    1708                      QString::number(iIconArea), /* icon area */
    1709                      gpConverter->toString(enmType), /* title */
    1710                      strItem); /* items */
    1711 
    1712             break;
    1713         }
    1714 #endif /* VBOX_WITH_PARALLEL_PORTS */
    17151661        case DetailsElementType_USB:
    17161662        {
  • trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/details/UIGDetailsElements.cpp

    r68340 r68394  
    4646# include "CNetworkAdapter.h"
    4747# include "CSerialPort.h"
    48 # include "CParallelPort.h"
    4948# include "CUSBController.h"
    5049# include "CUSBDeviceFilters.h"
     
    742741
    743742
    744 #ifdef VBOX_WITH_PARALLEL_PORTS
    745 void UIGDetailsUpdateTaskParallel::run()
    746 {
    747     /* Acquire corresponding machine: */
    748     CMachine machine = property("machine").value<CMachine>();
    749     if (machine.isNull())
    750         return;
    751 
    752     /* Prepare table: */
    753     UITextTable table;
    754 
    755     /* Gather information: */
    756     if (machine.GetAccessible())
    757     {
    758         bool fSomeInfo = false;
    759         ulong uCount = vboxGlobal().virtualBox().GetSystemProperties().GetParallelPortCount();
    760         for (ulong uSlot = 0; uSlot < uCount; ++uSlot)
    761         {
    762             const CParallelPort &port = machine.GetParallelPort(uSlot);
    763             if (port.GetEnabled())
    764             {
    765                 QString data = vboxGlobal().toLPTPortName(port.GetIRQ(), port.GetIOBase()) +
    766                                QString(" (<nobr>%1</nobr>)").arg(QDir::toNativeSeparators(port.GetPath()));
    767                 table << UITextTableLine(QApplication::translate("UIGDetails", "Port %1", "details (parallel)").arg(port.GetSlot() + 1), data);
    768                 fSomeInfo = true;
    769             }
    770         }
    771         if (!fSomeInfo)
    772             table << UITextTableLine(QApplication::translate("UIGDetails", "Disabled", "details (parallel)"), QString());
    773     }
    774     else
    775         table << UITextTableLine(QApplication::translate("UIGDetails", "Information Inaccessible", "details"), QString());
    776 
    777     /* Save the table as property: */
    778     setProperty("table", QVariant::fromValue(table));
    779 }
    780 #endif /* VBOX_WITH_PARALLEL_PORTS */
    781 
    782 
    783743void UIGDetailsUpdateTaskUSB::run()
    784744{
  • trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/details/UIGDetailsElements.h

    r62493 r68394  
    368368
    369369
    370 #ifdef VBOX_WITH_PARALLEL_PORTS
    371 /** UITask extension used as update task for the details-element type 'Parallel'. */
    372 class UIGDetailsUpdateTaskParallel : public UIGDetailsUpdateTask
    373 {
    374     Q_OBJECT;
    375 
    376 public:
    377 
    378     /** Constructs update task passing @a machine to the base-class. */
    379     UIGDetailsUpdateTaskParallel(const CMachine &machine)
    380         : UIGDetailsUpdateTask(machine) {}
    381 
    382 private:
    383 
    384     /** Contains update task body. */
    385     void run();
    386 };
    387 
    388 /** UIGDetailsElementInterface extension for the details-element type 'Parallel'. */
    389 class UIGDetailsElementParallel : public UIGDetailsElementInterface
    390 {
    391     Q_OBJECT;
    392 
    393 public:
    394 
    395     /** Constructs details-element object for passed @a pParent set.
    396       * @param fOpened brings whether the details-element should be visually opened. */
    397     UIGDetailsElementParallel(UIGDetailsSet *pParent, bool fOpened)
    398         : UIGDetailsElementInterface(pParent, DetailsElementType_Parallel, fOpened) {}
    399 
    400 private:
    401 
    402     /** Creates update task for this element. */
    403     UITask* createUpdateTask() { return new UIGDetailsUpdateTaskParallel(machine()); }
    404 };
    405 #endif /* VBOX_WITH_PARALLEL_PORTS */
    406 
    407 
    408370/** UITask extension used as update task for the details-element type 'USB'. */
    409371class UIGDetailsUpdateTaskUSB : public UIGDetailsUpdateTask
  • trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/details/UIGDetailsSet.cpp

    r63764 r68394  
    385385            case DetailsElementType_Network:
    386386            case DetailsElementType_Serial:
    387 #ifdef VBOX_WITH_PARALLEL_PORTS
    388             case DetailsElementType_Parallel:
    389 #endif
    390387            case DetailsElementType_USB:
    391388            case DetailsElementType_SF:
     
    446443            case DetailsElementType_Network:
    447444            case DetailsElementType_Serial:
    448 #ifdef VBOX_WITH_PARALLEL_PORTS
    449             case DetailsElementType_Parallel:
    450 #endif
    451445            case DetailsElementType_USB:
    452446            case DetailsElementType_SF:
     
    502496            case DetailsElementType_Network:
    503497            case DetailsElementType_Serial:
    504 #ifdef VBOX_WITH_PARALLEL_PORTS
    505             case DetailsElementType_Parallel:
    506 #endif
    507498            case DetailsElementType_USB:
    508499            case DetailsElementType_SF:
     
    592583        case DetailsElementType_Network:     return new UIGDetailsElementNetwork(this, fOpen);
    593584        case DetailsElementType_Serial:      return new UIGDetailsElementSerial(this, fOpen);
    594 #ifdef VBOX_WITH_PARALLEL_PORTS
    595         case DetailsElementType_Parallel:    return new UIGDetailsElementParallel(this, fOpen);
    596 #endif
    597585        case DetailsElementType_USB:         return new UIGDetailsElementUSB(this, fOpen);
    598586        case DetailsElementType_SF:          return new UIGDetailsElementSF(this, fOpen);
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/UISettingsDialogSpecific.cpp

    r66593 r68394  
    5151# include "UIMachineSettingsNetwork.h"
    5252# include "UIMachineSettingsSerial.h"
    53 # include "UIMachineSettingsParallel.h"
    5453# include "UIMachineSettingsUSB.h"
    5554# include "UIMachineSettingsSF.h"
     
    419418                    break;
    420419                }
    421                 /* Parallel page: */
    422                 case MachineSettingsPageType_Parallel:
    423                 {
    424                     pSettingsPage = new UIMachineSettingsParallelPage;
    425                     addItem(":/parallel_port_32px.png", ":/parallel_port_24px.png", ":/parallel_port_16px.png",
    426                             iPageIndex, "#parallelPorts", pSettingsPage, MachineSettingsPageType_Ports);
    427                     break;
    428                 }
    429420                /* USB page: */
    430421                case MachineSettingsPageType_USB:
     
    598589    m_pSelector->widget()->setWhatsThis(tr("Allows to navigate through VM Settings categories"));
    599590
    600     /* We have to make sure that the Network, Serial & Parallel pages are retranslated
     591    /* We have to make sure that the Network, Serial pages are retranslated
    601592     * before they are revalidated. Cause: They do string comparing within
    602593     * vboxGlobal which is retranslated at that point already: */
     
    606597    if (QWidget *pPage = m_pSelector->idToPage(MachineSettingsPageType_Serial))
    607598        qApp->sendEvent(pPage, &event);
    608     if (QWidget *pPage = m_pSelector->idToPage(MachineSettingsPageType_Parallel))
    609         qApp->sendEvent(pPage, &event);
    610599
    611600    /* General page: */
     
    632621    /* Serial page: */
    633622    m_pSelector->setItemText(MachineSettingsPageType_Serial, tr("Serial Ports"));
    634 
    635     /* Parallel page: */
    636     m_pSelector->setItemText(MachineSettingsPageType_Parallel, tr("Parallel Ports"));
    637623
    638624    /* USB page: */
     
    844830                return false;
    845831            break;
    846         }
    847         case MachineSettingsPageType_Parallel:
    848         {
    849             /* Depends on ports availability: */
    850             if (!isPageAvailable(MachineSettingsPageType_Ports))
    851                 return false;
    852             /* But for now this page is always disabled: */
    853             return false;
    854832        }
    855833        case MachineSettingsPageType_USB:
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsSerial.cpp

    r66626 r68394  
    353353    m_pCache->clear();
    354354
    355     /* Prepare old parallel data: */
     355    /* Prepare old serial data: */
    356356    UIDataSettingsMachineSerial oldSerialData;
    357357
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette