35class NCMenuButton :
public YMenuButton,
public NCWidget
39 friend std::ostream & operator<<( std::ostream & str,
const NCMenuButton & obj );
41 NCMenuButton & operator=(
const NCMenuButton & );
42 NCMenuButton(
const NCMenuButton & );
45 bool haveUtf8() {
return YUI::app()->hasFullUtf8Support(); }
49 virtual const char * location()
const {
return "NCMenuButton"; }
51 virtual void wRedraw();
57 NCMenuButton( YWidget * parent,
59 virtual ~NCMenuButton();
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();