Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://astro.uni-altai.ru/~aw/stellarium/api/classTuiNodeEnum.html
Дата изменения: Unknown Дата индексирования: Fri Feb 28 07:26:09 2014 Кодировка: Поисковые слова: reflection nebula |
![]() |
Stellarium 0.12.3
|
Allows navigation but also selection from a list of string values. More...
#include <TuiNodeEnum.hpp>
Signals | |
void | setValue (QString s) |
Public Member Functions | |
TuiNodeEnum (const QString &text, QObject *receiver, const char *method, QStringList items, QString defValue, TuiNode *parent=NULL, TuiNode *prev=NULL) | |
Create a TuiNodeEnum node. More... | |
virtual TuiNodeResponse | handleEditingKey (int key) |
virtual QString | getDisplayText () |
![]() | |
TuiNodeEditable (const QString &text, TuiNode *parent=NULL, TuiNode *prev=NULL) | |
virtual TuiNodeResponse | handleKey (int key) |
![]() | |
TuiNode (const QString &text, TuiNode *parent=NULL, TuiNode *prev=NULL) | |
Create a TuiNode. More... | |
virtual TuiNodeResponse | navigation (int key) |
virtual TuiNode * | getParentNode () |
virtual void | setParentNode (TuiNode *n) |
virtual TuiNode * | getChildNode () |
virtual void | setChildNode (TuiNode *n) |
virtual TuiNode * | getPrevNode () |
virtual void | setPrevNode (TuiNode *n) |
virtual TuiNode * | getNextNode () |
virtual void | setNextNode (TuiNode *n) |
virtual void | loopToTheLast () |
Set prevNode to the last of the chain of nextNode-s. More... | |
int | getNodeNumber () |
QList< int > | getAncestorsNumbers () |
Additional Inherited Members | |
![]() | |
void | updateNodeNumber () |
Updates nodeNumber, ancestorNumbers and prefixText. More... | |
![]() | |
bool | editing |
Allows navigation but also selection from a list of string values.
Definition at line 30 of file TuiNodeEnum.hpp.
TuiNodeEnum::TuiNodeEnum | ( | const QString & | text, |
QObject * | receiver, | ||
const char * | method, | ||
QStringList | items, | ||
QString | defValue, | ||
TuiNode * | parent = NULL , |
||
TuiNode * | prev = NULL |
||
) |
Create a TuiNodeEnum node.
text | the text to be displayed for this node |
receiver | a QObject which will receive a signal when the value is changed |
method | the method in the receiver which will be called when the value is changed. Note that this should be passed using the SLOT() macro. |
items | a list of string values which the item may take. |
defValue | the string value which is used as the initially selected value. Note if this is not in the items list, the first item in the items list will be used instead. |
parent | the node for the parent menu item |
prev | the previous node in the current menu (typically shares the same parent) |