Changeset 44304 in vbox
- Timestamp:
- Jan 16, 2013 11:54:25 AM (12 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/details
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/details/UIGDetailsElements.cpp
r44016 r44304 149 149 : UIGDetailsElementInterface(pParent, DetailsElementType_General, fOpened) 150 150 { 151 /* Name/icon: */ 151 /* Icon: */ 152 setIcon(UIIconPool::iconSet(":/machine_16px.png")); 153 154 /* Translate: */ 155 retranslateUi(); 156 } 157 158 void UIGDetailsElementGeneral::retranslateUi() 159 { 152 160 setName(gpConverter->toString(DetailsElementType_General)); 153 setIcon(UIIconPool::iconSet(":/machine_16px.png"));154 161 } 155 162 … … 163 170 : UIGDetailsElement(pParent, DetailsElementType_Preview, fOpened) 164 171 { 165 /* Name/icon: */ 166 setName(gpConverter->toString(DetailsElementType_Preview)); 172 /* Icon: */ 167 173 setIcon(UIIconPool::iconSet(":/machine_16px.png")); 168 174 … … 178 184 pLayout->addItem(m_pPreview); 179 185 setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed); 186 187 /* Translate: */ 188 retranslateUi(); 189 } 190 191 void UIGDetailsElementPreview::retranslateUi() 192 { 193 setName(gpConverter->toString(DetailsElementType_Preview)); 180 194 } 181 195 … … 227 241 /* Return result: */ 228 242 return iProposedHeight; 229 }230 231 void UIGDetailsElementPreview::updateAppearance()232 {233 m_pPreview->setMachine(machine());234 emit sigBuildDone();235 243 } 236 244 … … 245 253 if (opened() && !m_pPreview->isVisible() && !isAnimationRunning()) 246 254 m_pPreview->show(); 255 } 256 257 void UIGDetailsElementPreview::updateAppearance() 258 { 259 m_pPreview->setMachine(machine()); 260 emit sigBuildDone(); 247 261 } 248 262 … … 327 341 : UIGDetailsElementInterface(pParent, DetailsElementType_System, fOpened) 328 342 { 329 /* Name/icon: */ 343 /* Icon: */ 344 setIcon(UIIconPool::iconSet(":/chipset_16px.png")); 345 346 /* Translate: */ 347 retranslateUi(); 348 } 349 350 void UIGDetailsElementSystem::retranslateUi() 351 { 330 352 setName(gpConverter->toString(DetailsElementType_System)); 331 setIcon(UIIconPool::iconSet(":/chipset_16px.png"));332 353 } 333 354 … … 403 424 : UIGDetailsElementInterface(pParent, DetailsElementType_Display, fOpened) 404 425 { 405 /* Name/icon: */ 426 /* Icon: */ 427 setIcon(UIIconPool::iconSet(":/vrdp_16px.png")); 428 429 /* Translate: */ 430 retranslateUi(); 431 } 432 433 void UIGDetailsElementDisplay::retranslateUi() 434 { 406 435 setName(gpConverter->toString(DetailsElementType_Display)); 407 setIcon(UIIconPool::iconSet(":/vrdp_16px.png"));408 436 } 409 437 … … 484 512 : UIGDetailsElementInterface(pParent, DetailsElementType_Storage, fOpened) 485 513 { 486 /* Name/icon: */ 514 /* Icon: */ 515 setIcon(UIIconPool::iconSet(":/attachment_16px.png")); 516 517 /* Translate: */ 518 retranslateUi(); 519 } 520 521 void UIGDetailsElementStorage::retranslateUi() 522 { 487 523 setName(gpConverter->toString(DetailsElementType_Storage)); 488 setIcon(UIIconPool::iconSet(":/attachment_16px.png"));489 524 } 490 525 … … 541 576 : UIGDetailsElementInterface(pParent, DetailsElementType_Audio, fOpened) 542 577 { 543 /* Name/icon: */ 578 /* Icon: */ 579 setIcon(UIIconPool::iconSet(":/sound_16px.png")); 580 581 /* Translate: */ 582 retranslateUi(); 583 } 584 585 void UIGDetailsElementAudio::retranslateUi() 586 { 544 587 setName(gpConverter->toString(DetailsElementType_Audio)); 545 setIcon(UIIconPool::iconSet(":/sound_16px.png"));546 588 } 547 589 … … 651 693 : UIGDetailsElementInterface(pParent, DetailsElementType_Network, fOpened) 652 694 { 653 /* Name/icon: */ 695 /* Icon: */ 696 setIcon(UIIconPool::iconSet(":/nw_16px.png")); 697 698 /* Translate: */ 699 retranslateUi(); 700 } 701 702 void UIGDetailsElementNetwork::retranslateUi() 703 { 654 704 setName(gpConverter->toString(DetailsElementType_Network)); 655 setIcon(UIIconPool::iconSet(":/nw_16px.png"));656 705 } 657 706 … … 713 762 : UIGDetailsElementInterface(pParent, DetailsElementType_Serial, fOpened) 714 763 { 715 /* Name/icon: */ 764 /* Icon: */ 765 setIcon(UIIconPool::iconSet(":/serial_port_16px.png")); 766 767 /* Translate: */ 768 retranslateUi(); 769 } 770 771 void UIGDetailsElementSerial::retranslateUi() 772 { 716 773 setName(gpConverter->toString(DetailsElementType_Serial)); 717 setIcon(UIIconPool::iconSet(":/serial_port_16px.png"));718 774 } 719 775 … … 771 827 : UIGDetailsElementInterface(pParent, DetailsElementType_Parallel, fOpened) 772 828 { 773 /* Name/icon: */ 829 /* Icon: */ 830 setIcon(UIIconPool::iconSet(":/parallel_port_16px.png")); 831 832 /* Translate: */ 833 retranslateUi(); 834 } 835 836 void UIGDetailsElementParallel::retranslateUi() 837 { 774 838 setName(gpConverter->toString(DetailsElementType_Parallel)); 775 setIcon(UIIconPool::iconSet(":/parallel_port_16px.png"));776 839 } 777 840 … … 833 896 : UIGDetailsElementInterface(pParent, DetailsElementType_USB, fOpened) 834 897 { 835 /* Name/icon: */ 898 /* Icon: */ 899 setIcon(UIIconPool::iconSet(":/usb_16px.png")); 900 901 /* Translate: */ 902 retranslateUi(); 903 } 904 905 void UIGDetailsElementUSB::retranslateUi() 906 { 836 907 setName(gpConverter->toString(DetailsElementType_USB)); 837 setIcon(UIIconPool::iconSet(":/usb_16px.png"));838 908 } 839 909 … … 881 951 : UIGDetailsElementInterface(pParent, DetailsElementType_SF, fOpened) 882 952 { 883 /* Name/icon: */ 953 /* Icon: */ 954 setIcon(UIIconPool::iconSet(":/shared_folder_16px.png")); 955 956 /* Translate: */ 957 retranslateUi(); 958 } 959 960 void UIGDetailsElementSF::retranslateUi() 961 { 884 962 setName(gpConverter->toString(DetailsElementType_SF)); 885 setIcon(UIIconPool::iconSet(":/shared_folder_16px.png"));886 963 } 887 964 … … 929 1006 : UIGDetailsElementInterface(pParent, DetailsElementType_Description, fOpened) 930 1007 { 931 /* Name/icon: */ 1008 /* Icon: */ 1009 setIcon(UIIconPool::iconSet(":/description_16px.png")); 1010 1011 /* Translate: */ 1012 retranslateUi(); 1013 } 1014 1015 void UIGDetailsElementDescription::retranslateUi() 1016 { 932 1017 setName(gpConverter->toString(DetailsElementType_Description)); 933 setIcon(UIIconPool::iconSet(":/description_16px.png"));934 1018 } 935 1019 -
trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/details/UIGDetailsElements.h
r43982 r44304 119 119 private: 120 120 121 /* Helpers: Update stuff: */ 121 /* Helper: Translate stuff: */ 122 void retranslateUi(); 123 124 /* Helper: Update stuff: */ 122 125 UIGDetailsUpdateThread* createUpdateThread(); 123 126 }; … … 135 138 136 139 private: 140 141 /* Helper: Translate stuff: */ 142 void retranslateUi(); 137 143 138 144 /* Helpers: Layout stuff: */ 139 145 int minimumWidthHint() const; 140 146 int minimumHeightHint(bool fClosed) const; 141 142 /* Helpers: Update stuff: */ 147 void updateLayout(); 148 149 /* Helper: Update stuff: */ 143 150 void updateAppearance(); 144 145 /* Helpers: Layout stuff: */146 void updateLayout();147 151 148 152 /* Variables: */ … … 179 183 private: 180 184 181 /* Helpers: Update stuff: */ 185 /* Helper: Translate stuff: */ 186 void retranslateUi(); 187 188 /* Helper: Update stuff: */ 182 189 UIGDetailsUpdateThread* createUpdateThread(); 183 190 }; … … 212 219 private: 213 220 214 /* Helpers: Update stuff: */ 221 /* Helper: Translate stuff: */ 222 void retranslateUi(); 223 224 /* Helper: Update stuff: */ 215 225 UIGDetailsUpdateThread* createUpdateThread(); 216 226 }; … … 245 255 private: 246 256 247 /* Helpers: Update stuff: */ 257 /* Helper: Translate stuff: */ 258 void retranslateUi(); 259 260 /* Helper: Update stuff: */ 248 261 UIGDetailsUpdateThread* createUpdateThread(); 249 262 }; … … 278 291 private: 279 292 280 /* Helpers: Update stuff: */ 293 /* Helper: Translate stuff: */ 294 void retranslateUi(); 295 296 /* Helper: Update stuff: */ 281 297 UIGDetailsUpdateThread* createUpdateThread(); 282 298 }; … … 312 328 private: 313 329 314 /* Helpers: Update stuff: */ 330 /* Helper: Translate stuff: */ 331 void retranslateUi(); 332 333 /* Helper: Update stuff: */ 315 334 UIGDetailsUpdateThread* createUpdateThread(); 316 335 }; … … 345 364 private: 346 365 347 /* Helpers: Update stuff: */ 366 /* Helper: Translate stuff: */ 367 void retranslateUi(); 368 369 /* Helper: Update stuff: */ 348 370 UIGDetailsUpdateThread* createUpdateThread(); 349 371 }; … … 379 401 private: 380 402 381 /* Helpers: Update stuff: */ 403 /* Helper: Translate stuff: */ 404 void retranslateUi(); 405 406 /* Helper: Update stuff: */ 382 407 UIGDetailsUpdateThread* createUpdateThread(); 383 408 }; … … 413 438 private: 414 439 415 /* Helpers: Update stuff: */ 440 /* Helper: Translate stuff: */ 441 void retranslateUi(); 442 443 /* Helper: Update stuff: */ 416 444 UIGDetailsUpdateThread* createUpdateThread(); 417 445 }; … … 446 474 private: 447 475 448 /* Helpers: Update stuff: */ 476 /* Helper: Translate stuff: */ 477 void retranslateUi(); 478 479 /* Helper: Update stuff: */ 449 480 UIGDetailsUpdateThread* createUpdateThread(); 450 481 }; … … 479 510 private: 480 511 481 /* Helpers: Update stuff: */ 512 /* Helper: Translate stuff: */ 513 void retranslateUi(); 514 515 /* Helper: Update stuff: */ 482 516 UIGDetailsUpdateThread* createUpdateThread(); 483 517 }; -
trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/details/UIGDetailsItem.cpp
r44064 r44304 31 31 32 32 UIGDetailsItem::UIGDetailsItem(UIGDetailsItem *pParent) 33 : QI GraphicsWidget(pParent)33 : QIWithRetranslateUI4<QIGraphicsWidget>(pParent) 34 34 , m_pParent(pParent) 35 35 { -
trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/details/UIGDetailsItem.h
r44064 r44304 22 22 /* GUI includes: */ 23 23 #include "QIGraphicsWidget.h" 24 #include "QIWithRetranslateUI.h" 24 25 25 26 /* Forward declaration: */ … … 43 44 /* Details item interface 44 45 * for graphics details model/view architecture: */ 45 class UIGDetailsItem : public QI GraphicsWidget46 class UIGDetailsItem : public QIWithRetranslateUI4<QIGraphicsWidget> 46 47 { 47 48 Q_OBJECT; … … 90 91 protected: 91 92 93 /* Helper: Translate stuff: */ 94 void retranslateUi() {} 95 92 96 /* Helpers: Paint stuff: */ 93 97 static void configurePainterShape(QPainter *pPainter, const QStyleOptionGraphicsItem *pOption, int iRadius); -
trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/details/UIGMachinePreview.cpp
r42686 r44304 48 48 49 49 UIGMachinePreview::UIGMachinePreview(QIGraphicsWidget *pParent) 50 : QI GraphicsWidget(pParent)50 : QIWithRetranslateUI4<QIGraphicsWidget>(pParent) 51 51 , m_machineState(KMachineState_Null) 52 52 , m_pUpdateTimer(new QTimer(this)) -
trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/details/UIGMachinePreview.h
r42529 r44304 25 25 /* GUI includes: */ 26 26 #include "UIGDetailsItem.h" 27 #include "QIWithRetranslateUI.h" 27 28 28 29 /* COM includes: */ … … 51 52 52 53 /* Preview window class: */ 53 class UIGMachinePreview : public QI GraphicsWidget54 class UIGMachinePreview : public QIWithRetranslateUI4<QIGraphicsWidget> 54 55 { 55 56 Q_OBJECT;
Note:
See TracChangeset
for help on using the changeset viewer.