public void RotateText(KCompletionBase.KeyBindingType type) { interceptor.Invoke("rotateText$", "rotateText(KCompletionBase::KeyBindingType)", typeof(void), typeof(KCompletionBase.KeyBindingType), type); }
/// <remarks> /// Sets the key-binding to be used for manual text /// completion, text rotation in a history list as /// well as a completion list. /// When the keys set by this function are pressed, a /// signal defined by the inheriting widget will be activated. /// If the default value or 0 is specified by the second /// parameter, then the key-binding as defined in the global /// setting should be used. This method returns false value /// for <code>key</code> is negative or the supplied key-binding conflicts /// with the ones set for one of the other features. /// NOTE: To use a modifier key (Shift, Ctrl, Alt) as part of /// the key-binding simply simply <code>sum</code> up the values of the /// modifier and the actual key. For example, to use CTRL+E as /// a key binding for one of the items, you would simply supply /// <code></code>"Qt.CtrlButton + Qt.Key_E" as the second argument to this /// function. /// <param> name="item" the feature whose key-binding needs to be set: /// </param> /// <li> /// TextCompletion the manual completion key-binding. /// </li> /// /// <li> /// PrevCompletionMatch the previous match key for multiple completion. /// </li> /// /// <li> /// NextCompletionMatch the next match key for for multiple completion. /// </li> /// /// <li> /// SubstringCompletion the key for substring completion /// </li> /// <param> name="key" key-binding used to rotate down in a list. /// </param></remarks> <return> true if key-binding can successfully be set. /// </return> /// <short> Sets the key-binding to be used for manual text completion, text rotation in a history list as well as a completion list.</short> /// <see> getKeyBinding</see> public bool SetKeyBinding(KCompletionBase.KeyBindingType item, KShortcut key) { return (bool) interceptor.Invoke("setKeyBinding$#", "setKeyBinding(KCompletionBase::KeyBindingType, const KShortcut&)", typeof(bool), typeof(KCompletionBase.KeyBindingType), item, typeof(KShortcut), key); }
/// <remarks> /// Returns the key-binding used for the specified item. /// This methods returns the key-binding used to activate /// the feature feature given by <code>item.</code> If the binding /// contains modifier key(s), the SUM of the modifier key /// and the actual key code are returned. /// <param> name="item" the item to check /// </param></remarks> <return> the key-binding used for the feature given by <code>item.</code> /// </return> /// <short> Returns the key-binding used for the specified item.</short> /// <see> setKeyBinding</see> public KShortcut GetKeyBinding(KCompletionBase.KeyBindingType item) { return (KShortcut) interceptor.Invoke("getKeyBinding$", "getKeyBinding(KCompletionBase::KeyBindingType) const", typeof(KShortcut), typeof(KCompletionBase.KeyBindingType), item); }