[litwindow-users] RULE expressions?
Status: Alpha
Brought to you by:
hajokirchhoff
From: yrs90 <yr...@ya...> - 2005-04-18 10:14:34
|
Very helpful explanations. I am having trouble with using an enum as the data type in a property. I get an unresolved external symbol. How do I declare the enum? BEGIN_ADAPTER_ENUM is an empty macro. I want to try the following rule. I hope to enable a menu entry only if my state is equal to idle which is an enum value. class myClass { enum State m_state; } BEGIN_ADAPTER(myClass) PROP(m_state) END_ADAPTER() RULE("MyMenuXRCID.Enable", make_expr<enum State>(m_state) == make_const<enum State>(IDLE)) Is this valid? Thanks, Joel --- [This E-mail scanned for viruses by Declude Virus] |