Classes | |
| struct | CommandListItem |
| struct | CommandListItemSearchInfo |
| class | CommandListDelegate |
| class | CommandListModel |
| class | CommandList |
| class | CommandListFilter |
| class | CommandPalette |
| struct CommandListItem |
Public Types | |
| enum | CommandListItemType { Help , UIAction , OpenTab , NavigationHistory , RecentFile , RecentProject , ProjectFile , Expression , RecentExpression , Function , Symbol , Type , String , DerivedString , LastItemType } |
Public Attributes | |
| CommandListItemType | type |
| QString | name |
| QString | secondary |
| QString | shortcut |
| QString | extraSearchableText |
| QVariant | action |
| Qt::TextElideMode | secondaryElide = Qt::ElideRight |
| int | score = 0 |
| bool | addToRecents = true |
| bool | includeUnfiltered = true |
| bool | scoreFast = false |
| CommandListItemType CommandListItem::type |
| QString CommandListItem::name |
| QString CommandListItem::secondary |
| QString CommandListItem::shortcut |
| QString CommandListItem::extraSearchableText |
| QVariant CommandListItem::action |
| Qt::TextElideMode CommandListItem::secondaryElide = Qt::ElideRight |
| int CommandListItem::score = 0 |
| bool CommandListItem::addToRecents = true |
| bool CommandListItem::includeUnfiltered = true |
| bool CommandListItem::scoreFast = false |
| struct CommandListItemSearchInfo |
Static Public Member Functions | |
| static std::vector< CommandListItemSearchInfo > | GetSearchTypes () |
Public Attributes | |
| std::unordered_set< CommandListItem::CommandListItemType > | types |
| QString | name |
| QString | searchName |
| std::string | prefix |
| QKeySequence | shortcut |
|
static |
| std::unordered_set<CommandListItem::CommandListItemType> CommandListItemSearchInfo::types |
| QString CommandListItemSearchInfo::name |
| QString CommandListItemSearchInfo::searchName |
| std::string CommandListItemSearchInfo::prefix |
| QKeySequence CommandListItemSearchInfo::shortcut |
| class CommandListDelegate |
Public Member Functions | |
| CommandListDelegate (QWidget *parent) | |
| virtual void | paint (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &idx) const override |
| virtual QSize | sizeHint (const QStyleOptionViewItem &option, const QModelIndex &index) const override |
| CommandListDelegate::CommandListDelegate | ( | QWidget * | parent | ) |
|
overridevirtual |
|
overridevirtual |
| class CommandListModel |
Public Member Functions | |
| CommandListModel (QWidget *parent) | |
| ~CommandListModel () | |
| virtual QModelIndex | index (int row, int col, const QModelIndex &parent) const override |
| virtual QModelIndex | parent (const QModelIndex &i) const override |
| virtual bool | hasChildren (const QModelIndex &parent) const override |
| virtual int | rowCount (const QModelIndex &parent=QModelIndex()) const override |
| virtual int | columnCount (const QModelIndex &parent) const override |
| virtual QVariant | data (const QModelIndex &i, int role) const override |
| CommandListItem | getItem (int row) |
| void | setFilterText (const QString &text) |
| size_t | getRecentPosition (const CommandListItem &item) const |
| void | addRecentItem (const CommandListItem &item) |
| void | clearCommandList () |
| void | generateCommandList (UIActionHandler *handler, const UIActionContext &context) |
| void | cancelGenerateCommandList () |
| void | scoreCommandList (CommandListScoreWorker::OrderStrategy strategy) |
| void | cancelScoreCommandList () |
| void | pauseCommandListUpdates () |
| void | unpauseCommandListUpdates () |
| void | updateDisplayedItems () |
| CommandListModel::CommandListModel | ( | QWidget * | parent | ) |
| CommandListModel::~CommandListModel | ( | ) |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
| CommandListItem CommandListModel::getItem | ( | int | row | ) |
| void CommandListModel::setFilterText | ( | const QString & | text | ) |
| size_t CommandListModel::getRecentPosition | ( | const CommandListItem & | item | ) | const |
| void CommandListModel::addRecentItem | ( | const CommandListItem & | item | ) |
| void CommandListModel::clearCommandList | ( | ) |
| void CommandListModel::generateCommandList | ( | UIActionHandler * | handler, |
| const UIActionContext & | context ) |
| void CommandListModel::cancelGenerateCommandList | ( | ) |
| void CommandListModel::scoreCommandList | ( | CommandListScoreWorker::OrderStrategy | strategy | ) |
| void CommandListModel::cancelScoreCommandList | ( | ) |
| void CommandListModel::pauseCommandListUpdates | ( | ) |
| void CommandListModel::unpauseCommandListUpdates | ( | ) |
| void CommandListModel::updateDisplayedItems | ( | ) |
| class CommandList |
Public Member Functions | |
| CommandList (CommandPalette *parent) | |
| void | setFilter (CommandListFilter *filter) |
| void | setFilterText (const QString &text) |
| CommandListItem | getItem (int row) |
| QModelIndex | index (int row, int col, const QModelIndex &parent=QModelIndex()) const |
| void | addRecentItem (const CommandListItem &item) |
| void | clearCommandList () |
| void | generateCommandList (UIActionHandler *handler, const UIActionContext &context) |
| void | cancelGenerateCommandList () |
| void | pauseCommandListUpdates () |
| void | unpauseCommandListUpdates () |
Protected Member Functions | |
| virtual void | keyPressEvent (QKeyEvent *event) override |
| virtual void | focusOutEvent (QFocusEvent *event) override |
| CommandList::CommandList | ( | CommandPalette * | parent | ) |
|
inline |
| void CommandList::setFilterText | ( | const QString & | text | ) |
| CommandListItem CommandList::getItem | ( | int | row | ) |
| QModelIndex CommandList::index | ( | int | row, |
| int | col, | ||
| const QModelIndex & | parent = QModelIndex() ) const |
| void CommandList::addRecentItem | ( | const CommandListItem & | item | ) |
| void CommandList::clearCommandList | ( | ) |
| void CommandList::generateCommandList | ( | UIActionHandler * | handler, |
| const UIActionContext & | context ) |
| void CommandList::cancelGenerateCommandList | ( | ) |
| void CommandList::pauseCommandListUpdates | ( | ) |
| void CommandList::unpauseCommandListUpdates | ( | ) |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
| class CommandListFilter |
Public Member Functions | |
| CommandListFilter (CommandPalette *parent, CommandList *list) | |
Protected Member Functions | |
| bool | event (QEvent *event) override |
| virtual void | keyPressEvent (QKeyEvent *event) override |
| virtual void | focusInEvent (QFocusEvent *event) override |
| virtual void | focusOutEvent (QFocusEvent *event) override |
| virtual void | paintEvent (QPaintEvent *event) override |
| CommandListFilter::CommandListFilter | ( | CommandPalette * | parent, |
| CommandList * | list ) |
|
overrideprotected |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
| class CommandPalette |
Public Member Functions | |
| CommandPalette (QWidget *parent) | |
| void | openWithInput (const QString &text) |
| void | focusInput () |
| void | clearCommandList () |
| void | generateCommandList (UIActionHandler *handler, const UIActionContext &context) |
| void | activateFocusedItem () |
| Activate the focused item, or topmost item if there is no selection. | |
| void | selectFirstItem () |
| void | close (bool restoreFocus=true) |
| void | activateItem (const CommandListItem &item) |
| CommandPalette::CommandPalette | ( | QWidget * | parent | ) |
| void CommandPalette::openWithInput | ( | const QString & | text | ) |
| void CommandPalette::focusInput | ( | ) |
| void CommandPalette::clearCommandList | ( | ) |
| void CommandPalette::generateCommandList | ( | UIActionHandler * | handler, |
| const UIActionContext & | context ) |
| void CommandPalette::activateFocusedItem | ( | ) |
Activate the focused item, or topmost item if there is no selection.
| void CommandPalette::selectFirstItem | ( | ) |
| void CommandPalette::close | ( | bool | restoreFocus = true | ) |
| void CommandPalette::activateItem | ( | const CommandListItem & | item | ) |