Changeset 72151 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- May 7, 2018 5:26:23 PM (7 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/runtime/guestctrl
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/guestctrl/UIGuestControlFileManager.h
r71693 r72151 49 49 50 50 51 /** QWidget extension 52 * providing GUI with guest session information and control tab in session-information window. */ 51 /** A QWidget extension. it includes a QWidget extension for initiating a guest session 52 * one host and one guest file table views, a log viewer 53 * and some other file manager related widgets. */ 53 54 class UIGuestControlFileManager : public QIWithRetranslateUI<QWidget> 54 55 { … … 100 101 QStringList getFsObjInfoStringList(const T &fsObjectInfo) const; 101 102 102 const int m_iMaxRecursionDepth;103 CGuest m_comGuest;104 CGuestSession m_comGuestSession;105 QVBoxLayout *m_pMainLayout;106 QSplitter *m_pVerticalSplitter;107 QTextEdit *m_pLogOutput;108 UIToolBar *m_pToolBar;109 QAction *m_pCopyGuestToHost;110 QAction *m_pCopyHostToGuest;111 QWidget *m_pFileTableContainerWidget;112 QHBoxLayout *m_pFileTableContainerLayout;113 QITabWidget *m_pTabWidget;103 const int m_iMaxRecursionDepth; 104 CGuest m_comGuest; 105 CGuestSession m_comGuestSession; 106 QVBoxLayout *m_pMainLayout; 107 QSplitter *m_pVerticalSplitter; 108 QTextEdit *m_pLogOutput; 109 UIToolBar *m_pToolBar; 110 QAction *m_pCopyGuestToHost; 111 QAction *m_pCopyHostToGuest; 112 QWidget *m_pFileTableContainerWidget; 113 QHBoxLayout *m_pFileTableContainerLayout; 114 QITabWidget *m_pTabWidget; 114 115 115 116 UIFileOperationsList *m_pFileOperationsList; … … 117 118 UIGuestControlInterface *m_pControlInterface; 118 119 /* m_pSessionCreateWidget is a QWidget extension enabling user to start/stop 119 * a Guest Control session . */120 * a Guest Control session with password/username fields etc.. */ 120 121 UIGuestSessionCreateWidget *m_pSessionCreateWidget; 121 122 UIGuestFileTable *m_pGuestFileTable; … … 129 130 130 131 #endif /* !___UIGuestControlFileManager_h___ */ 131 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/guestctrl/UIGuestControlFileTable.h
r72086 r72151 140 140 141 141 static QString sanitize(const QString &path); 142 /** Merge prefix and suffix by making sure they have a single '/' in between */142 /** Merges prefix and suffix by making sure they have a single '/' in between */ 143 143 static QString mergePaths(const QString &path, const QString &baseName); 144 144 /** Returns the last part of the @p path. That is the filename or directory name without the path */ 145 145 static QString getObjectName(const QString &path); 146 /** Remove the object name and return the path */146 /** Removes the object name and return the path */ 147 147 static QString getPathExceptObjectName(const QString &path); 148 /** Replace the last part of the @p previusPath with newBaseName */148 /** Replaces the last part of the @p previusPath with newBaseName */ 149 149 static QString constructNewItemPath(const QString &previousPath, const QString &newBaseName); 150 /** Split the path and return it as a QStringList, top most being the 0th element. No delimiters */150 /** Splits the path and return it as a QStringList, top most being the 0th element. No delimiters */ 151 151 static QStringList pathTrail(const QString &path); 152 152 static const QChar delimiter; 153 153 static const QChar dosDelimiter; 154 154 155 /** Tr y to guess if the path starts with DOS style drive letters*/155 /** Tries to determine if the path starts with DOS style drive letters. */ 156 156 static bool doesPathStartWithDriveLetter(const QString &path); 157 157 … … 174 174 175 175 UIFileTableItem *child(int row) const; 176 /** Return a child (if possible) by path*/176 /** Searches for the child by path and returns it if found. */ 177 177 UIFileTableItem *child(const QString &path) const; 178 178 int childCount() const; … … 193 193 void setPath(const QString &path); 194 194 195 /** True if this is directory and name is ".." */195 /** Returns true if this is directory and name is ".." */ 196 196 bool isUpDirectory() const; 197 197 void clearChildren(); … … 250 250 UIGuestControlFileTable(QWidget *pParent = 0); 251 251 virtual ~UIGuestControlFileTable(); 252 /** Delete all the tree nodes */252 /** Deletes all the tree nodes */ 253 253 void reset(); 254 254 void emitLogOutput(const QString& strOutput); … … 308 308 309 309 private slots: 310 310 311 /* index is passed by the item view and represents the double clicked object's 'proxy' model index */ 311 312 void sltItemDoubleClicked(const QModelIndex &index); … … 329 330 void prepareObjects(); 330 331 void prepareActions(); 331 /* @itemIndex is assumed to be 'model' index not 'proxy model' index */332 /** @p itemIndex is assumed to be 'model' index not 'proxy model' index */ 332 333 void deleteByIndex(const QModelIndex &itemIndex); 333 334 /** Returns the UIFileTableItem for path / which is a direct (and single) child of m_pRootItem */ … … 339 340 void deSelectUpDirectoryItem(); 340 341 void setSelectionForAll(QItemSelectionModel::SelectionFlags flags); 341 /** Start directory requires a special attention since on file systems with drive letters342 /** The start directory requires a special attention since on file systems with drive letters 342 343 * drive letter are direct children of the start directory. On other systems start directory is '/' */ 343 344 void populateStartDirectory(UIFileTableItem *startItem); … … 359 360 QAction *m_pSelectAll; 360 361 QAction *m_pInvertSelection; 361 /** The vector of action which need some selection to work on like cut, copy etc. */362 /** The vector of actions which need some selection to work on. Like cut, copy etc. */ 362 363 QVector<QAction*> m_selectionDependentActions; 363 364 /** The absolue path list of the file objects which user has chosen to cut/copy. this -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/guestctrl/UIHostFileTable.h
r72086 r72151 22 22 #include "UIGuestControlFileTable.h" 23 23 24 /** This class scans the host file system by using the Qt 25 and populatesthe UIGuestControlFileModel*/24 /** This class scans the host file system by using the Qt API 25 and connects to the UIGuestControlFileModel*/ 26 26 class UIHostFileTable : public UIGuestControlFileTable 27 27 {
Note:
See TracChangeset
for help on using the changeset viewer.