BC_Button Class Reference

#include <bcbutton.h>

Inherits BC_SubWindow.

Inherited by AVC1394GUIFForward, AVC1394GUIPause, AVC1394GUIPlay, AVC1394GUIReverse, AVC1394GUIRewind, AVC1394GUISeekEnd, AVC1394GUISeekStart, AVC1394GUIStop, AWindowAppend, AWindowDeleteDisk, AWindowDeleteFolder, AWindowDeleteProject, AWindowInfo, AWindowNewFolder, AWindowPaste, AWindowRedrawIndex, AWindowRenameFolder, AWindowView, BC_CancelButton, BC_FileBoxDelete, BC_FileBoxIcons, BC_FileBoxNewfolder, BC_FileBoxReload, BC_FileBoxText, BC_FileBoxUpdir, BC_FileBoxUseThis, BC_GenericButton, BC_OKButton, BrowseButton, CanvasTool, ChannelButton, CWindowCameraBottom, CWindowCameraCenter, CWindowCameraLeft, CWindowCameraMiddle, CWindowCameraRight, CWindowCameraTop, CWindowProjectorBottom, CWindowProjectorCenter, CWindowProjectorLeft, CWindowProjectorMiddle, CWindowProjectorRight, CWindowProjectorTop, CWindowReset, EditAppend, EditCopy, EditCut, EditDelInPoint, EditDelOutPoint, EditExtract, EditFit, EditFitAutos, EditInPoint, EditInsert, EditLabelbutton, EditLift, EditManualGoto, EditNextLabel, EditOutPoint, EditOverwrite, EditPaste, EditPresentation, EditPrevLabel, EditRedo, EditSplice, EditToClip, EditTransition, EditUndo, FormatAParams, FormatSwapExtents, FormatVParams, LiveChannelSelect, MeterReset, NewSwapExtents, NextLabel, PrevLabel, PTransportButton, RecordGUIBack, RecordGUIDCOffset, RecordGUIEnd, RecordGUIFwd, RecordGUIPlay, RecordGUIRec, RecordGUIRecFrame, RecordGUIReset, RecordGUIResetTranslation, RecordGUIRewind, RecordGUISave, RecordGUIStop, ReIndexCancelButton, ReIndexOkButton, ResizeTrackSwap, StatusBarCancel, TipClose, TipNext, and TipPrev.

Collaboration diagram for BC_Button:

Collaboration graph
[legend]

Public Member Functions

 BC_Button (int x, int y, VFrame **data)
 BC_Button (int x, int y, int w, VFrame **data)
virtual ~BC_Button ()
virtual int handle_event ()
int repeat_event (int64_t repeat_id)
virtual int draw_face ()
void disable ()
void enable ()
int initialize ()
virtual int set_images (VFrame **data)
int cursor_enter_event ()
int cursor_leave_event ()
int button_press_event ()
int button_release_event ()
int cursor_motion_event ()
int update_bitmaps (VFrame **data)
int reposition_window (int x, int y)
void set_underline (int number)

Private Attributes

BC_Pixmapimages [3]
VFrame ** data
int status
int w_argument
int underline_number
int enabled

Friends

class BC_GenericButton

Detailed Description

Definition at line 11 of file bcbutton.h.


Constructor & Destructor Documentation

BC_Button::BC_Button ( int  x,
int  y,
VFrame **  data 
)

Definition at line 19 of file bcbutton.C.

References BUTTON_UP, enabled, images, status, underline_number, and w_argument.

BC_Button::BC_Button ( int  x,
int  y,
int  w,
VFrame **  data 
)

Definition at line 33 of file bcbutton.C.

References BUTTON_UP, enabled, images, status, underline_number, and w_argument.

BC_Button::~BC_Button (  )  [virtual]

Definition at line 49 of file bcbutton.C.

References images.


Member Function Documentation

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

