VirtualBox

Changeset 44658 in vbox


Ignore:
Timestamp:
Feb 12, 2013 1:30:52 PM (12 years ago)
Author:
vboxsync
Message:

FE/Qt: 6065: UIShortcutCache extension (not used yet).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsInput.h

    r44528 r44658  
    66
    77/*
    8  * Copyright (C) 2006-2012 Oracle Corporation
     8 * Copyright (C) 2006-2013 Oracle Corporation
    99 *
    1010 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    2020#define __UIGlobalSettingsInput_h__
    2121
    22 /* Local includes */
     22/* GUI includes: */
    2323#include "UISettingsPage.h"
    2424#include "UIGlobalSettingsInput.gen.h"
     25
     26/* Global settings / Input page / Cache / Shortcut cache item: */
     27struct UIShortcutCacheItem
     28{
     29    UIShortcutCacheItem(const QString &strKey,
     30                        const QString &strDescription,
     31                        const QString &strCurrentSequence,
     32                        const QString &strDefaultSequence)
     33        : key(strKey)
     34        , description(strDescription)
     35        , currentSequence(strCurrentSequence)
     36        , defaultSequence(strDefaultSequence)
     37    {}
     38
     39    UIShortcutCacheItem(const UIShortcutCacheItem &other)
     40        : key(other.key)
     41        , description(other.description)
     42        , currentSequence(other.currentSequence)
     43        , defaultSequence(other.defaultSequence)
     44    {}
     45
     46    UIShortcutCacheItem& operator=(const UIShortcutCacheItem &other)
     47    {
     48        key = other.key;
     49        description = other.description;
     50        currentSequence = other.currentSequence;
     51        defaultSequence = other.defaultSequence;
     52        return *this;
     53    }
     54
     55    bool operator==(const UIShortcutCacheItem &other) const
     56    {
     57        return key == other.key;
     58    }
     59
     60    QString key;
     61    QString description;
     62    QString currentSequence;
     63    QString defaultSequence;
     64};
     65
     66/* Global settings / Input page / Cache / Shortcut cache: */
     67typedef QList<UIShortcutCacheItem> UIShortcutCache;
    2568
    2669/* Global settings / Input page / Cache: */
Note: See TracChangeset for help on using the changeset viewer.

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