#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.

Definition at line 13 of file bcmenuitem.h.
| 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.

| 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.

| 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.

| int BC_MenuItem::set_checked | ( | int | value | ) |
Definition at line 65 of file bcmenuitem.C.
References checked.
Referenced by NudgePopup::activate_menu(), AutosFollowEdits::AutosFollowEdits(), VWindowGUI::close_event(), LevelWindowGUI::close_event(), GWindowGUI::close_event(), AWindowGUI::close_event(), CursorOnFrames::CursorOnFrames(), PluginAutomation::handle_event(), ShowAutomation::handle_event(), ShowTransitions::handle_event(), ShowTitles::handle_event(), ShowAssets::handle_event(), CursorOnFrames::handle_event(), AutosFollowEdits::handle_event(), PluginsFollowEdits::handle_event(), LabelsFollowEdits::handle_event(), LoopPlayback::handle_event(), CWindow::hide_window(), LabelsFollowEdits::LabelsFollowEdits(), LoopPlayback::LoopPlayback(), PluginsFollowEdits::PluginsFollowEdits(), MWindow::set_labels_follow_edits(), MWindow::show_awindow(), MWindow::show_cwindow(), MWindow::show_gwindow(), MWindow::show_lwindow(), MWindow::show_vwindow(), ShowAssets::ShowAssets(), ShowAutomation::ShowAutomation(), ShowAWindow::ShowAWindow(), ShowCWindow::ShowCWindow(), ShowGWindow::ShowGWindow(), ShowLWindow::ShowLWindow(), ShowTitles::ShowTitles(), ShowTransitions::ShowTransitions(), ShowVWindow::ShowVWindow(), VModePatch::update(), TransitionPopup::update(), PluginPopup::update(), ShowAutomation::update_toggle(), MainMenu::update_toggles(), and VModePatchItem::VModePatchItem().
| int BC_MenuItem::get_checked | ( | ) |
Definition at line 71 of file bcmenuitem.C.
References checked.
Referenced by PluginAutomation::handle_event(), ShowAutomation::handle_event(), ShowTransitions::handle_event(), ShowTitles::handle_event(), ShowAssets::handle_event(), TransitionPopupOn::handle_event(), PluginPopupOn::handle_event(), PluginPopupOut::handle_event(), PluginPopupIn::handle_event(), AutosFollowEdits::handle_event(), PluginsFollowEdits::handle_event(), and LabelsFollowEdits::handle_event().
| void BC_MenuItem::set_text | ( | char * | text | ) |
Definition at line 86 of file bcmenuitem.C.
Referenced by NudgePopup::activate_menu(), MainMenu::add_aeffect(), ReverbMenu::add_load(), MainMenu::add_load(), MainMenu::add_veffect(), BC_MenuItem(), ScrubSpeed::handle_event(), CanvasToggleControls::handle_event(), MainMenu::init_loads(), TransitionPopup::update(), AssetListFormat::update(), Redo::update_caption(), Undo::update_caption(), and FolderListMenu::update_titles().
| char * BC_MenuItem::get_text | ( | ) |
Definition at line 391 of file bcmenuitem.C.
References text.
Referenced by BC_PopupMenu::button_press_event(), SwapItem::handle_event(), VDriverItem::handle_event(), RecordGUIMode::handle_event(), MenuEffectItem::handle_event(), LoadModeListBox::handle_event(), ViewThemeItem::handle_event(), ViewBehaviourItem::handle_event(), ChannelEditEditFreqItem::handle_event(), ChannelEditEditNormItem::handle_event(), ChannelEditEditInputItem::handle_event(), and ADriverItem::handle_event().
| void BC_MenuItem::set_icon | ( | BC_Pixmap * | icon | ) |
Definition at line 76 of file bcmenuitem.C.
| BC_Pixmap * BC_MenuItem::get_icon | ( | ) |
| void BC_MenuItem::set_hotkey_text | ( | char * | text | ) |
| int BC_MenuItem::set_shift | ( | int | value = 1 |
) |
Definition at line 406 of file bcmenuitem.C.
References shift_hotkey.
Referenced by AddVideoTrack::AddVideoTrack(), BatchRenderMenuItem::BatchRenderMenuItem(), ClearKeyframes::ClearKeyframes(), ConcatenateTracks::ConcatenateTracks(), CopyKeyframes::CopyKeyframes(), CutKeyframes::CutKeyframes(), DefaultVTransition::DefaultVTransition(), ExportEDLItem::ExportEDLItem(), LoopPlayback::LoopPlayback(), MoveTracksDown::MoveTracksDown(), MoveTracksUp::MoveTracksUp(), PasteKeyframes::PasteKeyframes(), PasteSilence::PasteSilence(), PreferencesMenuitem::PreferencesMenuitem(), Redo::Redo(), RenderItem::RenderItem(), and SetFormat::SetFormat().
| int BC_MenuItem::set_alt | ( | int | value = 1 |
) |
Definition at line 412 of file bcmenuitem.C.
References alt_hotkey.
Referenced by ClearDefaultKeyframe::ClearDefaultKeyframe(), CopyDefaultKeyframe::CopyDefaultKeyframe(), CutDefaultKeyframe::CutDefaultKeyframe(), and PasteDefaultKeyframe::PasteDefaultKeyframe().
| 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().

