当前位置: 首页>>代码示例>>C++>>正文


C++ set_tooltip函数代码示例

本文整理汇总了C++中set_tooltip函数的典型用法代码示例。如果您正苦于以下问题:C++ set_tooltip函数的具体用法?C++ set_tooltip怎么用?C++ set_tooltip使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了set_tooltip函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: BC_Toggle

ScopeToggle::ScopeToggle(ScopeGUI *gui, 
	int x, 
	int y,
	int *value)
 : BC_Toggle(x, 
 	y, 
	get_image_set(gui, value),
	*value)
{
	this->gui = gui;
	this->value = value;
	if(value == &gui->use_hist_parade)
	{
		set_tooltip("Histogram Parade");
	}
	else
	if(value == &gui->use_hist)
	{
		set_tooltip("Histogram");
	}
	else
	if(value == &gui->use_wave_parade)
	{
		set_tooltip("Waveform Parade");
	}
	else
	if(value == &gui->use_wave)
	{
		set_tooltip("Waveform");
	}
	else
	{
		set_tooltip("Vectorscope");
	}
}
开发者ID:Cuchulain,项目名称:cinelerra,代码行数:35,代码来源:scopewindow.C

示例2: switch

void GLGizmoRotate::on_render(const Selection& selection) const
{
    if (!m_grabbers[0].enabled)
        return;

    const BoundingBoxf3& box = selection.get_bounding_box();

    std::string axis;
    switch (m_axis)
    {
    case X: { axis = "X"; break; }
    case Y: { axis = "Y"; break; }
    case Z: { axis = "Z"; break; }
    }

    if (!m_dragging && (m_hover_id == 0))
        set_tooltip(axis);
    else if (m_dragging)
        set_tooltip(axis + ": " + format((float)Geometry::rad2deg(m_angle), 4) + "\u00B0");
    else
    {
        m_center = box.center();
        m_radius = Offset + box.radius();
        m_snap_coarse_in_radius = m_radius / 3.0f;
        m_snap_coarse_out_radius = 2.0f * m_snap_coarse_in_radius;
        m_snap_fine_in_radius = m_radius;
        m_snap_fine_out_radius = m_radius * (1.0f + ScaleLongTooth);
    }

    glsafe(::glEnable(GL_DEPTH_TEST));

    glsafe(::glPushMatrix());
    transform_to_local(selection);

    glsafe(::glLineWidth((m_hover_id != -1) ? 2.0f : 1.5f));
    glsafe(::glColor3fv((m_hover_id != -1) ? m_drag_color : m_highlight_color));

    render_circle();

    if (m_hover_id != -1)
    {
        render_scale();
        render_snap_radii();
        render_reference_radius();
    }

    glsafe(::glColor3fv(m_highlight_color));

    if (m_hover_id != -1)
        render_angle();

    render_grabber(box);
    render_grabber_extension(box, false);

    glsafe(::glPopMatrix());
}
开发者ID:prusa3d,项目名称:Slic3r,代码行数:56,代码来源:GLGizmoRotate.cpp

示例3: BC_OKButton

BC_FileBoxOK::BC_FileBoxOK(BC_FileBox *filebox)
 : BC_OKButton(filebox, 
 	!filebox->want_directory ? 
		BC_WindowBase::get_resources()->ok_images :
		BC_WindowBase::get_resources()->filebox_descend_images)
{
	this->filebox = filebox; 
	if(filebox->want_directory)
		set_tooltip(_("Descend directory"));
	else
		set_tooltip(_("Submit the file"));
}
开发者ID:beequ7et,项目名称:cinelerra-cv,代码行数:12,代码来源:bcfilebox.C

示例4: set_id

void tcontrol::set_members(const string_map& data)
{
	/** @todo document this feature on the wiki. */
	/** @todo do we need to add the debug colors here as well? */
	string_map::const_iterator itor = data.find("id");
	if(itor != data.end()) {
		set_id(itor->second);
	}

	itor = data.find("linked_group");
	if(itor != data.end()) {
		set_linked_group(itor->second);
	}

	itor = data.find("label");
	if(itor != data.end()) {
		set_label(itor->second);
	}

	itor = data.find("tooltip");
	if(itor != data.end()) {
		set_tooltip(itor->second);
	}

	itor = data.find("help");
	if(itor != data.end()) {
		set_help_message(itor->second);
	}

	itor = data.find("use_markup");
	if(itor != data.end()) {
		set_use_markup(utils::string_bool(itor->second));
	}
}
开发者ID:8680-wesnoth,项目名称:wesnoth-fork-old,代码行数:34,代码来源:control.cpp

示例5: update

int VFadePatch::handle_event()
{
	if(shift_down())
	{
		update(100);
		set_tooltip(get_caption());
	}

	patch->change_source = 1;

	float change = update_edl();

	if(patch->track->gang) 
		patch->patchbay->synchronize_faders(change, TRACK_VIDEO, patch->track);

	patch->change_source = 0;


	mwindow->gui->unlock_window();
	mwindow->restart_brender();
	mwindow->sync_parameters(CHANGE_PARAMS);
	mwindow->gui->lock_window("VFadePatch::handle_event");
	if(mwindow->edl->session->auto_conf->autos[AUTOMATION_FADE])
	{
		mwindow->gui->canvas->draw_overlays();
		mwindow->gui->canvas->flash();
	}
	return 1;
}
开发者ID:rasilon,项目名称:cinelerra-cv,代码行数:29,代码来源:vpatchgui.C

示例6: BC_GenericButton

RecordGUIActivateBatch::RecordGUIActivateBatch(MWindow *mwindow, Record *record, int x, int y)
 : BC_GenericButton(x, y, _("Activate"))
{
	this->mwindow = mwindow;
	this->record = record;
	set_tooltip(_("Make the highlighted\nclip active."));
}
开发者ID:petterreinholdtsen,项目名称:cinelerra-hv,代码行数:7,代码来源:recordgui.C

示例7: BC_Button

NewSwapExtents::NewSwapExtents(MWindow *mwindow, NewWindow *gui, int x, int y)
 : BC_Button(x, y, mwindow->theme->get_image_set("swap_extents"))
{
	this->mwindow = mwindow;
	this->gui = gui;
	set_tooltip("Swap dimensions");
}
开发者ID:Cuchulain,项目名称:cinelerra,代码行数:7,代码来源:new.C

示例8: BC_CheckBox

RecordGUIFillFrames::RecordGUIFillFrames(MWindow *mwindow, Record *record, int x, int y)
 : BC_CheckBox(x, y, record->fill_frames, _("Fill frames"))
{
	this->mwindow = mwindow;
	this->record = record;
	set_tooltip(_("Write extra frames when behind."));
}
开发者ID:petterreinholdtsen,项目名称:cinelerra-hv,代码行数:7,代码来源:recordgui.C

示例9: BC_Button

BrowseButton::BrowseButton(MWindow *mwindow, 
	BC_WindowBase *parent_window, 
	BC_TextBox *textbox, 
	int x, 
	int y, 
	const char *init_directory, 
	const char *title, 
	const char *caption, 
	int want_directory,
	const char *recent_prefix)
 : BC_Button(x, y, mwindow->theme->get_image_set("magnify_button")), 
   Thread(1)
{
	this->parent_window = parent_window;
	this->want_directory = want_directory;
	strcpy(this->title, title);
	this->caption = caption;
	this->init_directory = init_directory;
	this->textbox = textbox;
	this->mwindow = mwindow;
	this->recent_prefix = recent_prefix;
	set_tooltip(_("Look for file"));
	gui = 0;
	startup_lock = new Mutex("BrowseButton::startup_lock");
}
开发者ID:rasilon,项目名称:cinelerra-cv,代码行数:25,代码来源:browsebutton.C

示例10: get_resources

int BC_Pot::repeat_event(int64_t duration)
{
	if(duration == top_level->get_resources()->tooltip_delay)
	{
		if(tooltip_on)
		{
			if(keypress_tooltip_timer > 0)
			{
				keypress_tooltip_timer -= get_resources()->tooltip_delay;
			}
			else
			if(status != POT_HIGH && status != POT_DN)
			{
				hide_tooltip();
			}
		}
		else
		if(status == POT_HIGH)
		{
			if(use_caption && tooltip_text)
			{
				if(!tooltip_text[0] || isdigit(tooltip_text[0]))
				{
					set_tooltip(get_caption());
					show_tooltip(50);
				}
				else
					show_tooltip();
				tooltip_done = 1;
			}
			return 1;
		}
	}
	return 0;
}
开发者ID:Cuchulain,项目名称:cinelerra,代码行数:35,代码来源:bcpot.C

示例11: coords_to_angle

int BC_Pot::cursor_motion_event()
{
	if(top_level->button_down &&
		top_level->event_win == win &&
		status == POT_DN)
	{
		float angle = coords_to_angle(get_cursor_x(), get_cursor_y());

		if(prev_angle >= 0 && prev_angle < 90 &&
			angle >= 270 && angle < 360)
		{
			angle_correction -= 360;
		}
		else
		if(prev_angle >= 270 && prev_angle < 360 &&
			angle >= 0 && angle < 90)
		{
			angle_correction += 360;
		}

		prev_angle = angle;

		if(percentage_to_value(
			angle_to_percentage(angle + angle_correction - angle_offset)))
		{
			set_tooltip(get_caption());
			draw(1);
			handle_event();
		}
		return 1;
	}
	return 0;
}
开发者ID:Cuchulain,项目名称:cinelerra,代码行数:33,代码来源:bcpot.C

示例12: BC_Button

RecordGUIEnd::RecordGUIEnd(MWindow *mwindow, Record *record, int x, int y)
 : BC_Button(x, y, mwindow->theme->get_image_set("end"))
{ 
	this->engine = engine; 
	this->record = record; 
	set_tooltip(_("Seek to end of recording"));
}
开发者ID:beequ7et,项目名称:cinelerra-cv,代码行数:7,代码来源:recordtransport.C

示例13: BC_CancelButton

RecordGUICancel::RecordGUICancel(Record *record, 
	RecordGUI *record_gui)
 : BC_CancelButton(record_gui)
{
	set_tooltip(_("Quit without pasting into project."));
	this->record = record;
	this->gui = record_gui;
}
开发者ID:petterreinholdtsen,项目名称:cinelerra-hv,代码行数:8,代码来源:recordgui.C

示例14: BC_Toggle

MainFFMpegToggle::MainFFMpegToggle(MWindow *mwindow, MButtons *mbuttons, int x, int y)
 : BC_Toggle(x - ff_images[0]->get_w(), y, &ff_images[0],
		mwindow->preferences->ffmpeg_early_probe)
{
	this->mwindow = mwindow;
	this->mbuttons = mbuttons;
	set_tooltip("FFMpeg early probe");
}
开发者ID:knutj,项目名称:cinelerra,代码行数:8,代码来源:mbuttons.C

示例15: set_tooltip

void NodeUI_Label::set_text(String p_text) {

	name=p_text;
	set_tooltip(p_text);
	check_minimum_size();
	update();
	
}
开发者ID:BackupTheBerlios,项目名称:reshaked-svn,代码行数:8,代码来源:node_ui_label.cpp


注:本文中的set_tooltip函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。