Exemple #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();
}
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();
}
Exemple #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;
}
Exemple #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();
}
Exemple #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();
}
Exemple #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();
   }
}
Exemple #7
0
void
tui_make_invisible (struct tui_gen_win_info *win_info)
{
  make_visible (win_info, 0);
}
Exemple #8
0
void TE_View::end_of_text()
{
   text_editor_->EndOfText();
   make_visible();
}
Exemple #9
0
void TE_View::beginning_of_text()
{
   text_editor_->BeginningOfText();
   make_visible(); 
}
Exemple #10
0
void TE_View::backward_page(const int count)
{
   text_editor_->BackwardPage(count);
   make_visible();
}
Exemple #11
0
void TE_View::forward_line(const int count)
{
   text_editor_->ForwardLine(count);
   make_visible(/*false*/);
}
Exemple #12
0
void TE_View::backward_word(const int count)
{
   text_editor_->BackwardWord(count);
   make_visible();
}
Exemple #13
0
void TE_View::forward_char(const int count)
{
   text_editor_->ForwardCharacter(count);
   make_visible(/*false*/);
}
Exemple #14
0
void TE_View::backward_char(const int count)
{
   text_editor_->BackwardCharacter(count);
   make_visible();
}