BC_MenuItem Class Reference

#include <bcmenuitem.h>

Inherited by AddAudioTrack, AddVideoTrack, ADriverItem, AssetListFormat, AssetListSort, AssetMatchRate, AssetMatchSize, AssetPopupBuildIndex, AssetPopupDiskRemove, AssetPopupInfo, AssetPopupPaste, AssetPopupProjectRemove, AssetPopupSort, AssetPopupView, AutosFollowEdits, BatchRenderMenuItem, CanvasFullScreenItem, CanvasPopupAuto, CanvasPopupRemoveSource, CanvasPopupResetCamera, CanvasPopupResetProjector, CanvasPopupResetTranslation, CanvasPopupSize, CanvasSubWindowItem, CanvasToggleControls, ChannelEditEditFreqItem, ChannelEditEditInputItem, ChannelEditEditNormItem, Clear, ClearDefaultKeyframe, ClearKeyframes, ClearLabels, ConcatenateTracks, Copy, CopyDefaultKeyframe, CopyKeyframes, CropVideo, CursorOnFrames, Cut, CutDefaultKeyframe, CutKeyframes, DefaultATransition, DefaultVTransition, DeleteAudioTrack, DeleteTrack, DeleteTracks, DeleteVideoTrack, DumpAssets, DumpCICache, DumpEDL, DumpPlugins, EditAttachEffect, EditMoveTrackDown, EditMoveTrackUp, EditPopupAddTrack, EditPopupDeleteTrack, EditPopupMatchSize, EditPopupResize, EditPopupTitle, ExportEDLItem, EXRCompressionItem, FeatherEdits, FlipBook, FolderListFormat, KeyframePopupCopy, KeyframePopupDelete, KeyframePopupShow, LabelPopupEdit, LabelsFollowEdits, Load, LoadBackup, LoadPrevious, LoopPlayback, MapAudio1, MapAudio2, MenuEffectItem, MenuEffects, MoveTracksDown, MoveTracksUp, MuteSelection, New, NudgePopupNative, NudgePopupSeconds, Paste, PasteDefaultKeyframe, PasteKeyframes, PasteSilence, PluginAutomation, PluginPopupAttach, PluginPopupChange, PluginPopupDetach, PluginPopupDown, PluginPopupIn, PluginPopupOn, PluginPopupOut, PluginPopupShow, PluginPopupUp, PluginsFollowEdits, PreferencesMenuitem, Quit, RecordGUIMode, RecordMenuItem, RecordMonitorFullsize, Redo, ReIndex, RenderItem, ResetTranslation, ReverbLoad, ReverbLoadPrev, ReverbSave, ReverbSetDefault, Save, SaveAs, SaveBackup, SaveSettingsNow, Scale, ScrubSpeed, SelectAll, SetBRenderStart, SetFormat, ShowAssets, ShowAutomation, ShowAWindow, ShowCWindow, ShowGWindow, ShowLWindow, ShowTitles, ShowTransitions, ShowVWindow, StraightenKeyframes, SwapItem, SynthFreqEnum, SynthFreqEven, SynthFreqFibonacci, SynthFreqOdd, SynthFreqPrime, SynthFreqRandom, SynthLevelInvert, SynthLevelMax, SynthLevelNormalize, SynthLevelRandom, SynthLevelSine, SynthLevelSlope, SynthLevelZero, SynthPhaseInvert, SynthPhaseRandom, SynthPhaseSine, SynthPhaseZero, SynthWaveFormItem, TIFFColorspaceItem, TIFFCompressionItem, TileWindows, TransitionMenuItem, TransitionPopupAttach, TransitionPopupDetach, TransitionPopupLength, TransitionPopupOn, TransitionPopupShow, TrimSelection, Undo, VDriverItem, ViewBehaviourItem, ViewThemeItem, and VModePatchItem.

Collaboration diagram for BC_MenuItem:

Collaboration graph
[legend]

Public Member Functions

 BC_MenuItem (char *text, char *hotkey_text="", int hotkey=0)
