VirtualBox

Changeset 65254 in vbox


Ignore:
Timestamp:
Jan 12, 2017 10:57:44 AM (8 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:6899: Accessibility support (step 163): UIIndicatorsPool: Provide indicators with own type.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIIndicatorsPool.cpp

    r63567 r65254  
    6060
    6161
    62 
    6362/** QIStateStatusBarIndicator extension for Runtime UI. */
    6463class UISessionStateStatusBarIndicator : public QIWithRetranslateUI<QIStateStatusBarIndicator>
     
    6968
    7069    /** Constructor which remembers passed @a session object. */
    71     UISessionStateStatusBarIndicator(UISession *pSession) : m_pSession(pSession) {}
     70    UISessionStateStatusBarIndicator(IndicatorType enmType, UISession *pSession)
     71        : m_enmType(enmType)
     72        , m_pSession(pSession)
     73    {}
     74
     75    /** Returns the indicator type. */
     76    IndicatorType type() const { return m_enmType; }
    7277
    7378    /** Abstract update routine. */
     
    7580
    7681protected:
     82
     83    /** Holds the indicator type. */
     84    const IndicatorType m_enmType;
    7785
    7886    /** Holds the session UI reference. */
     
    8997    /** Constructor, passes @a pSession to the UISessionStateStatusBarIndicator constructor. */
    9098    UIIndicatorHardDrive(UISession *pSession)
    91         : UISessionStateStatusBarIndicator(pSession)
     99        : UISessionStateStatusBarIndicator(IndicatorType_HardDisks, pSession)
    92100    {
    93101        /* Assign state-icons: */
     
    162170    /** Constructor, passes @a pSession to the UISessionStateStatusBarIndicator constructor. */
    163171    UIIndicatorOpticalDisks(UISession *pSession)
    164         : UISessionStateStatusBarIndicator(pSession)
     172        : UISessionStateStatusBarIndicator(IndicatorType_OpticalDisks, pSession)
    165173    {
    166174        /* Assign state-icons: */
     
    239247    /** Constructor, passes @a pSession to the UISessionStateStatusBarIndicator constructor. */
    240248    UIIndicatorFloppyDisks(UISession *pSession)
    241         : UISessionStateStatusBarIndicator(pSession)
     249        : UISessionStateStatusBarIndicator(IndicatorType_FloppyDisks, pSession)
    242250    {
    243251        /* Assign state-icons: */
     
    316324    /** Constructor, passes @a pSession to the UISessionStateStatusBarIndicator constructor. */
    317325    UIIndicatorNetwork(UISession *pSession)
    318         : UISessionStateStatusBarIndicator(pSession)
     326        : UISessionStateStatusBarIndicator(IndicatorType_Network, pSession)
    319327        , m_pTimerAutoUpdate(0)
    320328        , m_cMaxNetworkAdapters(0)
     
    466474    /** Constructor, passes @a pSession to the UISessionStateStatusBarIndicator constructor. */
    467475    UIIndicatorUSB(UISession *pSession)
    468         : UISessionStateStatusBarIndicator(pSession)
     476        : UISessionStateStatusBarIndicator(IndicatorType_USB, pSession)
    469477    {
    470478        /* Assign state-icons: */
     
    532540    /** Constructor, passes @a pSession to the UISessionStateStatusBarIndicator constructor. */
    533541    UIIndicatorSharedFolders(UISession *pSession)
    534         : UISessionStateStatusBarIndicator(pSession)
     542        : UISessionStateStatusBarIndicator(IndicatorType_SharedFolders, pSession)
    535543    {
    536544        /* Assign state-icons: */
     
    603611    /** Constructor, passes @a pSession to the UISessionStateStatusBarIndicator constructor. */
    604612    UIIndicatorDisplay(UISession *pSession)
    605         : UISessionStateStatusBarIndicator(pSession)
     613        : UISessionStateStatusBarIndicator(IndicatorType_Display, pSession)
    606614    {
    607615        /* Assign state-icons: */
     
    685693    /** Constructor, passes @a pSession to the UISessionStateStatusBarIndicator constructor. */
    686694    UIIndicatorVideoCapture(UISession *pSession)
    687         : UISessionStateStatusBarIndicator(pSession)
     695        : UISessionStateStatusBarIndicator(IndicatorType_VideoCapture, pSession)
    688696        , m_pAnimation(0)
    689697        , m_dRotationAngle(0)
     
    807815    /** Constructor, passes @a pSession to the UISessionStateStatusBarIndicator constructor. */
    808816    UIIndicatorFeatures(UISession *pSession)
    809         : UISessionStateStatusBarIndicator(pSession)
     817        : UISessionStateStatusBarIndicator(IndicatorType_Features, pSession)
    810818    {
    811819        /* Assign state-icons: */
     
    892900    /** Constructor, using @a pSession for state-update routine. */
    893901    UIIndicatorMouse(UISession *pSession)
    894         : UISessionStateStatusBarIndicator(pSession)
     902        : UISessionStateStatusBarIndicator(IndicatorType_Mouse, pSession)
    895903    {
    896904        /* Assign state-icons: */
     
    952960    /** Constructor, using @a pSession for state-update routine. */
    953961    UIIndicatorKeyboard(UISession *pSession)
    954         : UISessionStateStatusBarIndicator(pSession)
     962        : UISessionStateStatusBarIndicator(IndicatorType_Keyboard, pSession)
    955963    {
    956964        /* Assign state-icons: */
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