Reimplemented in AVC1394GUISeekStart, AVC1394GUIRewind, AVC1394GUIReverse, AVC1394GUIStop, AVC1394GUIPause, AVC1394GUIPlay, AVC1394GUIFForward, AVC1394GUISeekEnd, AWindowNewFolder, AWindowDeleteFolder, AWindowRenameFolder, AWindowDeleteDisk, AWindowDeleteProject, AWindowInfo, AWindowRedrawIndex, AWindowPaste, AWindowAppend, AWindowView, BatchRenderNew, BatchRenderDelete, BatchRenderSaveList, BatchRenderLoadList, BatchRenderStart, BatchRenderStop, BatchRenderCancel, BrowseButton, ChannelEditSelect, ChannelEditAdd, ChannelEditMoveUp, ChannelEditMoveDown, ChannelEditSort, ChannelEditScan, ChannelEditDel, ChannelEdit, ChannelEditPicture, ChannelButton, ConfirmQuitYesButton, ConfirmQuitNoButton, ConfirmQuitCancelButton, CWindowReset, CWindowCropOK, CWindowMaskDelete, CWindowMaskCycleNext, CWindowMaskCyclePrev, CWindowCameraLeft, CWindowCameraCenter, CWindowCameraRight, CWindowCameraTop, CWindowCameraMiddle, CWindowCameraBottom, CWindowProjectorLeft, CWindowProjectorCenter, CWindowProjectorRight, CWindowProjectorTop, CWindowProjectorMiddle, CWindowProjectorBottom, DeleteAllIndexes, EditHandle, EditHandleIn, EditHandleOut, EditInPoint, EditOutPoint, EditDelInPoint, EditDelOutPoint, EditSplice, EditOverwrite, EditLift, EditExtract, EditToClip, EditManualGoto, EditCut, EditCopy, EditAppend, EditInsert, EditPaste, EditTransition, EditPresentation, EditUndo, EditRedo, EditLabelbutton, EditFit, EditFitAutos, EditPrevLabel, EditNextLabel, FormatAParams, FormatVParams, KeyframeHandle, PrevLabel, NextLabel, MenuEffectWindowOK, MenuEffectWindowCancel, MeterReset, NewSwapExtents, PrefsRenderFarmNewNode, PrefsRenderFarmReplaceNode, PrefsRenderFarmDelNode, PrefsRenderFarmSortNodes, PrefsRenderFarmReset, RewindButton, FastReverseButton, ReverseButton, FrameReverseButton, PlayButton, FramePlayButton, FastPlayButton, EndButton, StopButton, PreferencesButton, PreferencesApply, PreferencesOK, PreferencesCancel, QuestionYesButton, QuestionNoButton, RecordGUISave, RecordGUICancel, RecordGUIOK, RecordGUIStartBatches, RecordGUIStopbatches, RecordGUIActivateBatch, RecordGUIStartOver, RecordGUINewBatch, RecordGUIDeleteBatch, RecordGUILabel, RecordGUIDCOffset, RecordGUIReset, RecordGUIResetTranslation, RecordGUIRec, RecordGUIRecFrame, RecordGUIPlay, RecordGUIStop, RecordGUIRewind, RecordGUIBack, RecordGUIFwd, RecordGUIEnd, ReIndexOkButton, ReIndexCancelButton, SaveRenderProfileButton, DeleteRenderProfileButton, ResizeTrackSwap, SetFormatApply, FormatSwapExtents, StatusBarCancel, TipNext, TipPrev, TipClose, TransitionHandle, BC_OKTextButton, BC_CancelTextButton, BC_OKButton, BC_CancelButton, BC_FileBoxOK, BC_FileBoxUseThis, BC_FileBoxCancel, BC_FileBoxText, BC_FileBoxIcons, BC_FileBoxNewfolder, BC_FileBoxUpdir, BC_FileBoxDelete, BC_FileBoxReload, ChromaKeyColor, ChromaKeyUseColorPicker, ChromaKeyColor, ChromaKeyUseColorPicker, ColorBalanceWhite, ColorBalanceReset, CompressorClear, GammaColorPicker, GradientInColorButton, GradientOutColorButton, HistogramReset, LiveChannelSelect, PerspectiveReset, ShapeWipeBrowseButton, NewSvgButton, EditSvgButton, SynthAddOsc, SynthDelOsc, SynthClear, ThresholdLowColorButton, ThresholdMidColorButton, ThresholdHighColorButton, TitleColorButton, and TitleColorStrokeButton.

