@@ -84,25 +84,27 @@ for correcting unsigned values validation
8484 inline bool is (eventMask chk) const {return (events ()&chk)==chk;}
8585 inline bool has (eventMask chk) const {return events ()&chk;}
8686
87-
8887 inline bool canWrap () const {return style ()&wrapStyle;}
8988 inline bool canNav () const {return sysStyles ()&_canNav;}// can receive navigation focus and process keys
9089 inline bool isMenu () const {return sysStyles ()&_menuData;}// has menu data list and can be a navNode target
9190 inline bool isVariant () const {return sysStyles ()&_isVariant;}// a menu as an enumerated field, connected to a variable value
9291 inline bool parentDraw () const {return sysStyles ()&_parentDraw;}// a menu as an enumerated field, connected to a variable value
9392 inline bool asPad () const {return sysStyles ()&_asPad;}// a menu as an enumerated field, connected to a variable value
93+
9494 inline bool hasTitle (navNode& nav) const ;
9595
9696 virtual Used printTo (navRoot &root,bool sel,menuOut& out, idx_t idx,idx_t len,idx_t panelNr=0 );// raw print to output device
9797 virtual bool changed (const navNode &nav,const menuOut& out,bool sub=true ) {return dirty;}
9898 // this is the system version of enter handler, its used by elements like toggle
9999 virtual result sysHandler (SYS_FUNC_PARAMS) {return proceed;}
100- virtual result eventHandler (eventMask e,navNode& nav,idx_t i) {
100+ /* virtual*/ result eventHandler (eventMask e,navNode& nav,idx_t i) {
101101 return operator ()(e,nav,*this );
102102 }
103103 inline result operator ()(FUNC_PARAMS) const {return (*shadow)(FUNC_VALUES);}
104104 idx_t printRaw (menuOut& out,idx_t len) const ;
105- virtual prompt* seek (idx_t * uri,idx_t len) {return len?NULL :this ;}
105+ #ifdef ASYNC_NAV
106+ virtual prompt* seek (idx_t * uri,idx_t len) {return len?NULL :this ;}
107+ #endif
106108 #ifdef MENU_ASYNC
107109 virtual bool async (const char *uri,navRoot& root,idx_t lvl) {
108110 return ((!*uri)||(uri[0 ]==' /' &&!uri[1 ]));
@@ -267,7 +269,9 @@ for correcting unsigned values validation
267269 void clearChanged (const navNode &nav,const menuOut& out,bool sub) override ;
268270 inline idx_t sz () const {return ((menuNodeShadow*)shadow)->_sz ();}
269271 inline prompt* constMEM* data () const {return ((menuNodeShadow*)shadow)->_data ();}
270- prompt* seek (idx_t * uri,idx_t len) override ;
272+ #ifdef ASYNC_NAV
273+ prompt* seek (idx_t * uri,idx_t len) override ;
274+ #endif
271275 #ifdef MENU_ASYNC
272276 bool async (const char *uri,navRoot& root,idx_t lvl=0 ) override ;
273277 #endif
0 commit comments