BC_PopupMenu Class Reference

#include <bcpopupmenu.h>

Inherits BC_SubWindow.

Inherited by AC3ConfigAudioBitrate, ADriverMenu, AssetListMenu, AssetPopup, AutoTypeMenu, CanvasFullScreenPopup, CanvasPopup, ChannelEditEditFreqtable, ChannelEditEditInput, ChannelEditEditNorm, CompressorInput, CWindowMaskMode, DeInterlaceMode, DenoiseFFTSamples, EditPopup, EXRCompression, FolderListMenu, GlobalSearchPositions, GradientRate, GradientShape, KeyframePopup, LabelPopup, MasterLayer, Mode1, Mode2, Mode3, MPEGABitrate, MPEGColorModel, MPEGDerivative, MPEGLayer, MPEGPreset, NudgePopup, OutputTrack, OverlayDirection, OverlayMode, OverlayOutput, ParametricMode, PipePreset, PlaybackModuleFragment, PluginPopup, RecordGUIModeMenu, RerouteOperation, RerouteOutput, RotationSearchPositions, SwapMenu, SynthWaveForm, TIFFColorspace, TIFFCompression, TimeFrontRate, TimeFrontShape, TimeFrontTrackUsage, TransitionPopup, VDriverMenu, ViewBehaviourText, ViewTheme, VModePatch, and ZoomPopup.

Collaboration diagram for BC_PopupMenu:

Collaboration graph
[legend]

Public Member Functions

 BC_PopupMenu (int x, int y, int w, char *text, int use_title=1, VFrame **data=0, int margin=-1)
 BC_PopupMenu (int x, int y, char *text, int use_title=1, VFrame **data=0)
virtual ~BC_PopupMenu ()
virtual int handle_event ()
char * get_text ()
int initialize ()
int add_item (BC_MenuItem *item)
int remove_item (BC_MenuItem *item)
int total_items ()
BC_MenuItemget_item (int i)
void set_text (char *text)
void set_icon (BC_Pixmap *pixmap)
int draw_title ()
int reposition_window (int x, int y)
int deactivate ()
int activate_menu ()
int deactivate_menu ()
int focus_out_event ()
int repeat_event (int64_t duration)
int button_press_event ()
int button_release_event ()
int cursor_leave_event ()
int cursor_enter_event ()
int cursor_motion_event ()
int translation_event ()
int drag_start_event ()
int drag_stop_event ()
int drag_motion_event ()
int set_images (VFrame **data)

Static Public Member Functions

static int calculate_h (VFrame **data=0)

Private Attributes

char text [BCTEXTLEN]
int margin
VFrame ** data
BC_Pixmapimages [9]
BC_Pixmapicon
int highlighted
int popup_down
int use_title
int button_releases
BC_MenuPopupmenu_popup
int button_press_x
int button_press_y
int w_argument
int status

Detailed Description

Definition at line 14 of file bcpopupmenu.h.


Constructor & Destructor Documentation

BC_PopupMenu::BC_PopupMenu ( int  x,
int  y,
int  w,
char *  text,
int  use_title = 1,
VFrame **  data = 0,
int  margin = -1 
)

Definition at line 23 of file bcpopupmenu.C.

References BUTTON_UP, BC_WindowBase::get_resources(), highlighted, icon, images, menu_popup, popup_down, BC_Resources::popupmenu_margin, status, TOTAL_IMAGES, and w_argument.

Here is the call graph for this function:

BC_PopupMenu::BC_PopupMenu ( int  x,
int  y,
char *  text,
int  use_title = 1,
VFrame **  data = 0 
)

Definition at line 51 of file bcpopupmenu.C.

References BUTTON_UP, highlighted, icon, images, menu_popup, popup_down, status, TOTAL_IMAGES, and w_argument.

BC_PopupMenu::~BC_PopupMenu (  )  [virtual]

Definition at line 72 of file bcpopupmenu.C.

References images, menu_popup, and TOTAL_IMAGES.


Member Function Documentation

int BC_PopupMenu::calculate_h ( VFrame **  data = 0  )  [static]

Definition at line 161 of file bcpopupmenu.C.

