BC_TextBox Class Reference

#include <bctextbox.h>

Inherits BC_SubWindow.

Inherited by ADeviceIntBox, ADeviceTextBox, AssetEditFRate, AssetEditHeader, AssetEditILaceautofixoption, AssetEditILacefixmethod, AssetEditILacemode, AssetEditPathText, AssetEditRate, AssetEditReelName, AssetEditReelNumber, AssetEditTCStartTextBox, AVIVAttribute, BatchRenderEDLPath, BC_FileBoxDirectoryText, BC_FileBoxFilterText, BC_FileBoxTextBox, BC_PopupTextBoxText, BC_ScrollTextBoxText, BC_TumbleTextBoxText, BitsPopupText, ByteOrderText, CDRipTextValue, CDRipWindowDevice, ChannelEditEditSource, ChannelEditEditTitle, ClipEditComments, ClipEditTitle, CompressorDecay, CompressorReaction, CompressorTrigger, CompressorX, CompressorY, DayText, DBXGain, DBXSize, DecimateRate, DelayAudioTextBox, DelayVideoSlider, DenoiseVideoThreshold, EditPopupTitleText, ExportEDLPathText, FeatherEditsTextBox, FileFormatHeader, FileFormatRate, FormatChannels, FormatPathText, FormatPresetsText, FromTextBox, GammaText, IndexCount, IndexPathText, IndexSize, InterpolateVideoRate, IVTCAutoThreshold, IVTCOffset, LabelEditComments, LabelEditTitle, LengthTextBox, LoopAudioSamples, LoopVideoFrames, ManualGotoNumber, MaxText, MeterMaxDB, MeterMinDB, MotionBlockXText, MotionBlockYText, MPEGBitrate, NewAChannels, NewAspectH, NewAspectW, NewATracks, NewFrameRate, NewOutputH, NewOutputW, NewPresetsText, NewSampleRate, NewTrackH, NewTrackW, NewVChannels, NewVTracks, NormalizeWindowOverload, NudgePatch, OGGTheoraBitrate, OGGVorbisAvgBitrate, OGGVorbisMaxBitrate, OGGVorbisMinBitrate, PlaybackPreload, PluginGlobalPathText, PluginLocalPathText, PrefsRenderFarmEditNode, PrefsRenderFarmMountpoint, RecordFrameRate, RecordFrameRateText, RecordGUIDCOffsetText, RecordH, RecordNews, RecordPath, RecordSampleRate, RecordW, RecordWriteLength, ReFrameOutput, ResampleFraction, ResizeTrackHeight, ResizeTrackScaleH, ResizeTrackScaleW, ResizeTrackWidth, RotateText, ScaleAspectH, ScaleAspectText, ScaleAspectW, ScaleOffsetText, ScaleRatioText, ScaleRatioText, ScaleSizeText, ScaleSizeText, SelTempAvgGainValue, SelTempAvgOffsetValue, SelTempAvgThreshSlider, SetChannelsTextBox, SetFrameRateTextBox, SetSampleRateTextBox, ShapeWipeFilename, StillImageDuration, SynthBaseFreq, TimecodeOffset, TimeFormatFeetSetting, TimeTextBox, TitleFade, TitlePatch, TitlePatchOld, ToTextBox, TrackFrameNumber, VDeviceIntBox, VDeviceTextBox, VideoCaptureLength, VideoWriteLength, VorbisAvgBitrate, VorbisMaxBitrate, VorbisMinBitrate, and ZoomTextBox.

Collaboration diagram for BC_TextBox:

Collaboration graph
[legend]

Public Member Functions

 BC_TextBox (int x, int y, int w, int rows, char *text, int has_border=1, int font=MEDIUMFONT)
 BC_TextBox (int x, int y, int w, int rows, int64_t text, int has_border=1, int font=MEDIUMFONT)
 BC_TextBox (int x, int y, int w, int rows, int text, int has_border=1, int font=MEDIUMFONT)
 BC_TextBox (int x, int y, int w, int rows, float text, int has_border=1, int font=MEDIUMFONT, int precision=4)
