From af0c12aae659acf6f5a97abae337cd27cf6325cc Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Tue, 6 Apr 2004 19:19:41 +0000 Subject: Add Fl_Menu_::find_item() method (STR #316) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3304 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- FL/Fl_Menu_.H | 11 ++++++----- documentation/Fl_Menu_.html | 9 ++++++++- src/Fl_Menu_.cxx | 42 ++++++++++++++++++++++++++++++++++++++++-- 3 files changed, 54 insertions(+), 8 deletions(-) diff --git a/FL/Fl_Menu_.H b/FL/Fl_Menu_.H index 71192dd22..2503b40e3 100644 --- a/FL/Fl_Menu_.H +++ b/FL/Fl_Menu_.H @@ -1,5 +1,5 @@ // -// "$Id: Fl_Menu_.H,v 1.7.2.4.2.8 2004/03/11 05:17:10 easysw Exp $" +// "$Id: Fl_Menu_.H,v 1.7.2.4.2.9 2004/04/06 19:19:33 easysw Exp $" // // Menu base class header file for the Fast Light Tool Kit (FLTK). // @@ -45,12 +45,13 @@ protected: unsigned textcolor_; public: - int item_pathname(char *name, int namelen, const Fl_Menu_Item *finditem=0) const; - const Fl_Menu_Item* picked(const Fl_Menu_Item*); - Fl_Menu_(int,int,int,int,const char * =0); ~Fl_Menu_(); + int item_pathname(char *name, int namelen, const Fl_Menu_Item *finditem=0) const; + const Fl_Menu_Item* picked(const Fl_Menu_Item*); + const Fl_Menu_Item* find_item(const char *name); + const Fl_Menu_Item* test_shortcut() {return picked(menu()->test_shortcut());} void global(); @@ -95,5 +96,5 @@ public: #endif // -// End of "$Id: Fl_Menu_.H,v 1.7.2.4.2.8 2004/03/11 05:17:10 easysw Exp $". +// End of "$Id: Fl_Menu_.H,v 1.7.2.4.2.9 2004/04/06 19:19:33 easysw Exp $". // diff --git a/documentation/Fl_Menu_.html b/documentation/Fl_Menu_.html index f9734599f..49e03a452 100644 --- a/documentation/Fl_Menu_.html +++ b/documentation/Fl_Menu_.html @@ -39,11 +39,12 @@ be "private": a dynamically allocated array managed by the Fl_Menu_.
  • ~Fl_Menu_
  • add
  • clear
  • +
  • copy