- Timestamp:
- Mar 1, 2019 1:07:07 PM (6 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 17 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIFileManager.cpp
r76977 r77528 17 17 18 18 /* Qt includes: */ 19 #include <QAbstractItemModel>20 #include <QCheckBox>21 19 #include <QHBoxLayout> 22 #include <QHeaderView>23 20 #include <QPushButton> 24 21 #include <QSplitter> 25 #include <QTableWidget>26 #include <QTextEdit>27 22 28 23 /* GUI includes: */ 29 #include "QILabel.h"30 #include "QILineEdit.h"31 #include "QITabWidget.h"32 24 #include "QITreeWidget.h" 33 #include "QIWithRetranslateUI.h"34 25 #include "UIActionPool.h" 35 26 #include "UIErrorString.h" 36 27 #include "UIExtraDataManager.h" 37 28 #include "UIIconPool.h" 38 #include "UIGuestControlConsole.h"39 29 #include "UIFileManager.h" 40 30 #include "UIFileManagerSessionPanel.h" … … 43 33 #include "UIFileManagerOperationsPanel.h" 44 34 #include "UIFileManagerGuestTable.h" 35 #include "UIFileManagerHostTable.h" 45 36 #include "UIGuestControlInterface.h" 46 #include "UIFileManagerHostTable.h"47 37 #include "UIToolBar.h" 48 38 #include "VBoxGlobal.h" … … 50 40 /* COM includes: */ 51 41 #include "CFsObjInfo.h" 52 #include "CGuest.h"53 42 #include "CGuestDirectory.h" 54 43 #include "CGuestFsObjInfo.h" 55 #include "CGuestProcess.h"56 44 #include "CGuestSession.h" 57 45 #include "CGuestSessionStateChangedEvent.h" … … 68 56 69 57 UIFileOperationsList(QWidget *pParent = 0); 70 71 private:72 58 }; 73 59 -
trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIFileManager.h
r76950 r77528 41 41 class QHBoxLayout; 42 42 class QSplitter; 43 class QTableWidget;44 43 class QTextEdit; 45 44 class QVBoxLayout; 46 class QITabWidget;47 45 class CGuestSessionStateChangedEvent; 48 46 class UIActionPool; 49 class UIFileOperationsList;50 class UIGuestControlConsole;51 class UIGuestControlInterface;52 47 class UIDialogPanel; 53 48 class UIFileManagerLogPanel; … … 57 52 class UIFileManagerGuestTable; 58 53 class UIFileManagerHostTable; 59 class UIGuestSessionCreateWidget;60 54 class UIToolBar; 61 55 … … 90 84 Q_OBJECT; 91 85 86 signals: 87 88 void sigSetCloseButtonShortCut(QKeySequence); 89 92 90 public: 93 91 … … 101 99 UIToolBar *toolbar() const { return m_pToolBar; } 102 100 #endif 103 104 signals:105 106 void sigSetCloseButtonShortCut(QKeySequence);107 101 108 102 protected: … … 178 172 UIToolBar *m_pVerticalToolBar; 179 173 180 UIGuestControlConsole *m_pConsole;181 UIGuestControlInterface *m_pControlInterface;182 174 UIFileManagerGuestTable *m_pGuestFileTable; 183 175 UIFileManagerHostTable *m_pHostFileTable; -
trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIFileManagerDialog.h
r76581 r77528 59 59 }; 60 60 61 62 61 /** QIManagerDialog extension providing GUI with the dialog displaying file manager releated logs. */ 63 62 class UIFileManagerDialog : public QIWithRetranslateUI<QIManagerDialog> -
trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIFileManagerGuestTable.h
r76626 r77528 42 42 Q_OBJECT; 43 43 44 signals: 45 46 void sigNewFileOperation(const CProgress &comProgress); 47 44 48 public: 45 49 … … 49 53 void copyHostToGuest(const QStringList &hostSourcePathList, 50 54 const QString &strDestination = QString()); 51 52 signals:53 54 void sigNewFileOperation(const CProgress &comProgress);55 55 56 56 protected: -
trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIFileManagerHostTable.h
r76581 r77528 69 69 static QString permissionString(QFileDevice::Permissions permissions); 70 70 void prepareActionConnections(); 71 72 71 }; 73 72 -
trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIFileManagerOperationsPanel.cpp
r77158 r77528 49 49 Q_OBJECT; 50 50 51 signals: 52 53 void sigProgressComplete(QUuid progressId); 54 void sigProgressFail(QString strErrorString, FileManagerLogType eLogType); 55 void sigFocusIn(QWidget *pWidget); 56 void sigFocusOut(QWidget *pWidget); 57 51 58 public: 52 59 … … 55 62 bool isCompleted() const; 56 63 bool isCanceled() const; 57 58 signals:59 60 void sigProgressComplete(QUuid progressId);61 void sigProgressFail(QString strErrorString, FileManagerLogType eLogType);62 void sigFocusIn(QWidget *pWidget);63 void sigFocusOut(QWidget *pWidget);64 64 65 65 protected: … … 86 86 OperationStatus_Invalid, 87 87 OperationStatus_Max 88 89 88 }; 89 90 90 void prepare(); 91 91 void prepareWidgets(); -
trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIFileManagerOperationsPanel.h
r76950 r77528 46 46 Q_OBJECT; 47 47 48 signals: 49 50 void sigFileOperationComplete(QUuid progressId); 51 void sigFileOperationFail(QString strErrorString, FileManagerLogType eLogType); 52 48 53 public: 49 54 … … 51 56 virtual QString panelName() const /* override */; 52 57 void addNewProgress(const CProgress &comProgress); 53 54 signals:55 56 void sigFileOperationComplete(QUuid progressId);57 void sigFileOperationFail(QString strErrorString, FileManagerLogType eLogType);58 58 59 59 protected: … … 90 90 QSet<QWidget*> m_widgetSet; 91 91 /** @} */ 92 93 94 95 92 }; 96 93 -
trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIFileManagerOptionsPanel.cpp
r76950 r77528 17 17 18 18 /* Qt includes: */ 19 #include <QComboBox>20 19 #include <QHBoxLayout> 21 #include <QFontDatabase>22 #include <QFontDialog>23 20 #include <QCheckBox> 24 #include <QLabel>25 #include <QSpinBox>26 21 27 22 /* GUI includes: */ 28 23 #include "QIToolButton.h" 29 #include "UIIconPool.h"30 24 #include "UIFileManager.h" 31 25 #include "UIFileManagerOptionsPanel.h" 32 33 26 34 27 UIFileManagerOptionsPanel::UIFileManagerOptionsPanel(QWidget *pParent, UIFileManagerOptions *pFileManagerOptions) -
trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIFileManagerOptionsPanel.h
r76950 r77528 27 27 /* Forward declarations: */ 28 28 class QCheckBox; 29 class QSpinBox;30 29 class QLabel; 31 30 class QIToolButton; … … 38 37 Q_OBJECT; 39 38 39 signals: 40 41 void sigOptionsChanged(); 42 40 43 public: 41 44 … … 45 48 * when file manager options have been changed by other means and this panel needs to adapt. */ 46 49 void update(); 47 48 signals:49 50 void sigOptionsChanged();51 50 52 51 protected: -
trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIFileManagerSessionPanel.cpp
r77171 r77528 19 19 #include <QCheckBox> 20 20 #include <QHBoxLayout> 21 #include <QMenu>22 21 #include <QPushButton> 23 #include <QSpinBox>24 #include <QTextEdit>25 22 26 23 /* GUI includes: */ 27 24 #include "QILineEdit.h" 28 #include "QIToolButton.h"29 #include "UIIconPool.h"30 #include "UIFileManager.h"31 25 #include "UIFileManagerSessionPanel.h" 32 33 26 34 27 /********************************************************************************************************************************* … … 103 96 { 104 97 m_pMainLayout->addWidget(m_pUserNameEdit, 2); 105 m_pUserNameEdit->setPlaceholderText( "User Name");98 m_pUserNameEdit->setPlaceholderText(QApplication::translate("UIFileManager", "User Name")); 106 99 } 107 100 … … 110 103 { 111 104 m_pMainLayout->addWidget(m_pPasswordEdit, 2); 112 m_pPasswordEdit->setPlaceholderText( UIFileManager::tr("Password"));105 m_pPasswordEdit->setPlaceholderText(QApplication::translate("UIFileManager", "Password")); 113 106 m_pPasswordEdit->setEchoMode(QLineEdit::Password); 114 107 } … … 117 110 if (m_pShowPasswordCheckBox) 118 111 { 119 m_pShowPasswordCheckBox->setText( UIFileManager::tr("Show Password"));112 m_pShowPasswordCheckBox->setText(QApplication::translate("UIFileManager", "Show Password")); 120 113 m_pMainLayout->addWidget(m_pShowPasswordCheckBox); 121 114 connect(m_pShowPasswordCheckBox, &QCheckBox::toggled, … … 161 154 if (m_pUserNameEdit) 162 155 { 163 m_pUserNameEdit->setToolTip( UIFileManager::tr("User name to authenticate session creation"));164 m_pUserNameEdit->setPlaceholderText( UIFileManager::tr("User Name"));165 166 } 167 if (m_pPasswordEdit) 168 { 169 m_pPasswordEdit->setToolTip( UIFileManager::tr("Password to authenticate session creation"));170 m_pPasswordEdit->setPlaceholderText( UIFileManager::tr("Password"));171 } 172 173 if (m_pCreateButton) 174 m_pCreateButton->setText( UIFileManager::tr("Create Session"));175 if (m_pCloseButton) 176 m_pCloseButton->setText( UIFileManager::tr("Close Session"));156 m_pUserNameEdit->setToolTip(QApplication::translate("UIFileManager", "User name to authenticate session creation")); 157 m_pUserNameEdit->setPlaceholderText(QApplication::translate("UIFileManager", "User Name")); 158 159 } 160 if (m_pPasswordEdit) 161 { 162 m_pPasswordEdit->setToolTip(QApplication::translate("UIFileManager", "Password to authenticate session creation")); 163 m_pPasswordEdit->setPlaceholderText(QApplication::translate("UIFileManager", "Password")); 164 } 165 166 if (m_pCreateButton) 167 m_pCreateButton->setText(QApplication::translate("UIFileManager", "Create Session")); 168 if (m_pCloseButton) 169 m_pCloseButton->setText(QApplication::translate("UIFileManager", "Close Session")); 177 170 } 178 171 -
trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIFileManagerSessionPanel.h
r76950 r77528 26 26 27 27 /* Forward declarations: */ 28 class QTextEdit;29 class UIFileManager;30 28 class UIGuestSessionCreateWidget; 31 29 … … 34 32 { 35 33 Q_OBJECT; 34 35 signals: 36 37 void sigCreateSession(QString strUserName, QString strPassword); 38 void sigCloseSession(); 36 39 37 40 public: … … 44 47 /** @} */ 45 48 virtual QString panelName() const /* override */; 46 47 signals:48 49 void sigCreateSession(QString strUserName, QString strPassword);50 void sigCloseSession();51 49 52 50 protected: -
trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIFileManagerTable.cpp
r77286 r77528 20 20 #include <QComboBox> 21 21 #include <QCheckBox> 22 #include <QDateTime>23 #include <QDir>24 22 #include <QHeaderView> 25 23 #include <QItemDelegate> 26 24 #include <QGridLayout> 27 #include <QMenu>28 #include <QSortFilterProxyModel>29 25 #include <QTextEdit> 30 #include <QPushButton>31 26 32 27 /* GUI includes: */ … … 35 30 #include "QILabel.h" 36 31 #include "QILineEdit.h" 37 #include "QIMessageBox.h"38 32 #include "VBoxGlobal.h" 39 33 #include "UIActionPool.h" … … 98 92 99 93 virtual void drawFocus ( QPainter * /*painter*/, const QStyleOptionViewItem & /*option*/, const QRect & /*rect*/ ) const {} 100 101 94 }; 102 95 … … 120 113 121 114 QILineEdit *m_pLineEdit; 122 123 115 }; 124 116 … … 144 136 QCheckBox *m_pAskNextTimeCheckBox; 145 137 QILabel *m_pQuestionLabel; 146 147 138 }; 148 139 -
trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIFileManagerTable.h
r76581 r77528 104 104 }; 105 105 106 107 106 /** A QIDialog child to display properties of a file object */ 108 107 class UIPropertiesDialog : public QIDialog … … 123 122 QString m_strProperty; 124 123 }; 125 126 124 127 125 /** This class serves a base class for file table. Currently a guest version -
trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIGuestControlTreeItem.h
r76581 r77528 110 110 void initProcessSubTree(); 111 111 CGuestSession m_comGuestSession; 112 113 112 }; 114 113 … … 151 150 152 151 #endif /* !FEQT_INCLUDED_SRC_guestctrl_UIGuestControlTreeItem_h */ 153 -
trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIGuestProcessControlDialog.h
r76581 r77528 34 34 35 35 /* Forward declarations: */ 36 class QDialogButtonBox;37 class QVBoxLayout;38 36 class UIActionPool; 39 37 class UIGuestProcessControlDialog; 40 38 class CGuest; 41 42 39 43 40 /** QIManagerDialogFactory extension used as a factory for the Guest Control dialog. */ -
trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIGuestProcessControlWidget.cpp
r76606 r77528 158 158 } 159 159 } 160 161 160 }; 162 161 -
trunk/src/VBox/Frontends/VirtualBox/src/medium/viso/UIVisoContentBrowser.cpp
r77519 r77528 72 72 }; 73 73 74 74 75 /********************************************************************************************************************************* 75 76 * UIVisoContentTableView implementation. * … … 111 112 } 112 113 114 113 115 /********************************************************************************************************************************* 114 116 * UIVisoContentTreeProxyModel implementation. * … … 137 139 return false; 138 140 } 141 139 142 140 143 /*********************************************************************************************************************************
Note:
See TracChangeset
for help on using the changeset viewer.