virtual ~BC_TextBox ()
virtual int handle_event ()
virtual int motion_event ()
void set_selection (int char1, int char2, int ibeam)
int update (char *text)
int update (int64_t value)
int update (float value)
void disable ()
void enable ()
int get_enabled ()
int initialize ()
int focus_in_event ()
int focus_out_event ()
int cursor_enter_event ()
int cursor_leave_event ()
int cursor_motion_event ()
virtual int button_press_event ()
int button_release_event ()
int repeat_event (int64_t repeat_id)
int keypress_event ()
int activate ()
int deactivate ()
char * get_text ()
int get_text_rows ()
void set_text_row (int row)
int get_text_row ()
int reposition_window (int x, int y, int w=-1, int rows=-1)
int uses_text ()
void set_precision (int precision)
void set_keypress_draw (int value)
int get_ibeam_letter ()
void set_ibeam_letter (int number, int redraw=1)
int get_last_keypress ()
void set_separators (char *separators)
int select_whole_text (int select)
void cycle_textboxes (int amout)

Static Public Member Functions

static int calculate_h (BC_WindowBase *gui, int font, int has_border, int rows)
static int calculate_row_h (int rows, BC_WindowBase *parent_window, int has_border=1, int font=MEDIUMFONT)
static int pixels_to_rows (BC_WindowBase *window, int font, int pixels)

Private Member Functions

int reset_parameters (int rows, int has_border, int font)
void draw ()
void draw_border ()
void draw_cursor ()
void copy_selection (int clipboard_num)
void paste_selection (int clipboard_num)
void delete_selection (int letter1, int letter2, int text_len)
void insert_text (char *string)
void do_separators (int ibeam_left)
void get_ibeam_position (int &x, int &y)
void find_ibeam (int dispatch_event)
void select_word (int &letter1, int &letter2, int ibeam_letter)
int get_cursor_letter (int cursor_x, int cursor_y)
int get_row_h (int rows)
void default_keypress (int &dispatch_event, int &result)

Private Attributes

int text_x
int text_y
int ibeam_x
int ibeam_y
int ibeam_letter
int highlight_letter1
int highlight_letter2
int highlight_letter3
int highlight_letter4
int text_x1
int text_start
int text_end
int text_selected
int word_selected
int text_ascent
int text_descent
int text_height
int left_margin
int right_margin
int top_margin
int bottom_margin
int has_border
int font
int rows
int highlighted
int high_color
int back_color
int background_color
char text [BCTEXTLEN]
char text_row [BCTEXTLEN]
char temp_string [2]
int active
int enabled
int precision
int keypress_draw
Timerskip_cursor
int last_keypress
char * separators

Detailed Description

Definition at line 14 of file bctextbox.h.


Constructor & Destructor Documentation

BC_TextBox::BC_TextBox ( int  x,
int  y,
int  w,
int  rows,
char *  text,
int  has_border = 1,
int  font = MEDIUMFONT 
)

Definition at line 22 of file bctextbox.C.

References reset_parameters(), and skip_cursor.

Referenced by FormatTools::create_objects().

Here is the call graph for this function:

BC_TextBox::BC_TextBox ( int  x,
int  y,
int  w,
int  rows,
int64_t  text,
int  has_border = 1,
int  font = MEDIUMFONT 
)

Definition at line 36 of file bctextbox.C.

References reset_parameters(), and skip_cursor.

Here is the call graph for this function:

BC_TextBox::BC_TextBox ( int  x,
int  y,
int  w,
int  rows,
int  text,
int  has_border = 1,
int  font = MEDIUMFONT 
)

Definition at line 66 of file bctextbox.C.

References reset_parameters(), and skip_cursor.

Here is the call graph for this function:

BC_TextBox::BC_TextBox ( int  x,
int  y,
int  w,
int  rows,
float  text,
int  has_border = 1,
int  font = MEDIUMFONT,
int  precision = 4 
)

Definition at line 50 of file bctextbox.C.

References reset_parameters(), and skip_cursor.

Here is the call graph for this function:

BC_TextBox::~BC_TextBox (  )  [virtual]

Definition at line 80 of file bctextbox.C.

References skip_cursor.


Member Function Documentation

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