Definition at line 20 of file bcbutton.h.

Referenced by button_release_event().

int BC_Button::repeat_event ( int64_t  repeat_id  )  [virtual]

int BC_Button::draw_face (  )  [virtual]

void BC_Button::disable (  ) 

Definition at line 92 of file bcbutton.C.

References draw_face(), and enabled.

Referenced by BatchRenderThread::start_rendering().

Here is the call graph for this function:

void BC_Button::enable (  ) 

Definition at line 86 of file bcbutton.C.

References draw_face(), and enabled.

Referenced by BatchRenderThread::start_rendering(), BatchRenderThread::test_edl_files(), and BatchRenderThread::update_done().

Here is the call graph for this function:

int BC_Button::initialize (  )  [virtual]

Reimplemented from BC_SubWindow.

Definition at line 56 of file bcbutton.C.

References data, draw_face(), BC_SubWindow::initialize(), and set_images().

Here is the call graph for this function:

int BC_Button::set_images ( VFrame **  data  )  [virtual]

Reimplemented in BC_GenericButton.

Definition at line 104 of file bcbutton.C.

References BC_WindowBase::BC_Pixmap, BUTTON_UP, BC_Pixmap::get_h(), BC_Pixmap::get_w(), BC_WindowBase::h, images, BC_WindowBase::parent_window, BC_WindowBase::w, and w_argument.

Referenced by initialize(), and update_bitmaps().

Here is the call graph for this function:

int BC_Button::cursor_enter_event (  )  [virtual]

int BC_Button::cursor_leave_event (  )  [virtual]

Reimplemented from BC_WindowBase.

Definition at line 165 of file bcbutton.C.

References BUTTON_UP, BUTTON_UPHI, draw_face(), BC_WindowBase::hide_tooltip(), and status.

Here is the call graph for this function:

int BC_Button::button_press_event (  )  [virtual]

int BC_Button::button_release_event (  )  [virtual]

int BC_Button::cursor_motion_event (  )  [virtual]

Reimplemented from BC_WindowBase.

Definition at line 211 of file bcbutton.C.

References BC_WindowBase::button_down, BUTTON_DOWNHI, BUTTON_UP, BC_WindowBase::cursor_inside(), draw_face(), BC_WindowBase::event_win, status, BC_WindowBase::top_level, and BC_WindowBase::win.

Here is the call graph for this function:

int BC_Button::update_bitmaps ( VFrame **  data  ) 

Definition at line 77 of file bcbutton.C.

References draw_face(), BC_WindowBase::draw_top_background(), BC_WindowBase::h, BC_WindowBase::parent_window, set_images(), and BC_WindowBase::w.

Here is the call graph for this function:

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

void BC_Button::set_underline ( int  number  ) 


Friends And Related Function Documentation

friend class BC_GenericButton [friend]

Reimplemented from BC_WindowBase.

Definition at line 18 of file bcbutton.h.


Field Documentation

VFrame** BC_Button::data [private]

Definition at line 41 of file bcbutton.h.

Referenced by initialize().

int BC_Button::status [private]

int BC_Button::w_argument [private]

Definition at line 43 of file bcbutton.h.

Referenced by BC_Button(), BC_GenericButton::set_images(), and set_images().

Definition at line 44 of file bcbutton.h.

Referenced by BC_Button(), BC_GenericButton::draw_face(), and set_underline().

int BC_Button::enabled [private]


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

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