25 #ifndef NCMenuButton_h
26 #define NCMenuButton_h
30 #include <yui/YMenuButton.h>
31 #include "NCApplication.h"
39 friend std::ostream & operator<<( std::ostream & STREAM,
const NCMenuButton & OBJ );
45 bool haveUtf8() {
return YUI::app()->hasFullUtf8Support(); }
49 virtual const char * location()
const {
return "NCMenuButton"; }
51 virtual void wRedraw();
61 virtual int preferredWidth();
62 virtual int preferredHeight();
64 virtual void setSize(
int newWidth,
int newHeight );
66 virtual void rebuildMenuTree();
70 virtual void setLabel(
const std::string & nlabel );
74 YMenuItem * findItem(
int selection ) {
return findMenuItem( selection ); }
76 virtual bool setKeyboardFocus()
79 return YWidget::setKeyboardFocus();
86 #endif // NCMenuButton_h