References BUTTON_UP, BC_Resources::generic_button_images, VFrame::get_h(), BC_WindowBase::get_resources(), and BC_Resources::popupmenu_images.

Referenced by ConfirmScan::create_objects().

Here is the call graph for this function:

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

char * BC_PopupMenu::get_text (  ) 

int BC_PopupMenu::initialize (  )  [virtual]

int BC_PopupMenu::add_item ( BC_MenuItem item  ) 

Definition at line 175 of file bcpopupmenu.C.

References BC_MenuPopup::add_item(), and menu_popup.

Referenced by RecordGUIModeMenu::add_items(), ChannelEditEditFreqtable::add_items(), ChannelEditEditNorm::add_items(), ChannelEditEditInput::add_items(), ZoomPanel::calculate_menu(), TimeFrontRate::create_objects(), TimeFrontTrackUsage::create_objects(), TimeFrontShape::create_objects(), SynthWaveForm::create_objects(), SwapMenu::create_objects(), RerouteOutput::create_objects(), RerouteOperation::create_objects(), ParametricMode::create_objects(), OutputTrack::create_objects(), OverlayOutput::create_objects(), OverlayDirection::create_objects(), OverlayMode::create_objects(), Mode3::create_objects(), Mode2::create_objects(), Mode1::create_objects(), MasterLayer::create_objects(), RotationSearchPositions::create_objects(), GlobalSearchPositions::create_objects(), GradientRate::create_objects(), GradientShape::create_objects(), DenoiseFFTWindow::create_objects(), DeInterlaceMode::create_objects(), CompressorInput::create_objects(), AutoTypeMenu::create_objects(), VModePatch::create_objects(), VDriverMenu::create_objects(), TransitionPopup::create_objects(), RecordMonitorGUI::create_objects(), PluginPopup::create_objects(), PlaybackPrefs::create_objects(), NudgePopup::create_objects(), KeyframePopup::create_objects(), ViewTheme::create_objects(), ViewBehaviourText::create_objects(), YUVConfigVideo::create_objects(), TIFFCompression::create_objects(), TIFFColorspace::create_objects(), MPEGColorModel::create_objects(), MPEGPreset::create_objects(), MPEGDerivative::create_objects(), MPEGLayer::create_objects(), EXRCompression::create_objects(), AC3ConfigAudioBitrate::create_objects(), EditPopup::create_objects(), CWindowMaskMode::create_objects(), CWindowGUI::create_objects(), CanvasPopup::create_objects(), CanvasFullScreenPopup::create_objects(), FolderListMenu::create_objects(), AssetListMenu::create_objects(), LabelPopup::create_objects(), AssetPopup::create_objects(), ADriverMenu::create_objects(), MPEGABitrate::set_layer(), and EditPopup::update().

Here is the call graph for this function:

int BC_PopupMenu::remove_item ( BC_MenuItem item  ) 

Definition at line 181 of file bcpopupmenu.C.

References menu_popup, and BC_MenuPopup::remove_item().

Referenced by MPEGABitrate::set_layer(), EditPopup::update(), and ZoomPanel::update_menu().

Here is the call graph for this function:

int BC_PopupMenu::total_items (  ) 

Definition at line 187 of file bcpopupmenu.C.

References menu_popup, and BC_MenuPopup::total_menuitems().

Referenced by MPEGABitrate::set_layer(), VModePatch::update(), and ZoomPanel::update_menu().

Here is the call graph for this function:

BC_MenuItem * BC_PopupMenu::get_item ( int  i  ) 

Definition at line 193 of file bcpopupmenu.C.

References BC_MenuPopup::menu_items, menu_popup, and ArrayList< TYPE >::values.

Referenced by VModePatch::update().

void BC_PopupMenu::set_text ( char *  text  ) 

void BC_PopupMenu::set_icon ( BC_Pixmap pixmap  ) 

Definition at line 95 of file bcpopupmenu.C.

References draw_title(), menu_popup, and use_title.

Referenced by VModePatch::update(), and VModePatch::VModePatch().

Here is the call graph for this function:

int BC_PopupMenu::draw_title (  ) 

int BC_PopupMenu::reposition_window ( int  x,
int  y 
)

Definition at line 301 of file bcpopupmenu.C.