| int BC_MenuItem::activate_submenu | ( | ) |
Definition at line 111 of file bcmenuitem.C.
References BC_MenuPopup::activate_menu(), BC_WindowBase::display, BC_MenuPopup::get_popup(), h, highlighted, menu_popup, BC_MenuPopup::popup, BC_WindowBase::rootwin, submenu, top_level, BC_MenuPopup::w, and y.
Referenced by dispatch_motion_event().

| 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 | ( | ) |
Definition at line 132 of file bcmenuitem.C.
References BC_WindowBase::cursor_x, BC_WindowBase::cursor_y, BC_MenuPopup::dispatch_button_press(), BC_WindowBase::event_win, BC_MenuPopup::get_popup(), BC_MenuPopup::get_w(), h, highlighted, menu_popup, submenu, top_level, and y.
Referenced by BC_MenuPopup::dispatch_button_press().

| int BC_MenuItem::dispatch_button_release | ( | int & | redraw | ) |
Definition at line 163 of file bcmenuitem.C.
References BC_WindowBase::cursor_x, BC_WindowBase::cursor_y, BC_PopupMenu::deactivate(), BC_MenuBar::deactivate(), BC_MenuPopup::dispatch_button_release(), BC_WindowBase::display, BC_WindowBase::event_win, BC_MenuPopup::get_popup(), BC_WindowBase::get_w(), h, BC_PopupMenu::handle_event(), handle_event(), menu_bar, menu_popup, BC_MenuPopup::popup_menu, BC_PopupMenu::set_text(), submenu, text, top_level, and y.
Referenced by BC_MenuPopup::dispatch_button_release().

| int BC_MenuItem::dispatch_motion_event | ( | int & | redraw | ) |
Definition at line 206 of file bcmenuitem.C.
References activate_submenu(), BC_WindowBase::cursor_x, BC_WindowBase::cursor_y, BC_MenuPopup::deactivate_submenus(), BC_MenuPopup::dispatch_motion_event(), BC_WindowBase::event_win, BC_MenuPopup::get_popup(), BC_WindowBase::get_w(), h, highlighted, menu_popup, submenu, top_level, BC_WindowBase::translate_coordinates(), and y.
Referenced by BC_MenuPopup::dispatch_motion_event().

| 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().

| 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().

| int BC_MenuItem::dispatch_key_press | ( | ) |
Definition at line 271 of file bcmenuitem.C.
References BC_WindowBase::alt_down(), alt_hotkey, BC_MenuPopup::dispatch_key_press(), BC_WindowBase::get_keypress(), handle_event(), hotkey, BC_WindowBase::shift_down(), shift_hotkey, submenu, and top_level.
Referenced by BC_MenuPopup::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 * | menu_popup | |||
| ) |
| int BC_MenuItem::draw | ( | ) |
Definition at line 294 of file bcmenuitem.C.
References BLACK, checked, DKGREY, BC_WindowBase::draw_3d_box(), BC_WindowBase::draw_9segment(), BC_WindowBase::draw_box(), BC_WindowBase::draw_check(), BC_WindowBase::draw_line(), BC_WindowBase::draw_text(), BC_WindowBase::get_button_down(), BC_MenuPopup::get_key_x(), BC_MenuPopup::get_popup(), BC_WindowBase::get_resources(), BC_WindowBase::get_text_descent(), BC_MenuPopup::get_w(), h, highlighted, hotkey_text, BC_MenuPopup::item_bg, LTGREY, MEDIUMFONT, BC_Resources::menu_down, BC_Resources::menu_highlighted, BC_Resources::menu_highlighted_fontcolor, BC_Resources::menu_item_text, BC_Resources::menu_light, menu_popup, BC_Resources::menu_shadow, MENUITEM_DN, MENUITEM_HI, MENUITEM_MARGIN, offset, BC_WindowBase::resources, BC_WindowBase::set_color(), BC_WindowBase::set_font(), submenu, text, top_level, BC_WindowBase::w, and y.
Referenced by BC_MenuPopup::draw_items().

