Changeset 75184 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Oct 30, 2018 3:07:55 PM (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/UIGuestControlFileManager.cpp
r75136 r75184 75 75 { 76 76 delete m_pInstance; 77 m_pInstance = 0; 78 } 79 80 UIGuestControlFileManagerSettings::~UIGuestControlFileManagerSettings() 81 { 82 77 83 } 78 84 … … 671 677 return false; 672 678 } 673 674 679 return true; 675 680 } -
trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIGuestControlFileManager.h
r75136 r75184 61 61 private: 62 62 UIGuestControlFileManagerSettings(); 63 63 ~UIGuestControlFileManagerSettings(); 64 64 65 65 static UIGuestControlFileManagerSettings *m_pInstance; -
trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIGuestControlFileTable.cpp
r75162 r75184 1209 1209 Q_UNUSED(deselected); 1210 1210 setSelectionDependentActionsEnabled(m_pView->hasSelection()); 1211 }1212 1213 void UIGuestControlFileTable::prepareActionConnections()1214 {1215 connect(m_pActionPool->action(UIActionIndex_M_GuestControlFileManager_S_Guest_GoUp), &QAction::triggered,1216 this, &UIGuestControlFileTable::sltGoUp);1217 connect(m_pActionPool->action(UIActionIndex_M_GuestControlFileManager_S_Host_GoUp), &QAction::triggered,1218 this, &UIGuestControlFileTable::sltGoUp);1219 connect(m_pActionPool->action(UIActionIndex_M_GuestControlFileManager_S_Guest_GoHome), &QAction::triggered,1220 this, &UIGuestControlFileTable::sltGoHome);1221 connect(m_pActionPool->action(UIActionIndex_M_GuestControlFileManager_S_Host_GoHome), &QAction::triggered,1222 this, &UIGuestControlFileTable::sltGoHome);1223 connect(m_pActionPool->action(UIActionIndex_M_GuestControlFileManager_S_Guest_Refresh), &QAction::triggered,1224 this, &UIGuestControlFileTable::sltRefresh);1225 connect(m_pActionPool->action(UIActionIndex_M_GuestControlFileManager_S_Host_Refresh), &QAction::triggered,1226 this, &UIGuestControlFileTable::sltRefresh);1227 connect(m_pActionPool->action(UIActionIndex_M_GuestControlFileManager_S_Guest_Delete), &QAction::triggered,1228 this, &UIGuestControlFileTable::sltDelete);1229 connect(m_pActionPool->action(UIActionIndex_M_GuestControlFileManager_S_Host_Delete), &QAction::triggered,1230 this, &UIGuestControlFileTable::sltDelete);1231 connect(m_pActionPool->action(UIActionIndex_M_GuestControlFileManager_S_Guest_Rename), &QAction::triggered,1232 this, &UIGuestControlFileTable::sltRename);1233 connect(m_pActionPool->action(UIActionIndex_M_GuestControlFileManager_S_Host_Rename), &QAction::triggered,1234 this, &UIGuestControlFileTable::sltRename);1235 connect(m_pActionPool->action(UIActionIndex_M_GuestControlFileManager_S_Guest_Copy), &QAction::triggered,1236 this, &UIGuestControlFileTable::sltCopy);1237 connect(m_pActionPool->action(UIActionIndex_M_GuestControlFileManager_S_Host_Copy), &QAction::triggered,1238 this, &UIGuestControlFileTable::sltCopy);1239 connect(m_pActionPool->action(UIActionIndex_M_GuestControlFileManager_S_Guest_Cut), &QAction::triggered,1240 this, &UIGuestControlFileTable::sltCut);1241 connect(m_pActionPool->action(UIActionIndex_M_GuestControlFileManager_S_Host_Cut), &QAction::triggered,1242 this, &UIGuestControlFileTable::sltCut);1243 connect(m_pActionPool->action(UIActionIndex_M_GuestControlFileManager_S_Guest_Paste), &QAction::triggered,1244 this, &UIGuestControlFileTable::sltPaste);1245 connect(m_pActionPool->action(UIActionIndex_M_GuestControlFileManager_S_Host_Paste), &QAction::triggered,1246 this, &UIGuestControlFileTable::sltPaste);1247 connect(m_pActionPool->action(UIActionIndex_M_GuestControlFileManager_S_Guest_SelectAll), &QAction::triggered,1248 this, &UIGuestControlFileTable::sltSelectAll);1249 connect(m_pActionPool->action(UIActionIndex_M_GuestControlFileManager_S_Host_SelectAll), &QAction::triggered,1250 this, &UIGuestControlFileTable::sltSelectAll);1251 connect(m_pActionPool->action(UIActionIndex_M_GuestControlFileManager_S_Guest_InvertSelection), &QAction::triggered,1252 this, &UIGuestControlFileTable::sltInvertSelection);1253 connect(m_pActionPool->action(UIActionIndex_M_GuestControlFileManager_S_Host_InvertSelection), &QAction::triggered,1254 this, &UIGuestControlFileTable::sltInvertSelection);1255 connect(m_pActionPool->action(UIActionIndex_M_GuestControlFileManager_S_Guest_ShowProperties), &QAction::triggered,1256 this, &UIGuestControlFileTable::sltShowProperties);1257 connect(m_pActionPool->action(UIActionIndex_M_GuestControlFileManager_S_Host_ShowProperties), &QAction::triggered,1258 this, &UIGuestControlFileTable::sltShowProperties);1259 connect(m_pActionPool->action(UIActionIndex_M_GuestControlFileManager_S_Guest_CreateNewDirectory), &QAction::triggered,1260 this, &UIGuestControlFileTable::sltCreateNewDirectory);1261 connect(m_pActionPool->action(UIActionIndex_M_GuestControlFileManager_S_Host_CreateNewDirectory), &QAction::triggered,1262 this, &UIGuestControlFileTable::sltCreateNewDirectory);1263 1211 } 1264 1212 -
trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIGuestControlFileTable.h
r75162 r75184 294 294 CGuestFsObjInfo guestFsObjectInfo(const QString& path, CGuestSession &comGuestSession) const; 295 295 void setSelectionDependentActionsEnabled(bool fIsEnabled); 296 void prepareActionConnections();297 298 296 299 297 UIFileTableItem *m_pRootItem; … … 309 307 QSet<QAction*> m_selectionDependentActions; 310 308 311 p rotectedslots:309 public slots: 312 310 313 311 void sltReceiveDirectoryStatistics(UIDirectoryStatistics statictics); 314 312 void sltCreateNewDirectory(); 315 316 private slots:317 318 313 /* index is passed by the item view and represents the double clicked object's 'proxy' model index */ 319 314 void sltItemDoubleClicked(const QModelIndex &index); … … 328 323 void sltPaste(); 329 324 void sltShowProperties(); 330 331 325 void sltSelectionChanged(const QItemSelection & selected, const QItemSelection & deselected); 332 326 void sltLocationComboCurrentChange(const QString &strLocation); -
trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIGuestFileTable.cpp
r75162 r75184 21 21 22 22 /* Qt includes: */ 23 // # include <QAction>24 23 # include <QDateTime> 25 24 # include <QFileInfo> … … 30 29 # include "UIErrorString.h" 31 30 # include "UIGuestFileTable.h" 31 # include "UIMessageCenter.h" 32 32 # include "UIToolBar.h" 33 33 … … 310 310 } 311 311 312 void UIGuestFileTable::copyGuestToHost(const QString& hostDestinationPath)313 {314 QStringList selectedPathList = selectedItemPathList();315 for (int i = 0; i < selectedPathList.size(); ++i)316 copyGuestToHost(selectedPathList.at(i), hostDestinationPath);317 }318 319 312 void UIGuestFileTable::copyHostToGuest(const QStringList &hostSourcePathList) 320 313 { … … 322 315 QVector<QString> aFilters; 323 316 QVector<QString> aFlags; 324 m_comGuestSession.CopyToGuest(sourcePaths, aFilters, aFlags, currentDirectoryPath()); 325 if (!m_comGuestSession.isOk()) 326 emit sigLogOutput(UIErrorString::formatErrorInfo(m_comGuestSession)); 317 CProgress progress = m_comGuestSession.CopyToGuest(sourcePaths, aFilters, aFlags, currentDirectoryPath()); 318 if (!m_comGuestSession.isOk()) 319 { 320 emit sigLogOutput(UIErrorString::formatErrorInfo(m_comGuestSession)); 321 //msgCenter().cannotRemoveMachine(machine); 322 return; 323 } 324 325 msgCenter().showModalProgressDialog(progress, "copying", ":/progress_delete_90px.png"); 326 if (!progress.isOk() || progress.GetResultCode() != 0) 327 { 328 emit sigLogOutput(UIErrorString::formatErrorInfo(progress)); 329 return; 330 } 331 327 332 else 328 333 refresh(); 329 334 } 330 335 331 bool UIGuestFileTable::copyGuestToHost(const QString &guestSourcePath, const QString& hostDestinationPath) 332 { 333 if (m_comGuestSession.isNull()) 334 return false; 335 336 /* Currently API expects a path including a file name for file copy*/ 337 CGuestFsObjInfo fileInfo = guestFsObjectInfo(guestSourcePath, m_comGuestSession); 338 KFsObjType objectType = fileInfo.GetType(); 339 if (objectType == KFsObjType_File) 340 { 341 QVector<KFileCopyFlag> flags(KFileCopyFlag_FollowLinks); 342 /* API expects a full file path as destionation: */ 343 QString destinatioFilePath = UIPathOperations::addTrailingDelimiters(hostDestinationPath); 344 /** @todo listen to CProgress object to monitor copy operation: */ 345 /*CProgress comProgress =*/ m_comGuestSession.FileCopyFromGuest(guestSourcePath, destinatioFilePath, flags); 346 347 } 348 else if (objectType == KFsObjType_Directory) 349 { 350 QVector<KDirectoryCopyFlag> aFlags(KDirectoryCopyFlag_CopyIntoExisting); 351 QString destinatioFilePath = UIPathOperations::addTrailingDelimiters(hostDestinationPath); 352 QString sourceWithDelimiter = UIPathOperations::addTrailingDelimiters(guestSourcePath); 353 354 /** @todo listen to CProgress object to monitor copy operation: */ 355 /*CProgress comProgress = */ 356 // m_comGuestSession.DirectoryCopyFromGuest(guestSourcePath, hostDestinationPath/*destinatioFilePath*/ , aFlags); 357 // m_comGuestSession.DirectoryCopyFromGuest(guestSourcePath, destinatioFilePath , aFlags); 358 // m_comGuestSession.DirectoryCopyFromGuest(sourceWithDelimiter, destinatioFilePath , aFlags); 359 // m_comGuestSession.DirectoryCopyFromGuest(sourceWithDelimiter, hostDestinationPath , aFlags); 360 361 } 362 if (!m_comGuestSession.isOk()) 363 { 364 emit sigLogOutput(UIErrorString::formatErrorInfo(m_comGuestSession)); 365 return false; 366 } 367 368 return true; 369 } 370 371 // bool UIGuestFileTable::copyHostToGuest(const QString &hostSourcePath, const QString &guestDestinationPath) 372 // { 373 // if (m_comGuestSession.isNull()) 374 // return false; 375 // QFileInfo hostFileInfo(hostSourcePath); 376 // if (!hostFileInfo.exists()) 377 // return false; 378 // CProgress comProgress; 379 // /* Currently API expects a path including a file name for file copy*/ 380 // if (hostFileInfo.isFile() || hostFileInfo.isSymLink()) 381 // { 382 // QVector<KFileCopyFlag> flags(KFileCopyFlag_FollowLinks); 383 // QString destinationFilePath = UIPathOperations::addTrailingDelimiters(guestDestinationPath); 384 // /** @todo listen to CProgress object to monitor copy operation: */ 385 // comProgress = m_comGuestSession.FileCopyToGuest(hostSourcePath, destinationFilePath, flags); 386 // } 387 // else if(hostFileInfo.isDir()) 388 // { 389 390 // QVector<KDirectoryCopyFlag> aFlags(KDirectoryCopyFlag_CopyIntoExisting); 391 // QString destinationFilePath = UIPathOperations::addTrailingDelimiters(guestDestinationPath); 392 // /** @todo listen to CProgress object to monitor copy operation: */ 393 // comProgress = m_comGuestSession.DirectoryCopyToGuest(hostSourcePath, destinationFilePath, aFlags); 394 // } 395 // /** @todo currently I cannot get an errorfrom CProgress: */ 396 // if (m_comGuestSession.isOk()) 397 // { 398 // if (!comProgress.isOk() || comProgress.GetResultCode() != 0) 399 // { 400 // emit sigLogOutput(UIErrorString::formatErrorInfo(comProgress)); 401 // return false; 402 // } 403 // } 404 // else 405 // { 406 // emit sigLogOutput(UIErrorString::formatErrorInfo(m_comGuestSession)); 407 // return false; 408 // } 409 // /** @todo we have to until CProgress finishes to refresh: */ 410 // refresh(); 411 // return true; 412 // } 336 void UIGuestFileTable::copyGuestToHost(const QString& hostDestinationPath) 337 { 338 QVector<QString> sourcePaths;// = selectedItemPathList().toVector(); 339 QVector<QString> aFilters; 340 QVector<QString> aFlags; 341 sourcePaths.append("opt/VBoxGuestAdditions-5.2.97/bin/"); 342 CProgress progress = m_comGuestSession.CopyFromGuest(sourcePaths, aFilters, aFlags, hostDestinationPath); 343 if (!m_comGuestSession.isOk()) 344 { 345 emit sigLogOutput(UIErrorString::formatErrorInfo(m_comGuestSession)); 346 return; 347 } 348 349 msgCenter().showModalProgressDialog(progress, "copying", ":/progress_delete_90px.png"); 350 if (!progress.isOk() || progress.GetResultCode() != 0) 351 { 352 emit sigLogOutput(UIErrorString::formatErrorInfo(progress)); 353 return; 354 } 355 else 356 refresh(); 357 } 413 358 414 359 FileObjectType UIGuestFileTable::fileType(const CFsObjInfo &fsInfo) … … 524 469 return; 525 470 526 delete m_pPropertiesDialog;527 528 471 m_pPropertiesDialog = new UIPropertiesDialog(); 529 472 if (!m_pPropertiesDialog) … … 533 476 if (selectedObjects.size() == 0) 534 477 return; 535 UIGuestDirectoryDiskUsageComputer *directoryThread = 0; 536 537 /** @todo I have decided to look into this afterwards when API is more mature, for 538 currently this stuff runs into an assert in Main. this may be because that I will have to init deinit 539 COM. see UIThreadWorker: */ 478 //UIGuestDirectoryDiskUsageComputer *directoryThread = 0; 479 540 480 /* if the selection include a directory or it is a multiple selection the create a worker thread 541 481 to compute total size of the selection (recusively) */ … … 559 499 m_pPropertiesDialog->execute(); 560 500 561 if (directoryThread) 562 { 563 if (directoryThread->isRunning()) 564 directoryThread->stopRecursion(); 565 disconnect(directoryThread, &UIGuestDirectoryDiskUsageComputer::sigResultUpdated, 566 this, &UIGuestFileTable::sltReceiveDirectoryStatistics/*, Qt::DirectConnection*/); 567 } 501 // if (directoryThread) 502 // { 503 // if (directoryThread->isRunning()) 504 // directoryThread->stopRecursion(); 505 // disconnect(directoryThread, &UIGuestDirectoryDiskUsageComputer::sigResultUpdated, 506 // this, &UIGuestFileTable::sltReceiveDirectoryStatistics/*, Qt::DirectConnection*/); 507 // } 508 568 509 569 510 delete m_pPropertiesDialog; 511 m_pPropertiesDialog = 0; 512 570 513 } 571 514 … … 611 554 m_pToolBar->addSeparator(); 612 555 m_pToolBar->addAction(m_pActionPool->action(UIActionIndex_M_GuestControlFileManager_S_Guest_ShowProperties)); 613 614 556 m_selectionDependentActions.insert(m_pActionPool->action(UIActionIndex_M_GuestControlFileManager_S_Guest_Delete)); 615 557 m_selectionDependentActions.insert(m_pActionPool->action(UIActionIndex_M_GuestControlFileManager_S_Guest_Rename)); … … 617 559 m_selectionDependentActions.insert(m_pActionPool->action(UIActionIndex_M_GuestControlFileManager_S_Guest_Cut)); 618 560 m_selectionDependentActions.insert(m_pActionPool->action(UIActionIndex_M_GuestControlFileManager_S_Guest_ShowProperties)); 619 620 561 } 621 562 setSelectionDependentActionsEnabled(false); 622 563 } 623 564 565 void UIGuestFileTable::prepareActionConnections() 566 { 567 connect(m_pActionPool->action(UIActionIndex_M_GuestControlFileManager_S_Guest_GoUp), &QAction::triggered, 568 this, &UIGuestControlFileTable::sltGoUp); 569 connect(m_pActionPool->action(UIActionIndex_M_GuestControlFileManager_S_Guest_GoHome), &QAction::triggered, 570 this, &UIGuestControlFileTable::sltGoHome); 571 connect(m_pActionPool->action(UIActionIndex_M_GuestControlFileManager_S_Guest_Refresh), &QAction::triggered, 572 this, &UIGuestControlFileTable::sltRefresh); 573 connect(m_pActionPool->action(UIActionIndex_M_GuestControlFileManager_S_Guest_Delete), &QAction::triggered, 574 this, &UIGuestControlFileTable::sltDelete); 575 connect(m_pActionPool->action(UIActionIndex_M_GuestControlFileManager_S_Guest_Rename), &QAction::triggered, 576 this, &UIGuestControlFileTable::sltRename); 577 connect(m_pActionPool->action(UIActionIndex_M_GuestControlFileManager_S_Guest_Copy), &QAction::triggered, 578 this, &UIGuestControlFileTable::sltCopy); 579 connect(m_pActionPool->action(UIActionIndex_M_GuestControlFileManager_S_Guest_Cut), &QAction::triggered, 580 this, &UIGuestControlFileTable::sltCut); 581 connect(m_pActionPool->action(UIActionIndex_M_GuestControlFileManager_S_Guest_Paste), &QAction::triggered, 582 this, &UIGuestControlFileTable::sltPaste); 583 connect(m_pActionPool->action(UIActionIndex_M_GuestControlFileManager_S_Guest_SelectAll), &QAction::triggered, 584 this, &UIGuestControlFileTable::sltSelectAll); 585 connect(m_pActionPool->action(UIActionIndex_M_GuestControlFileManager_S_Guest_InvertSelection), &QAction::triggered, 586 this, &UIGuestControlFileTable::sltInvertSelection); 587 connect(m_pActionPool->action(UIActionIndex_M_GuestControlFileManager_S_Guest_ShowProperties), &QAction::triggered, 588 this, &UIGuestControlFileTable::sltShowProperties); 589 connect(m_pActionPool->action(UIActionIndex_M_GuestControlFileManager_S_Guest_CreateNewDirectory), &QAction::triggered, 590 this, &UIGuestControlFileTable::sltCreateNewDirectory); 591 } 592 624 593 #include "UIGuestFileTable.moc" -
trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIGuestFileTable.h
r75148 r75184 55 55 virtual void prepareToolbar() /* override */; 56 56 57 58 57 private: 59 58 … … 61 60 FileObjectType fileType(const CGuestFsObjInfo &fsInfo); 62 61 63 bool copyGuestToHost(const QString &guestSourcePath, const QString& hostDestinationPath);64 bool copyHostToGuest(const QString& hostSourcePath, const QString &guestDestinationPath); 62 void prepareActionConnections(); 63 65 64 mutable CGuestSession m_comGuestSession; 66 65 -
trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIHostFileTable.cpp
r75162 r75184 375 375 if (fsPropertyString.isEmpty()) 376 376 return; 377 378 delete m_pPropertiesDialog; 379 380 m_pPropertiesDialog = new UIPropertiesDialog(); 377 if (!m_pPropertiesDialog) 378 m_pPropertiesDialog = new UIPropertiesDialog(this); 381 379 if (!m_pPropertiesDialog) 382 380 return; … … 402 400 { 403 401 if (directoryThread->isRunning()) 404 {405 402 directoryThread->stopRecursion(); 406 //directoryThread->wait();407 }408 403 disconnect(directoryThread, &UIHostDirectoryDiskUsageComputer::sigResultUpdated, 409 404 this, &UIHostFileTable::sltReceiveDirectoryStatistics/*, Qt::DirectConnection*/); 410 //delete directoryThread; 411 } 412 delete m_pPropertiesDialog; 413 m_pPropertiesDialog = 0; 405 directoryThread->wait(); 406 } 414 407 } 415 408 416 409 void UIHostFileTable::determineDriveLetters() 417 410 { 418 //#ifdef VBOX_WS_WIN419 420 411 QFileInfoList drive = QDir::drives(); 421 412 m_driveLetterList.clear(); 422 413 for (int i = 0; i < drive.size(); ++i) 423 414 { … … 426 417 427 418 } 428 //#endif429 419 } 430 420 … … 476 466 else 477 467 strPermissions += '-'; 478 479 480 481 482 483 468 return strPermissions; 484 469 } 485 470 471 void UIHostFileTable::prepareActionConnections() 472 { 473 connect(m_pActionPool->action(UIActionIndex_M_GuestControlFileManager_S_Guest_GoUp), &QAction::triggered, 474 this, &UIGuestControlFileTable::sltGoUp); 475 connect(m_pActionPool->action(UIActionIndex_M_GuestControlFileManager_S_Host_GoUp), &QAction::triggered, 476 this, &UIGuestControlFileTable::sltGoUp); 477 connect(m_pActionPool->action(UIActionIndex_M_GuestControlFileManager_S_Guest_GoHome), &QAction::triggered, 478 this, &UIGuestControlFileTable::sltGoHome); 479 connect(m_pActionPool->action(UIActionIndex_M_GuestControlFileManager_S_Host_GoHome), &QAction::triggered, 480 this, &UIGuestControlFileTable::sltGoHome); 481 connect(m_pActionPool->action(UIActionIndex_M_GuestControlFileManager_S_Guest_Refresh), &QAction::triggered, 482 this, &UIGuestControlFileTable::sltRefresh); 483 connect(m_pActionPool->action(UIActionIndex_M_GuestControlFileManager_S_Host_Refresh), &QAction::triggered, 484 this, &UIGuestControlFileTable::sltRefresh); 485 connect(m_pActionPool->action(UIActionIndex_M_GuestControlFileManager_S_Guest_Delete), &QAction::triggered, 486 this, &UIGuestControlFileTable::sltDelete); 487 connect(m_pActionPool->action(UIActionIndex_M_GuestControlFileManager_S_Host_Delete), &QAction::triggered, 488 this, &UIGuestControlFileTable::sltDelete); 489 connect(m_pActionPool->action(UIActionIndex_M_GuestControlFileManager_S_Guest_Rename), &QAction::triggered, 490 this, &UIGuestControlFileTable::sltRename); 491 connect(m_pActionPool->action(UIActionIndex_M_GuestControlFileManager_S_Host_Rename), &QAction::triggered, 492 this, &UIGuestControlFileTable::sltRename); 493 connect(m_pActionPool->action(UIActionIndex_M_GuestControlFileManager_S_Guest_Copy), &QAction::triggered, 494 this, &UIGuestControlFileTable::sltCopy); 495 connect(m_pActionPool->action(UIActionIndex_M_GuestControlFileManager_S_Host_Copy), &QAction::triggered, 496 this, &UIGuestControlFileTable::sltCopy); 497 connect(m_pActionPool->action(UIActionIndex_M_GuestControlFileManager_S_Guest_Cut), &QAction::triggered, 498 this, &UIGuestControlFileTable::sltCut); 499 connect(m_pActionPool->action(UIActionIndex_M_GuestControlFileManager_S_Host_Cut), &QAction::triggered, 500 this, &UIGuestControlFileTable::sltCut); 501 connect(m_pActionPool->action(UIActionIndex_M_GuestControlFileManager_S_Guest_Paste), &QAction::triggered, 502 this, &UIGuestControlFileTable::sltPaste); 503 connect(m_pActionPool->action(UIActionIndex_M_GuestControlFileManager_S_Host_Paste), &QAction::triggered, 504 this, &UIGuestControlFileTable::sltPaste); 505 connect(m_pActionPool->action(UIActionIndex_M_GuestControlFileManager_S_Guest_SelectAll), &QAction::triggered, 506 this, &UIGuestControlFileTable::sltSelectAll); 507 connect(m_pActionPool->action(UIActionIndex_M_GuestControlFileManager_S_Host_SelectAll), &QAction::triggered, 508 this, &UIGuestControlFileTable::sltSelectAll); 509 connect(m_pActionPool->action(UIActionIndex_M_GuestControlFileManager_S_Guest_InvertSelection), &QAction::triggered, 510 this, &UIGuestControlFileTable::sltInvertSelection); 511 connect(m_pActionPool->action(UIActionIndex_M_GuestControlFileManager_S_Host_InvertSelection), &QAction::triggered, 512 this, &UIGuestControlFileTable::sltInvertSelection); 513 connect(m_pActionPool->action(UIActionIndex_M_GuestControlFileManager_S_Guest_ShowProperties), &QAction::triggered, 514 this, &UIGuestControlFileTable::sltShowProperties); 515 connect(m_pActionPool->action(UIActionIndex_M_GuestControlFileManager_S_Host_ShowProperties), &QAction::triggered, 516 this, &UIGuestControlFileTable::sltShowProperties); 517 connect(m_pActionPool->action(UIActionIndex_M_GuestControlFileManager_S_Guest_CreateNewDirectory), &QAction::triggered, 518 this, &UIGuestControlFileTable::sltCreateNewDirectory); 519 connect(m_pActionPool->action(UIActionIndex_M_GuestControlFileManager_S_Host_CreateNewDirectory), &QAction::triggered, 520 this, &UIGuestControlFileTable::sltCreateNewDirectory); 521 } 522 486 523 #include "UIHostFileTable.moc" -
trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIHostFileTable.h
r75148 r75184 52 52 53 53 QString permissionString(QFileDevice::Permissions permissions); 54 void prepareActionConnections(); 55 54 56 }; 55 57
Note:
See TracChangeset
for help on using the changeset viewer.