References draw_title(), and BC_WindowBase::reposition_window().

Referenced by VPatchGUI::reposition(), and ZoomPanel::reposition_window().

Here is the call graph for this function:

int BC_PopupMenu::deactivate (  )  [virtual]

int BC_PopupMenu::activate_menu (  ) 

int BC_PopupMenu::deactivate_menu (  ) 

Definition at line 294 of file bcpopupmenu.C.

References deactivate().

Here is the call graph for this function:

int BC_PopupMenu::focus_out_event (  )  [virtual]

Reimplemented from BC_WindowBase.

Definition at line 308 of file bcpopupmenu.C.

References deactivate().

Here is the call graph for this function:

int BC_PopupMenu::repeat_event ( int64_t  duration  )  [virtual]

int BC_PopupMenu::button_press_event (  )  [virtual]

int BC_PopupMenu::button_release_event (  )  [virtual]

int BC_PopupMenu::cursor_leave_event (  )  [virtual]

Reimplemented from BC_WindowBase.

Definition at line 481 of file bcpopupmenu.C.

References BUTTON_HI, BUTTON_UP, BC_MenuPopup::dispatch_cursor_leave(), draw_title(), BC_WindowBase::hide_tooltip(), menu_popup, popup_down, status, and use_title.

Here is the call graph for this function:

int BC_PopupMenu::cursor_enter_event (  )  [virtual]

Reimplemented from BC_WindowBase.

Definition at line 501 of file bcpopupmenu.C.

References BUTTON_DN, BC_WindowBase::button_down, BUTTON_HI, BUTTON_UP, draw_title(), BC_WindowBase::is_event_win(), status, BC_WindowBase::tooltip_done, BC_WindowBase::top_level, and use_title.

Here is the call graph for this function:

int BC_PopupMenu::cursor_motion_event (  )  [virtual]

int BC_PopupMenu::translation_event (  )  [virtual]

Reimplemented from BC_WindowBase.

Definition at line 474 of file bcpopupmenu.C.

References BC_MenuPopup::dispatch_translation_event(), menu_popup, and popup_down.

Here is the call graph for this function:

int BC_PopupMenu::drag_start_event (  )  [virtual]

Reimplemented from BC_WindowBase.

Definition at line 553 of file bcpopupmenu.C.

References popup_down.

int BC_PopupMenu::drag_stop_event (  )  [virtual]

Reimplemented from BC_WindowBase.

Definition at line 560 of file bcpopupmenu.C.

References popup_down.

int BC_PopupMenu::drag_motion_event (  )  [virtual]

Reimplemented from BC_WindowBase.

Definition at line 566 of file bcpopupmenu.C.

References popup_down.

int BC_PopupMenu::set_images ( VFrame **  data  ) 


Field Documentation

char BC_PopupMenu::text[BCTEXTLEN] [private]

int BC_PopupMenu::margin [private]

Definition at line 67 of file bcpopupmenu.h.

Referenced by draw_title(), and set_images().

Definition at line 68 of file bcpopupmenu.h.

Referenced by initialize().

Definition at line 69 of file bcpopupmenu.h.

Referenced by BC_PopupMenu(), draw_title(), set_images(), and ~BC_PopupMenu().

Definition at line 70 of file bcpopupmenu.h.

Referenced by BC_PopupMenu(), and draw_title().

Definition at line 71 of file bcpopupmenu.h.

Referenced by BC_PopupMenu(), button_release_event(), and cursor_motion_event().

int BC_PopupMenu::popup_down [private]

int BC_PopupMenu::use_title [private]

Definition at line 74 of file bcpopupmenu.h.

Referenced by activate_menu(), and button_release_event().

Definition at line 77 of file bcpopupmenu.h.

Referenced by activate_menu().

Definition at line 77 of file bcpopupmenu.h.

Referenced by activate_menu().

int BC_PopupMenu::w_argument [private]

Definition at line 78 of file bcpopupmenu.h.

Referenced by BC_PopupMenu(), and set_images().

int BC_PopupMenu::status [private]


The documentation for this class was generated from the following files:

Generated on Mon Apr 28 14:14:56 2008 for Cinelerra by  doxygen 1.5.5