| BC_WindowBase * BC_MenuItem::get_top_level | ( | ) |
| BC_PopupMenu * BC_MenuItem::get_popup_menu | ( | ) |
Definition at line 401 of file bcmenuitem.C.
References menu_popup, and BC_MenuPopup::popup_menu.
Referenced by RecordGUIMode::handle_event(), ChannelEditEditFreqItem::handle_event(), ChannelEditEditNormItem::handle_event(), and ChannelEditEditInputItem::handle_event().
friend class BC_MenuPopup [friend] |
Definition at line 19 of file bcmenuitem.h.
BC_WindowBase* BC_MenuItem::top_level [private] |
Definition at line 49 of file bcmenuitem.h.
Referenced by activate_submenu(), add_submenu(), dispatch_button_press(), dispatch_button_release(), dispatch_cursor_leave(), dispatch_key_press(), dispatch_motion_event(), draw(), and get_top_level().
BC_MenuBar* BC_MenuItem::menu_bar [private] |
Definition at line 50 of file bcmenuitem.h.
Referenced by add_submenu(), and dispatch_button_release().
BC_MenuPopup* BC_MenuItem::menu_popup [private] |
Definition at line 51 of file bcmenuitem.h.
Referenced by activate_submenu(), BC_MenuItem(), dispatch_button_press(), dispatch_button_release(), dispatch_cursor_leave(), dispatch_motion_event(), draw(), get_popup_menu(), and ~BC_MenuItem().
BC_SubMenu* BC_MenuItem::submenu [private] |
Definition at line 53 of file bcmenuitem.h.
Referenced by activate_submenu(), BC_MenuItem(), deactivate_submenus(), dispatch_button_press(), dispatch_button_release(), dispatch_cursor_leave(), dispatch_key_press(), dispatch_motion_event(), dispatch_translation_event(), draw(), and ~BC_MenuItem().
int BC_MenuItem::highlighted [private] |
Definition at line 55 of file bcmenuitem.h.
Referenced by activate_submenu(), BC_MenuItem(), deactivate_submenus(), dispatch_button_press(), dispatch_cursor_leave(), dispatch_motion_event(), draw(), and BC_MenuPopup::get_dimensions().
int BC_MenuItem::down [private] |
Definition at line 57 of file bcmenuitem.h.
Referenced by BC_MenuItem(), and BC_MenuPopup::get_dimensions().
int BC_MenuItem::checked [private] |
Definition at line 59 of file bcmenuitem.h.
Referenced by BC_MenuItem(), draw(), get_checked(), BC_MenuPopup::get_dimensions(), and set_checked().
char* BC_MenuItem::text [private] |
Definition at line 61 of file bcmenuitem.h.
Referenced by dispatch_button_release(), draw(), BC_MenuPopup::get_dimensions(), get_text(), reset(), and ~BC_MenuItem().
char* BC_MenuItem::hotkey_text [private] |
Definition at line 63 of file bcmenuitem.h.
Referenced by draw(), BC_MenuPopup::get_dimensions(), reset(), set_hotkey_text(), and ~BC_MenuItem().
int BC_MenuItem::shift_hotkey [private] |
Definition at line 65 of file bcmenuitem.h.
Referenced by BC_MenuItem(), dispatch_key_press(), and set_shift().
int BC_MenuItem::alt_hotkey [private] |
Definition at line 67 of file bcmenuitem.h.
Referenced by BC_MenuItem(), dispatch_key_press(), and set_alt().
int BC_MenuItem::hotkey [private] |
BC_Pixmap* BC_MenuItem::icon [private] |
int BC_MenuItem::y [private] |
Definition at line 73 of file bcmenuitem.h.
Referenced by activate_submenu(), dispatch_button_press(), dispatch_button_release(), dispatch_motion_event(), draw(), and BC_MenuPopup::get_dimensions().
int BC_MenuItem::h [private] |
Definition at line 75 of file bcmenuitem.h.
Referenced by activate_submenu(), dispatch_button_press(), dispatch_button_release(), dispatch_motion_event(), draw(), BC_MenuPopup::get_dimensions(), and ScaleConfig::ScaleConfig().
1.5.5