Reimplemented in ADeviceTextBox, ADeviceIntBox, AssetEditPathText, AssetEditRate, AssetEditFRate, AssetEditILaceautofixoption, AssetEditILacemode, AssetEditILacefixmethod, AssetEditHeader, AssetEditReelName, AssetEditReelNumber, AssetEditTCStartTextBox, BatchRenderEDLPath, BitsPopupText, ByteOrderText, ChannelEditEditTitle, ChannelEditEditSource, ClipEditTitle, ClipEditComments, EditPopupTitleText, ExportEDLPathText, FeatherEditsTextBox, AVIVAttribute, FileFormatRate, FileFormatHeader, MPEGBitrate, OGGVorbisMinBitrate, OGGVorbisMaxBitrate, OGGVorbisAvgBitrate, OGGTheoraBitrate, VorbisMinBitrate, VorbisMaxBitrate, VorbisAvgBitrate, FormatPresetsText, FormatPathText, FormatChannels, IndexPathText, IndexSize, IndexCount, TimeFormatFeetSetting, MeterMinDB, MeterMaxDB, LabelEditTitle, LabelEditComments, ManualGotoNumber, NewATracks, NewAChannels, NewSampleRate, NewVTracks, NewVChannels, NewFrameRate, NewTrackW, NewTrackH, NewOutputW, NewOutputH, NewAspectW, NewAspectH, NewPresetsText, TitlePatchOld, TitlePatch, NudgePatch, PrefsRenderFarmMountpoint, PrefsRenderFarmEditNode, PlaybackPreload, TimecodeOffset, PluginGlobalPathText, PluginLocalPathText, RecordPath, RecordNews, RecordGUIDCOffsetText, RecordWriteLength, RecordSampleRate, VideoWriteLength, VideoCaptureLength, RecordW, RecordH, RecordFrameRate, RecordFrameRateText, StillImageDuration, ResizeTrackWidth, ResizeTrackHeight, ResizeTrackScaleW, ResizeTrackScaleH, ScaleSizeText, ScaleOffsetText, ScaleRatioText, ScaleAspectW, ScaleAspectH, SetSampleRateTextBox, SetChannelsTextBox, SetFrameRateTextBox, ScaleSizeText, ScaleRatioText, ScaleAspectText, DayText, TimeTextBox, VDeviceTextBox, VDeviceIntBox, ZoomTextBox, FromTextBox, LengthTextBox, ToTextBox, BC_FileBoxTextBox, BC_FileBoxDirectoryText, BC_FileBoxFilterText, BC_ScrollTextBoxText, BC_PopupTextBoxText, BC_TumbleTextBoxText, CDRipTextValue, CDRipWindowDevice, CompressorReaction, CompressorX, CompressorY, CompressorTrigger, CompressorDecay, DecimateRate, DelayAudioTextBox, DelayVideoSlider, SelTempAvgThreshSlider, SelTempAvgOffsetValue, SelTempAvgGainValue, DenoiseVideoThreshold, MaxText, GammaText, InterpolateVideoRate, IVTCOffset, IVTCAutoThreshold, LoopAudioSamples, LoopVideoFrames, TrackFrameNumber, MotionBlockXText, MotionBlockYText, NormalizeWindowOverload, ReFrameOutput, ResampleFraction, RotateText, ShapeWipeFilename, SynthBaseFreq, and TitleFade.

Definition at line 49 of file bctextbox.h.

Referenced by BC_FTumbler::handle_down_event(), BC_ITumbler::handle_down_event(), CaptureLengthTumbler::handle_down_event(), BC_RecentList::handle_event(), AspectPulldown::handle_event(), FrameSizePulldown::handle_event(), FrameRatePulldown::handle_event(), SampleRatePulldown::handle_event(), BC_FTumbler::handle_up_event(), BC_ITumbler::handle_up_event(), CaptureLengthTumbler::handle_up_event(), keypress_event(), and BrowseButton::run().

virtual int BC_TextBox::motion_event (  )  [inline, virtual]

Reimplemented in BC_ScrollTextBoxText.

Definition at line 51 of file bctextbox.h.

Referenced by find_ibeam().

void BC_TextBox::set_selection ( int  char1,
int  char2,
int  ibeam 
)

Definition at line 169 of file bctextbox.C.

References draw(), highlight_letter1, highlight_letter2, and ibeam_letter.

Referenced by ClipEditWindow::create_objects(), and FormatTools::update_extension().

Here is the call graph for this function:

int BC_TextBox::update ( char *  text  ) 

Definition at line 177 of file bctextbox.C.

References draw(), highlight_letter1, highlight_letter2, and ibeam_letter.

