VirtualBox

Changeset 73791 in vbox for trunk


Ignore:
Timestamp:
Aug 20, 2018 5:39:50 PM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
124475
Message:

FE/Qt: UIActionPool* classes: A way to distinguish actions which are located in one of VM menus directly and thus should reflect Host+Shortcut combo in their names.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/globals
Files:
3 edited

Legend:

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

    r73790 r73791  
    106106*********************************************************************************************************************************/
    107107
    108 UIAction::UIAction(UIActionPool *pParent, UIActionType enmType)
     108UIAction::UIAction(UIActionPool *pParent, UIActionType enmType, bool fMachineMenuAction /* = false */)
    109109    : QAction(pParent)
    110110    , m_enmType(enmType)
     111    , m_fMachineMenuAction(fMachineMenuAction)
    111112    , m_pActionPool(pParent)
    112113    , m_enmActionPoolType(pParent->type())
     
    211212        /* The same as menu name for Selector UI: */
    212213        case UIActionPoolType_Selector:
     214        {
    213215            setText(nameInMenu());
    214216            break;
     217        }
    215218        /* With shortcut appended for Runtime UI: */
    216219        case UIActionPoolType_Runtime:
    217             setText(vboxGlobal().insertKeyToActionText(nameInMenu(),
    218                                                        gShortcutPool->shortcut(actionPool(), this).toString()));
     220        {
     221            if (machineMenuAction())
     222                setText(vboxGlobal().insertKeyToActionText(nameInMenu(),
     223                                                           gShortcutPool->shortcut(actionPool(), this).toString()));
     224            else
     225                setText(nameInMenu());
    219226            break;
     227        }
    220228    }
    221229}
     
    271279*********************************************************************************************************************************/
    272280
    273 UIActionSimple::UIActionSimple(UIActionPool *pParent)
    274     : UIAction(pParent, UIActionType_Simple)
    275 {
    276 }
    277 
    278281UIActionSimple::UIActionSimple(UIActionPool *pParent,
    279                                const QString &strIcon, const QString &strIconDisabled)
    280     : UIAction(pParent, UIActionType_Simple)
     282                               bool fMachineMenuAction /* = false */)
     283    : UIAction(pParent, UIActionType_Simple, fMachineMenuAction)
     284{
     285}
     286
     287UIActionSimple::UIActionSimple(UIActionPool *pParent,
     288                               const QString &strIcon, const QString &strIconDisabled,
     289                               bool fMachineMenuAction /* = false */)
     290    : UIAction(pParent, UIActionType_Simple, fMachineMenuAction)
    281291{
    282292    setIcon(UIIconPool::iconSet(strIcon, strIconDisabled));
     
    285295UIActionSimple::UIActionSimple(UIActionPool *pParent,
    286296                               const QString &strIconNormal, const QString &strIconSmall,
    287                                const QString &strIconNormalDisabled, const QString &strIconSmallDisabled)
    288     : UIAction(pParent, UIActionType_Simple)
     297                               const QString &strIconNormalDisabled, const QString &strIconSmallDisabled,
     298                               bool fMachineMenuAction /* = false */)
     299    : UIAction(pParent, UIActionType_Simple, fMachineMenuAction)
    289300{
    290301    setIcon(UIIconPool::iconSetFull(strIconNormal, strIconSmall, strIconNormalDisabled, strIconSmallDisabled));
     
    292303
    293304UIActionSimple::UIActionSimple(UIActionPool *pParent,
    294                                const QIcon &icon)
    295     : UIAction(pParent, UIActionType_Simple)
     305                               const QIcon &icon,
     306                               bool fMachineMenuAction /* = false */)
     307    : UIAction(pParent, UIActionType_Simple, fMachineMenuAction)
    296308{
    297309    setIcon(icon);
     
    303315*********************************************************************************************************************************/
    304316
    305 UIActionToggle::UIActionToggle(UIActionPool *pParent)
    306     : UIAction(pParent, UIActionType_Toggle)
    307 {
    308 }
    309 
    310317UIActionToggle::UIActionToggle(UIActionPool *pParent,
    311                                const QString &strIcon, const QString &strIconDisabled)
    312     : UIAction(pParent, UIActionType_Toggle)
     318                               bool fMachineMenuAction /* = false */)
     319    : UIAction(pParent, UIActionType_Toggle, fMachineMenuAction)
     320{
     321}
     322
     323UIActionToggle::UIActionToggle(UIActionPool *pParent,
     324                               const QString &strIcon, const QString &strIconDisabled,
     325                               bool fMachineMenuAction /* = false */)
     326    : UIAction(pParent, UIActionType_Toggle, fMachineMenuAction)
    313327{
    314328    setIcon(UIIconPool::iconSet(strIcon, strIconDisabled));
     
    318332UIActionToggle::UIActionToggle(UIActionPool *pParent,
    319333                               const QString &strIconOn, const QString &strIconOff,
    320                                const QString &strIconOnDisabled, const QString &strIconOffDisabled)
    321     : UIAction(pParent, UIActionType_Toggle)
     334                               const QString &strIconOnDisabled, const QString &strIconOffDisabled,
     335                               bool fMachineMenuAction /* = false */)
     336    : UIAction(pParent, UIActionType_Toggle, fMachineMenuAction)
    322337{
    323338    setIcon(UIIconPool::iconSetOnOff(strIconOn, strIconOff, strIconOnDisabled, strIconOffDisabled));
     
    326341
    327342UIActionToggle::UIActionToggle(UIActionPool *pParent,
    328                                const QIcon &icon)
    329     : UIAction(pParent, UIActionType_Toggle)
     343                               const QIcon &icon,
     344                               bool fMachineMenuAction /* = false */)
     345    : UIAction(pParent, UIActionType_Toggle, fMachineMenuAction)
    330346{
    331347    if (!icon.isNull())
     
    482498    /** Constructs action passing @a pParent to the base-class. */
    483499    UIActionSimplePerformClose(UIActionPool *pParent)
    484         : UIActionSimple(pParent, ":/exit_16px.png", ":/exit_16px.png")
     500        : UIActionSimple(pParent, ":/exit_16px.png", ":/exit_16px.png", true)
    485501    {
    486502        setMenuRole(QAction::QuitRole);
     
    664680    /** Constructs action passing @a pParent to the base-class. */
    665681    UIActionSimpleContents(UIActionPool *pParent)
    666         : UIActionSimple(pParent, UIIconPool::defaultIcon(UIIconPool::UIDefaultIconType_DialogHelp))
     682        : UIActionSimple(pParent, UIIconPool::defaultIcon(UIIconPool::UIDefaultIconType_DialogHelp), true)
    667683    {
    668684        retranslateUi();
     
    722738    /** Constructs action passing @a pParent to the base-class. */
    723739    UIActionSimpleWebSite(UIActionPool *pParent)
    724         : UIActionSimple(pParent, ":/site_16px.png", ":/site_16px.png")
     740        : UIActionSimple(pParent, ":/site_16px.png", ":/site_16px.png", true)
    725741    {
    726742        retranslateUi();
     
    769785    /** Constructs action passing @a pParent to the base-class. */
    770786    UIActionSimpleBugTracker(UIActionPool *pParent)
    771         : UIActionSimple(pParent, ":/site_bugtracker_16px.png", ":/site_bugtracker_16px.png")
     787        : UIActionSimple(pParent, ":/site_bugtracker_16px.png", ":/site_bugtracker_16px.png", true)
    772788    {
    773789        retranslateUi();
     
    816832    /** Constructs action passing @a pParent to the base-class. */
    817833    UIActionSimpleForums(UIActionPool *pParent)
    818         : UIActionSimple(pParent, ":/site_forum_16px.png", ":/site_forum_16px.png")
     834        : UIActionSimple(pParent, ":/site_forum_16px.png", ":/site_forum_16px.png", true)
    819835    {
    820836        retranslateUi();
     
    863879    /** Constructs action passing @a pParent to the base-class. */
    864880    UIActionSimpleOracle(UIActionPool *pParent)
    865         : UIActionSimple(pParent, ":/site_oracle_16px.png", ":/site_oracle_16px.png")
     881        : UIActionSimple(pParent, ":/site_oracle_16px.png", ":/site_oracle_16px.png", true)
    866882    {
    867883        retranslateUi();
     
    910926    /** Constructs action passing @a pParent to the base-class. */
    911927    UIActionSimpleResetWarnings(UIActionPool *pParent)
    912         : UIActionSimple(pParent, ":/reset_warnings_16px.png", ":/reset_warnings_16px.png")
     928        : UIActionSimple(pParent, ":/reset_warnings_16px.png", ":/reset_warnings_16px.png", true)
    913929    {
    914930        setMenuRole(QAction::ApplicationSpecificRole);
     
    959975    /** Constructs action passing @a pParent to the base-class. */
    960976    UIActionSimpleNetworkAccessManager(UIActionPool *pParent)
    961         : UIActionSimple(pParent, ":/download_manager_16px.png", ":/download_manager_16px.png")
     977        : UIActionSimple(pParent, ":/download_manager_16px.png", ":/download_manager_16px.png", true)
    962978    {
    963979        setMenuRole(QAction::ApplicationSpecificRole);
     
    10071023    /** Constructs action passing @a pParent to the base-class. */
    10081024    UIActionSimpleCheckForUpdates(UIActionPool *pParent)
    1009         : UIActionSimple(pParent, ":/refresh_16px.png", ":/refresh_disabled_16px.png")
     1025        : UIActionSimple(pParent, ":/refresh_16px.png", ":/refresh_disabled_16px.png", true)
    10101026    {
    10111027        setMenuRole(QAction::ApplicationSpecificRole);
     
    10561072    /** Constructs action passing @a pParent to the base-class. */
    10571073    UIActionSimpleAbout(UIActionPool *pParent)
    1058         : UIActionSimple(pParent, ":/about_16px.png", ":/about_16px.png")
     1074        : UIActionSimple(pParent, ":/about_16px.png", ":/about_16px.png", true)
    10591075    {
    10601076        setMenuRole(QAction::AboutRole);
     
    11161132    /** Constructs action passing @a pParent to the base-class. */
    11171133    UIActionSimplePreferences(UIActionPool *pParent)
    1118         : UIActionSimple(pParent, ":/global_settings_16px.png", ":/global_settings_16px.png")
     1134        : UIActionSimple(pParent, ":/global_settings_16px.png", ":/global_settings_16px.png", true)
    11191135    {
    11201136        setMenuRole(QAction::PreferencesRole);
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIActionPool.h

    r73790 r73791  
    164164    /** Returns action type. */
    165165    UIActionType type() const { return m_enmType; }
     166    /** Returns whether this is machine-menu action. */
     167    bool machineMenuAction() const { return m_fMachineMenuAction; }
    166168
    167169    /** Returns menu contained by this action. */
     
    217219    /** Constructs action passing @a pParent to the base-class.
    218220      * @param  enmType  Brings the action type. */
    219     UIAction(UIActionPool *pParent, UIActionType enmType);
     221    UIAction(UIActionPool *pParent, UIActionType enmType, bool fMachineMenuAction = false);
    220222
    221223    /** Returns current action name in menu. */
     
    232234    /** Holds the action type. */
    233235    UIActionType  m_enmType;
     236    /** Holds whether this is machine-menu action. */
     237    bool          m_fMachineMenuAction;
    234238
    235239    /** Holds the reference to the action-pool this action belongs to. */
     
    289293protected:
    290294
    291     /** Constructs simple action passing @a pParent to the base-class. */
    292     UIActionSimple(UIActionPool *pParent);
    293295    /** Constructs simple action passing @a pParent to the base-class.
    294       * @param  strIcon          Brings the normal-icon name.
    295       * @param  strIconDisabled  Brings the disabled-icon name. */
     296      * @param  fMachineMenuAction  Brings whether this action is a part of machine menu. */
    296297    UIActionSimple(UIActionPool *pParent,
    297                    const QString &strIcon, const QString &strIconDisabled);
     298                   bool fMachineMenuAction = false);
     299    /** Constructs simple action passing @a pParent to the base-class.
     300      * @param  strIcon             Brings the normal-icon name.
     301      * @param  strIconDisabled     Brings the disabled-icon name.
     302      * @param  fMachineMenuAction  Brings whether this action is a part of machine menu. */
     303    UIActionSimple(UIActionPool *pParent,
     304                   const QString &strIcon, const QString &strIconDisabled,
     305                   bool fMachineMenuAction = false);
    298306    /** Constructs simple action passing @a pParent to the base-class.
    299307      * @param  strIconNormal          Brings the normal-icon name.
    300308      * @param  strIconSmall           Brings the small-icon name.
    301309      * @param  strIconNormalDisabled  Brings the normal-disabled-icon name.
    302       * @param  strIconSmallDisabled   Brings the small-disabled-icon name. */
     310      * @param  strIconSmallDisabled   Brings the small-disabled-icon name.
     311      * @param  fMachineMenuAction     Brings whether this action is a part of machine menu. */
    303312    UIActionSimple(UIActionPool *pParent,
    304313                   const QString &strIconNormal, const QString &strIconSmall,
    305                    const QString &strIconNormalDisabled, const QString &strIconSmallDisabled);
     314                   const QString &strIconNormalDisabled, const QString &strIconSmallDisabled,
     315                   bool fMachineMenuAction = false);
    306316    /** Constructs simple action passing @a pParent to the base-class.
    307       * @param  icon  Brings the icon. */
     317      * @param  icon                Brings the icon.
     318      * @param  fMachineMenuAction  Brings whether this action is a part of machine menu. */
    308319    UIActionSimple(UIActionPool *pParent,
    309                    const QIcon &icon);
     320                   const QIcon &icon,
     321                   bool fMachineMenuAction = false);
    310322};
    311323
     
    318330protected:
    319331
    320     /** Constructs toggle action passing @a pParent to the base-class. */
    321     UIActionToggle(UIActionPool *pParent);
    322332    /** Constructs toggle action passing @a pParent to the base-class.
    323       * @param  strIcon          Brings the normal-icon name.
    324       * @param  strIconDisabled  Brings the disabled-icon name. */
     333      * @param  fMachineMenuAction  Brings whether this action is a part of machine menu. */
    325334    UIActionToggle(UIActionPool *pParent,
    326                    const QString &strIcon, const QString &strIconDisabled);
     335                   bool fMachineMenuAction = false);
     336    /** Constructs toggle action passing @a pParent to the base-class.
     337      * @param  strIcon             Brings the normal-icon name.
     338      * @param  strIconDisabled     Brings the disabled-icon name.
     339      * @param  fMachineMenuAction  Brings whether this action is a part of machine menu. */
     340    UIActionToggle(UIActionPool *pParent,
     341                   const QString &strIcon, const QString &strIconDisabled,
     342                   bool fMachineMenuAction = false);
    327343    /** Constructs toggle action passing @a pParent to the base-class.
    328344      * @param  strIconOn           Brings the on-icon name.
    329345      * @param  strIconOff          Brings the off-icon name.
    330346      * @param  strIconOnDisabled   Brings the on-disabled-icon name.
    331       * @param  strIconOffDisabled  Brings the off-disabled-icon name. */
     347      * @param  strIconOffDisabled  Brings the off-disabled-icon name.
     348      * @param  fMachineMenuAction  Brings whether this action is a part of machine menu. */
    332349    UIActionToggle(UIActionPool *pParent,
    333350                   const QString &strIconOn, const QString &strIconOff,
    334                    const QString &strIconOnDisabled, const QString &strIconOffDisabled);
     351                   const QString &strIconOnDisabled, const QString &strIconOffDisabled,
     352                   bool fMachineMenuAction = false);
    335353    /** Constructs toggle action passing @a pParent to the base-class.
    336       * @param  icon  Brings the icon. */
     354      * @param  icon                Brings the icon.
     355      * @param  fMachineMenuAction  Brings whether this action is a part of machine menu. */
    337356    UIActionToggle(UIActionPool *pParent,
    338                    const QIcon &icon);
     357                   const QIcon &icon,
     358                   bool fMachineMenuAction = false);
    339359
    340360private:
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIActionPoolRuntime.cpp

    r73790 r73791  
    8989    /** Constructs action passing @a pParent to the base-class. */
    9090    UIActionSimpleRuntimeShowSettings(UIActionPool *pParent)
    91         : UIActionSimple(pParent, ":/vm_settings_16px.png", ":/vm_settings_disabled_16px.png")
     91        : UIActionSimple(pParent, ":/vm_settings_16px.png", ":/vm_settings_disabled_16px.png", true)
    9292    {}
    9393
     
    139139    /** Constructs action passing @a pParent to the base-class. */
    140140    UIActionSimpleRuntimePerformTakeSnapshot(UIActionPool *pParent)
    141         : UIActionSimple(pParent, ":/snapshot_take_16px.png", ":/snapshot_take_disabled_16px.png")
     141        : UIActionSimple(pParent, ":/snapshot_take_16px.png", ":/snapshot_take_disabled_16px.png", true)
    142142    {}
    143143
     
    189189    /** Constructs action passing @a pParent to the base-class. */
    190190    UIActionSimpleRuntimeShowInformationDialog(UIActionPool *pParent)
    191         : UIActionSimple(pParent, ":/session_info_16px.png", ":/session_info_disabled_16px.png")
     191        : UIActionSimple(pParent, ":/session_info_16px.png", ":/session_info_disabled_16px.png", true)
    192192    {}
    193193
     
    241241        : UIActionToggle(pParent,
    242242                         ":/vm_pause_on_16px.png", ":/vm_pause_16px.png",
    243                          ":/vm_pause_on_disabled_16px.png", ":/vm_pause_disabled_16px.png")
     243                         ":/vm_pause_on_disabled_16px.png", ":/vm_pause_disabled_16px.png",
     244                         true)
    244245    {}
    245246
     
    291292    /** Constructs action passing @a pParent to the base-class. */
    292293    UIActionSimpleRuntimePerformReset(UIActionPool *pParent)
    293         : UIActionSimple(pParent, ":/vm_reset_16px.png", ":/vm_reset_disabled_16px.png")
     294        : UIActionSimple(pParent, ":/vm_reset_16px.png", ":/vm_reset_disabled_16px.png", true)
    294295    {}
    295296
     
    341342    /** Constructs action passing @a pParent to the base-class. */
    342343    UIActionSimpleRuntimePerformDetach(UIActionPool *pParent)
    343         : UIActionSimple(pParent, ":/vm_create_shortcut_16px.png", ":/vm_create_shortcut_disabled_16px.png")
     344        : UIActionSimple(pParent, ":/vm_create_shortcut_16px.png", ":/vm_create_shortcut_disabled_16px.png", true)
    344345    {}
    345346
     
    385386    /** Constructs action passing @a pParent to the base-class. */
    386387    UIActionSimpleRuntimePerformSaveState(UIActionPool *pParent)
    387         : UIActionSimple(pParent, ":/vm_save_state_16px.png", ":/vm_save_state_disabled_16px.png")
     388        : UIActionSimple(pParent, ":/vm_save_state_16px.png", ":/vm_save_state_disabled_16px.png", true)
    388389    {}
    389390
     
    429430    /** Constructs action passing @a pParent to the base-class. */
    430431    UIActionSimpleRuntimePerformShutdown(UIActionPool *pParent)
    431         : UIActionSimple(pParent, ":/vm_shutdown_16px.png", ":/vm_shutdown_disabled_16px.png")
     432        : UIActionSimple(pParent, ":/vm_shutdown_16px.png", ":/vm_shutdown_disabled_16px.png", true)
    432433    {}
    433434
     
    483484    /** Constructs action passing @a pParent to the base-class. */
    484485    UIActionSimpleRuntimePerformPowerOff(UIActionPool *pParent)
    485         : UIActionSimple(pParent, ":/vm_poweroff_16px.png", ":/vm_poweroff_disabled_16px.png")
     486        : UIActionSimple(pParent, ":/vm_poweroff_16px.png", ":/vm_poweroff_disabled_16px.png", true)
    486487    {}
    487488
     
    601602        : UIActionToggle(pParent,
    602603                         ":/fullscreen_on_16px.png", ":/fullscreen_16px.png",
    603                          ":/fullscreen_on_disabled_16px.png", ":/fullscreen_disabled_16px.png")
     604                         ":/fullscreen_on_disabled_16px.png", ":/fullscreen_disabled_16px.png",
     605                         true)
    604606    {}
    605607
     
    653655        : UIActionToggle(pParent,
    654656                         ":/seamless_on_16px.png", ":/seamless_16px.png",
    655                          ":/seamless_on_disabled_16px.png", ":/seamless_disabled_16px.png")
     657                         ":/seamless_on_disabled_16px.png", ":/seamless_disabled_16px.png",
     658                         true)
    656659    {}
    657660
     
    705708        : UIActionToggle(pParent,
    706709                         ":/scale_on_16px.png", ":/scale_16px.png",
    707                          ":/scale_on_disabled_16px.png", ":/scale_disabled_16px.png")
     710                         ":/scale_on_disabled_16px.png", ":/scale_disabled_16px.png",
     711                         true)
    708712    {}
    709713
     
    756760    /** Constructs action passing @a pParent to the base-class. */
    757761    UIActionSimpleRuntimePerformMinimizeWindow(UIActionPool *pParent)
    758         : UIActionSimple(pParent, ":/minimize_16px.png", ":/minimize_16px.png")
     762        : UIActionSimple(pParent, ":/minimize_16px.png", ":/minimize_16px.png", true)
    759763    {}
    760764
     
    807811    /** Constructs action passing @a pParent to the base-class. */
    808812    UIActionSimpleRuntimePerformWindowAdjust(UIActionPool *pParent)
    809         : UIActionSimple(pParent, ":/adjust_win_size_16px.png", ":/adjust_win_size_disabled_16px.png")
     813        : UIActionSimple(pParent, ":/adjust_win_size_16px.png", ":/adjust_win_size_disabled_16px.png", true)
    810814    {}
    811815
     
    859863        : UIActionToggle(pParent,
    860864                         ":/auto_resize_on_on_16px.png", ":/auto_resize_on_16px.png",
    861                          ":/auto_resize_on_on_disabled_16px.png", ":/auto_resize_on_disabled_16px.png")
     865                         ":/auto_resize_on_on_disabled_16px.png", ":/auto_resize_on_disabled_16px.png",
     866                         true)
    862867    {}
    863868
     
    903908    /** Constructs action passing @a pParent to the base-class. */
    904909    UIActionSimpleRuntimePerformTakeScreenshot(UIActionPool *pParent)
    905         : UIActionSimple(pParent, ":/screenshot_take_16px.png", ":/screenshot_take_disabled_16px.png")
     910        : UIActionSimple(pParent, ":/screenshot_take_16px.png", ":/screenshot_take_disabled_16px.png", true)
    906911    {}
    907912
     
    990995    /** Constructs action passing @a pParent to the base-class. */
    991996    UIActionSimpleRuntimeShowVideoCaptureSettings(UIActionPool *pParent)
    992         : UIActionSimple(pParent, ":/video_capture_settings_16px.png", ":/video_capture_settings_16px.png")
     997        : UIActionSimple(pParent, ":/video_capture_settings_16px.png", ":/video_capture_settings_16px.png", true)
    993998    {}
    994999
     
    10361041        : UIActionToggle(pParent,
    10371042                         ":/video_capture_on_16px.png", ":/video_capture_16px.png",
    1038                          ":/video_capture_on_disabled_16px.png", ":/video_capture_disabled_16px.png")
     1043                         ":/video_capture_on_disabled_16px.png", ":/video_capture_disabled_16px.png",
     1044                         true)
    10391045    {}
    10401046
     
    10821088        : UIActionToggle(pParent,
    10831089                         ":/vrdp_on_16px.png", ":/vrdp_16px.png",
    1084                          ":/vrdp_on_disabled_16px.png", ":/vrdp_disabled_16px.png")
     1090                         ":/vrdp_on_disabled_16px.png", ":/vrdp_disabled_16px.png",
     1091                         true)
    10851092    {}
    10861093
     
    11631170    /** Constructs action passing @a pParent to the base-class. */
    11641171    UIActionSimpleRuntimeShowMenuBarSettings(UIActionPool *pParent)
    1165         : UIActionSimple(pParent, ":/menubar_settings_16px.png", ":/menubar_settings_disabled_16px.png")
     1172        : UIActionSimple(pParent, ":/menubar_settings_16px.png", ":/menubar_settings_disabled_16px.png", true)
    11661173    {}
    11671174
     
    12101217        : UIActionToggle(pParent,
    12111218                         ":/menubar_on_16px.png", ":/menubar_16px.png",
    1212                          ":/menubar_on_disabled_16px.png", ":/menubar_disabled_16px.png")
     1219                         ":/menubar_on_disabled_16px.png", ":/menubar_disabled_16px.png",
     1220                         true)
    12131221    {}
    12141222
     
    12921300    /** Constructs action passing @a pParent to the base-class. */
    12931301    UIActionSimpleRuntimeShowStatusBarSettings(UIActionPool *pParent)
    1294         : UIActionSimple(pParent, ":/statusbar_settings_16px.png", ":/statusbar_settings_disabled_16px.png")
     1302        : UIActionSimple(pParent, ":/statusbar_settings_16px.png", ":/statusbar_settings_disabled_16px.png", true)
    12951303    {}
    12961304
     
    13381346        : UIActionToggle(pParent,
    13391347                         ":/statusbar_on_16px.png", ":/statusbar_16px.png",
    1340                          ":/statusbar_on_disabled_16px.png", ":/statusbar_disabled_16px.png")
     1348                         ":/statusbar_on_disabled_16px.png", ":/statusbar_disabled_16px.png",
     1349                         true)
    13411350    {}
    13421351
     
    14941503    /** Constructs action passing @a pParent to the base-class. */
    14951504    UIActionSimpleRuntimeShowKeyboardSettings(UIActionPool *pParent)
    1496         : UIActionSimple(pParent, ":/keyboard_settings_16px.png", ":/keyboard_settings_disabled_16px.png")
     1505        : UIActionSimple(pParent, ":/keyboard_settings_16px.png", ":/keyboard_settings_disabled_16px.png", true)
    14971506    {}
    14981507
     
    15381547    /** Constructs action passing @a pParent to the base-class. */
    15391548    UIActionSimpleRuntimePerformTypeCAD(UIActionPool *pParent)
    1540         : UIActionSimple(pParent)
     1549        : UIActionSimple(pParent, true)
    15411550    {}
    15421551
     
    15891598    /** Constructs action passing @a pParent to the base-class. */
    15901599    UIActionSimpleRuntimePerformTypeCABS(UIActionPool *pParent)
    1591         : UIActionSimple(pParent)
     1600        : UIActionSimple(pParent, true)
    15921601    {}
    15931602
     
    16401649    /** Constructs action passing @a pParent to the base-class. */
    16411650    UIActionSimpleRuntimePerformTypeCtrlBreak(UIActionPool *pParent)
    1642         : UIActionSimple(pParent)
     1651        : UIActionSimple(pParent, true)
    16431652    {}
    16441653
     
    16841693    /** Constructs action passing @a pParent to the base-class. */
    16851694    UIActionSimpleRuntimePerformTypeInsert(UIActionPool *pParent)
    1686         : UIActionSimple(pParent)
     1695        : UIActionSimple(pParent, true)
    16871696    {}
    16881697
     
    17281737    /** Constructs action passing @a pParent to the base-class. */
    17291738    UIActionSimpleRuntimePerformTypePrintScreen(UIActionPool *pParent)
    1730         : UIActionSimple(pParent)
     1739        : UIActionSimple(pParent, true)
    17311740    {}
    17321741
     
    17721781    /** Constructs action passing @a pParent to the base-class. */
    17731782    UIActionSimpleRuntimePerformTypeAltPrintScreen(UIActionPool *pParent)
    1774         : UIActionSimple(pParent)
     1783        : UIActionSimple(pParent, true)
    17751784    {}
    17761785
     
    18551864        : UIActionToggle(pParent,
    18561865                         ":/mouse_can_seamless_on_16px.png", ":/mouse_can_seamless_16px.png",
    1857                          ":/mouse_can_seamless_on_disabled_16px.png", ":/mouse_can_seamless_disabled_16px.png")
     1866                         ":/mouse_can_seamless_on_disabled_16px.png", ":/mouse_can_seamless_disabled_16px.png",
     1867                         true)
    18581868    {}
    18591869
     
    19761986    /** Constructs action passing @a pParent to the base-class. */
    19771987    UIActionSimpleRuntimeShowHardDrivesSettings(UIActionPool *pParent)
    1978         : UIActionSimple(pParent, ":/hd_settings_16px.png", ":/hd_settings_disabled_16px.png")
     1988        : UIActionSimple(pParent, ":/hd_settings_16px.png", ":/hd_settings_disabled_16px.png", true)
    19791989    {}
    19801990
     
    21372147        : UIActionToggle(pParent,
    21382148                         ":/audio_output_on_16px.png", ":/audio_output_16px.png",
    2139                          ":/audio_output_on_16px.png", ":/audio_output_16px.png")
     2149                         ":/audio_output_on_16px.png", ":/audio_output_16px.png",
     2150                         true)
    21402151    {}
    21412152
     
    21832194        : UIActionToggle(pParent,
    21842195                         ":/audio_input_on_16px.png", ":/audio_input_16px.png",
    2185                          ":/audio_input_on_16px.png", ":/audio_input_16px.png")
     2196                         ":/audio_input_on_16px.png", ":/audio_input_16px.png",
     2197                         true)
    21862198    {}
    21872199
     
    22642276    /** Constructs action passing @a pParent to the base-class. */
    22652277    UIActionSimpleRuntimeShowNetworkSettings(UIActionPool *pParent)
    2266         : UIActionSimple(pParent, ":/nw_settings_16px.png", ":/nw_settings_disabled_16px.png")
     2278        : UIActionSimple(pParent, ":/nw_settings_16px.png", ":/nw_settings_disabled_16px.png", true)
    22672279    {}
    22682280
     
    23472359    /** Constructs action passing @a pParent to the base-class. */
    23482360    UIActionSimpleRuntimeShowUSBDevicesSettings(UIActionPool *pParent)
    2349         : UIActionSimple(pParent, ":/usb_settings_16px.png", ":/usb_settings_disabled_16px.png")
     2361        : UIActionSimple(pParent, ":/usb_settings_16px.png", ":/usb_settings_disabled_16px.png", true)
    23502362    {}
    23512363
     
    25412553    /** Constructs action passing @a pParent to the base-class. */
    25422554    UIActionSimpleRuntimeShowSharedFoldersSettings(UIActionPool *pParent)
    2543         : UIActionSimple(pParent, ":/sf_settings_16px.png", ":/sf_settings_disabled_16px.png")
     2555        : UIActionSimple(pParent, ":/sf_settings_16px.png", ":/sf_settings_disabled_16px.png", true)
    25442556    {}
    25452557
     
    25852597    /** Constructs action passing @a pParent to the base-class. */
    25862598    UIActionSimpleRuntimePerformInstallGuestTools(UIActionPool *pParent)
    2587         : UIActionSimple(pParent, ":/guesttools_16px.png", ":/guesttools_disabled_16px.png")
     2599        : UIActionSimple(pParent, ":/guesttools_16px.png", ":/guesttools_disabled_16px.png", true)
    25882600    {}
    25892601
     
    26672679    /** Constructs action passing @a pParent to the base-class. */
    26682680    UIActionSimpleRuntimeShowStatistics(UIActionPool *pParent)
    2669         : UIActionSimple(pParent)
     2681        : UIActionSimple(pParent, true)
    26702682    {}
    26712683
     
    27102722    /** Constructs action passing @a pParent to the base-class. */
    27112723    UIActionSimpleRuntimeShowCommandLine(UIActionPool *pParent)
    2712         : UIActionSimple(pParent)
     2724        : UIActionSimple(pParent, true)
    27132725    {}
    27142726
     
    27532765    /** Constructs action passing @a pParent to the base-class. */
    27542766    UIActionToggleRuntimeLogging(UIActionPool *pParent)
    2755         : UIActionToggle(pParent)
     2767        : UIActionToggle(pParent, true)
    27562768    {}
    27572769
     
    27962808    /** Constructs action passing @a pParent to the base-class. */
    27972809    UIActionSimpleRuntimeShowLogs(UIActionPool *pParent)
    2798         : UIActionSimple(pParent)
     2810        : UIActionSimple(pParent, true)
    27992811    {}
    28002812
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