virtual ~BC_MenuItem ()
void reset ()
int add_submenu (BC_SubMenu *submenu)
int set_checked (int value)
int get_checked ()
void set_text (char *text)
char * get_text ()
void set_icon (BC_Pixmap *icon)
BC_Pixmapget_icon ()
void set_hotkey_text (char *text)
int set_shift (int value=1)
int set_alt (int value=1)
int deactivate_submenus (BC_MenuPopup *exclude)
int activate_submenu ()
virtual int handle_event ()
int dispatch_button_press ()
int dispatch_button_release (int &redraw)
int dispatch_motion_event (int &redraw)
int dispatch_translation_event ()
int dispatch_cursor_leave ()
int dispatch_key_press ()
int add_item (BC_MenuItem *item)
int initialize (BC_WindowBase *top_level, BC_MenuBar *menu_bar, BC_MenuPopup *menu_popup)
int draw ()
BC_WindowBaseget_top_level ()
BC_PopupMenuget_popup_menu ()

Private Attributes

BC_WindowBasetop_level
BC_MenuBarmenu_bar
BC_MenuPopupmenu_popup
BC_SubMenusubmenu
int highlighted
int down
int checked
char * text
char * hotkey_text
int shift_hotkey
int alt_hotkey
int hotkey
BC_Pixmapicon
int y
int h

Friends

class BC_MenuPopup

Detailed Description

Definition at line 13 of file bcmenuitem.h.


Constructor & Destructor Documentation

BC_MenuItem::BC_MenuItem ( char *  text,
char *  hotkey_text = "",
int  hotkey = 0 
)

Definition at line 23 of file bcmenuitem.C.

References alt_hotkey, checked, down, highlighted, menu_popup, reset(), set_hotkey_text(), set_text(), shift_hotkey, and submenu.

Here is the call graph for this function:

BC_MenuItem::~BC_MenuItem (  )  [virtual]

Definition at line 40 of file bcmenuitem.C.

References hotkey_text, menu_popup, BC_MenuPopup::remove_item(), submenu, and text.

Here is the call graph for this function:


Member Function Documentation

void BC_MenuItem::reset (  ) 

Definition at line 48 of file bcmenuitem.C.

References hotkey_text, icon, and text.

Referenced by BC_MenuItem(), and SwapMain::SwapMain().

int BC_MenuItem::add_submenu ( BC_SubMenu submenu  ) 

Definition at line 384 of file bcmenuitem.C.

References BC_MenuPopup::initialize(), menu_bar, and top_level.

Here is the call graph for this function:

int BC_MenuItem::set_checked ( int  value  ) 

int BC_MenuItem::get_checked (  ) 

void BC_MenuItem::set_text ( char *  text  ) 

char * BC_MenuItem::get_text (  ) 

void BC_MenuItem::set_icon ( BC_Pixmap icon  ) 

Definition at line 76 of file bcmenuitem.C.

BC_Pixmap * BC_MenuItem::get_icon (  ) 

Definition at line 81 of file bcmenuitem.C.

References icon.

void BC_MenuItem::set_hotkey_text ( char *  text  ) 

Definition at line 93 of file bcmenuitem.C.

References hotkey_text.

Referenced by BC_MenuItem().

int BC_MenuItem::set_shift ( int  value = 1  ) 

int BC_MenuItem::set_alt ( int  value = 1  ) 

int BC_MenuItem::deactivate_submenus ( BC_MenuPopup exclude  ) 

Definition at line 100 of file bcmenuitem.C.

References BC_MenuPopup::deactivate_menu(), BC_MenuPopup::deactivate_submenus(), highlighted, and submenu.

Referenced by BC_MenuPopup::deactivate_submenus().

Here is the call graph for this function:

int BC_MenuItem::activate_submenu (  ) 

virtual int BC_MenuItem::handle_event (  )  [inline, virtual]