Referenced by AssetEditInterlacemodePulldown::AssetEditInterlacemodePulldown(), CompressorTrigger::button_press_event(), CompressorDecay::button_press_event(), CompressorReaction::button_press_event(), BatchRenderGUI::change_job(), ChannelEditEditThread::change_source(), ColormodelPulldown::ColormodelPulldown(), FileYUV::get_parameters(), BC_FTumbler::handle_down_event(), BC_ITumbler::handle_down_event(), DayTumbler::handle_down_event(), CaptureLengthTumbler::handle_down_event(), SynthFreqPot::handle_event(), ShapeWipeBrowseButton::handle_event(), MotionBlockY::handle_event(), MotionBlockX::handle_event(), InterpolateVideoRateMenu::handle_event(), GammaColorPicker::handle_event(), GammaSlider::handle_event(), MaxSlider::handle_event(), DecimateRateMenu::handle_event(), BC_PopupTextBoxList::handle_event(), BC_RecentList::handle_event(), BC_FileBoxFilterMenu::handle_event(), BC_FileBoxDirectoryText::handle_event(), FormatSwapExtents::handle_event(), ResizeTrackSwap::handle_event(), DeleteRenderProfileButton::handle_event(), RenderProfileListBox::handle_event(), PrefsRenderFarmNodes::handle_event(), NewSwapExtents::handle_event(), InterlacemodePulldown::handle_event(), ColormodelPulldown::handle_event(), AspectPulldown::handle_event(), FrameSizePulldown::handle_event(), FrameRatePulldown::handle_event(), SampleRatePulldown::handle_event(), LoadModeListBox::handle_event(), FormatFormat::handle_event(), FormatPresetsPulldown::handle_event(), PipePreset::handle_event(), ChannelEditEditInputItem::handle_event(), ByteOrderList::handle_event(), BitsPopupMenu::handle_event(), AssetEditInterlacemodePulldown::handle_event(), InterlacefixmethodPulldown::handle_event(), BC_FTumbler::handle_up_event(), BC_ITumbler::handle_up_event(), DayTumbler::handle_up_event(), CaptureLengthTumbler::handle_up_event(), InterlacefixmethodPulldown::InterlacefixmethodPulldown(), InterlacemodePulldown::InterlacemodePulldown(), Patch::load(), ManualGotoNumber::reshape_update(), DC_Offset::run(), BrowseButton::run(), BC_FileBoxListBox::selection_changed(), ChannelEditEditThread::set_freqtable(), Patch::set_title(), Interlaceautofix::showhideotherwidgets(), ChannelEditEditThread::source_down(), ChannelEditEditThread::source_up(), BC_FileBox::submit_dir(), BC_FileBox::submit_file(), TitleWindow::update(), GammaWindow::update(), BC_TumbleTextBox::update(), BC_PopupTextBox::update(), update(), TimeEntry::update(), SetFormatThread::update(), ResizeTrackWindow::update(), NudgePatch::update(), PatchGUI::update(), InterlacemodePulldown::update(), NewWindow::update(), FormatTools::update(), SetFormatThread::update_aspect(), ScaleThread::update_aspect(), NewThread::update_aspect(), AVIConfigVideo::update_attribute(), ZoomBar::update_autozoom(), RecordGUI::update_batch_tools(), FormatTools::update_driver(), FormatTools::update_extension(), SynthWindow::update_gui(), DelayVideoWindow::update_gui(), DelayAudioWindow::update_gui(), ToTextBox::update_position(), LengthTextBox::update_position(), FromTextBox::update_position(), RotateWindow::update_text(), CompressorWindow::update_textboxes(), SetFormatThread::update_window(), and ScaleThread::update_window().

Here is the call graph for this function:

int BC_TextBox::update ( int64_t  value  ) 

Definition at line 193 of file bctextbox.C.

References BCTEXTLEN, and update().

Here is the call graph for this function:

int BC_TextBox::update ( float  value  ) 

Definition at line 203 of file bctextbox.C.

References BCTEXTLEN, precision, and update().

Here is the call graph for this function:

void BC_TextBox::disable (  ) 

void BC_TextBox::enable (  ) 

int BC_TextBox::get_enabled (  ) 

Definition at line 237 of file bctextbox.C.

References enabled.

Referenced by CompressorWindow::update_textboxes().

int BC_TextBox::initialize (  )  [virtual]

int BC_TextBox::focus_in_event (  )  [virtual]

Reimplemented from BC_WindowBase.

Definition at line 455 of file bctextbox.C.

References draw().

Here is the call graph for this function:

int BC_TextBox::focus_out_event (  )  [virtual]

Reimplemented from BC_WindowBase.

Definition at line 461 of file bctextbox.C.

References draw().

Here is the call graph for this function:

int BC_TextBox::cursor_enter_event (  )  [virtual]

