VirtualBox

Changeset 46650 in vbox


Ignore:
Timestamp:
Jun 19, 2013 11:49:38 AM (11 years ago)
Author:
vboxsync
Message:

FE/Qt: UI status-bar indicator interface: Cleanup (part 2).

Location:
trunk/src/VBox/Frontends/VirtualBox/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIStateIndicator.cpp

    r46648 r46650  
    2626#endif
    2727
    28 /** @clas QIStateIndicator
    29  *
    30  *  The QIStateIndicator class is a simple class that can visually indicate
    31  *  the state of some thing, as described by the state property.
    32  */
    33 
    34 QIStateIndicator::QIStateIndicator(QWidget *pParent /* = 0 */)
    35   : QFrame(pParent)
     28QIStateIndicator::QIStateIndicator(QWidget *pParent /*= 0*/)
     29  : QIWithRetranslateUI<QFrame>(pParent)
    3630  , mState(0)
    3731  , mSize(0, 0)
  • trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIStateIndicator.h

    r46648 r46650  
    2424#include <QHash>
    2525
    26 class QIStateIndicator : public QFrame
     26/* GUI includes: */
     27#include "QIWithRetranslateUI.h"
     28
     29class QIStateIndicator : public QIWithRetranslateUI<QFrame>
    2730{
    2831    Q_OBJECT;
     
    3033public:
    3134
    32     QIStateIndicator (QWidget *pParent = 0);
     35    QIStateIndicator(QWidget *pParent = 0);
    3336    ~QIStateIndicator();
    3437
  • trunk/src/VBox/Frontends/VirtualBox/src/net/UINetworkManagerIndicator.h

    r41461 r46650  
    2525
    2626/* Local includes: */
    27 #include "QIWithRetranslateUI.h"
    2827#include "QIStateIndicator.h"
    2928
     
    4039
    4140/* Network-manager status-bar indicator: */
    42 class UINetworkManagerIndicator : public QIWithRetranslateUI<QIStateIndicator>
     41class UINetworkManagerIndicator : public QIStateIndicator
    4342{
    4443    Q_OBJECT;
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIIndicatorsPool.cpp

    r46582 r46650  
    2525#include "VBoxGlobal.h"
    2626#include "UIMachineDefs.h"
    27 #include "QIWithRetranslateUI.h"
    2827#include "UIConverter.h"
    2928
     
    4544#include <iprt/time.h>
    4645
    47 class UIIndicatorHardDisks : public QIWithRetranslateUI<QIStateIndicator>
     46class UIIndicatorHardDisks : public QIStateIndicator
    4847{
    4948    Q_OBJECT;
     
    5251
    5352    UIIndicatorHardDisks(CSession &session)
    54       : QIWithRetranslateUI<QIStateIndicator>()
    55       , m_session(session)
     53      : m_session(session)
    5654    {
    5755        setStateIcon(KDeviceActivity_Idle, QPixmap(":/hd_16px.png"));
     
    112110};
    113111
    114 class UIIndicatorOpticalDisks : public QIWithRetranslateUI<QIStateIndicator>
     112class UIIndicatorOpticalDisks : public QIStateIndicator
    115113{
    116114    Q_OBJECT;
     
    119117
    120118    UIIndicatorOpticalDisks(CSession &session)
    121       : QIWithRetranslateUI<QIStateIndicator>()
    122       , m_session(session)
     119      : m_session(session)
    123120    {
    124121        setStateIcon(KDeviceActivity_Idle, QPixmap(":/cd_16px.png"));
     
    183180};
    184181
    185 class UIIndicatorFloppyDisks : public QIWithRetranslateUI<QIStateIndicator>
     182class UIIndicatorFloppyDisks : public QIStateIndicator
    186183{
    187184    Q_OBJECT;
     
    190187
    191188    UIIndicatorFloppyDisks(CSession &session)
    192       : QIWithRetranslateUI<QIStateIndicator>()
    193       , m_session(session)
     189      : m_session(session)
    194190    {
    195191        setStateIcon(KDeviceActivity_Idle, QPixmap(":/fd_16px.png"));
     
    254250};
    255251
    256 class UIIndicatorNetworkAdapters : public QIWithRetranslateUI<QIStateIndicator>
     252class UIIndicatorNetworkAdapters : public QIStateIndicator
    257253{
    258254    Q_OBJECT;
     
    261257
    262258    UIIndicatorNetworkAdapters(CSession &session)
    263       : QIWithRetranslateUI<QIStateIndicator>()
    264       , m_session(session)
     259      : m_session(session)
    265260      , m_pUpdateTimer(new QTimer(this))
    266261    {
     
    361356};
    362357
    363 class UIIndicatorUSBDevices : public QIWithRetranslateUI<QIStateIndicator>
     358class UIIndicatorUSBDevices : public QIStateIndicator
    364359{
    365360    Q_OBJECT;
     
    368363
    369364    UIIndicatorUSBDevices(CSession &session)
    370       : QIWithRetranslateUI<QIStateIndicator>()
    371       , m_session(session)
     365      : m_session(session)
    372366    {
    373367        setStateIcon(KDeviceActivity_Idle, QPixmap(":/usb_16px.png"));
     
    419413};
    420414
    421 class UIIndicatorSharedFolders : public QIWithRetranslateUI<QIStateIndicator>
     415class UIIndicatorSharedFolders : public QIStateIndicator
    422416{
    423417    Q_OBJECT;
     
    426420
    427421    UIIndicatorSharedFolders(CSession &session)
    428       : QIWithRetranslateUI<QIStateIndicator>()
    429       , m_session(session)
     422      : m_session(session)
    430423    {
    431424        setStateIcon(KDeviceActivity_Idle, QPixmap(":/shared_folder_16px.png"));
     
    495488};
    496489
    497 class UIIndicatorVideoCapture : public QIWithRetranslateUI<QIStateIndicator>
     490class UIIndicatorVideoCapture : public QIStateIndicator
    498491{
    499492    Q_OBJECT;
     
    511504    /* Constructor: */
    512505    UIIndicatorVideoCapture(CSession &session)
    513         : QIWithRetranslateUI<QIStateIndicator>()
    514         , m_session(session)
     506        : m_session(session)
    515507        , m_pUpdateTimer(new QTimer(this))
    516508    {
     
    587579};
    588580
    589 class UIIndicatorVirtualization : public QIWithRetranslateUI<QIStateIndicator>
     581class UIIndicatorVirtualization : public QIStateIndicator
    590582{
    591583    Q_OBJECT;
     
    594586
    595587    UIIndicatorVirtualization(CSession &session)
    596       : QIWithRetranslateUI<QIStateIndicator>()
    597       , m_session(session)
     588      : m_session(session)
    598589    {
    599590        setStateIcon(0, QPixmap(":/vtx_amdv_disabled_16px.png"));
     
    663654};
    664655
    665 class UIIndicatorMouse : public QIWithRetranslateUI<QIStateIndicator>
     656class UIIndicatorMouse : public QIStateIndicator
    666657{
    667658    Q_OBJECT;
     
    670661
    671662    UIIndicatorMouse(CSession &session)
    672       : QIWithRetranslateUI<QIStateIndicator>()
    673       , m_session(session)
     663      : m_session(session)
    674664    {
    675665        setStateIcon(0, QPixmap(":/mouse_disabled_16px.png"));
     
    715705};
    716706
    717 class UIIndicatorHostkey : public QIWithRetranslateUI<QIStateIndicator>
     707class UIIndicatorHostkey : public QIStateIndicator
    718708{
    719709    Q_OBJECT;
     
    722712
    723713    UIIndicatorHostkey(CSession &session)
    724       : QIWithRetranslateUI<QIStateIndicator>()
    725       , m_session(session)
     714      : m_session(session)
    726715    {
    727716        setStateIcon(0, QPixmap(":/hostkey_16px.png"));
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