#include <cmdselector.h>
Signals | |
| void | closed () |
| void | cmdSelected (CmdTreeNode *) |
Public Member Functions | |
| CmdSelector (QWidget *parent=0, const char *name=0, int width=-1, int height=-1) | |
| void | popup (QWidget *parent=0) |
| void | setCmdTree (QPtrList< CmdTreeNode > *tree) |
| void | selectItem (QListViewItem *item) |
| void | selectItem (CmdTreeNode *cmd) |
Private Slots | |
| void | listItemClicked (QListViewItem *item) |
Private Member Functions | |
| template<class ParentT> void | insertSubtree (ParentT *parent, QPtrList< CmdTreeNode > *) |
Private Attributes | |
| QWidget * | popupParent |
| QListView * | cmdList |
| CmdTreeNode * | currentCmd |
| QMap< QListViewItem *, CmdTreeNode * > | listItemToCmd |
| QMap< CmdTreeNode *, QListViewItem * > | cmdToListItem |
|
||||||||||||||||||||
|
Default constructor. |
|
|
|
|
|
|
|
||||||||||||||||
|
Recursively inserts items into the treeview Templated as the parent could be of type QListView OR QListViewItem. |
|
|
Change which item is currently selected, then close the pop-up window. |
|
|
Pop-up the command selector widget, enabling the user to select a command. Note:This will try to position the pop-up window in a suitable location on the screen. |
|
|
Select a given command if it is in the list. Reference: CmdTreeNode* |
|
|
Select a given item if it is in the list. Reference: QListViewItem* |
|
|
Set the tree of commands that will be shown in the listview. Existing list view items and mappings will be cleared first. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.3.2