int BC_TextBox::cursor_leave_event (  )  [virtual]

Reimplemented from BC_WindowBase.

Definition at line 484 of file bctextbox.C.

References draw_border(), BC_WindowBase::flash(), BC_WindowBase::flush(), BC_WindowBase::hide_tooltip(), and highlighted.

Here is the call graph for this function:

int BC_TextBox::cursor_motion_event (  )  [virtual]

int BC_TextBox::button_press_event (  )  [virtual]

int BC_TextBox::button_release_event (  )  [virtual]

Reimplemented from BC_WindowBase.

Definition at line 555 of file bctextbox.C.

References active, BC_WindowBase::hide_tooltip(), text_selected, and word_selected.

Here is the call graph for this function:

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

int BC_TextBox::keypress_event (  )  [virtual]

int BC_TextBox::activate (  )  [virtual]

int BC_TextBox::deactivate (  )  [virtual]

Reimplemented from BC_WindowBase.

Reimplemented in ManualGotoNumber.

Definition at line 619 of file bctextbox.C.

References active, BC_Resources::blink_rate, draw(), BC_WindowBase::get_resources(), BC_WindowBase::top_level, and BC_WindowBase::unset_repeat().

Referenced by ManualGotoNumber::deactivate().

Here is the call graph for this function:

char * BC_TextBox::get_text (  ) 

Definition at line 260 of file bctextbox.C.

References text.

Referenced by NudgePatch::button_press_event(), PatchGUI::calculate_nudge_text(), ClipEditWindow::create_objects(), ManualGotoWindow::get_entered_position_sec(), FileYUV::get_parameters(), BC_TumbleTextBox::get_text(), BC_PopupTextBox::get_text(), BC_ScrollTextBox::get_text(), BC_NewFolder::get_text(), NewFolder::get_text(), BC_FTumbler::handle_down_event(), BC_ITumbler::handle_down_event(), CaptureLengthTumbler::handle_down_event(), TitleFade::handle_event(), SynthBaseFreq::handle_event(), ShapeWipeBrowseButton::handle_event(), ShapeWipeFilename::handle_event(), RotateText::handle_event(), ReFrameOutput::handle_event(), NormalizeWindowOverload::handle_event(), TrackFrameNumber::handle_event(), MotionBlockYText::handle_event(), MotionBlockXText::handle_event(), LoopVideoFrames::handle_event(), LoopAudioSamples::handle_event(), IVTCAutoThreshold::handle_event(), IVTCOffset::handle_event(), InterpolateVideoRate::handle_event(), GammaText::handle_event(), MaxText::handle_event(), DenoiseVideoThreshold::handle_event(), SelTempAvgGainValue::handle_event(), SelTempAvgOffsetValue::handle_event(), SelTempAvgThreshSlider::handle_event(), DelayVideoSlider::handle_event(), DelayAudioTextBox::handle_event(), DecimateRate::handle_event(), CompressorTrigger::handle_event(), CompressorY::handle_event(), CompressorX::handle_event(), CompressorDecay::handle_event(), CompressorReaction::handle_event(), CDRipWindowDevice::handle_event(), CDRipTextValue::handle_event(), BC_FileBoxOK::handle_event(), BC_FileBoxUseThis::handle_event(), BC_FileBoxFilterText::handle_event(), BC_FileBoxDirectoryText::handle_event(), BC_FileBoxListBox::handle_event(), ZoomTextBox::handle_event(), VDeviceIntBox::handle_event(), VDeviceTextBox::handle_event(), TimeTextBox::handle_event(), DayText::handle_event(), ScaleAspectText::handle_event(), SetFrameRateTextBox::handle_event(), SetChannelsTextBox::handle_event(), SetSampleRateTextBox::handle_event(), ScaleAspectH::handle_event(), ScaleAspectW::handle_event(), ScaleRatioText::handle_event(), ScaleOffsetText::handle_event(), ScaleSizeText::handle_event(), ResizeTrackScaleH::handle_event(), ResizeTrackScaleW::handle_event(), ResizeTrackHeight::handle_event(), ResizeTrackWidth::handle_event(), ResampleFraction::handle_event(), DeleteRenderProfileButton::handle_event(), SaveRenderProfileButton::handle_event(), StillImageDuration::handle_event(), VideoCaptureLength::handle_event(), VideoWriteLength::handle_event(), RecordFrameRate::handle_event(), RecordH::handle_event(), RecordW::handle_event(), RecordSampleRate::handle_event(), RecordWriteLength::handle_event(), RecordPath::handle_event(), PluginLocalPathText::handle_event(), PluginGlobalPathText::handle_event(), TimecodeOffset::handle_event(), PlaybackPreload::handle_event(), PrefsRenderFarmMountpoint::handle_event(), PrefsRenderFarmDelNode::handle_event(), PrefsRenderFarmReplaceNode::handle_event(), PrefsRenderFarmNewNode::handle_event(), NudgePatch::handle_event(), TitlePatch::handle_event(), TitlePatchOld::handle_event(), NewAspectH::handle_event(), NewAspectW::handle_event(), NewOutputH::handle_event(), NewOutputW::handle_event(), NewFrameRate::handle_event(), NewVChannels::handle_event(), NewVTracks::handle_event(), NewSampleRate::handle_event(), NewAChannels::handle_event(), NewATracks::handle_event(), LabelEditComments::handle_event(), MeterMaxDB::handle_event(), MeterMinDB::handle_event(), TimeFormatFeetSetting::handle_event(), IndexCount::handle_event(), IndexSize::handle_event(), IndexPathText::handle_event(), FormatChannels::handle_event(), FormatFormat::handle_event(), FormatPathText::handle_event(), VorbisAvgBitrate::handle_event(), VorbisMaxBitrate::handle_event(), VorbisMinBitrate::handle_event(), OGGTheoraBitrate::handle_event(), OGGVorbisAvgBitrate::handle_event(), OGGVorbisMaxBitrate::handle_event(), OGGVorbisMinBitrate::handle_event(), MPEGBitrate::handle_event(), FileFormatHeader::handle_event(), FileFormatRate::handle_event(), AVIVAttribute::handle_event(), FeatherEditsTextBox::handle_event(), ExportEDLPathText::handle_event(), EditPopupTitle::handle_event(), ClipEditComments::handle_event(), ClipEditTitle::handle_event(), ChannelEditEditSource::handle_event(), ChannelEditEditTitle::handle_event(), ByteOrderText::handle_event(), BitsPopupText::handle_event(), BatchRenderEDLPath::handle_event(), AssetEditTCStartTextBox::handle_event(), AssetEditReelNumber::handle_event(), AssetEditReelName::handle_event(), AssetEditPathText::handle_event(), AssetEditHeader::handle_event(), AssetEditILacefixmethod::handle_event(), AssetEditILacemode::handle_event(), AssetEditILaceautofixoption::handle_event(), AssetEditFRate::handle_event(), AssetEditRate::handle_event(), ADeviceIntBox::handle_event(), ADeviceTextBox::handle_event(), BC_FTumbler::handle_up_event(), BC_ITumbler::handle_up_event(), CaptureLengthTumbler::handle_up_event(), ManualGotoNumber::keypress_event(), ManualGotoNumber::reshape_update(), BrowseButton::run(), ZoomBar::set_selection(), and CompressorWindow::update_textboxes().