Reimplemented in ADriverItem, AssetPopupInfo, AssetPopupSort, AssetPopupBuildIndex, AssetPopupView, AssetPopupPaste, AssetMatchSize, AssetMatchRate, AssetPopupProjectRemove, AssetPopupDiskRemove, LabelPopupEdit, AssetListFormat, AssetListSort, FolderListFormat, BatchRenderMenuItem, CanvasSubWindowItem, CanvasPopupSize, CanvasPopupAuto, CanvasPopupResetCamera, CanvasPopupResetProjector, CanvasToggleControls, CanvasFullScreenItem, CanvasPopupResetTranslation, CanvasPopupRemoveSource, ChannelEditEditInputItem, ChannelEditEditNormItem, ChannelEditEditFreqItem, CropVideo, EditPopupMatchSize, EditPopupResize, EditPopupDeleteTrack, EditPopupAddTrack, EditAttachEffect, EditMoveTrackUp, EditMoveTrackDown, EditPopupTitle, ExportEDLItem, FeatherEdits, EXRCompressionItem, TIFFColorspaceItem, TIFFCompressionItem, FlipBook, ViewBehaviourItem, ViewThemeItem, KeyframePopupDelete, KeyframePopupShow, KeyframePopupCopy, Load, LoadPrevious, LoadBackup, Undo, DumpCICache, DumpEDL, DumpPlugins, DumpAssets, Redo, Cut, Copy, Paste, Clear, CutKeyframes, CopyKeyframes, PasteKeyframes, ClearKeyframes, StraightenKeyframes, CutDefaultKeyframe, CopyDefaultKeyframe, PasteDefaultKeyframe, ClearDefaultKeyframe, PasteSilence, SelectAll, ClearLabels, MuteSelection, TrimSelection, AddAudioTrack, DeleteAudioTrack, DefaultATransition, MapAudio1, MapAudio2, AddVideoTrack, DeleteVideoTrack, ResetTranslation, DefaultVTransition, MoveTracksUp, MoveTracksDown, DeleteTracks, ConcatenateTracks, DeleteTrack, LoopPlayback, SetBRenderStart, LabelsFollowEdits, PluginsFollowEdits, CursorOnFrames, AutosFollowEdits, ScrubSpeed, SaveSettingsNow, ShowVWindow, ShowAWindow, ShowGWindow, ShowCWindow, ShowLWindow, TileWindows, MenuEffects, MenuEffectItem, New, NudgePopupSeconds, NudgePopupNative, PluginPopupAttach, PluginPopupChange, PluginPopupDetach, PluginPopupIn, PluginPopupOut, PluginPopupShow, PluginPopupOn, PluginPopupUp, PluginPopupDown, PreferencesMenuitem, Quit, RecordMenuItem, RecordGUIMode, RecordMonitorFullsize, ReIndex, RenderItem, SaveBackup, Save, SaveAs, Scale, SetFormat, TransitionMenuItem, TransitionPopupAttach, TransitionPopupDetach, TransitionPopupShow, TransitionPopupOn, TransitionPopupLength, VDriverItem, ShowAssets, ShowTitles, ShowTransitions, PluginAutomation, ShowAutomation, VModePatchItem, ReverbLoad, ReverbSave, ReverbSetDefault, ReverbLoadPrev, SwapItem, SynthWaveFormItem, SynthLevelZero, SynthLevelMax, SynthLevelNormalize, SynthLevelSlope, SynthLevelRandom, SynthLevelInvert, SynthLevelSine, SynthPhaseInvert, SynthPhaseZero, SynthPhaseSine, SynthPhaseRandom, SynthFreqRandom, SynthFreqEnum, SynthFreqEven, SynthFreqOdd, SynthFreqFibonacci, and SynthFreqPrime.

Definition at line 35 of file bcmenuitem.h.

Referenced by BC_PopupMenu::button_press_event(), dispatch_button_release(), and dispatch_key_press().

int BC_MenuItem::dispatch_button_press (  ) 

int BC_MenuItem::dispatch_button_release ( int &  redraw  ) 

int BC_MenuItem::dispatch_motion_event ( int &  redraw  ) 

int BC_MenuItem::dispatch_translation_event (  ) 

Definition at line 248 of file bcmenuitem.C.

References BC_MenuPopup::dispatch_translation_event(), and submenu.

Referenced by BC_MenuPopup::dispatch_translation_event().

Here is the call graph for this function:

int BC_MenuItem::dispatch_cursor_leave (  ) 

Definition at line 255 of file bcmenuitem.C.

References BC_MenuPopup::dispatch_cursor_leave(), BC_WindowBase::event_win, BC_MenuPopup::get_popup(), highlighted, menu_popup, submenu, and top_level.

Referenced by BC_MenuPopup::dispatch_cursor_leave().

Here is the call graph for this function:

int BC_MenuItem::dispatch_key_press (  ) 

int BC_MenuItem::add_item ( BC_MenuItem item  ) 

int BC_MenuItem::initialize ( BC_WindowBase top_level,
BC_MenuBar menu_bar,
BC_MenuPopup men