X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Fchannelinfo.C;h=3d1fa69f3ea2440de618713802b704eb54167ab6;hb=eecf057a9d6b8c8cffc7d0001bff89bc9cac7b05;hp=7bcac18863e4bf243dbd0d672b8726e43f8a4fdb;hpb=0b78779e9e75131eee81d2e4689b98df0e91c092;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/cinelerra/channelinfo.C b/cinelerra-5.1/cinelerra/channelinfo.C index 7bcac188..3d1fa69f 100644 --- a/cinelerra-5.1/cinelerra/channelinfo.C +++ b/cinelerra-5.1/cinelerra/channelinfo.C @@ -142,7 +142,7 @@ int ChanSearchMatchCase::handle_event() ChanSearchText::ChanSearchText(ChanSearchGUI *gui, int x, int y, int w) - : BC_TextBox(x, y, w, 1, "") + : BC_TextBox(x, y, w, 1, "") { this->gui = gui; } @@ -262,9 +262,9 @@ void ChanSearchGUI::create_objects() int pady = BC_TextBox::calculate_h(this, MEDIUMFONT, 0, 1) + 5; int padx = BC_Title::calculate_w(this, (char*)"X", MEDIUMFONT); int x = padx/2, y = pady/4; - text_x = x; text_y = y; BC_Title *title = new BC_Title(text_x, text_y, _("Text:"), MEDIUMFONT, YELLOW); add_subwindow(title); x += title->get_w(); + text_x = x; text_y = y; search_text = new ChanSearchText(this, x, y, get_w()-x-10); add_subwindow(search_text); x = padx; y += pady + 5; @@ -337,7 +337,7 @@ ChanSearchGUI::ChanSearchGUI(ChanSearch *cswindow) search_columns[1] = 1; search_columns[2] = 2; search_column_titles[0] = _("Source"); - search_column_titles[1] = _("Title"); + search_column_titles[1] = C_("Title"); search_column_titles[2] = _("Start time"); search_column_widths[0] = 120; search_column_widths[2] = 120; @@ -346,7 +346,7 @@ ChanSearchGUI::ChanSearchGUI(ChanSearch *cswindow) ChanSearchGUI::~ChanSearchGUI() { - + ChannelEvent *item = highlighted_event; if( item ) { panel->lock_window("ChanSearchGUI::~ChanSearchGUI"); @@ -628,7 +628,6 @@ ChannelDataItem::ChannelDataItem(ChannelPanel *panel, int x, int y, int w, { this->panel = panel; x0 = x; y0 = y; - in_window = tooltip_done = 0; tip_info = 0; set_force_tooltip(1); } @@ -638,25 +637,11 @@ ChannelDataItem::~ChannelDataItem() delete [] tip_info; } -int ChannelDataItem::cursor_enter_event() -{ - if( is_event_win() ) { in_window = 1; tooltip_done = 0; } - else in_window = 0; - return 0; -} - -int ChannelDataItem::cursor_leave_event() -{ - if( tooltip_done ) { hide_tooltip(); in_window = 0; } - return 0; -} - int ChannelDataItem::repeat_event(int64_t duration) { - if( !tooltip_done && tip_info && in_window && + if( tip_info && cursor_above() && duration == get_resources()->tooltip_delay ) { show_tooltip(); - tooltip_done = 1; return 1; } return 0; @@ -1061,7 +1046,7 @@ ChannelThread::ChannelThread(ChannelInfoGUI *gui) this->gui = gui; this->iwindow = gui->iwindow; this->panel = gui->panel; - + fd = 0; done = 0; } @@ -1788,9 +1773,10 @@ void ChannelInfo::delete_batch() } ChannelScan::ChannelScan(MWindow *mwindow) - : BC_MenuItem(_("Scan..."), _("Shift-S"), 'S') + : BC_MenuItem(_("Scan..."), _("Ctrl-Alt-s"), 's') { - set_shift(); + set_ctrl(); + set_alt(); this->mwindow = mwindow; }