#include <cmdtreenode.h>
Inheritance diagram for CmdTreeNode:

Public Member Functions | |
| CmdTreeNode (const QString &name, QPtrList< CmdTreeNode > *subTree=NULL, void(*funcPtr)(const QStringList &)=NULL, SuperPtrList< CmdParam > *params=NULL) | |
| ~CmdTreeNode () | |
| const QString & | name () const |
| QPtrList< CmdTreeNode > * | subTree () |
| void(* | funcPtr ())(const QStringList &) |
| QPtrList< CmdParam > * | params () |
| void | setName (QString name) |
| void | setSubTree (QPtrList< CmdTreeNode > *subTree) |
| void | setFuncPtr (void(*funcPtr)(const QStringList &)) |
| void | setParams (QPtrList< CmdParam > *params) |
| void | exec (const QStringList ¶mValues) const |
| QString | toString () const |
Static Public Member Functions | |
| CmdTreeNode * | findNode (QPtrList< CmdTreeNode > *tree, QString name) |
Protected Attributes | |
| QString | myName |
| QPtrList< CmdTreeNode > * | mySubTree |
| void(* | myFuncPtr )(const QStringList &) |
| QPtrList< CmdParam > * | myParams |
Note: There is NO cmdtree class, as the tree is entirely made up of these nodes.
Note: This uses QPtrList's autodelete on the mySubTree and myParams! (if they exist)
|
||||||||||||||||||||
|
|
|
|
|
|
|
|
|
||||||||||||
|
Find an an item by its textual name in a given command group. This is designed to be used by the insert command operation, where a certian command may need to be found for initialization. Note: This method is recursive. Note: This will only return the FIRST occurance. Note: This is static - so that it can be used directly on an object of type QPtrList<CmdTreeNode> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Get the string representation of the command - its prototype. |
|
|
|
|
|
|
|
|
|
|
|
|
1.3.2