VirtualBox

Ignore:
Timestamp:
Aug 21, 2024 3:19:55 PM (8 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
164486
Message:

FE/Qt: Action pool: Adjusting VISO Creator NLS tags according to common requirements; Besides that, some internal refactoring for action object class names.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIActionPool.cpp

    r105772 r105774  
    23882388};
    23892389
    2390 class UIActionMenuVISOCreatorAdd : public UIActionSimple
    2391 {
    2392     Q_OBJECT;
    2393 
    2394 public:
    2395     /** Constructs action passing @a pParent to the base-class. */
    2396     UIActionMenuVISOCreatorAdd(UIActionPool *pParent)
     2390class UIActionSimpleVISOCreatorAdd : public UIActionSimple
     2391{
     2392    Q_OBJECT;
     2393
     2394public:
     2395
     2396    /** Constructs action passing @a pParent to the base-class. */
     2397    UIActionSimpleVISOCreatorAdd(UIActionPool *pParent)
    23972398        : UIActionSimple(pParent,
    23982399                         ":/file_manager_copy_to_guest_24px.png",
     
    24232424};
    24242425
    2425 class UIActionMenuVISOCreatorRemove : public UIActionSimple
    2426 {
    2427     Q_OBJECT;
    2428 
    2429 public:
    2430     /** Constructs action passing @a pParent to the base-class. */
    2431     UIActionMenuVISOCreatorRemove(UIActionPool *pParent)
     2426class UIActionSimpleVISOCreatorRemove : public UIActionSimple
     2427{
     2428    Q_OBJECT;
     2429
     2430public:
     2431
     2432    /** Constructs action passing @a pParent to the base-class. */
     2433    UIActionSimpleVISOCreatorRemove(UIActionPool *pParent)
    24322434        : UIActionSimple(pParent,
    24332435                         ":/file_manager_delete_24px.png",
     
    24582460};
    24592461
    2460 class UIActionMenuVISOCreatorRestore : public UIActionSimple
    2461 {
    2462     Q_OBJECT;
    2463 
    2464 public:
    2465     /** Constructs action passing @a pParent to the base-class. */
    2466     UIActionMenuVISOCreatorRestore(UIActionPool *pParent)
     2462class UIActionSimpleVISOCreatorRestore : public UIActionSimple
     2463{
     2464    Q_OBJECT;
     2465
     2466public:
     2467
     2468    /** Constructs action passing @a pParent to the base-class. */
     2469    UIActionSimpleVISOCreatorRestore(UIActionPool *pParent)
    24672470        : UIActionSimple(pParent,
    24682471                         ":/file_manager_restore_24px.png",
     
    24932496};
    24942497
    2495 class UIActionMenuVISOCreatorCreateNewDirectory : public UIActionSimple
    2496 {
    2497     Q_OBJECT;
    2498 
    2499 public:
    2500     /** Constructs action passing @a pParent to the base-class. */
    2501     UIActionMenuVISOCreatorCreateNewDirectory(UIActionPool *pParent)
     2498class UIActionSimpleVISOCreatorCreateNewDirectory : public UIActionSimple
     2499{
     2500    Q_OBJECT;
     2501
     2502public:
     2503
     2504    /** Constructs action passing @a pParent to the base-class. */
     2505    UIActionSimpleVISOCreatorCreateNewDirectory(UIActionPool *pParent)
    25022506        : UIActionSimple(pParent,
    25032507                         ":/file_manager_new_directory_24px.png",
     
    25282532};
    25292533
    2530 class UIActionMenuVISOCreatorRename : public UIActionSimple
    2531 {
    2532     Q_OBJECT;
    2533 
    2534 public:
    2535     /** Constructs action passing @a pParent to the base-class. */
    2536     UIActionMenuVISOCreatorRename(UIActionPool *pParent)
     2534class UIActionSimpleVISOCreatorRename : public UIActionSimple
     2535{
     2536    Q_OBJECT;
     2537
     2538public:
     2539
     2540    /** Constructs action passing @a pParent to the base-class. */
     2541    UIActionSimpleVISOCreatorRename(UIActionPool *pParent)
    25372542        : UIActionSimple(pParent,
    25382543                         ":/file_manager_rename_24px.png",
     
    25632568};
    25642569
    2565 class UIActionMenuVISOCreatorReset : public UIActionSimple
    2566 {
    2567     Q_OBJECT;
    2568 
    2569 public:
    2570     /** Constructs action passing @a pParent to the base-class. */
    2571     UIActionMenuVISOCreatorReset(UIActionPool *pParent)
     2570class UIActionSimpleVISOCreatorReset : public UIActionSimple
     2571{
     2572    Q_OBJECT;
     2573
     2574public:
     2575
     2576    /** Constructs action passing @a pParent to the base-class. */
     2577    UIActionSimpleVISOCreatorReset(UIActionPool *pParent)
    25722578        : UIActionSimple(pParent,
    25732579                         ":/cd_remove_16px.png", ":/cd_remove_disabled_16px.png")
     
    25892595        setName(QApplication::translate("UIActionPool", "R&eset"));
    25902596        setShortcutScope(QApplication::translate("UIActionPool", "VISO Creator"));
    2591         setStatusTip(QApplication::translate("UIActionPool", "Reset the VISO content."));
    2592         setToolTip(QApplication::translate("UIActionPool", "Reset the VISO content.")
    2593                    + (shortcut().isEmpty() ? QString() : QString(" (%1)").arg(shortcut().toString())));
    2594     }
    2595 };
    2596 
    2597 class UIActionMenuVISOCreatorOpen : public UIActionSimple
    2598 {
    2599     Q_OBJECT;
    2600 
    2601 public:
    2602     /** Constructs action passing @a pParent to the base-class. */
    2603     UIActionMenuVISOCreatorOpen(UIActionPool *pParent)
     2597        setStatusTip(QApplication::translate("UIActionPool", "Reset the VISO content"));
     2598        setToolTip(QApplication::translate("UIActionPool", "Reset the VISO Content")
     2599                   + (shortcut().isEmpty() ? QString() : QString(" (%1)").arg(shortcut().toString())));
     2600    }
     2601};
     2602
     2603class UIActionSimpleVISOCreatorOpen : public UIActionSimple
     2604{
     2605    Q_OBJECT;
     2606
     2607public:
     2608
     2609    /** Constructs action passing @a pParent to the base-class. */
     2610    UIActionSimpleVISOCreatorOpen(UIActionPool *pParent)
    26042611        : UIActionSimple(pParent,
    26052612                         ":/cd_remove_16px.png", ":/cd_remove_32px.png")
     
    26212628        setName(QApplication::translate("UIActionPool", "Open"));
    26222629        setShortcutScope(QApplication::translate("UIActionPool", "VISO Creator"));
    2623         setStatusTip(QApplication::translate("UIActionPool", "Open the VISO content."));
    2624         setToolTip(QApplication::translate("UIActionPool", "Open the VISO content.")
    2625                    + (shortcut().isEmpty() ? QString() : QString(" (%1)").arg(shortcut().toString())));
    2626     }
    2627 };
    2628 
    2629 class UIActionMenuVISOCreatorSaveAs : public UIActionSimple
    2630 {
    2631     Q_OBJECT;
    2632 
    2633 public:
    2634     /** Constructs action passing @a pParent to the base-class. */
    2635     UIActionMenuVISOCreatorSaveAs(UIActionPool *pParent)
     2630        setStatusTip(QApplication::translate("UIActionPool", "Open the VISO content"));
     2631        setToolTip(QApplication::translate("UIActionPool", "Open the VISO Content")
     2632                   + (shortcut().isEmpty() ? QString() : QString(" (%1)").arg(shortcut().toString())));
     2633    }
     2634};
     2635
     2636class UIActionSimpleVISOCreatorSaveAs : public UIActionSimple
     2637{
     2638    Q_OBJECT;
     2639
     2640public:
     2641
     2642    /** Constructs action passing @a pParent to the base-class. */
     2643    UIActionSimpleVISOCreatorSaveAs(UIActionPool *pParent)
    26362644        : UIActionSimple(pParent,
    26372645                         ":/cd_write_16px.png", ":/cd_write_32px.png")
     
    26542662        setShortcutScope(QApplication::translate("UIActionPool", "VISO Creator"));
    26552663        setStatusTip(QApplication::translate("UIActionPool", "Save the VISO content."));
    2656         setToolTip(QApplication::translate("UIActionPool", "Save the VISO content.")
    2657                    + (shortcut().isEmpty() ? QString() : QString(" (%1)").arg(shortcut().toString())));
    2658     }
    2659 };
    2660 
    2661 class UIActionMenuVISOCreatorImportISO : public UIActionSimple
    2662 {
    2663     Q_OBJECT;
    2664 
    2665 public:
    2666     /** Constructs action passing @a pParent to the base-class. */
    2667     UIActionMenuVISOCreatorImportISO(UIActionPool *pParent)
     2664        setToolTip(QApplication::translate("UIActionPool", "Save the VISO Content.")
     2665                   + (shortcut().isEmpty() ? QString() : QString(" (%1)").arg(shortcut().toString())));
     2666    }
     2667};
     2668
     2669class UIActionSimpleVISOCreatorImportISO : public UIActionSimple
     2670{
     2671    Q_OBJECT;
     2672
     2673public:
     2674
     2675    /** Constructs action passing @a pParent to the base-class. */
     2676    UIActionSimpleVISOCreatorImportISO(UIActionPool *pParent)
    26682677        : UIActionSimple(pParent,
    26692678                         ":/cd_add_16px.png", ":/cd_add_32px.png", ":/cd_add_disabled_16px.png", ":/cd_add_disabled_32px.png")
     
    26862695        setShortcutScope(QApplication::translate("UIActionPool", "VISO Creator"));
    26872696        setStatusTip(QApplication::translate("UIActionPool", "Import ISO into the VISO content."));
    2688         setToolTip(QApplication::translate("UIActionPool", "Import Selected ISO into the VISO content.")
    2689                    + (shortcut().isEmpty() ? QString() : QString(" (%1)").arg(shortcut().toString())));
    2690     }
    2691 };
    2692 
    2693 
    2694 class UIActionMenuVISOCreatorRemoveISO : public UIActionSimple
    2695 {
    2696     Q_OBJECT;
    2697 
    2698 public:
    2699     /** Constructs action passing @a pParent to the base-class. */
    2700     UIActionMenuVISOCreatorRemoveISO(UIActionPool *pParent)
     2697        setToolTip(QApplication::translate("UIActionPool", "Import Selected ISO Into the VISO Content.")
     2698                   + (shortcut().isEmpty() ? QString() : QString(" (%1)").arg(shortcut().toString())));
     2699    }
     2700};
     2701
     2702class UIActionSimpleVISOCreatorRemoveISO : public UIActionSimple
     2703{
     2704    Q_OBJECT;
     2705
     2706public:
     2707
     2708    /** Constructs action passing @a pParent to the base-class. */
     2709    UIActionSimpleVISOCreatorRemoveISO(UIActionPool *pParent)
    27012710        : UIActionSimple(pParent,
    27022711                         ":/cd_remove_16px.png", ":/cd_remove_32px.png", ":/cd_remove_disabled_16px.png", ":/cd_remove_disabled_32px.png")
     
    27192728        setShortcutScope(QApplication::translate("UIActionPool", "VISO Creator"));
    27202729        setStatusTip(QApplication::translate("UIActionPool", "Remove the imported ISO from the VISO content."));
    2721         setToolTip(QApplication::translate("UIActionPool", "Remove the imported ISO from the VISO content.")
     2730        setToolTip(QApplication::translate("UIActionPool", "Remove the Imported ISO From the VISO Content.")
    27222731                   + (shortcut().isEmpty() ? QString() : QString(" (%1)").arg(shortcut().toString())));
    27232732    }
     
    27252734
    27262735/** Simple action extension, used as 'Perform GoUp' in VISO creator action class. */
    2727 class UIActionMenuVISOCreatorGoUp : public UIActionSimple
    2728 {
    2729     Q_OBJECT;
    2730 
    2731 public:
    2732 
    2733     /** Constructs action passing @a pParent to the base-class. */
    2734     UIActionMenuVISOCreatorGoUp(UIActionPool *pParent)
     2736class UIActionSimpleVISOCreatorGoUp : public UIActionSimple
     2737{
     2738    Q_OBJECT;
     2739
     2740public:
     2741
     2742    /** Constructs action passing @a pParent to the base-class. */
     2743    UIActionSimpleVISOCreatorGoUp(UIActionPool *pParent)
    27352744        : UIActionSimple(pParent,
    27362745                         ":/file_manager_go_up_24px.png", ":/file_manager_go_up_16px.png",
     
    27642773
    27652774/** Simple action extension, used as 'Perform GoHome' in VISO creator action class. */
    2766 class UIActionMenuVISOCreatorGoHome : public UIActionSimple
    2767 {
    2768     Q_OBJECT;
    2769 
    2770 public:
    2771 
    2772     /** Constructs action passing @a pParent to the base-class. */
    2773     UIActionMenuVISOCreatorGoHome(UIActionPool *pParent)
     2775class UIActionSimpleVISOCreatorGoHome : public UIActionSimple
     2776{
     2777    Q_OBJECT;
     2778
     2779public:
     2780
     2781    /** Constructs action passing @a pParent to the base-class. */
     2782    UIActionSimpleVISOCreatorGoHome(UIActionPool *pParent)
    27742783        : UIActionSimple(pParent,
    27752784                         ":/file_manager_go_home_24px.png", ":/file_manager_go_home_16px.png",
     
    28032812
    28042813/** Simple action extension, used as 'Perform GoForward' in VISO creator action class. */
    2805 class UIActionMenuVISOCreatorGoForward : public UIActionSimple
    2806 {
    2807     Q_OBJECT;
    2808 
    2809 public:
    2810 
    2811     /** Constructs action passing @a pParent to the base-class. */
    2812     UIActionMenuVISOCreatorGoForward(UIActionPool *pParent)
     2814class UIActionSimpleVISOCreatorGoForward : public UIActionSimple
     2815{
     2816    Q_OBJECT;
     2817
     2818public:
     2819
     2820    /** Constructs action passing @a pParent to the base-class. */
     2821    UIActionSimpleVISOCreatorGoForward(UIActionPool *pParent)
    28132822        : UIActionSimple(pParent,
    28142823                         ":/file_manager_go_forward_24px.png", ":/file_manager_go_forward_16px.png",
     
    28422851
    28432852/** Simple action extension, used as 'Perform GoBackward' in VISO creator action class. */
    2844 class UIActionMenuVISOCreatorGoBackward : public UIActionSimple
    2845 {
    2846     Q_OBJECT;
    2847 
    2848 public:
    2849 
    2850     /** Constructs action passing @a pParent to the base-class. */
    2851     UIActionMenuVISOCreatorGoBackward(UIActionPool *pParent)
     2853class UIActionSimpleVISOCreatorGoBackward : public UIActionSimple
     2854{
     2855    Q_OBJECT;
     2856
     2857public:
     2858
     2859    /** Constructs action passing @a pParent to the base-class. */
     2860    UIActionSimpleVISOCreatorGoBackward(UIActionPool *pParent)
    28522861        : UIActionSimple(pParent,
    28532862                         ":/file_manager_go_backward_24px.png", ":/file_manager_go_backward_16px.png",
     
    28742883        setName(QApplication::translate("UIActionPool", "Go Backward"));
    28752884        setShortcutScope(QApplication::translate("UIActionPool", "VISO Creator"));
    2876         setStatusTip(QApplication::translate("UIActionPool", "Go forward"));
     2885        setStatusTip(QApplication::translate("UIActionPool", "Go backward"));
    28772886        setToolTip(  QApplication::translate("UIActionPool", "Go Backward")
    28782887                   + (shortcut().isEmpty() ? QString() : QString(" (%1)").arg(shortcut().toString())));
     
    35623571    m_pool[UIActionIndex_M_VISOCreator] = new UIActionMenuVISOCreator(this);
    35633572    m_pool[UIActionIndex_M_VISOCreator_TogglePreferences] = new UIActionToggleVISOCreatorPreferences(this);
    3564     m_pool[UIActionIndex_M_VISOCreator_Add] = new UIActionMenuVISOCreatorAdd(this);
    3565     m_pool[UIActionIndex_M_VISOCreator_Remove] = new UIActionMenuVISOCreatorRemove(this);
    3566     m_pool[UIActionIndex_M_VISOCreator_Restore] = new UIActionMenuVISOCreatorRestore(this);
    3567     m_pool[UIActionIndex_M_VISOCreator_CreateNewDirectory] = new UIActionMenuVISOCreatorCreateNewDirectory(this);
    3568     m_pool[UIActionIndex_M_VISOCreator_Rename] = new UIActionMenuVISOCreatorRename(this);
    3569     m_pool[UIActionIndex_M_VISOCreator_Reset] = new UIActionMenuVISOCreatorReset(this);
    3570     m_pool[UIActionIndex_M_VISOCreator_Open] = new UIActionMenuVISOCreatorOpen(this);
    3571     m_pool[UIActionIndex_M_VISOCreator_SaveAs] = new UIActionMenuVISOCreatorSaveAs(this);
    3572     m_pool[UIActionIndex_M_VISOCreator_ImportISO] = new UIActionMenuVISOCreatorImportISO(this);
    3573     m_pool[UIActionIndex_M_VISOCreator_RemoveISO] = new UIActionMenuVISOCreatorRemoveISO(this);
    3574 
    3575     m_pool[UIActionIndex_M_VISOCreator_VisoContent_GoHome] = new UIActionMenuVISOCreatorGoHome(this);
    3576     m_pool[UIActionIndex_M_VISOCreator_VisoContent_GoUp] = new UIActionMenuVISOCreatorGoUp(this);
    3577     m_pool[UIActionIndex_M_VISOCreator_VisoContent_GoForward] = new UIActionMenuVISOCreatorGoForward(this);
    3578     m_pool[UIActionIndex_M_VISOCreator_VisoContent_GoBackward] = new UIActionMenuVISOCreatorGoBackward(this);
    3579     m_pool[UIActionIndex_M_VISOCreator_Host_GoHome] = new UIActionMenuVISOCreatorGoHome(this);
    3580     m_pool[UIActionIndex_M_VISOCreator_Host_GoUp] = new UIActionMenuVISOCreatorGoUp(this);
    3581     m_pool[UIActionIndex_M_VISOCreator_Host_GoForward] = new UIActionMenuVISOCreatorGoForward(this);
    3582     m_pool[UIActionIndex_M_VISOCreator_Host_GoBackward] = new UIActionMenuVISOCreatorGoBackward(this);
    3583 
     3573    m_pool[UIActionIndex_M_VISOCreator_Add] = new UIActionSimpleVISOCreatorAdd(this);
     3574    m_pool[UIActionIndex_M_VISOCreator_Remove] = new UIActionSimpleVISOCreatorRemove(this);
     3575    m_pool[UIActionIndex_M_VISOCreator_Restore] = new UIActionSimpleVISOCreatorRestore(this);
     3576    m_pool[UIActionIndex_M_VISOCreator_CreateNewDirectory] = new UIActionSimpleVISOCreatorCreateNewDirectory(this);
     3577    m_pool[UIActionIndex_M_VISOCreator_Rename] = new UIActionSimpleVISOCreatorRename(this);
     3578    m_pool[UIActionIndex_M_VISOCreator_Reset] = new UIActionSimpleVISOCreatorReset(this);
     3579    m_pool[UIActionIndex_M_VISOCreator_Open] = new UIActionSimpleVISOCreatorOpen(this);
     3580    m_pool[UIActionIndex_M_VISOCreator_SaveAs] = new UIActionSimpleVISOCreatorSaveAs(this);
     3581    m_pool[UIActionIndex_M_VISOCreator_ImportISO] = new UIActionSimpleVISOCreatorImportISO(this);
     3582    m_pool[UIActionIndex_M_VISOCreator_RemoveISO] = new UIActionSimpleVISOCreatorRemoveISO(this);
     3583    m_pool[UIActionIndex_M_VISOCreator_VisoContent_GoHome] = new UIActionSimpleVISOCreatorGoHome(this);
     3584    m_pool[UIActionIndex_M_VISOCreator_VisoContent_GoUp] = new UIActionSimpleVISOCreatorGoUp(this);
     3585    m_pool[UIActionIndex_M_VISOCreator_VisoContent_GoForward] = new UIActionSimpleVISOCreatorGoForward(this);
     3586    m_pool[UIActionIndex_M_VISOCreator_VisoContent_GoBackward] = new UIActionSimpleVISOCreatorGoBackward(this);
     3587    m_pool[UIActionIndex_M_VISOCreator_Host_GoHome] = new UIActionSimpleVISOCreatorGoHome(this);
     3588    m_pool[UIActionIndex_M_VISOCreator_Host_GoUp] = new UIActionSimpleVISOCreatorGoUp(this);
     3589    m_pool[UIActionIndex_M_VISOCreator_Host_GoForward] = new UIActionSimpleVISOCreatorGoForward(this);
     3590    m_pool[UIActionIndex_M_VISOCreator_Host_GoBackward] = new UIActionSimpleVISOCreatorGoBackward(this);
    35843591
    35853592    /* Medium Selector actions: */
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette