X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Fzoompanel.C;h=8b58f1a651b2e091514b59082d84a5530df5edde;hb=331564c0ebb30688da917fc1c89058e12771e348;hp=a719cc00278d58aa498417a44519d4ce43437f32;hpb=b2106cd755a98389f1f6d373a71201b68377d74f;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/cinelerra/zoompanel.C b/cinelerra-5.1/cinelerra/zoompanel.C index a719cc00..8b58f1a6 100644 --- a/cinelerra-5.1/cinelerra/zoompanel.C +++ b/cinelerra-5.1/cinelerra/zoompanel.C @@ -79,8 +79,6 @@ ZoomPanel::ZoomPanel(MWindow *mwindow, this->min = min; this->max = max; this->zoom_type = zoom_type; - this->menu_images = 0; - this->tumbler_images = 0; this->user_table = 0; this->user_size = 0; } @@ -104,8 +102,6 @@ ZoomPanel::ZoomPanel(MWindow *mwindow, this->min = min; this->max = max; this->zoom_type = zoom_type; - this->menu_images = 0; - this->tumbler_images = 0; this->user_table = user_table; this->user_size = user_size; } @@ -150,27 +146,11 @@ void ZoomPanel::update_menu() calculate_menu(); } -void ZoomPanel::set_menu_images(VFrame **data) -{ - this->menu_images = data; -} - -void ZoomPanel::set_tumbler_images(VFrame **data) -{ - this->tumbler_images = data; -} - void ZoomPanel::create_objects() { - subwindow->add_subwindow(zoom_text = new ZoomPopup(mwindow, - this, - x, - y)); + subwindow->add_subwindow(zoom_text = new ZoomPopup(mwindow, this, x, y)); x += zoom_text->get_w(); - subwindow->add_subwindow(zoom_tumbler = new ZoomTumbler(mwindow, - this, - x, - y)); + subwindow->add_subwindow(zoom_tumbler = new ZoomTumbler(mwindow, this, x, y)); calculate_menu(); } @@ -202,6 +182,12 @@ void ZoomPanel::set_text(const char *text) zoom_text->set_text(text); } +void ZoomPanel::set_tooltip(const char *text) +{ + zoom_text->set_tooltip(text); + zoom_tumbler->set_tooltip(text); +} + void ZoomPanel::update(double value) { this->value = value; @@ -309,12 +295,8 @@ double ZoomPanel::text_to_zoom(char *text, int use_table) ZoomPopup::ZoomPopup(MWindow *mwindow, ZoomPanel *panel, int x, int y) - : BC_PopupMenu(x, - y, - panel->w, - panel->value_to_text(panel->value, 0), - 1, - panel->menu_images) + : BC_PopupMenu(x, y, panel->w, panel->value_to_text(panel->value, 0), + 1, mwindow->theme->get_image_set("zoombar_menu", 0)) { this->mwindow = mwindow; this->panel = panel; @@ -334,9 +316,7 @@ int ZoomPopup::handle_event() ZoomTumbler::ZoomTumbler(MWindow *mwindow, ZoomPanel *panel, int x, int y) - : BC_Tumbler(x, - y, - panel->tumbler_images) + : BC_Tumbler(x, y, mwindow->theme->get_image_set("zoombar_tumbler", 0)) { this->mwindow = mwindow; this->panel = panel;