Exemplo n.º 1
0
void EditorHelp::_request_help(const String& p_string) {
	Error err = _goto_desc(p_string);
	if (err==OK) {
		editor->call("_editor_select",3);
	}
	//100 palabras
}
Exemplo n.º 2
0
void EditorHelp::_button_pressed(int p_idx) {

	if (p_idx==PAGE_CLASS_LIST) {

	//	edited_class->set_pressed(false);
	//	class_list_button->set_pressed(true);
	//	tabs->set_current_tab(PAGE_CLASS_LIST);

	} else if (p_idx==PAGE_CLASS_DESC) {

	//	edited_class->set_pressed(true);
	//	class_list_button->set_pressed(false);
	//	tabs->set_current_tab(PAGE_CLASS_DESC);

	} else if (p_idx==PAGE_CLASS_PREV) {

		if (history_pos<2)
			return;
		history_pos--;
		ERR_FAIL_INDEX(history_pos-1,history.size());
		_goto_desc(history[history_pos-1].c,false,history[history_pos-1].scroll);
		_update_history_buttons();


	} else if (p_idx==PAGE_CLASS_NEXT) {

		if (history_pos>=history.size())
			return;

		history_pos++;
		ERR_FAIL_INDEX(history_pos-1,history.size());
		_goto_desc(history[history_pos-1].c,false,history[history_pos-1].scroll);
		_update_history_buttons();

	} else if (p_idx==PAGE_SEARCH) {

		_search("");
	} else if (p_idx==CLASS_SEARCH) {

		class_search->popup();
	}


}
Exemplo n.º 3
0
void EditorHelp::_tree_item_selected() {

	if (select_locked)
		return;
	TreeItem *s=class_list->get_selected();
	if (!s)
		return;
	select_locked=true;
	_goto_desc(s->get_text(0));
	select_locked=false;
}
Exemplo n.º 4
0
void EditorHelp::_class_desc_select(const String& p_select) {

	if (p_select.begins_with("#")) {
		_goto_desc(p_select.substr(1,p_select.length()));
		return;
	} else if (p_select.begins_with("@")) {

		String m = p_select.substr(1,p_select.length());
		if (!method_line.has(m))
			return;
		class_desc->scroll_to_line(method_line[m]);
		return;
	}


}
Exemplo n.º 5
0
void EditorHelp::_class_list_select(const String& p_select) {

	_goto_desc(p_select);
}
Exemplo n.º 6
0
void EditorHelp::go_to_class(const String& p_class,int p_scroll) {

	_goto_desc(p_class,p_scroll);
}