VirtualBox

Changeset 75761 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Nov 27, 2018 9:10:13 AM (6 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:6699. Some tranlation and style corrections

Location:
trunk/src/VBox/Frontends/VirtualBox/src/guestctrl
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIGuestControlFileManagerDialog.cpp

    r75309 r75761  
    7575{
    7676    /* Translate window title: */
    77     setWindowTitle(tr("%1 - Guest Control").arg(m_strMachineName));
     77    setWindowTitle(UIGuestControlFileManager::tr("%1 - Guest Control").arg(m_strMachineName));
    7878    /* Translate buttons: */
    7979    button(ButtonType_Close)->setText(UIGuestControlFileManager::tr("Close"));
  • trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIGuestControlFileManagerLogPanel.cpp

    r75425 r75761  
    7171{
    7272    QMenu *menu = createStandardContextMenu();
    73     void sltClear();
    7473
    75     QAction *pClearAction = menu->addAction(tr("Clear"));
     74    QAction *pClearAction = menu->addAction(UIGuestControlFileManager::tr("Clear"));
    7675    connect(pClearAction, &QAction::triggered, this, &UIFileManagerLogViewer::sltClear);
    7776    menu->exec(event->globalPos());
  • trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIGuestControlFileManagerOperationsPanel.cpp

    r75732 r75761  
    144144    if (m_pCancelButton)
    145145    {
    146         //m_pCancelButton->setIcon(UIIconPool::iconSet(":/close_16px.png"));
    147146        m_pCancelButton->setIcon(QApplication::style()->standardIcon(QStyle::SP_DockWidgetCloseButton));
    148         //m_pCancelButton->setStyleSheet("QToolButton { border: 0px none black; margin: 0px 0px 0px 0px; } QToolButton::menu-indicator {image: none;}");
    149147        m_pCancelButton->setStyleSheet("QToolButton { border: 0px none black; margin: 0px 0px 0px 0px; } ");
    150148        const QSize sh = m_pCancelButton->sizeHint();
  • trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIGuestControlFileManagerSessionPanel.cpp

    r75634 r75761  
    4141*   UIGuestSessionCreateWidget definition.                                                                                   *
    4242*********************************************************************************************************************************/
    43 
     43/** A QWidget extension containing text entry fields for password and username and buttons to
     44 *  start/stop a guest session. */
    4445class UIGuestSessionCreateWidget : public QIWithRetranslateUI<QWidget>
    4546{
     
    5455
    5556    UIGuestSessionCreateWidget(QWidget *pParent = 0);
     57    /** Disables certain widget after a guest session has been created. */
    5658    void switchSessionCreateMode();
     59    /** Makes sure certain widgets are enabled so that a guest session can be created. */
    5760    void switchSessionCloseMode();
    5861
     
    6871
    6972private:
    70     void         prepareWidgets();
     73
     74    void          prepareWidgets();
    7175    QILineEdit   *m_pUserNameEdit;
    7276    QILineEdit   *m_pPasswordEdit;
     
    7579    QHBoxLayout  *m_pMainLayout;
    7680    QCheckBox    *m_pShowPasswordCheckBox;
    77 
    7881};
    7982
     
    112115    {
    113116        m_pMainLayout->addWidget(m_pPasswordEdit, 2);
    114         m_pPasswordEdit->setPlaceholderText("Password");
     117        m_pPasswordEdit->setPlaceholderText(UIGuestControlFileManager::tr("Password"));
    115118        m_pPasswordEdit->setEchoMode(QLineEdit::Password);
    116119    }
     
    119122    if (m_pShowPasswordCheckBox)
    120123    {
    121         m_pShowPasswordCheckBox->setText("Show Password");
     124        m_pShowPasswordCheckBox->setText(UIGuestControlFileManager::tr("Show Password"));
    122125        m_pMainLayout->addWidget(m_pShowPasswordCheckBox);
    123126        connect(m_pShowPasswordCheckBox, &QCheckBox::toggled,
     
    162165    if (m_pUserNameEdit)
    163166    {
    164         m_pUserNameEdit->setToolTip(QApplication::translate("UIGuestControlFileManager", "User name to authenticate session creation"));
    165         m_pUserNameEdit->setPlaceholderText(QApplication::translate("UIGuestControlFileManager", "User Name"));
    166 
    167     }
    168     if (m_pPasswordEdit)
    169     {
    170         m_pPasswordEdit->setToolTip(QApplication::translate("UIGuestControlFileManager", "Password to authenticate session creation"));
    171         m_pPasswordEdit->setPlaceholderText(QApplication::translate("UIGuestControlFileManager", "Password"));
    172     }
    173 
    174     if (m_pCreateButton)
    175         m_pCreateButton->setText(QApplication::translate("UIGuestControlFileManager", "Create Session"));
    176     if (m_pCloseButton)
    177         m_pCloseButton->setText(QApplication::translate("UIGuestControlFileManager", "Close Session"));
     167        m_pUserNameEdit->setToolTip(UIGuestControlFileManager::tr("User name to authenticate session creation"));
     168        m_pUserNameEdit->setPlaceholderText(UIGuestControlFileManager::tr("User Name"));
     169
     170    }
     171    if (m_pPasswordEdit)
     172    {
     173        m_pPasswordEdit->setToolTip(UIGuestControlFileManager::tr("Password to authenticate session creation"));
     174        m_pPasswordEdit->setPlaceholderText(UIGuestControlFileManager::tr("Password"));
     175    }
     176
     177    if (m_pCreateButton)
     178        m_pCreateButton->setText(UIGuestControlFileManager::tr("Create Session"));
     179    if (m_pCloseButton)
     180        m_pCloseButton->setText(UIGuestControlFileManager::tr("Close Session"));
    178181}
    179182
  • trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIGuestControlFileManagerSessionPanel.h

    r75425 r75761  
    2727class UIGuestSessionCreateWidget;
    2828
    29 /** UIVMLogViewerPanel extension providing GUI to manage logviewer settings. */
     29/** UIGuestControlFileManagerPanel extension providing GUI for creating/stopping a guest session. */
    3030class UIGuestControlFileManagerSessionPanel : public UIGuestControlFileManagerPanel
    3131{
     
    3535
    3636    UIGuestControlFileManagerSessionPanel(UIGuestControlFileManager *pManagerWidget, QWidget *pParent);
    37     void switchSessionCloseMode();
    38     void switchSessionCreateMode();
     37    /** @name Enable/disable member widget wrt. guest session status.
     38      * @{ */
     39        void switchSessionCloseMode();
     40        void switchSessionCreateMode();
     41    /** @} */
    3942    virtual QString panelName() const /* override */;
    4043
     
    4851    virtual void prepareWidgets() /* override */;
    4952    virtual void prepareConnections() /* override */;
    50 
    51     /** Handles the translation event. */
    5253    void retranslateUi();
    53 
    54 private slots:
    55 
    5654
    5755private:
  • trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIGuestControlFileManagerSettingsPanel.cpp

    r75643 r75761  
    165165    {
    166166        m_pDeleteConfirmationCheckBox->setText(UIGuestControlFileManager::tr("Ask before delete"));
    167         m_pDeleteConfirmationCheckBox->setToolTip(UIGuestControlFileManager::tr("List directories before files"));
     167        m_pDeleteConfirmationCheckBox->setToolTip(UIGuestControlFileManager::tr("Show a confirmation dialog "
     168                                                                                "before deleting files and directories"));
    168169    }
    169170
     
    171172    {
    172173        m_pHumanReabableSizesCheckBox->setText(UIGuestControlFileManager::tr("Human readable sizes"));
    173         m_pHumanReabableSizesCheckBox->setToolTip(UIGuestControlFileManager::tr("List directories before files"));
     174        m_pHumanReabableSizesCheckBox->setToolTip(UIGuestControlFileManager::tr("Show file/directory sizes in human "
     175                                                                                "readable format rather than in bytes"));
    174176    }
    175177}
  • trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIGuestControlFileManagerSettingsPanel.h

    r75644 r75761  
    2929class UIGuestControlFileManagerSettings;
    3030
    31 /** UIVMLogViewerPanel extension providing GUI to manage logviewer settings. */
     31/** UIGuestControlFileManagerPanel extension to change file manager options. It directly
     32 *  modifies the options through the passed UIGuestControlFileManagerOptions instance. */
    3233class UIGuestControlFileManagerSettingsPanel : public UIGuestControlFileManagerPanel
    3334{
     
    6364private:
    6465
    65     QCheckBox          *m_pListDirectoriesOnTopCheckBox;
    66     QCheckBox          *m_pDeleteConfirmationCheckBox;
    67     QCheckBox          *m_pHumanReabableSizesCheckBox;
    68 
     66    QCheckBox  *m_pListDirectoriesOnTopCheckBox;
     67    QCheckBox  *m_pDeleteConfirmationCheckBox;
     68    QCheckBox  *m_pHumanReabableSizesCheckBox;
    6969    UIGuestControlFileManagerSettings *m_pFileManagerSettings;
    7070};
  • trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIGuestControlFileModel.h

    r75480 r75761  
    4141
    4242/** A QSortFilterProxyModel extension used in file tables. Modifies some
    43   * of the base class behavior like lessThan(..) */
     43 * of the base class behavior like lessThan(..) */
    4444class UIGuestControlFileProxyModel : public QSortFilterProxyModel
    4545{
     
    5757
    5858/** UIGuestControlFileModel serves as the model for a file structure.
    59   * it supports a tree level hierarchy which can be displayed with
    60   * QTableView and/or QTreeView. Note the file structure data is not
    61   * kept by the model but rather by the containing widget which also servers
    62   * as the interface to functionality this model provides.*/
     59 * it supports a tree level hierarchy which can be displayed with
     60 * QTableView and/or QTreeView. Note the file structure data is not
     61 * kept by the model but rather by the containing widget which also servers
     62 *  as the interface to functionality that this model provides.*/
    6363class UIGuestControlFileModel : public QAbstractItemModel
    6464{
     
    7676    Qt::ItemFlags  flags(const QModelIndex &index) const /* override */;
    7777    QVariant       headerData(int section, Qt::Orientation orientation,
    78     int role = Qt::DisplayRole) const /* override */;
     78                              int role = Qt::DisplayRole) const /* override */;
    7979    QModelIndex    index(int row, int column,
    8080                      const QModelIndex &parent = QModelIndex()) const /* override */;
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