Changeset 75761 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Nov 27, 2018 9:10:13 AM (6 years ago)
- 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 75 75 { 76 76 /* Translate window title: */ 77 setWindowTitle( tr("%1 - Guest Control").arg(m_strMachineName));77 setWindowTitle(UIGuestControlFileManager::tr("%1 - Guest Control").arg(m_strMachineName)); 78 78 /* Translate buttons: */ 79 79 button(ButtonType_Close)->setText(UIGuestControlFileManager::tr("Close")); -
trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIGuestControlFileManagerLogPanel.cpp
r75425 r75761 71 71 { 72 72 QMenu *menu = createStandardContextMenu(); 73 void sltClear();74 73 75 QAction *pClearAction = menu->addAction( tr("Clear"));74 QAction *pClearAction = menu->addAction(UIGuestControlFileManager::tr("Clear")); 76 75 connect(pClearAction, &QAction::triggered, this, &UIFileManagerLogViewer::sltClear); 77 76 menu->exec(event->globalPos()); -
trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIGuestControlFileManagerOperationsPanel.cpp
r75732 r75761 144 144 if (m_pCancelButton) 145 145 { 146 //m_pCancelButton->setIcon(UIIconPool::iconSet(":/close_16px.png"));147 146 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;}");149 147 m_pCancelButton->setStyleSheet("QToolButton { border: 0px none black; margin: 0px 0px 0px 0px; } "); 150 148 const QSize sh = m_pCancelButton->sizeHint(); -
trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIGuestControlFileManagerSessionPanel.cpp
r75634 r75761 41 41 * UIGuestSessionCreateWidget definition. * 42 42 *********************************************************************************************************************************/ 43 43 /** A QWidget extension containing text entry fields for password and username and buttons to 44 * start/stop a guest session. */ 44 45 class UIGuestSessionCreateWidget : public QIWithRetranslateUI<QWidget> 45 46 { … … 54 55 55 56 UIGuestSessionCreateWidget(QWidget *pParent = 0); 57 /** Disables certain widget after a guest session has been created. */ 56 58 void switchSessionCreateMode(); 59 /** Makes sure certain widgets are enabled so that a guest session can be created. */ 57 60 void switchSessionCloseMode(); 58 61 … … 68 71 69 72 private: 70 void prepareWidgets(); 73 74 void prepareWidgets(); 71 75 QILineEdit *m_pUserNameEdit; 72 76 QILineEdit *m_pPasswordEdit; … … 75 79 QHBoxLayout *m_pMainLayout; 76 80 QCheckBox *m_pShowPasswordCheckBox; 77 78 81 }; 79 82 … … 112 115 { 113 116 m_pMainLayout->addWidget(m_pPasswordEdit, 2); 114 m_pPasswordEdit->setPlaceholderText( "Password");117 m_pPasswordEdit->setPlaceholderText(UIGuestControlFileManager::tr("Password")); 115 118 m_pPasswordEdit->setEchoMode(QLineEdit::Password); 116 119 } … … 119 122 if (m_pShowPasswordCheckBox) 120 123 { 121 m_pShowPasswordCheckBox->setText( "Show Password");124 m_pShowPasswordCheckBox->setText(UIGuestControlFileManager::tr("Show Password")); 122 125 m_pMainLayout->addWidget(m_pShowPasswordCheckBox); 123 126 connect(m_pShowPasswordCheckBox, &QCheckBox::toggled, … … 162 165 if (m_pUserNameEdit) 163 166 { 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")); 178 181 } 179 182 -
trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIGuestControlFileManagerSessionPanel.h
r75425 r75761 27 27 class UIGuestSessionCreateWidget; 28 28 29 /** UI VMLogViewerPanel extension providing GUI to manage logviewer settings. */29 /** UIGuestControlFileManagerPanel extension providing GUI for creating/stopping a guest session. */ 30 30 class UIGuestControlFileManagerSessionPanel : public UIGuestControlFileManagerPanel 31 31 { … … 35 35 36 36 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 /** @} */ 39 42 virtual QString panelName() const /* override */; 40 43 … … 48 51 virtual void prepareWidgets() /* override */; 49 52 virtual void prepareConnections() /* override */; 50 51 /** Handles the translation event. */52 53 void retranslateUi(); 53 54 private slots:55 56 54 57 55 private: -
trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIGuestControlFileManagerSettingsPanel.cpp
r75643 r75761 165 165 { 166 166 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")); 168 169 } 169 170 … … 171 172 { 172 173 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")); 174 176 } 175 177 } -
trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIGuestControlFileManagerSettingsPanel.h
r75644 r75761 29 29 class UIGuestControlFileManagerSettings; 30 30 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. */ 32 33 class UIGuestControlFileManagerSettingsPanel : public UIGuestControlFileManagerPanel 33 34 { … … 63 64 private: 64 65 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; 69 69 UIGuestControlFileManagerSettings *m_pFileManagerSettings; 70 70 }; -
trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIGuestControlFileModel.h
r75480 r75761 41 41 42 42 /** 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(..) */ 44 44 class UIGuestControlFileProxyModel : public QSortFilterProxyModel 45 45 { … … 57 57 58 58 /** UIGuestControlFileModel serves as the model for a file structure. 59 *it supports a tree level hierarchy which can be displayed with60 *QTableView and/or QTreeView. Note the file structure data is not61 *kept by the model but rather by the containing widget which also servers62 * as the interface to functionalitythis 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.*/ 63 63 class UIGuestControlFileModel : public QAbstractItemModel 64 64 { … … 76 76 Qt::ItemFlags flags(const QModelIndex &index) const /* override */; 77 77 QVariant headerData(int section, Qt::Orientation orientation, 78 int role = Qt::DisplayRole) const /* override */;78 int role = Qt::DisplayRole) const /* override */; 79 79 QModelIndex index(int row, int column, 80 80 const QModelIndex &parent = QModelIndex()) const /* override */;
Note:
See TracChangeset
for help on using the changeset viewer.