Пример #1
0
void TE_View::paste_buffer()
{
//   printf("selection_buffer:%s\n", selection_buffer_);
   if (selection_buffer_ != nil)
      insert_string(selection_buffer_, strlen(selection_buffer_));
   make_visible();
}
Пример #2
0
SpriteEditorPlugin::SpriteEditorPlugin(EditorNode *p_node) {

	editor = p_node;
	sprite_editor = memnew(SpriteEditor);
	editor->get_viewport()->add_child(sprite_editor);
	make_visible(false);

	//sprite_editor->options->hide();
}
Пример #3
0
/* Makes all windows invisible (except the command and locator windows).   */
static void
make_all_visible (int visible)
{
  int i;

  for (i = 0; i < MAX_MAJOR_WINDOWS; i++)
    {
      if (tui_win_list[i] != NULL
	  && ((tui_win_list[i])->generic.type) != CMD_WIN)
	{
	  if (tui_win_is_source_type ((tui_win_list[i])->generic.type))
	    make_visible ((tui_win_list[i])->detail.source_info.execution_info,
			  visible);
	  make_visible ((struct tui_gen_win_info *) tui_win_list[i], visible);
	}
    }

  return;
}
Пример #4
0
void TE_View::delete_forward()
{
   int dot = text_editor_->Dot();
   int mark = text_editor_->Mark();
   if (dot != mark)
      text_editor_->DeleteSelection();
   else
      text_editor_->DeleteText(1);
   make_visible();
}
Пример #5
0
void TE_View::insert_string(const char* str, int count)
{
   int dot = text_editor_->Dot();
   int mark = text_editor_->Mark();
   if (dot != mark)
     text_editor_->DeleteSelection(); // overwrite selection
     
   text_editor_->InsertText(str, count);
   // scroll to follow new insertion
   make_visible();
}
Пример #6
0
void TE_View::find_backward(const char* pattern)
{
   int dot = text_editor_->Dot();
   int mark = text_editor_->Mark();
   int index = Math::min(dot, mark);
   int start = te_buffer_->search_backward(pattern, index);
   if (start >= 0) {
      int end = te_buffer_->search_end();
      text_editor_->Select(start, end);
      make_visible();
   }
}
Пример #7
0
void
tui_make_invisible (struct tui_gen_win_info *win_info)
{
  make_visible (win_info, 0);
}
Пример #8
0
void TE_View::end_of_text()
{
   text_editor_->EndOfText();
   make_visible();
}
Пример #9
0
void TE_View::beginning_of_text()
{
   text_editor_->BeginningOfText();
   make_visible(); 
}
Пример #10
0
void TE_View::backward_page(const int count)
{
   text_editor_->BackwardPage(count);
   make_visible();
}
Пример #11
0
void TE_View::forward_line(const int count)
{
   text_editor_->ForwardLine(count);
   make_visible(/*false*/);
}
Пример #12
0
void TE_View::backward_word(const int count)
{
   text_editor_->BackwardWord(count);
   make_visible();
}
Пример #13
0
void TE_View::forward_char(const int count)
{
   text_editor_->ForwardCharacter(count);
   make_visible(/*false*/);
}
Пример #14
0
void TE_View::backward_char(const int count)
{
   text_editor_->BackwardCharacter(count);
   make_visible();
}