VirtualBox

Ignore:
Timestamp:
Jan 24, 2007 4:42:35 PM (18 years ago)
Author:
vboxsync
Message:

FE/Qt: Fixes and enhancements to the USB device menus (tooltips, error reporting etc.).

Location:
trunk/src/VBox/Frontends/VirtualBox/include
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/include/VBoxConsoleWnd.h

    r263 r281  
    202202        devicesMountDVDMenuId,
    203203        devicesUSBMenuId,
     204        devicesUSBMenuNoDevicesId,
    204205#ifdef VBOX_WITH_DEBUGGER_GUI
    205206        dbgMenuId,
  • trunk/src/VBox/Frontends/VirtualBox/include/VBoxGlobal.h

    r253 r281  
    278278    }
    279279
     280    QString toString (CEnums::USBDeviceState aState) const
     281    {
     282        AssertMsg (!USBDeviceStates [aState].isNull(), ("No text for %d", aState));
     283        return USBDeviceStates [aState];
     284    }
     285
    280286    QPixmap snapshotIcon (bool online) const
    281287    {
     
    283289    }
    284290
    285     // details generators
     291    /* details generators */
    286292
    287293    QString details (const CHardDisk &aHD, bool aPredict = false) const;
    288294
     295    QString details (const CUSBDevice &aDevice) const;
     296    QString toolTip (const CUSBDevice &aDevice) const;
     297
    289298    QString prepareFileNameForHTML (const QString &fn) const;
    290299
    291300    QString detailsReport (const CMachine &m, bool isNewVM, bool withLinks) const;
    292301
    293     // VirtualBox helpers
     302    /* VirtualBox helpers */
    294303
    295304    CSession openSession (const QUuid &id);
     
    304313    VBoxMediaList currentMediaList() const { return media_list; }
    305314
    306     // various helpers
     315    /* various helpers */
    307316
    308317    void languageChange();
    309318
    310     void cleanup(); // made public for internal purposes
    311 
    312     // public static stuff
     319    /* made public for internal purposes */
     320    void cleanup();
     321
     322    /* public static stuff */
    313323
    314324    static QIconSet iconSet (const char *aNormal,
     
    345355    void mediaEnumerated (const VBoxMediaList &list);
    346356
    347     // signals emitted when the VirtualBox callback is called by the server
    348     // (not that currently these signals are emitted only when the application
    349     //  is the in the VM selector mode)
     357    /* signals emitted when the VirtualBox callback is called by the server
     358     * (not that currently these signals are emitted only when the application
     359     * is the in the VM selector mode) */
    350360
    351361    void machineStateChanged (const VBoxMachineStateChangeEvent &e);
     
    414424    QStringVector audioDriverTypes;
    415425    QStringVector networkAttachmentTypes;
     426    QStringVector USBDeviceStates;
    416427
    417428    mutable bool detailReportTemplatesReady;
     
    423434inline VBoxGlobal &vboxGlobal() { return VBoxGlobal::instance(); }
    424435
    425 #endif // __VBoxGlobal_h__
    426 
     436#endif /* __VBoxGlobal_h__ */
     437
  • trunk/src/VBox/Frontends/VirtualBox/include/VBoxProblemReporter.h

    r237 r281  
    180180#endif
    181181
     182    void cannotAttachUSBDevice (const CConsole &console, const QString &device);
     183    void cannotDetachUSBDevice (const CConsole &console, const QString &device);
     184
    182185    bool confirmReleaseImage (QWidget*, QString);
    183186
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