int BC_TextBox::get_text_rows (  ) 

void BC_TextBox::set_text_row ( int  row  ) 

Definition at line 1346 of file bctextbox.C.

References draw(), text_height, text_y, and top_margin.

Referenced by BC_ScrollTextBoxYScroll::handle_event().

Here is the call graph for this function:

int BC_TextBox::get_text_row (  ) 

int BC_TextBox::reposition_window ( int  x,
int  y,
int  w = -1,
int  rows = -1 
)

int BC_TextBox::uses_text (  )  [virtual]

Reimplemented from BC_WindowBase.

Definition at line 1211 of file bctextbox.C.

int BC_TextBox::calculate_h ( BC_WindowBase gui,
int  font,
int  has_border,
int  rows 
) [static]

int BC_TextBox::calculate_row_h ( int  rows,
BC_WindowBase parent_window,
int  has_border = 1,
int  font = MEDIUMFONT 
) [static]

Definition at line 249 of file bctextbox.C.

References BC_WindowBase::get_text_ascent(), and BC_WindowBase::get_text_descent().

Referenced by BC_ScrollTextBox::reposition_window().

Here is the call graph for this function:

int BC_TextBox::pixels_to_rows ( BC_WindowBase window,
int  font,
int  pixels 
) [static]

Definition at line 242 of file bctextbox.C.

References BC_WindowBase::get_text_ascent(), and BC_WindowBase::get_text_descent().

