Changeset 75224 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Nov 2, 2018 12:45:59 PM (6 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataDefs.cpp
r75221 r75224 195 195 const char *UIExtraDataDefs::GUI_InformationWindowGeometry = "GUI/InformationWindowGeometry"; 196 196 const char *UIExtraDataDefs::GUI_InformationWindowElements = "GUI/InformationWindowElements"; 197 198 /* Guest control UI: */ 199 const char *UIExtraDataDefs::GUI_GuestControl_FileManagerDialogGeometry = "GUI/GuestControl/FileManagerDialogGeometry"; 200 const char *UIExtraDataDefs::GUI_GuestControl_FileManagerVisiblePanels = "GUI/GuestControl/FileManagerVisiblePanels"; 197 201 const char *UIExtraDataDefs::GUI_GuestControl_ProcessControlSplitterHints = "GUI/GuestControl/ProcessControlSplitterHints"; 198 const char *UIExtraDataDefs::GUI_GuestControl_FileManagerDialogGeometry = "GUI/GuestControl/FileManagerDialogGeometry";199 202 const char *UIExtraDataDefs::GUI_GuestControl_ProcessControlDialogGeometry = "GUI/GuestControl/ProcessControlDialogGeometry"; 200 203 -
trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataDefs.h
r75221 r75224 348 348 /** Holds information-window elements. */ 349 349 SHARED_LIBRARY_STUFF extern const char *GUI_InformationWindowElements; 350 /** @} */ 351 352 /** @name Guest Control UI related data 353 * @{ */ 354 extern const char *GUI_GuestControl_FileManagerDialogGeometry; 355 extern const char *GUI_GuestControl_FileManagerVisiblePanels; 350 356 extern const char *GUI_GuestControl_ProcessControlSplitterHints; 351 357 extern const char *GUI_GuestControl_ProcessControlDialogGeometry; 352 /** @} */353 354 /** @name Guest Control UI related data355 * @{ */356 extern const char *GUI_GuestControl_FileManagerDialogGeometry;357 358 /** @} */ 358 359 -
trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataManager.cpp
r75221 r75224 4132 4132 } 4133 4133 4134 void UIExtraDataManager::setGuestControlFileManagerVisiblePanels(const QStringList &panelNameList) 4135 { 4136 setExtraDataStringList(GUI_GuestControl_FileManagerVisiblePanels, panelNameList); 4137 } 4138 4139 QStringList UIExtraDataManager::guestControlFileManagerVisiblePanels() 4140 { 4141 return extraDataStringList(GUI_GuestControl_FileManagerVisiblePanels); 4142 } 4143 4134 4144 QRect UIExtraDataManager::guestProcessControlDialogGeometry(QWidget *pWidget, const QRect &defaultGeometry) 4135 4145 { -
trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataManager.h
r75087 r75224 627 627 * @{ */ 628 628 void setGuestControlProcessControlSplitterHints(const QList<int> &hints); 629 void setGuestControlFileManagerSplitterHints(const QList<int> &hints);630 629 QList<int> guestControlProcessControlSplitterHints(); 631 QList<int> guestControlFileManagerSplitterHints();632 630 QRect guestControlFileManagerDialogGeometry(QWidget *pWidget, const QRect &defaultGeometry); 633 631 bool guestControlFileManagerDialogShouldBeMaximized(); … … 636 634 bool guestProcessControlDialogShouldBeMaximized(); 637 635 void setGuestProcessControlDialogGeometry(const QRect &geometry, bool fMaximized); 636 void setGuestControlFileManagerVisiblePanels(const QStringList &panelNameList); 637 QStringList guestControlFileManagerVisiblePanels(); 638 638 /** @} */ 639 639 -
trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIGuestControlFileManager.cpp
r75220 r75224 615 615 void UIGuestControlFileManager::saveSettings() 616 616 { 617 /* Save a list of currently visible panels: */ 618 QStringList strNameList; 619 foreach(UIGuestControlFileManagerPanel* pPanel, m_visiblePanelsList) 620 strNameList.append(pPanel->panelName()); 621 gEDataManager->setGuestControlFileManagerVisiblePanels(strNameList); 617 622 } 618 623 619 624 void UIGuestControlFileManager::loadSettings() 620 625 { 626 /* Load the visible panel list and show them: */ 627 QStringList strNameList = gEDataManager->guestControlFileManagerVisiblePanels(); 628 foreach(const QString strName, strNameList) 629 { 630 foreach(UIGuestControlFileManagerPanel* pPanel, m_panelActionMap.keys()) 631 { 632 if (strName == pPanel->panelName()) 633 { 634 showPanel(pPanel); 635 break; 636 } 637 } 638 } 621 639 } 622 640 -
trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIGuestControlFileManager.h
r75220 r75224 155 155 UIGuestControlConsole *m_pConsole; 156 156 UIGuestControlInterface *m_pControlInterface; 157 // /* m_pSessionCreateWidget is a QWidget extension enabling user to start/stop158 // * a Guest Control session with password/username fields etc.. */159 // UIGuestSessionCreateWidget *m_pSessionCreateWidget;160 157 UIGuestFileTable *m_pGuestFileTable; 161 158 UIHostFileTable *m_pHostFileTable; -
trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIGuestControlFileManagerLogPanel.cpp
r75220 r75224 94 94 } 95 95 96 void UIGuestControlFileManagerLogPanel::appendLog(const QString &strLog) 97 { 98 if (!m_pLogTextEdit) 99 return; 100 m_pLogTextEdit->append(strLog); 101 } 102 103 QString UIGuestControlFileManagerLogPanel::panelName() const 104 { 105 return "LogPanel"; 106 } 107 96 108 void UIGuestControlFileManagerLogPanel::prepareWidgets() 97 109 { … … 116 128 } 117 129 118 void UIGuestControlFileManagerLogPanel::appendLog(const QString &strLog)119 {120 if (!m_pLogTextEdit)121 return;122 m_pLogTextEdit->append(strLog);123 }124 130 125 131 #include "UIGuestControlFileManagerLogPanel.moc" -
trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIGuestControlFileManagerLogPanel.h
r75220 r75224 34 34 35 35 UIGuestControlFileManagerLogPanel(UIGuestControlFileManager *pManagerWidget, QWidget *pParent); 36 37 36 void appendLog(const QString &str); 37 virtual QString panelName() const /* override */; 38 38 39 39 signals: -
trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIGuestControlFileManagerPanel.h
r75220 r75224 41 41 UIGuestControlFileManagerPanel(UIGuestControlFileManager *pManagerWidget, QWidget *pParent); 42 42 void setCloseButtonShortCut(QKeySequence shortCut); 43 virtual QString panelName() const = 0; 43 44 44 45 protected: -
trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIGuestControlFileManagerSessionPanel.cpp
r75220 r75224 238 238 } 239 239 240 QString UIGuestControlFileManagerSessionPanel::panelName() const 241 { 242 return "SessionPanel"; 243 } 244 240 245 void UIGuestControlFileManagerSessionPanel::prepareWidgets() 241 246 { -
trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIGuestControlFileManagerSessionPanel.h
r75220 r75224 37 37 void switchSessionCloseMode(); 38 38 void switchSessionCreateMode(); 39 virtual QString panelName() const /* override */; 39 40 40 41 signals: -
trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIGuestControlFileManagerSettingsPanel.cpp
r75220 r75224 37 37 #endif /* !VBOX_WITH_PRECOMPILED_HEADERS */ 38 38 39 40 39 UIGuestControlFileManagerSettingsPanel::UIGuestControlFileManagerSettingsPanel(UIGuestControlFileManager *pManagerWidget, 41 40 QWidget *pParent, UIGuestControlFileManagerSettings *pFileManagerSettings) … … 46 45 { 47 46 prepare(); 47 } 48 49 QString UIGuestControlFileManagerSettingsPanel::panelName() const 50 { 51 return "SettingsPanel"; 48 52 } 49 53 … … 85 89 connect(m_pListDirectoriesOnTopCheckBox, &QCheckBox::toggled, 86 90 this, &UIGuestControlFileManagerSettingsPanel::sltListDirectoryCheckBoxToogled); 87 // if (m_pWrapLinesCheckBox)88 // connect(m_pWrapLinesCheckBox, &QCheckBox::toggled, this, &UIGuestControlFileManagerSettingsPanel::sigWrapLines);89 // if (m_pFontSizeSpinBox)90 // connect(m_pFontSizeSpinBox, static_cast<void(QSpinBox::*)(int)>(&QSpinBox::valueChanged),91 // this, &UIGuestControlFileManagerSettingsPanel::sigChangeFontSizeInPoints);92 // if (m_pResetToDefaultsButton)93 // connect(m_pResetToDefaultsButton, &QIToolButton::clicked, this, &UIGuestControlFileManagerSettingsPanel::sigResetToDefaults);94 91 } 95 92 -
trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIGuestControlFileManagerSettingsPanel.h
r75220 r75224 38 38 UIGuestControlFileManagerSettingsPanel(UIGuestControlFileManager *pManagerWidget, 39 39 QWidget *pParent, UIGuestControlFileManagerSettings *pFileManagerSettings); 40 virtual QString panelName() const /* override */; 40 41 41 42 signals:
Note:
See TracChangeset
for help on using the changeset viewer.