VirtualBox

Ignore:
Timestamp:
Feb 18, 2013 2:08:20 PM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
83840
Message:

FE/Qt: 6065: Initial commit of the Global settings / Input page / Shortcut panes.

File:
1 edited

Legend:

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

    r44662 r44737  
    2929#include "UIActionPool.h"
    3030
     31/* Forward declartions: */
     32class QTabWidget;
     33class QLineEdit;
     34class UIHotKeyTableModel;
     35class UIHotKeyTable;
     36
    3137/* Global settings / Input page / Cache / Shortcut cache item: */
    3238struct UIShortcutCacheItem
     
    103109struct UISettingsCacheGlobalInput
    104110{
    105     QString m_strHostCombo;
     111    UIShortcutCache m_shortcuts;
    106112    bool m_fAutoCapture;
    107113};
     
    133139    void saveFromCacheTo(QVariant &data);
    134140
     141    /* Validation stuff: */
     142    void setValidator(QIWidgetValidator *pValidator);
     143    bool revalidate(QString &strWarning, QString &strTitle);
     144
    135145    /* Navigation stuff: */
    136146    void setOrderAfter(QWidget *pWidget);
     
    139149    void retranslateUi();
    140150
     151private slots:
     152
     153    /* Handler: Filtering stuff: */
     154    void sltHandleFilterTextChange();
     155
    141156private:
    142157
    143158    /* Cache: */
     159    QIWidgetValidator *m_pValidator;
    144160    UISettingsCacheGlobalInput m_cache;
     161    QTabWidget *m_pTabWidget;
     162    QLineEdit *m_pFilterEditor;
     163    UIHotKeyTableModel *m_pSelectorModel;
     164    UIHotKeyTable *m_pSelectorTable;
     165    UIHotKeyTableModel *m_pMachineModel;
     166    UIHotKeyTable *m_pMachineTable;
     167};
     168
     169/* Hot-key table indexes: */
     170enum UIHotKeyTableIndex
     171{
     172    UIHotKeyTableIndex_Selector = 0,
     173    UIHotKeyTableIndex_Machine = 1
    145174};
    146175
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