VirtualBox

Ignore:
Timestamp:
Feb 15, 2007 11:40:56 AM (18 years ago)
Author:
vboxsync
Message:

1758: Implement Shared Folders UI

  1. Shared Folders (VM Settings Page) implemented.
  2. Current Shared Folders list displays all the shared folders available for the current VM, it shows the name and the path to the related host folder.
  3. Add-box Dialog used for adding new shared folder from the existing host one.
Location:
trunk/src/VBox/Frontends/VirtualBox
Files:
4 edited

Legend:

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

    r382 r924  
    7171# UI headers (ui.h) containing local definitions of classes that use the Q_OBJECT macro
    7272VirtualBox_QT_MOCUIHDRS = \
    73         ui/VBoxVMSettingsDlg.ui.h
     73        ui/VBoxVMSettingsDlg.ui.h \
     74        ui/VBoxSharedFoldersSettings.ui.h
    7475
    7576VirtualBox_GENSRCS = \
  • trunk/src/VBox/Frontends/VirtualBox/VBoxUI.pro

    r879 r924  
    2828        ui/VBoxVMNetworkSettings.ui \
    2929        ui/VBoxUSBFilterSettings.ui \
     30        ui/VBoxSharedFoldersSettings.ui \
    3031        ui/VBoxNewVMWzd.ui \
    3132        ui/VBoxCloseVMDlg.ui \
  • trunk/src/VBox/Frontends/VirtualBox/ui/VBoxVMSettingsDlg.ui

    r704 r924  
    252252            </property>
    253253        </item>
     254        <item>
     255            <property name="text">
     256                <string> Shared Folders </string>
     257            </property>
     258            <property name="text">
     259                <string>8</string>
     260            </property>
     261            <property name="text">
     262                <string>#sfolders</string>
     263            </property>
     264            <property name="pixmap">
     265                <pixmap>select_file_16px.png</pixmap>
     266            </property>
     267            <property name="pixmap">
     268                <pixmap></pixmap>
     269            </property>
     270            <property name="pixmap">
     271                <pixmap></pixmap>
     272            </property>
     273        </item>
    254274            <property name="name">
    255275                <cstring>listView</cstring>
     
    22842304                    </spacer>
    22852305                </vbox>
     2306            </widget>
     2307            <widget class="QWidget">
     2308                <property name="name">
     2309                    <cstring>pageFolders</cstring>
     2310                </property>
     2311                <attribute name="id">
     2312                    <number>8</number>
     2313                </attribute>
    22862314            </widget>
    22872315        </widget>
     
    26552683    <include location="local" impldecl="in implementation">VBoxVMNetworkSettings.h</include>
    26562684    <include location="local" impldecl="in implementation">VBoxUSBFilterSettings.h</include>
     2685    <include location="local" impldecl="in implementation">VBoxSharedFoldersSettings.h</include>
    26572686    <include location="local" impldecl="in implementation">VBoxDiskImageManagerDlg.h</include>
    26582687    <include location="local" impldecl="in implementation">VBoxMediaComboBox.h</include>
     
    26622691    <forward>class VBoxDiskImageManagerDlg</forward>
    26632692    <forward>class VBoxUSBMenu</forward>
     2693    <forward>class VBoxSharedFoldersSettings</forward>
    26642694</forwards>
    26652695<variables>
     
    26862716    <variable access="private">bool mUSBFilterListModified;</variable>
    26872717    <variable access="private">QTabWidget* tbwNetwork;</variable>
     2718    <variable access="private">VBoxSharedFoldersSettings* mSharedFolders;</variable>
    26882719    <variable access="private">QString warningString;</variable>
    26892720    <variable access="private">VBoxMediaComboBox *cbHDA;</variable>
  • trunk/src/VBox/Frontends/VirtualBox/ui/VBoxVMSettingsDlg.ui.h

    r879 r924  
    485485    connect (leVRDPPort, SIGNAL (textChanged (const QString&)), wvalFloppy, SLOT (revalidate()));
    486486    connect (leVRDPTimeout, SIGNAL (textChanged (const QString&)), wvalFloppy, SLOT (revalidate()));
     487
     488    /* Shared Folders Page */
     489
     490    QVBoxLayout* pageFoldersLayout = new QVBoxLayout (pageFolders, 0, 10, "pageFoldersLayout");
     491    mSharedFolders = new VBoxSharedFoldersSettings (pageFolders, "sharedFolders");
     492    pageFoldersLayout->addWidget (mSharedFolders);
    487493
    488494    /*
     
    12911297    }
    12921298
     1299    /* shared folders */
     1300    {
     1301        mSharedFolders->loadFromMachine (machine);
     1302    }
     1303
    12931304    /* request for media shortcuts update */
    12941305    cbHDA->setBelongsTo (machine.GetId());
     
    15211532    }
    15221533
     1534    /* shared folders */
     1535    {
     1536        mSharedFolders->saveToMachine (cmachine);
     1537    }
     1538
    15231539    return COMResult();
    15241540}
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