Changeset 104223 in vbox
- Timestamp:
- Apr 8, 2024 10:30:04 AM (8 months ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/networkmanager
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/networkmanager/UIDetailsWidgetCloudNetwork.cpp
r101563 r104223 50 50 #include "UINetworkManagerUtils.h" 51 51 #include "UINotificationCenter.h" 52 52 #include "UITranslationEventListener.h" 53 53 54 54 UISubnetSelectionDialog::UISubnetSelectionDialog(QWidget *pParent, … … 56 56 const QString &strProfileName, 57 57 const QString &strSubnetId) 58 : Q IWithRetranslateUI<QDialog>(pParent)58 : QDialog(pParent) 59 59 , m_strProviderShortName(strShortProviderName) 60 60 , m_strProfileName(strProfileName) … … 90 90 91 91 /* Call to base-class: */ 92 return Q IWithRetranslateUI<QDialog>::accept();92 return QDialog::accept(); 93 93 } 94 94 … … 99 99 100 100 /* Call to base-class: */ 101 return Q IWithRetranslateUI<QDialog>::exec();102 } 103 104 void UISubnetSelectionDialog:: retranslateUi()101 return QDialog::exec(); 102 } 103 104 void UISubnetSelectionDialog::sltRetranslateUI() 105 105 { 106 106 setWindowTitle(UINetworkManager::tr("Select Subnet")); … … 166 166 167 167 /* Apply language settings: */ 168 retranslateUi(); 168 sltRetranslateUI(); 169 170 connect(&translationEventListener(), &UITranslationEventListener::sigRetranslateUI, 171 this, &UISubnetSelectionDialog::sltRetranslateUI); 169 172 } 170 173 … … 178 181 179 182 UIDetailsWidgetCloudNetwork::UIDetailsWidgetCloudNetwork(EmbedTo enmEmbedding, QWidget *pParent /* = 0 */) 180 : Q IWithRetranslateUI<QWidget>(pParent)183 : QWidget(pParent) 181 184 , m_enmEmbedding(enmEmbedding) 182 185 , m_pLabelNetworkName(0) … … 249 252 } 250 253 251 void UIDetailsWidgetCloudNetwork:: retranslateUi()254 void UIDetailsWidgetCloudNetwork::sltRetranslateUI() 252 255 { 253 256 if (m_pLabelNetworkName) … … 363 366 364 367 /* Apply language settings: */ 365 retranslateUi(); 368 sltRetranslateUI(); 369 370 connect(&translationEventListener(), &UITranslationEventListener::sigRetranslateUI, 371 this, &UIDetailsWidgetCloudNetwork::sltRetranslateUI); 366 372 367 373 /* Update button states finally: */ -
trunk/src/VBox/Frontends/VirtualBox/src/networkmanager/UIDetailsWidgetCloudNetwork.h
r103982 r104223 37 37 /* GUI includes: */ 38 38 #include "QIManagerDialog.h" 39 #include "QIWithRetranslateUI.h"40 39 #include "UIPortForwardingTable.h" 41 40 … … 62 61 63 62 /** QDialog subclass for subnet selection functionality. */ 64 class UISubnetSelectionDialog : public Q IWithRetranslateUI<QDialog>63 class UISubnetSelectionDialog : public QDialog 65 64 { 66 65 Q_OBJECT; … … 90 89 virtual int exec() RT_OVERRIDE RT_FINAL; 91 90 92 protected:93 94 /** Handles translation event. */95 virtual void retranslateUi() RT_OVERRIDE RT_FINAL;96 97 91 private slots: 98 92 … … 102 96 /** Handles notification about subnet selection @a comForm being created. */ 103 97 void sltHandleVSDFormCreated(const CVirtualSystemDescriptionForm &comForm); 98 99 /** Handles translation event. */ 100 void sltRetranslateUI(); 104 101 105 102 private: … … 179 176 180 177 /** Network Manager: Cloud network details-widget. */ 181 class UIDetailsWidgetCloudNetwork : public Q IWithRetranslateUI<QWidget>178 class UIDetailsWidgetCloudNetwork : public QWidget 182 179 { 183 180 Q_OBJECT; … … 215 212 void updateButtonStates(); 216 213 /** @} */ 217 218 protected:219 220 /** Handles translation event. */221 virtual void retranslateUi() RT_OVERRIDE;222 214 223 215 private slots: … … 239 231 void sltHandleButtonBoxClick(QAbstractButton *pButton); 240 232 /** @} */ 233 234 /** Handles translation event. */ 235 void sltRetranslateUI(); 241 236 242 237 private: -
trunk/src/VBox/Frontends/VirtualBox/src/networkmanager/UIDetailsWidgetHostNetwork.cpp
r103712 r104223 44 44 #include "UINetworkManagerUtils.h" 45 45 #include "UINotificationCenter.h" 46 #include "UITranslationEventListener.h" 46 47 47 48 /* Other VBox includes: */ … … 52 53 53 54 UIDetailsWidgetHostNetwork::UIDetailsWidgetHostNetwork(EmbedTo enmEmbedding, QWidget *pParent /* = 0 */) 54 : Q IWithRetranslateUI<QWidget>(pParent)55 : QWidget(pParent) 55 56 , m_enmEmbedding(enmEmbedding) 56 57 #ifdef VBOX_WS_MAC … … 267 268 } 268 269 269 void UIDetailsWidgetHostNetwork:: retranslateUi()270 void UIDetailsWidgetHostNetwork::sltRetranslateUI() 270 271 { 271 272 #ifdef VBOX_WS_MAC … … 526 527 527 528 /* Apply language settings: */ 528 retranslateUi(); 529 sltRetranslateUI(); 530 531 connect(&translationEventListener(), &UITranslationEventListener::sigRetranslateUI, 532 this, &UIDetailsWidgetHostNetwork::sltRetranslateUI); 529 533 530 534 /* Update button states finally: */ -
trunk/src/VBox/Frontends/VirtualBox/src/networkmanager/UIDetailsWidgetHostNetwork.h
r98103 r104223 37 37 /* GUI includes: */ 38 38 #include "QIManagerDialog.h" 39 #include "QIWithRetranslateUI.h"40 39 41 40 /* Forward declarations: */ … … 219 218 220 219 /** Network Manager: Host network details-widget. */ 221 class UIDetailsWidgetHostNetwork : public Q IWithRetranslateUI<QWidget>220 class UIDetailsWidgetHostNetwork : public QWidget 222 221 { 223 222 Q_OBJECT; … … 259 258 void updateButtonStates(); 260 259 /** @} */ 261 262 protected:263 264 /** Handles translation event. */265 virtual void retranslateUi() RT_OVERRIDE;266 260 267 261 private slots: … … 310 304 /** @} */ 311 305 306 /** Handles translation event. */ 307 void sltRetranslateUI(); 308 312 309 private: 313 310 … … 456 453 457 454 #endif /* !FEQT_INCLUDED_SRC_networkmanager_UIDetailsWidgetHostNetwork_h */ 458 -
trunk/src/VBox/Frontends/VirtualBox/src/networkmanager/UIDetailsWidgetNATNetwork.cpp
r103711 r104223 45 45 #include "UINetworkManagerUtils.h" 46 46 #include "UINotificationCenter.h" 47 #include "UITranslationEventListener.h" 47 48 48 49 /* Other VBox includes: */ … … 51 52 52 53 UIDetailsWidgetNATNetwork::UIDetailsWidgetNATNetwork(EmbedTo enmEmbedding, QWidget *pParent /* = 0 */) 53 : Q IWithRetranslateUI<QWidget>(pParent)54 : QWidget(pParent) 54 55 , m_enmEmbedding(enmEmbedding) 55 56 , m_pTabWidget(0) … … 151 152 } 152 153 153 void UIDetailsWidgetNATNetwork:: retranslateUi()154 void UIDetailsWidgetNATNetwork::sltRetranslateUI() 154 155 { 155 156 /* Translate tab-widget: */ … … 304 305 305 306 /* Apply language settings: */ 306 retranslateUi(); 307 sltRetranslateUI(); 308 309 connect(&translationEventListener(), &UITranslationEventListener::sigRetranslateUI, 310 this, &UIDetailsWidgetNATNetwork::sltRetranslateUI); 307 311 308 312 /* Update button states finally: */ -
trunk/src/VBox/Frontends/VirtualBox/src/networkmanager/UIDetailsWidgetNATNetwork.h
r98103 r104223 37 37 /* GUI includes: */ 38 38 #include "QIManagerDialog.h" 39 #include "QIWithRetranslateUI.h"40 39 #include "UIPortForwardingTable.h" 41 40 … … 108 107 109 108 /** Network Manager: NAT network details-widget. */ 110 class UIDetailsWidgetNATNetwork : public Q IWithRetranslateUI<QWidget>109 class UIDetailsWidgetNATNetwork : public QWidget 111 110 { 112 111 Q_OBJECT; … … 147 146 void updateButtonStates(); 148 147 /** @} */ 149 150 protected:151 152 /** Handles translation event. */153 virtual void retranslateUi() RT_OVERRIDE;154 148 155 149 private slots: … … 178 172 void sltHandleButtonBoxClick(QAbstractButton *pButton); 179 173 /** @} */ 174 /** Handles translation event. */ 175 void sltRetranslateUI(); 180 176 181 177 private: … … 262 258 263 259 #endif /* !FEQT_INCLUDED_SRC_networkmanager_UIDetailsWidgetNATNetwork_h */ 264 -
trunk/src/VBox/Frontends/VirtualBox/src/networkmanager/UINetworkManager.cpp
r103771 r104223 55 55 # include "UIWindowMenuManager.h" 56 56 #endif 57 #include "UITranslationEventListener.h" 57 58 58 59 /* COM includes: */ … … 377 378 UINetworkManagerWidget::UINetworkManagerWidget(EmbedTo enmEmbedding, UIActionPool *pActionPool, 378 379 bool fShowToolbar /* = true */, QWidget *pParent /* = 0 */) 379 : Q IWithRetranslateUI<QWidget>(pParent)380 : QWidget(pParent) 380 381 , m_enmEmbedding(enmEmbedding) 381 382 , m_pActionPool(pActionPool) … … 405 406 } 406 407 407 void UINetworkManagerWidget:: retranslateUi()408 void UINetworkManagerWidget::sltRetranslateUI() 408 409 { 409 410 /* Translate tab-widget: */ … … 462 463 { 463 464 /* Call to base-class: */ 464 Q IWithRetranslateUI<QWidget>::resizeEvent(pEvent);465 QWidget::resizeEvent(pEvent); 465 466 466 467 /* Adjust tree-widgets: */ … … 471 472 { 472 473 /* Call to base-class: */ 473 Q IWithRetranslateUI<QWidget>::showEvent(pEvent);474 QWidget::showEvent(pEvent); 474 475 475 476 /* Adjust tree-widgets: */ … … 1728 1729 1729 1730 /* Apply language settings: */ 1730 retranslateUi(); 1731 sltRetranslateUI(); 1732 1733 connect(&translationEventListener(), &UITranslationEventListener::sigRetranslateUI, 1734 this, &UINetworkManagerWidget::sltRetranslateUI); 1731 1735 1732 1736 /* Load networks: */ … … 2540 2544 2541 2545 UINetworkManager::UINetworkManager(QWidget *pCenterWidget, UIActionPool *pActionPool) 2542 : QI WithRetranslateUI<QIManagerDialog>(pCenterWidget)2546 : QIManagerDialog(pCenterWidget) 2543 2547 , m_pActionPool(pActionPool) 2544 2548 { … … 2559 2563 } 2560 2564 2561 void UINetworkManager:: retranslateUi()2565 void UINetworkManager::sltRetranslateUI() 2562 2566 { 2563 2567 /* Translate window title: */ … … 2643 2647 { 2644 2648 /* Apply language settings: */ 2645 retranslateUi(); 2649 sltRetranslateUI(); 2650 2651 connect(&translationEventListener(), &UITranslationEventListener::sigRetranslateUI, 2652 this, &UINetworkManager::sltRetranslateUI); 2646 2653 } 2647 2654 -
trunk/src/VBox/Frontends/VirtualBox/src/networkmanager/UINetworkManager.h
r98103 r104223 37 37 /* GUI includes: */ 38 38 #include "QIManagerDialog.h" 39 #include "QIWithRetranslateUI.h"40 39 41 40 /* Forward declarations: */ … … 67 66 68 67 /** QWidget extension providing GUI with the pane to control network related functionality. */ 69 class UINetworkManagerWidget : public Q IWithRetranslateUI<QWidget>68 class UINetworkManagerWidget : public QWidget 70 69 { 71 70 Q_OBJECT; … … 104 103 /** @name Event-handling stuff. 105 104 * @{ */ 106 /** Handles translation event. */107 virtual void retranslateUi() RT_OVERRIDE;108 109 105 /** Handles resize @a pEvent. */ 110 106 virtual void resizeEvent(QResizeEvent *pEvent) RT_OVERRIDE; … … 187 183 /** Handles command to apply cloud network details changes. */ 188 184 void sltApplyDetailsChangesCloudNetwork(); 185 /** @} */ 186 187 /** @name Event-handling stuff. 188 * @{ */ 189 /** Handles translation event. */ 190 void sltRetranslateUI(); 189 191 /** @} */ 190 192 … … 353 355 354 356 /** QIManagerDialog extension providing GUI with the dialog to control network related functionality. */ 355 class UINetworkManager : public QI WithRetranslateUI<QIManagerDialog>357 class UINetworkManager : public QIManagerDialog 356 358 { 357 359 Q_OBJECT; … … 372 374 /** @} */ 373 375 376 /** @name Event-handling stuff. 377 * @{ */ 378 /** Handles translation event. */ 379 void sltRetranslateUI(); 380 /** @} */ 381 374 382 private: 375 383 … … 378 386 * @param pActionPool Brings the action-pool reference. */ 379 387 UINetworkManager(QWidget *pCenterWidget, UIActionPool *pActionPool); 380 381 /** @name Event-handling stuff.382 * @{ */383 /** Handles translation event. */384 virtual void retranslateUi() RT_OVERRIDE;385 /** @} */386 388 387 389 /** @name Prepare/cleanup cascade. … … 414 416 415 417 #endif /* !FEQT_INCLUDED_SRC_networkmanager_UINetworkManager_h */ 416
Note:
See TracChangeset
for help on using the changeset viewer.