X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fguicast%2Fbcmenupopup.h;h=acd48d5e896549c5bbedae07b687bf0e8a648750;hb=0a0a29dd9e484b5622b46173d51bb6cefc0a5da4;hp=fdc8d0b0fb3d4e296e9df5e356fa5bb663c0e4c7;hpb=b0adaf11e855fd84af935d879848467a957d6c67;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/guicast/bcmenupopup.h b/cinelerra-5.1/guicast/bcmenupopup.h index fdc8d0b0..acd48d5e 100644 --- a/cinelerra-5.1/guicast/bcmenupopup.h +++ b/cinelerra-5.1/guicast/bcmenupopup.h @@ -2,21 +2,21 @@ /* * CINELERRA * Copyright (C) 2008 Adam Williams - * + * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * + * */ #ifndef BCMENUPOPUP_H @@ -45,15 +45,16 @@ public: friend class BC_MenuItem; friend class BC_PopupMenu; - int initialize(BC_WindowBase *top_level, - BC_MenuBar *menu_bar, - BC_Menu *menu, - BC_MenuItem *menu_item, + int initialize(BC_WindowBase *top_level, + BC_MenuBar *menu_bar, + BC_Menu *menu, + BC_MenuItem *menu_item, BC_PopupMenu *popup_menu); int add_item(BC_MenuItem *item); int del_item(BC_MenuItem* item); + BC_MenuItem *get_item(int i); + int total_items(); int remove_item(BC_MenuItem* item); - int total_menuitems(); // Deactivates all submenus in a downward progression except for the exclude int deactivate_submenus(BC_MenuPopup *exclude = 0); @@ -73,18 +74,18 @@ public: private: int get_dimensions(); - ArrayList menu_items; + ArrayList menu_items; BC_WindowBase *top_level; BC_MenuItem *menu_item; BC_MenuBar *menu_bar; BC_PopupMenu *popup_menu; BC_Menu *menu; // Dimensions relative to root window - int x, y, w, h; + int x, y, w, h; // Horizontal position of hotkey text int key_x; // Popup window that only exists when menu is down. - BC_Popup *popup; + BC_Popup *popup; int active; int type; // Images for backgrounds