VirtualBox

Ignore:
Timestamp:
Jan 13, 2017 7:20:17 AM (8 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:6899: Accessibility support (step 166): A bit of care for UIVMInformationDialog: Doxy/comments.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/runtime/information
Files:
2 edited

Legend:

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

    r63291 r65272  
    6161#include "CVRDEServerInfo.h"
    6262
     63
    6364/* static */
    6465UIVMInformationDialog* UIVMInformationDialog::m_spInstance = 0;
     
    130131    switch (pEvent->type())
    131132    {
    132         /* Handle every Resize and Move we keep track of the geometry. */
     133        /* Handle Resize event to keep track of the geometry: */
    133134        case QEvent::Resize:
    134135        {
     
    140141            break;
    141142        }
     143        /* Handle Move event to keep track of the geometry: */
    142144        case QEvent::Move:
    143145        {
     
    183185
    184186#ifdef VBOX_WS_MAC
    185     /* No window-icon on Mac OX X, because it acts as proxy icon which isn't necessary here. */
     187    /* No window-icon on Mac OS X, because it acts as proxy icon which isn't necessary here. */
    186188    setWindowIcon(QIcon());
    187 #else /* !VBOX_WS_MAC */
    188     /* Assign window-icon(s: */
     189#else
     190    /* Assign window-icons: */
    189191    setWindowIcon(UIIconPool::iconSetFull(":/session_info_32px.png", ":/session_info_16px.png"));
    190 #endif /* !VBOX_WS_MAC */
     192#endif
    191193
    192194    /* Prepare central-widget: */
    193195    prepareCentralWidget();
    194196
    195     /* Configure handlers: */
     197    /* Assign tab-widget page change handler: */
    196198    connect(m_pTabWidget, SIGNAL(currentChanged(int)), this, SLOT(sltHandlePageChanged(int)));
    197199
     
    235237        centralWidget()->layout()->addWidget(m_pTabWidget);
    236238
    237         /* Create tabs: */
    238         /* Create Configuration details tab: */
     239        /* Create Configuration Details tab: */
    239240        UIInformationConfiguration *pInformationConfigurationWidget = new UIInformationConfiguration(this, gpMachine->uisession()->machine(), gpMachine->uisession()->console());
    240241        AssertPtrReturnVoid(pInformationConfigurationWidget);
    241242        {
    242             //pInformationWidget->setItems(items);
    243243            m_tabs.insert(0, pInformationConfigurationWidget);
    244244            m_pTabWidget->addTab(m_tabs.value(0), QString());
    245245        }
    246246
    247         /* Create Runtime information tab: */
     247        /* Create Runtime Information tab: */
    248248        UIInformationRuntime *pInformationRuntimeWidget = new UIInformationRuntime(this, gpMachine->uisession()->machine(), gpMachine->uisession()->console());
    249249        AssertPtrReturnVoid(pInformationRuntimeWidget);
     
    252252            m_pTabWidget->addTab(m_tabs.value(1), QString());
    253253        }
    254         /* Set runtime information tab as default: */
     254
     255        /* Set Runtime Information tab as default: */
    255256        m_pTabWidget->setCurrentIndex(1);
    256257    }
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/information/UIVMInformationDialog.h

    r63291 r65272  
    1919#define ___UIVMInformationDialog_h___
    2020
    21 /* Qt includes: */
    22 
    2321/* GUI includes: */
    2422#include "QIMainWindow.h"
     
    3432class QIDialogButtonBox;
    3533
    36 /** QIMainWindow based dialog providing user with VM details and statistics. */
     34
     35/** QIMainWindow subclass providing user
     36  * with the dialog unifying VM details and statistics. */
    3737class UIVMInformationDialog : public QIWithRetranslateUI<QIMainWindow>
    3838{
     
    4747protected:
    4848
    49     /** Information dialog constructor. */
     49    /** Constructs information dialog for passed @a pMachineWindow. */
    5050    UIVMInformationDialog(UIMachineWindow *pMachineWindow);
    51     /** Information dialog destructor. */
     51    /** Destructs information dialog. */
    5252    ~UIVMInformationDialog();
    5353
     
    5555    virtual bool shouldBeMaximized() const /* override */;
    5656
    57     /** Translation handler. */
     57    /** Handles translation event. */
    5858    void retranslateUi();
    5959
    60     /** Common event-handler. */
     60    /** Handles any Qt @a pEvent. */
    6161    bool event(QEvent *pEvent);
    6262
    6363private slots:
    6464
    65     /** Slot to destroy dialog immediately. */
     65    /** Destroys dialog immediately. */
    6666    void suicide() { delete this; }
    67     /** Slot to handle tab-widget page change. */
     67    /** Handles tab-widget page change. */
    6868    void sltHandlePageChanged(int iIndex);
    6969
    7070private:
    7171
    72     /** General prepare helper. */
     72    /** Prepares all. */
    7373    void prepare();
    74     /** Prepare helper for dialog itself. */
     74    /** Prepares this. */
    7575    void prepareThis();
    76     /** Prepare helper for central-widget. */
     76    /** Prepares central-widget. */
    7777    void prepareCentralWidget();
    78     /** Prepare helper for tab-widget. */
     78    /** Prepares tab-widget. */
    7979    void prepareTabWidget();
    80     /** Prepare helper for @a iTabIndex. */
     80    /** Prepares tab with @a iTabIndex. */
    8181    void prepareTab(int iTabIndex);
    82     /** Prepare helper for button-box. */
     82    /** Prepares button-box. */
    8383    void prepareButtonBox();
    84     /** Load settings helper. */
     84    /** Loads settings. */
    8585    void loadSettings();
    8686
    87     /** Save settings helper. */
     87    /** Saves settings. */
    8888    void saveSettings();
    89     /** General cleanup helper. */
     89    /** Cleanups all. */
    9090    void cleanup();
    9191
    9292    /** @name General variables.
    9393     * @{ */
    94     /** Dialog instance pointer. */
     94    /** Holds the dialog instance. */
    9595    static UIVMInformationDialog *m_spInstance;
    9696    /** @} */
     
    9898    /** @name Widget variables.
    9999     * @{ */
    100     /** Dialog tab-widget. */
     100    /** Holds the dialog tab-widget instance. */
    101101    QITabWidget               *m_pTabWidget;
    102     /** Dialog tabs map. */
     102    /** Holds the map of dialog tab instances. */
    103103    QMap<int, QWidget*>        m_tabs;
    104     /** Dialog button-box. */
     104    /** Holds the dialog button-box instance. */
    105105    QIDialogButtonBox         *m_pButtonBox;
    106     /** machine-window. */
     106    /** Holds the machine-window reference. */
    107107    UIMachineWindow         *m_pMachineWindow;
    108108    /** @} */
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