Referenced by LabelEditWindow::create_objects(), ClipEditWindow::create_objects(), and TitleWindow::resize_event().

Here is the call graph for this function:

void BC_TextBox::set_precision ( int  precision  ) 

void BC_TextBox::set_keypress_draw ( int  value  ) 

Definition at line 1494 of file bctextbox.C.

References keypress_draw.

int BC_TextBox::get_ibeam_letter (  ) 

Definition at line 1504 of file bctextbox.C.

References ibeam_letter.

Referenced by ManualGotoNumber::keypress_event().

void BC_TextBox::set_ibeam_letter ( int  number,
int  redraw = 1 
)

Definition at line 1509 of file bctextbox.C.

References draw(), and ibeam_letter.

Here is the call graph for this function:

int BC_TextBox::get_last_keypress (  ) 

Definition at line 1499 of file bctextbox.C.

References last_keypress.

void BC_TextBox::set_separators ( char *  separators  ) 

Definition at line 1518 of file bctextbox.C.

Referenced by TimeEntry::create_objects(), and ZoomBar::update_formatting().

int BC_TextBox::select_whole_text ( int  select  ) 

void BC_TextBox::cycle_textboxes ( int  amout  ) 

Reimplemented from BC_WindowBase.

Definition at line 702 of file bctextbox.C.

References BC_WindowBase::cycle_textboxes(), and BC_WindowBase::top_level.

Referenced by keypress_event(), and ManualGotoNumber::keypress_event().

Here is the call graph for this function:

int BC_TextBox::reset_parameters ( int  rows,
int  has_border,
int  font 
) [private]

void BC_TextBox::draw (  )  [private]

void BC_TextBox::draw_border (  )  [private]

void BC_TextBox::draw_cursor (  )  [private]

Definition at line 330 of file bctextbox.C.

References BCCURSORW, BC_WindowBase::draw_box(), ibeam_x, ibeam_y, BC_WindowBase::set_color(), BC_WindowBase::set_inverse(), BC_WindowBase::set_opaque(), text_height, text_x, text_y, and WHITE.

Referenced by draw(), and repeat_event().

Here is the call graph for this function:

void BC_TextBox::copy_selection ( int  clipboard_num  )  [private]

Definition at line 1468 of file bctextbox.C.

References BC_WindowBase::get_clipboard(), highlight_letter1, highlight_letter2, text, and BC_Clipboard::to_clipboard().

Referenced by button_press_event(), cursor_motion_event(), and keypress_event().

Here is the call graph for this function:

void BC_TextBox::paste_selection ( int  clipboard_num  )  [private]

Definition at line 1483 of file bctextbox.C.

References BC_Clipboard::clipboard_len(), BC_Clipboard::from_clipboard(), BC_WindowBase::get_clipboard(), and insert_text().

Referenced by button_press_event(), and keypress_event().

Here is the call graph for this function:

void BC_TextBox::delete_selection ( int  letter1,
int  letter2,
int  text_len 
) [private]

Definition at line 1216 of file bctextbox.C.

References do_separators(), and text.

Referenced by insert_text(), and keypress_event().

Here is the call graph for this function:

void BC_TextBox::insert_text ( char *  string  )  [private]

Definition at line 1229 of file bctextbox.C.

References delete_selection(), do_separators(), highlight_letter1, highlight_letter2, ibeam_letter, and text.

Referenced by default_keypress(), and paste_selection().

Here is the call graph for this function:

void BC_TextBox::do_separators ( int  ibeam_left  )  [private]

Definition at line 1254 of file bctextbox.C.

References ibeam_letter, separators, and text.

Referenced by delete_selection(), and insert_text().

void BC_TextBox::get_ibeam_position ( int &  x,
int &  y 
) [private]

Definition at line 1309 of file bctextbox.C.

References font, BC_WindowBase::get_text_width(), ibeam_letter, text, text_height, and text_row.

Referenced by find_ibeam().

Here is the call graph for this function:

void BC_TextBox::find_ibeam ( int  dispatch_event  )  [private]

void BC_TextBox::select_word ( int &  letter1,
int &  letter2,
int  ibeam_letter 
) [private]

Definition at line 1446 of file bctextbox.C.

References text.

Referenced by button_press_event(), and cursor_motion_event().

int BC_TextBox::get_cursor_letter ( int  cursor_x,
int  cursor_y 
) [private]

Definition at line 1396 of file bctextbox.C.

