Changeset 101020 in vbox
- Timestamp:
- Sep 5, 2023 12:10:22 PM (15 months ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 3 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/Makefile.kmk
r101015 r101020 844 844 src/guestctrl/UIFileManagerGuestTable.h \ 845 845 src/guestctrl/UIFileManagerHostTable.h \ 846 src/guestctrl/UIFileManagerPane l.h \846 src/guestctrl/UIFileManagerPaneContainer.h \ 847 847 src/guestctrl/UIFileManagerTable.h \ 848 848 src/helpbrowser/UIHelpBrowserDialog.h \ … … 1063 1063 src/globals/UIVirtualBoxClientEventHandler.cpp \ 1064 1064 src/guestctrl/UIFileManager.cpp \ 1065 src/guestctrl/UIFileManagerPane l.cpp \1065 src/guestctrl/UIFileManagerPaneContainer.cpp \ 1066 1066 src/guestctrl/UIFileManagerTable.cpp \ 1067 1067 src/guestctrl/UIFileManagerGuestTable.cpp \ … … 1426 1426 src/guestctrl/UIFileManagerGuestTable.cpp \ 1427 1427 src/guestctrl/UIFileManagerHostTable.cpp \ 1428 src/guestctrl/UIFileManagerPane l.cpp \1428 src/guestctrl/UIFileManagerPaneContainer.cpp \ 1429 1429 src/guestctrl/UIFileManagerTable.cpp \ 1430 1430 src/helpbrowser/UIHelpBrowserDialog.cpp \ -
trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIFileManager.cpp
r100955 r101020 42 42 #include "UIIconPool.h" 43 43 #include "UIFileManager.h" 44 #include "UIFileManagerPane l.h"44 #include "UIFileManagerPaneContainer.h" 45 45 #include "UIFileManagerGuestTable.h" 46 46 #include "UIFileManagerHostTable.h" … … 251 251 } 252 252 253 m_pPanel = new UIFileManagerPane l(this, UIFileManagerOptions::instance());253 m_pPanel = new UIFileManagerPaneContainer(this, UIFileManagerOptions::instance()); 254 254 AssertReturnVoid(m_pPanel); 255 255 … … 258 258 m_panelActions.insert(m_pActionPool->action(UIActionIndex_M_FileManager_T_Operations)); 259 259 260 m_pActionPool->action(UIActionIndex_M_FileManager_T_Preferences)->setData(static_cast<int>(UIFileManagerPane l::Page_Preferences));261 m_pActionPool->action(UIActionIndex_M_FileManager_T_Log)->setData(static_cast<int>(UIFileManagerPane l::Page_Log));262 m_pActionPool->action(UIActionIndex_M_FileManager_T_Operations)->setData(static_cast<int>(UIFileManagerPane l::Page_Operations));260 m_pActionPool->action(UIActionIndex_M_FileManager_T_Preferences)->setData(static_cast<int>(UIFileManagerPaneContainer::Page_Preferences)); 261 m_pActionPool->action(UIActionIndex_M_FileManager_T_Log)->setData(static_cast<int>(UIFileManagerPaneContainer::Page_Log)); 262 m_pActionPool->action(UIActionIndex_M_FileManager_T_Operations)->setData(static_cast<int>(UIFileManagerPaneContainer::Page_Operations)); 263 263 264 264 m_pVerticalSplitter->addWidget(m_pPanel); … … 322 322 if (m_pPanel) 323 323 { 324 connect(m_pPanel, &UIFileManagerPane l::sigOptionsChanged,324 connect(m_pPanel, &UIFileManagerPaneContainer::sigOptionsChanged, 325 325 this, &UIFileManager::sltHandleOptionsUpdated); 326 connect(m_pPanel, &UIFileManagerPane l::sigFileOperationComplete,326 connect(m_pPanel, &UIFileManagerPaneContainer::sigFileOperationComplete, 327 327 this, &UIFileManager::sltFileOperationComplete); 328 connect(m_pPanel, &UIFileManagerPane l::sigFileOperationFail,328 connect(m_pPanel, &UIFileManagerPaneContainer::sigFileOperationFail, 329 329 this, &UIFileManager::sltReceieveLogOutput); 330 connect(m_pPanel, &UIFileManagerPane l::sigCurrentTabChanged,330 connect(m_pPanel, &UIFileManagerPaneContainer::sigCurrentTabChanged, 331 331 this, &UIFileManager::sltPanelCurrentTabChanged); 332 connect(m_pPanel, &UIFileManagerPane l::sigHidden,332 connect(m_pPanel, &UIFileManagerPaneContainer::sigHidden, 333 333 this, &UIFileManager::sltPanelContainerHidden); 334 334 } … … 563 563 } 564 564 565 switch (static_cast<UIFileManagerPane l::Page>(iIndex))566 { 567 case UIFileManagerPane l::Page_Preferences:565 switch (static_cast<UIFileManagerPaneContainer::Page>(iIndex)) 566 { 567 case UIFileManagerPaneContainer::Page_Preferences: 568 568 m_pActionPool->action(UIActionIndex_M_FileManager_T_Preferences)->setChecked(true); 569 569 break; 570 case UIFileManagerPane l::Page_Operations:570 case UIFileManagerPaneContainer::Page_Operations: 571 571 m_pActionPool->action(UIActionIndex_M_FileManager_T_Operations)->setChecked(true); 572 572 break; 573 case UIFileManagerPane l::Page_Log:573 case UIFileManagerPaneContainer::Page_Log: 574 574 m_pActionPool->action(UIActionIndex_M_FileManager_T_Log)->setChecked(true); 575 575 break; 576 case UIFileManagerPane l::Page_Max:576 case UIFileManagerPaneContainer::Page_Max: 577 577 default: 578 578 break; -
trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIFileManager.h
r100955 r101020 54 54 class UIDialogPanel; 55 55 class UIFileManagerLogPanel; 56 class UIFileManagerPane l;56 class UIFileManagerPaneContainer; 57 57 class UIFileManagerOperationsPanel; 58 58 class UIFileManagerGuestTable; … … 184 184 UIFileManagerLogPanel *m_pLogPanel; 185 185 UIFileManagerOperationsPanel *m_pOperationsPanel; 186 UIFileManagerPane l*m_pPanel;186 UIFileManagerPaneContainer *m_pPanel; 187 187 bool m_fCommitDataSignalReceived; 188 188 -
trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIFileManagerPaneContainer.cpp
r101019 r101020 43 43 #include "QIToolButton.h" 44 44 #include "UIErrorString.h" 45 #include "UIFileManagerPane l.h"45 #include "UIFileManagerPaneContainer.h" 46 46 #include "UIFileManager.h" 47 47 #include "UIProgressEventHandler.h" … … 364 364 } 365 365 366 366 367 /********************************************************************************************************************************* 367 * UIFileManagerPane limplementation. *368 * UIFileManagerPaneContainer implementation. * 368 369 *********************************************************************************************************************************/ 369 370 370 UIFileManagerPane l::UIFileManagerPanel(QWidget *pParent, UIFileManagerOptions *pFileManagerOptions)371 UIFileManagerPaneContainer::UIFileManagerPaneContainer(QWidget *pParent, UIFileManagerOptions *pFileManagerOptions) 371 372 : UIPaneContainer(pParent) 372 373 , m_pListDirectoriesOnTopCheckBox(0) … … 386 387 387 388 388 void UIFileManagerPane l::prepare()389 void UIFileManagerPaneContainer::prepare() 389 390 { 390 391 preparePreferencesTab(); … … 393 394 } 394 395 395 void UIFileManagerPane l::preparePreferencesTab()396 void UIFileManagerPaneContainer::preparePreferencesTab() 396 397 { 397 398 QWidget *pPreferencesTab = new QWidget; … … 420 421 421 422 connect(m_pListDirectoriesOnTopCheckBox, &QCheckBox::toggled, 422 this, &UIFileManagerPane l::sltListDirectoryCheckBoxToogled);423 this, &UIFileManagerPaneContainer::sltListDirectoryCheckBoxToogled); 423 424 connect(m_pDeleteConfirmationCheckBox, &QCheckBox::toggled, 424 this, &UIFileManagerPane l::sltDeleteConfirmationCheckBoxToogled);425 this, &UIFileManagerPaneContainer::sltDeleteConfirmationCheckBoxToogled); 425 426 connect(m_pHumanReabableSizesCheckBox, &QCheckBox::toggled, 426 this, &UIFileManagerPane l::sltHumanReabableSizesCheckBoxToogled);427 this, &UIFileManagerPaneContainer::sltHumanReabableSizesCheckBoxToogled); 427 428 connect(m_pShowHiddenObjectsCheckBox, &QCheckBox::toggled, 428 this, &UIFileManagerPane l::sltShowHiddenObjectsCheckBoxToggled);429 this, &UIFileManagerPaneContainer::sltShowHiddenObjectsCheckBoxToggled); 429 430 430 431 QGridLayout *pPreferencesLayout = new QGridLayout(pPreferencesTab); … … 441 442 } 442 443 443 void UIFileManagerPane l::prepareLogTab()444 void UIFileManagerPaneContainer::prepareLogTab() 444 445 { 445 446 QWidget *pLogTab = new QWidget; … … 454 455 } 455 456 456 void UIFileManagerPane l::prepareOperationsTab()457 void UIFileManagerPaneContainer::prepareOperationsTab() 457 458 { 458 459 QPalette pal = QApplication::palette(); … … 469 470 QScrollBar *pVerticalScrollBar = m_pScrollArea->verticalScrollBar(); 470 471 if (pVerticalScrollBar) 471 QObject::connect(pVerticalScrollBar, &QScrollBar::rangeChanged, this, &UIFileManagerPane l::sltScrollToBottom);472 QObject::connect(pVerticalScrollBar, &QScrollBar::rangeChanged, this, &UIFileManagerPaneContainer::sltScrollToBottom); 472 473 473 474 m_pScrollArea->setBackgroundRole(QPalette::Window); … … 482 483 } 483 484 484 void UIFileManagerPane l::sltListDirectoryCheckBoxToogled(bool bChecked)485 void UIFileManagerPaneContainer::sltListDirectoryCheckBoxToogled(bool bChecked) 485 486 { 486 487 if (!m_pFileManagerOptions) … … 490 491 } 491 492 492 void UIFileManagerPane l::sltDeleteConfirmationCheckBoxToogled(bool bChecked)493 void UIFileManagerPaneContainer::sltDeleteConfirmationCheckBoxToogled(bool bChecked) 493 494 { 494 495 if (!m_pFileManagerOptions) … … 498 499 } 499 500 500 void UIFileManagerPane l::sltHumanReabableSizesCheckBoxToogled(bool bChecked)501 void UIFileManagerPaneContainer::sltHumanReabableSizesCheckBoxToogled(bool bChecked) 501 502 { 502 503 if (!m_pFileManagerOptions) … … 506 507 } 507 508 508 void UIFileManagerPane l::sltShowHiddenObjectsCheckBoxToggled(bool bChecked)509 void UIFileManagerPaneContainer::sltShowHiddenObjectsCheckBoxToggled(bool bChecked) 509 510 { 510 511 if (!m_pFileManagerOptions) … … 514 515 } 515 516 516 void UIFileManagerPane l::retranslateUi()517 void UIFileManagerPaneContainer::retranslateUi() 517 518 { 518 519 if (m_pListDirectoriesOnTopCheckBox) … … 547 548 } 548 549 549 void UIFileManagerPane l::updatePreferences()550 void UIFileManagerPaneContainer::updatePreferences() 550 551 { 551 552 if (!m_pFileManagerOptions) … … 581 582 } 582 583 583 void UIFileManagerPane l::appendLog(const QString &strLog, const QString &strMachineName, FileManagerLogType eLogType)584 void UIFileManagerPaneContainer::appendLog(const QString &strLog, const QString &strMachineName, FileManagerLogType eLogType) 584 585 { 585 586 if (!m_pLogTextEdit) … … 598 599 } 599 600 600 void UIFileManagerPane l::addNewProgress(const CProgress &comProgress, const QString &strSourceTableName)601 void UIFileManagerPaneContainer::addNewProgress(const CProgress &comProgress, const QString &strSourceTableName) 601 602 { 602 603 if (!m_pOperationsTabLayout) … … 610 611 611 612 connect(pOperationsWidget, &UIFileOperationProgressWidget::sigProgressComplete, 612 this, &UIFileManagerPane l::sigFileOperationComplete);613 this, &UIFileManagerPaneContainer::sigFileOperationComplete); 613 614 connect(pOperationsWidget, &UIFileOperationProgressWidget::sigProgressFail, 614 this, &UIFileManagerPane l::sigFileOperationFail);615 this, &UIFileManagerPaneContainer::sigFileOperationFail); 615 616 616 617 connect(pOperationsWidget, &UIFileOperationProgressWidget::sigFocusIn, 617 this, &UIFileManagerPane l::sltHandleWidgetFocusIn);618 this, &UIFileManagerPaneContainer::sltHandleWidgetFocusIn); 618 619 connect(pOperationsWidget, &UIFileOperationProgressWidget::sigFocusOut, 619 this, &UIFileManagerPane l::sltHandleWidgetFocusOut);620 } 621 622 void UIFileManagerPane l::contextMenuEvent(QContextMenuEvent *pEvent)620 this, &UIFileManagerPaneContainer::sltHandleWidgetFocusOut); 621 } 622 623 void UIFileManagerPaneContainer::contextMenuEvent(QContextMenuEvent *pEvent) 623 624 { 624 625 QMenu *menu = new QMenu(this); … … 628 629 QAction *pRemoveSelected = menu->addAction(UIFileManager::tr("Remove Selected")); 629 630 connect(pRemoveSelected, &QAction::triggered, 630 this, &UIFileManagerPane l::sltRemoveSelected);631 this, &UIFileManagerPaneContainer::sltRemoveSelected); 631 632 } 632 633 … … 635 636 636 637 connect(pRemoveFinished, &QAction::triggered, 637 this, &UIFileManagerPane l::sltRemoveFinished);638 this, &UIFileManagerPaneContainer::sltRemoveFinished); 638 639 connect(pRemoveAll, &QAction::triggered, 639 this, &UIFileManagerPane l::sltRemoveAll);640 this, &UIFileManagerPaneContainer::sltRemoveAll); 640 641 641 642 menu->exec(pEvent->globalPos()); … … 643 644 } 644 645 645 void UIFileManagerPane l::sltRemoveFinished()646 void UIFileManagerPaneContainer::sltRemoveFinished() 646 647 { 647 648 QList<UIFileOperationProgressWidget*> widgetsToRemove; … … 659 660 } 660 661 661 void UIFileManagerPane l::sltRemoveAll()662 void UIFileManagerPaneContainer::sltRemoveAll() 662 663 { 663 664 foreach (QWidget *pWidget, m_widgetSet) … … 671 672 } 672 673 673 void UIFileManagerPane l::sltRemoveSelected()674 void UIFileManagerPaneContainer::sltRemoveSelected() 674 675 { 675 676 if (!m_pWidgetInFocus) … … 679 680 } 680 681 681 void UIFileManagerPane l::sltHandleWidgetFocusIn(QWidget *pWidget)682 void UIFileManagerPaneContainer::sltHandleWidgetFocusIn(QWidget *pWidget) 682 683 { 683 684 if (!pWidget) … … 686 687 } 687 688 688 void UIFileManagerPane l::sltHandleWidgetFocusOut(QWidget *pWidget)689 void UIFileManagerPaneContainer::sltHandleWidgetFocusOut(QWidget *pWidget) 689 690 { 690 691 if (!pWidget) … … 693 694 } 694 695 695 void UIFileManagerPane l::sltScrollToBottom(int iMin, int iMax)696 void UIFileManagerPaneContainer::sltScrollToBottom(int iMin, int iMax) 696 697 { 697 698 Q_UNUSED(iMin); … … 701 702 702 703 703 #include "UIFileManagerPane l.moc"704 #include "UIFileManagerPaneContainer.moc" -
trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIFileManagerPaneContainer.h
r101019 r101020 26 26 */ 27 27 28 #ifndef FEQT_INCLUDED_SRC_guestctrl_UIFileManagerPane l_h29 #define FEQT_INCLUDED_SRC_guestctrl_UIFileManagerPane l_h28 #ifndef FEQT_INCLUDED_SRC_guestctrl_UIFileManagerPaneContainer_h 29 #define FEQT_INCLUDED_SRC_guestctrl_UIFileManagerPaneContainer_h 30 30 #ifndef RT_WITHOUT_PRAGMA_ONCE 31 31 # pragma once … … 53 53 class QVBoxLayout; 54 54 55 class UIFileManagerPane l: public UIPaneContainer55 class UIFileManagerPaneContainer : public UIPaneContainer 56 56 { 57 57 Q_OBJECT; … … 67 67 public: 68 68 69 UIFileManagerPane l(QWidget *pParent, UIFileManagerOptions *pFileManagerOptions);69 UIFileManagerPaneContainer(QWidget *pParent, UIFileManagerOptions *pFileManagerOptions); 70 70 void updatePreferences(); 71 71 void appendLog(const QString &strLog, const QString &strMachineName, FileManagerLogType eLogType); … … 137 137 }; 138 138 139 #endif /* !FEQT_INCLUDED_SRC_guestctrl_UIFileManagerPane l_h */139 #endif /* !FEQT_INCLUDED_SRC_guestctrl_UIFileManagerPaneContainer_h */
Note:
See TracChangeset
for help on using the changeset viewer.