References BC_WindowBase::done, font, BC_WindowBase::get_text_width(), text, text_height, text_row, text_x, and text_y.

Referenced by button_press_event(), cursor_motion_event(), and keypress_event().

Here is the call graph for this function:

int BC_TextBox::get_row_h ( int  rows  )  [private]

Definition at line 277 of file bctextbox.C.

References bottom_margin, text_height, and top_margin.

Referenced by initialize(), and reposition_window().

void BC_TextBox::default_keypress ( int &  dispatch_event,
int &  result 
) [private]

Definition at line 659 of file bctextbox.C.

References draw(), find_ibeam(), BC_WindowBase::get_keypress(), insert_text(), RETURN, temp_string, and BC_WindowBase::top_level.

Referenced by keypress_event().

Here is the call graph for this function:


Field Documentation

int BC_TextBox::text_x [private]

int BC_TextBox::text_y [private]

int BC_TextBox::ibeam_x [private]

Definition at line 124 of file bctextbox.h.

Referenced by draw(), draw_cursor(), and keypress_event().

int BC_TextBox::ibeam_y [private]

Definition at line 124 of file bctextbox.h.

Referenced by draw(), draw_cursor(), and keypress_event().

int BC_TextBox::ibeam_letter [private]

Definition at line 128 of file bctextbox.h.

Referenced by button_press_event(), cursor_motion_event(), and reset_parameters().

Definition at line 128 of file bctextbox.h.

Referenced by button_press_event(), cursor_motion_event(), and reset_parameters().

int BC_TextBox::text_x1 [private]

Definition at line 129 of file bctextbox.h.

int BC_TextBox::text_start [private]

Definition at line 129 of file bctextbox.h.

Referenced by reset_parameters().

int BC_TextBox::text_end [private]

Definition at line 129 of file bctextbox.h.

Referenced by reset_parameters().

int BC_TextBox::text_ascent [private]

Definition at line 130 of file bctextbox.h.

Referenced by draw(), and initialize().

int BC_TextBox::text_descent [private]

Definition at line 130 of file bctextbox.h.

Referenced by initialize().

int BC_TextBox::text_height [private]

int BC_TextBox::left_margin [private]

Definition at line 131 of file bctextbox.h.

Referenced by draw_border(), find_ibeam(), and initialize().

int BC_TextBox::right_margin [private]

Definition at line 131 of file bctextbox.h.

Referenced by draw_border(), find_ibeam(), and initialize().

int BC_TextBox::top_margin [private]

Definition at line 131 of file bctextbox.h.

Referenced by draw(), find_ibeam(), get_row_h(), get_text_row(), initialize(), and set_text_row().

Definition at line 131 of file bctextbox.h.

Referenced by draw(), find_ibeam(), get_row_h(), and initialize().

int BC_TextBox::has_border [private]

Definition at line 132 of file bctextbox.h.

Referenced by draw(), draw_border(), and initialize().

int BC_TextBox::font [private]

Definition at line 133 of file bctextbox.h.

Referenced by draw(), get_cursor_letter(), get_ibeam_position(), and initialize().

int BC_TextBox::rows [private]

Definition at line 134 of file bctextbox.h.

Referenced by initialize(), and keypress_event().

int BC_TextBox::highlighted [private]

int BC_TextBox::high_color [private]

Definition at line 136 of file bctextbox.h.

Referenced by draw(), and initialize().

int BC_TextBox::back_color [private]

Definition at line 136 of file bctextbox.h.

Referenced by draw(), and initialize().

Definition at line 137 of file bctextbox.h.

Referenced by draw(), and draw_border().

char BC_TextBox::text[BCTEXTLEN] [private]

char BC_TextBox::text_row[BCTEXTLEN] [private]

Definition at line 138 of file bctextbox.h.

Referenced by draw(), get_cursor_letter(), and get_ibeam_position().

char BC_TextBox::temp_string[2] [private]

Definition at line 138 of file bctextbox.h.

Referenced by default_keypress().

int BC_TextBox::active [private]

int BC_TextBox::enabled [private]

int BC_TextBox::precision [private]

Definition at line 141 of file bctextbox.h.

Referenced by reset_parameters(), and update().

Definition at line 147 of file bctextbox.h.

Referenced by get_last_keypress(), keypress_event(), and reset_parameters().

char* BC_TextBox::separators [private]

Definition at line 148 of file bctextbox.h.

Referenced by do_separators(), and reset_parameters().


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

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