• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C++ GetEditor函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: GetEditor

void CObjectSelectTool::EndTool()
{
	// TODO: 在此添加控件通知处理程序代码
	if ( mSelectionBuffer )
	{
		delete mSelectionBuffer;
		mSelectionBuffer = NULL;
	}

	GetEditor()->unRegisterEditorListener( this );

	if(mLastSelectedEntity)
		mLastSelectedEntity->getParentSceneNode()->showBoundingBox(false);

	if ( m_iCurrentPageId )
	{
		m_pObjectCtrl->RemovePage(m_iCurrentPageId);
	}

	mAxisGizmo.DestroyGizmo();
}
开发者ID:sdfwds4,项目名称:ogre3d-game-editor,代码行数:21,代码来源:ObjectSelectTool.cpp


示例2: GetEditor

void PreciseScaleCmd::Execute () {
    float x = 0.0, y = 0.0;
    Editor* ed = GetEditor();

    if (_dialog == nil) {
	_dialog = new ScaleDialog();
    }

    ed->InsertDialog(_dialog);
    bool accepted = _dialog->Accept();
    ed->RemoveDialog(_dialog);

    if (accepted) {
	_dialog->GetValues(x, y);
	if (x != 0.0 && y != 0.0) {
	    ScaleCmd* scaleCmd = new ScaleCmd(ed, x, y);
	    scaleCmd->Execute();
	    scaleCmd->Log();
	}
    }
}
开发者ID:PNCG,项目名称:neuron,代码行数:21,代码来源:idcmds.cpp


示例3: wxUnusedVar

//------------------------------------------------------------
void SnipWiz::OnMenuPaste(wxCommandEvent& e)
{
    wxUnusedVar(e);
    IEditor* editor = GetEditor();
    if(!editor) return;

    if(m_clipboard.IsEmpty()) return;
    // otherwise insert text
    wxString output = FormatOutput(editor, m_clipboard);
    wxString selection = editor->GetSelection();
    int curPos = editor->GetCurrentPosition() - selection.Len();
    // get caret position
    long cursorPos = output.Find(REAL_CARET_STR);
    if(cursorPos != wxNOT_FOUND) output.Remove(cursorPos, wxStrlen(REAL_CARET_STR));
    editor->ReplaceSelection(output);
    // set caret
    if(cursorPos != wxNOT_FOUND)
        editor->SetCaretAt(curPos + cursorPos);
    else
        editor->SetCaretAt(curPos + output.Len());
}
开发者ID:eranif,项目名称:codelite,代码行数:22,代码来源:snipwiz.cpp


示例4: GetPageCount

void wxSTEditorNotebook::UpdateItems(wxMenu *menu, wxMenuBar *menuBar, wxToolBar *toolBar)
{
    if (!menu && !menuBar && !toolBar) return;

    bool has_pages    = GetPageCount() > 0;
    bool can_save_all = CanSaveAll();
    bool editor_page  = GetEditor() != NULL;

    STE_MM::DoEnableItem(menu, menuBar, toolBar, ID_STN_SAVE_ALL, can_save_all);

    if (menu)
    {
        wxMenuItem *gotoMenuItem = menu->FindItem(ID_STN_MENU_GOTO);
        if (gotoMenuItem)
            UpdateGotoCloseMenu(gotoMenuItem->GetSubMenu(), ID_STN_GOTO_PAGE_START);

        wxMenuItem *closeMenuItem = menu->FindItem(ID_STN_MENU_CLOSE);
        if (closeMenuItem)
            UpdateGotoCloseMenu(closeMenuItem->GetSubMenu(), ID_STN_CLOSE_PAGE_START);
    }
    if (menuBar)
    {
        wxMenuItem *gotoMenuItem = menuBar->FindItem(ID_STN_MENU_GOTO);
        if (gotoMenuItem)
            UpdateGotoCloseMenu(gotoMenuItem->GetSubMenu(), ID_STN_GOTO_PAGE_START);

        wxMenuItem *closeMenuItem = menuBar->FindItem(ID_STN_MENU_CLOSE);
        if (closeMenuItem)
            UpdateGotoCloseMenu(closeMenuItem->GetSubMenu(), ID_STN_CLOSE_PAGE_START);
    }

    STE_MM::DoEnableItem(menu, menuBar, toolBar, ID_STN_WIN_PREVIOUS, has_pages); // && (GetSelection() > 0));
    STE_MM::DoEnableItem(menu, menuBar, toolBar, ID_STN_WIN_NEXT,     has_pages); // && (GetSelection()+1 < (int)GetPageCount()));

    STE_MM::DoEnableItem(menu, menuBar, toolBar, ID_STN_MENU_GOTO,        has_pages);
    STE_MM::DoEnableItem(menu, menuBar, toolBar, ID_STN_CLOSE_PAGE,       editor_page);
    STE_MM::DoEnableItem(menu, menuBar, toolBar, ID_STN_CLOSE_ALL,        has_pages);
    STE_MM::DoEnableItem(menu, menuBar, toolBar, ID_STN_CLOSE_ALL_OTHERS, has_pages);
    STE_MM::DoEnableItem(menu, menuBar, toolBar, ID_STN_MENU_CLOSE,       has_pages);
}
开发者ID:Abyss116,项目名称:luaplus51-all,代码行数:40,代码来源:stenoteb.cpp


示例5: GetEditor

void NewCompCmd::Execute () {
    Editor* ed = GetEditor();
    Component* orig = ed->GetComponent();
    Component* comp = prototype_->Copy();
    CompNameVar* compNameVar = (CompNameVar*) ed->GetState("CompNameVar");
    ModifStatusVar* modifVar = (ModifStatusVar*)ed->GetState("ModifStatusVar");

    if (OnlyOneEditorOf(orig) && !ReadyToClose(ed)) {
        return;
    }

    if (compNameVar != nil) compNameVar->SetComponent(comp);
    if (modifVar != nil) modifVar->SetComponent(comp);

    ed->SetComponent(comp);
    ed->Update();

    if (orig != nil && unidraw->FindAny(orig) == nil) {
        Component* root = orig->GetRoot();
        delete root;
    }
}
开发者ID:neurodebian,项目名称:iv-hines,代码行数:22,代码来源:catcmds.cpp


示例6: editor_renz_shutdown

void editor_renz_shutdown(Tcl_Interp *interp, editor_result *result, int seq_num){

    EDITOR_RECORD *er;
    ed_renz_res *data = result->data;
    out_canvas_e *output = result->output;
    char cmd[1024];
    int ed_id, seq_id;
    
    /* need to deregister sequence */
    editor_deregister(seq_num, ed_renz_callback, (editor_result *)result);
    ed_delete_cursor(seq_num, output->cursor->id, 0);
    
    seq_id = GetEdenId (seq_num);
    ed_id = GetEdIdFromSeqId (seq_id);
    er = GetEditor (ed_id);
    er->graphical = 0;
    if (er->text == 0) {
	delete_editor (ed_id);	
    }
    
    sprintf(cmd, "DeleteREnzPlot %s %s\n", data->frame, data->re_win);
    if (TCL_ERROR == Tcl_Eval(interp, cmd)) {
	verror(ERR_WARN, "restriction enzymes", "shutdown %s\n", 
	       interp->result);
    }

    ed_renz_shutdown(data->r_enzyme, data->num_enzymes, data->match,
		  data->canvas, data->world, data->zoom);
    free(data->text_colour);
    free(data->tick->colour);
    free(data->cursor.colour);
    free(data->ruler->tick.t.colour);
    free(data->ruler->colour);

    xfree(result->data);
    /* xfree(result->input); */
    xfree(result->output);
    xfree(result);
}
开发者ID:nathanhaigh,项目名称:staden-trunk,代码行数:39,代码来源:graphic_editor.c


示例7: GetEditor

void EntityEx::Create( const String& entityName, const String& meshName, const String& mtlName )
{
	mpSceneMgr = GetEditor()->GetSceneManager();
	// create main model
	msEntityName = entityName;
	mpSceneNode = mpSceneMgr->getRootSceneNode()->createChildSceneNode();
	mpEntity = mpSceneMgr->createEntity( msEntityName, meshName );
	mpEntity->setUserAny( Ogre::Any(this) );
	mbVisible = false;

	mpTipNode = static_cast<SceneNode*>(mpSceneNode->createChild());
	msBillboardName = entityName + "bbinfo";
	mpTipBoard = mpSceneMgr->createBillboardSet(msBillboardName);
	Billboard* pTip = mpTipBoard->createBillboard(Vector3(0, 50, 0));
	pTip->setDimensions( 20.0f, 20.0f );

	if ( mtlName != "NULL" )
	{
		mpEntity->setMaterialName(mtlName);
		mpTipBoard->setMaterialName(mtlName);
	}
}
开发者ID:sdfwds4,项目名称:ogre3d-game-editor,代码行数:22,代码来源:EntityEx.cpp


示例8: GetEditor

void PreciseMoveCmd::Execute () {
    float dx = 0.0, dy = 0.0;
    Editor* ed = GetEditor();

    if (_dialog == nil) {
	_dialog = new MoveDialog();
    }

    ed->InsertDialog(_dialog);
    boolean accepted = _dialog->Accept();
    ed->RemoveDialog(_dialog);

    if (accepted) {
	_dialog->GetValues(dx, dy);

	if (dx != 0.0 || dy != 0.0) {
	    MoveCmd* moveCmd = new MoveCmd(ed, dx, dy);
	    moveCmd->Execute();
	    moveCmd->Log();
	}
    }
}
开发者ID:LambdaCalculus379,项目名称:SLS-1.02,代码行数:22,代码来源:idcmds.c


示例9: GetEditor

void CommandDrawHeightmap::Execute()
{
	LandscapeEditorHeightmap* editor = GetEditor();
	if (editor == NULL)
	{
		SetState(STATE_INVALID);
		return;
	}

	Heightmap* heightmap;
	editor->GetHeightmap(&heightmap);

	if (redoFilename == "")
	{
		redoFilename = SaveHeightmap(heightmap, "_" + GetRandomString(10));
	}
	else
	{
		
		heightmap->Load(redoFilename);
		editor->UpdateHeightmap(heightmap);
	}
}
开发者ID:dima-belsky,项目名称:dava.framework,代码行数:23,代码来源:HeightmapEditorCommands.cpp


示例10: GetEditor

void wxSTEditorFrame::OnNotebookPageChanged(wxNotebookEvent &WXUNUSED(event))
{
    wxSTEditor *editor = GetEditor();
    wxString title;
    wxSTEditorMenuManager *steMM = GetOptions().GetMenuManager();

    if (editor)
    {
        title = MakeTitle(editor);

        if ( steMM && !steMM->HasEnabledEditorItems())
            steMM->EnableEditorItems(true, NULL, GetMenuBar(), GetToolBar());
    }
    else
    {
        title = m_titleBase;

        if (steMM && steMM->HasEnabledEditorItems())
            steMM->EnableEditorItems(false, NULL, GetMenuBar(), GetToolBar());
    }

    SetTitle(title);
}
开发者ID:burzumishi,项目名称:caprice32wx,代码行数:23,代码来源:steframe.cpp


示例11: GetEditor

// ------------------------------------------------------------
void SpellCheck::OnCheck(wxCommandEvent& e)
{
    IEditor* editor = GetEditor();

    if(!editor) return;
    wxString text = editor->GetEditorText();
    text += wxT(" "); // prevents indicator flickering at end of file

    if(m_pEngine != NULL) {
        if(GetCheckContinuous()) // switch continuous search off if running
            SetCheckContinuous(false);

        // if we don't have a dictionary yet, open settings
        if(!m_pEngine->GetDictionary()) {
            OnSettings(e);
            return;
        }

        switch(editor->GetLexerId()) {
        case 3: { // wxSCI_LEX_CPP
            if(m_mgr->IsWorkspaceOpen()) {
                m_pEngine->CheckCppSpelling(text);

                if(!m_checkContinuous) {
                    editor->ClearUserIndicators();
                }
            }
        } break;
        case 1: { // wxSCI_LEX_NULL
            m_pEngine->CheckSpelling(text);
            if(!m_checkContinuous) {
                editor->ClearUserIndicators();
            }
        } break;
        }
    }
}
开发者ID:nanolion,项目名称:codelite,代码行数:38,代码来源:spellcheck.cpp


示例12: GetClipboard

void GroupCmd::Execute () {
    Clipboard* cb = GetClipboard();

    if (cb == nil) {
        SetClipboard(cb = new Clipboard);
        Editor* ed = GetEditor();
        Selection* s = ed->GetSelection();

        if (s->Number() > 1) {
            Iterator i;
            GraphicView* views = ed->GetViewer()->GetGraphicView();
            s->Sort(views);

            for (s->First(i); !s->Done(i); s->Next(i)) {
                s->GetView(i)->Interpret(this);
            }
        }

    } else {
        Clipboard* oldcb = cb;
        SetClipboard(cb = new Clipboard);

        Iterator i;
        for (oldcb->First(i); !oldcb->Done(i); oldcb->Next(i)) {
            oldcb->GetComp(i)->Interpret(this);
        }
        delete oldcb;
    }

    if (!cb->IsEmpty()) {
        if (_group == nil) {
            SetGroup(new GraphicComps);
        }
        _group->Interpret(this);
        _executed = true;
    }
}
开发者ID:neurodebian,项目名称:iv-hines,代码行数:37,代码来源:struct.cpp


示例13: switch

void CNpcTestTool::OnMouseMove(UINT nFlags, CPoint point)
{
	switch (mState)
	{
	case E_NPC_BORN:
		{
			Ogre::TerrainGroup::RayResult rayResult = GetEditor()->TerrainHitTest( point );
			if (rayResult.hit)
			{
				mpNpc->setPosition(rayResult.position);
			}
		}
		break;
	case E_NPC_IDLE:
		{
			//Ogre::TerrainGroup::RayResult rayResult = GetEditor()->TerrainHitTest( point );
			//if (rayResult.hit)
			//{
			//	mpNpc->setGoalDirection(rayResult.position);
			//}
		}
		break;
	}
}
开发者ID:sdfwds4,项目名称:ogre3d-game-editor,代码行数:24,代码来源:NpcTestTool.cpp


示例14: GetEditor

void CRenderDialog::OnRButtonUp(UINT nFlags, CPoint point)
{
	GetEditor()->OnRButtonUp(nFlags,point);

	CDialog::OnRButtonUp(nFlags, point);
}
开发者ID:sdfwds4,项目名称:ogre3d-game-editor,代码行数:6,代码来源:RenderDialog.cpp


示例15: GetEditor

HTMLTextAreaElement::GetTextEditor()
{
  return GetEditor();
}
开发者ID:JuannyWang,项目名称:gecko-dev,代码行数:4,代码来源:HTMLTextAreaElement.cpp


示例16: MoveFrameCmd

MenuItem* FrameKit::MakeFrameMenu() {
    LayoutKit& lk = *LayoutKit::instance();
    WidgetKit& kit = *WidgetKit::instance();
    
    MenuItem *mbi = kit.menubar_item(kit.label("Frame"));
    mbi->menu(kit.pulldown());

    MoveFrameCmd::default_instance
      (new MoveFrameCmd(new ControlInfo("Move Forward","^F",""), +1));
    MakeMenu(mbi, MoveFrameCmd::default_instance(),
	     "Move Forward   ");

    MakeMenu(mbi, new MoveFrameCmd(new ControlInfo("Move Backward","^B",""), -1),
	     "Move Backward   ");
    MakeMenu(mbi, new FrameBeginCmd(new ControlInfo("Goto First Frame")),
	     "Goto First Frame");
    MakeMenu(mbi, new FrameEndCmd(new ControlInfo("Goto Last Frame")),
	     "Goto Last Frame ");
    mbi->menu()->append_item(kit.menu_item_separator());
    MakeMenu(mbi, new CreateMoveFrameCmd(new ControlInfo("New Forward","F","F")),
	     "New Forward    ");
    MakeMenu(mbi, new CreateMoveFrameCmd(new ControlInfo("New Backward","B","B"), false),
	     "New Backward   ");
    MakeMenu(mbi, new CopyMoveFrameCmd(new ControlInfo("Copy Forward","X","X")),
	     "Copy Forward   ");
    MakeMenu(mbi, new CopyMoveFrameCmd(new ControlInfo("Copy Backward","Y","Y"), false),
	     "Copy Backward  ");
    MakeMenu(mbi, new DeleteFrameCmd(new ControlInfo("Delete","D","D")),
	     "Delete  ");
    mbi->menu()->append_item(kit.menu_item_separator());
    MakeMenu(mbi, new ShowOtherFrameCmd(new ControlInfo("Show Prev Frame","",""), -1),
	     "Show Prev Frame");
    MakeMenu(mbi, new ShowOtherFrameCmd(new ControlInfo("Hide Prev Frame","",""), 0),
	     "Hide Prev Frame");

    MenuItem* menu_item;
    menu_item = kit.menu_item(kit.label("Enable Looping"));
    menu_item->action
      (new ActionCallback(MoveFrameCmd)
       (MoveFrameCmd::default_instance(), &MoveFrameCmd::set_wraparound));
    mbi->menu()->append_item(menu_item);

    menu_item = kit.menu_item(kit.label("Disable Looping"));
    menu_item->action
      (new ActionCallback(MoveFrameCmd)
       (MoveFrameCmd::default_instance(), &MoveFrameCmd::clr_wraparound));
    mbi->menu()->append_item(menu_item);

#if 0
    MakeMenu(mbi, new AutoNewFrameCmd(new ControlInfo("Toggle Auto New Frame",
						      "","")),
	     "Toggle Auto New Frame");
#else
    menu_item = kit.check_menu_item(kit.label("Auto New Frame"));
    menu_item->state()->set(TelltaleState::is_chosen, ((FrameEditor*)GetEditor())->AutoNewFrame());
    ((FrameEditor*)GetEditor())->_autonewframe_tts = menu_item->state();
    AutoNewFrameCmd::default_instance(new AutoNewFrameCmd(GetEditor()));
    menu_item->action
      (new ActionCallback(AutoNewFrameCmd)
       (AutoNewFrameCmd::default_instance(), &AutoNewFrameCmd::Execute));
    mbi->menu()->append_item(menu_item);
#endif
    return mbi;
}
开发者ID:barak,项目名称:ivtools-cvs,代码行数:64,代码来源:framekit.c


示例17: ed_renz_reg


//.........这里部分代码省略.........
    result->seq_id[HORIZONTAL] = seq_id;
    result->seq_id[VERTICAL] = -1;
 
    id = get_editor_reg_id();
    result->id = id; 
    result->output = (void *)output;
    result->pr_func = ed_nip_renz_print_func;
    result->op_func = ed_renz_callback;
    result->txt_func = ed_nip_renz_text_func;

    /* data structure */
    strcpy(data->re_win, re_win);
    strcpy(data->frame, frame);
    strcpy(data->names_win, names_win);
    
    data->tick = tick;
    data->ruler = ruler;
    data->cursor = cursor; /* cursor_s */
    data->sequence_len = GetEdenLength (seq_num);
    data->sequence_type = seq_type;
   
    /* create list of windows in the restriction enzyme display */
    if (NULL == (data->win_list = (win **)xmalloc(MAX_NUM_WINS * sizeof(win*))))
	return -1;

    data->num_wins = 0;
    addWindow(data->win_list, &data->num_wins, data->re_win, 'b', id);
    addWindow(data->win_list, &data->num_wins, data->ruler->window, 'x', id);
    addWindow(data->win_list, &data->num_wins, data->names_win, 'y', id);
   
    if (NULL == (data->canvas = (CanvasPtr *)xmalloc(sizeof(CanvasPtr))))
	return -1;

    if (NULL == (data->world= (WorldPtr *)xmalloc(sizeof(WorldPtr))))
	return -1;

    if (NULL == (data->world->visible = (d_box *)xmalloc(sizeof(d_box))))
	return -1;

    if (NULL == (data->world->total = (d_box *)xmalloc(sizeof(d_box))))
	return -1;

    initCanvas(interp, data->canvas, data->re_win);
    createZoom(&data->zoom);

    /* create selecing Renzyme name array */
    if (Tcl_SplitList(interp, inlist, &num_sel, &sel) != TCL_OK)
      return -1;
    
    r_enzyme = get_selected_renzyme ( num_sel, sel);   
    data->r_enzyme = r_enzyme;
    data->num_enzymes = num_sel; /* num_items = num_sel ? */;    
    data->tick = tick;
    data->yoffset = yoffset;
    data->text_offset = text_offset;   
    data->text_colour = strdup(text_fill);
    /*data->seq_id = seq_num;*/
    data->seq_id = seq_id;
    data->match = NULL;
    data->num_match = 0;
    selection = init_selection ();
    data->sel = selection;
   
    line_width = get_default_int(interp, nip_defs, w("NIP.CURSOR.LINE_WIDTH"));
   
    /* private=0: share cursor for every plot */
    output->cursor = editor_create_cursor(seq_num, 0, NULL, line_width, 1, HORIZONTAL);
    output->cursor_visible = 0;
    
    ed_id = GetEdIdFromSeqId (seq_id);
    member_id = GetMemberIdFromSeqId (seq_id);
    group_id = GetGroupIdFromSeqId (seq_id);
    er = GetEditor (ed_id);
    er->graphical = 1;
    output->cursor->frame_name = NULL;
   
    output->cursor->posy = member_id;
    set_editor_cursor (ed_id, output->cursor);

    /* move cursor to start position if this is our own cursor */
    if (output->cursor->refs == 1) {
	output->cursor->abspos = start;
	output->cursor->posy = 1;
    }
    
    editor_register(seq_num, ed_renz_callback, (void *)result, SEQ_PLOT_TEMP, id);

    ed_renz_replot (interp, output, result, data);
    /* if above returns -1, may want to
     * to editor_renz_shutdown(interp, result, seq_num); ?
     */
    
    cn.job = SEQ_CURSOR_NOTIFY;
    cn.cursor = output->cursor;
    cn.cursor->job = CURSOR_MOVE;
    cn.selection = selection;
    editor_notify(seq_num, (editor_reg_data *)&cn);
    
    return id;
}
开发者ID:nathanhaigh,项目名称:staden-trunk,代码行数:101,代码来源:graphic_editor.c


示例18: GetEditor

boolean GraphExportCmd::Export (const char* pathname) {
    Editor* editor = GetEditor();
    Selection* s = editor->GetSelection();
    GraphIdrawComp* real_top = (GraphIdrawComp*)editor->GetComponent();
    boolean ok = false;
    char* old_format = NULL;
    
    boolean empty = s->IsEmpty();

    GraphIdrawComp* false_top = new GraphIdrawComp();
    Iterator i;
    empty ? real_top->First(i) : s->First(i);
    while (empty ? !real_top->Done(i) : !s->Done(i)) {
      if (chooser_->idraw_format() || chooser_->postscript_format()) {
	OverlayComp* oc = empty 
	  ? new OverlayComp(real_top->GetComp(i)->GetGraphic()->Copy())
	  : new OverlayComp(s->GetView(i)->GetGraphicComp()->GetGraphic()->Copy());
	false_top->Append(oc);
      } else {
	OverlayComp* oc = empty 
	  ? (OverlayComp*)real_top->GetComp(i)->Copy()
	  : (OverlayComp*)s->GetView(i)->GetGraphicComp()->Copy();
	false_top->Append(oc);
      }
      empty ? real_top->Next(i) : s->Next(i);
    }
     
    OverlayPS* ovpsv;
    if (chooser_->idraw_format() || chooser_->postscript_format())
      ovpsv = (OverlayPS*) false_top->Create(POSTSCRIPT_VIEW);
    else {
      ovpsv = (OverlayPS*) false_top->Create(SCRIPT_VIEW);
      if(strcmp(chooser_->format(), "dot")==0) {
        old_format = OverlayScript::format() ? strnew(OverlayScript::format()) : NULL;
        OverlayScript::format("dot");
      }
    }
    if (ovpsv != nil) {
      
      filebuf fbuf;
      char* tmpfilename;
      
      if (chooser_->to_printer()) {
	tmpfilename = tmpnam(nil);
	false_top->SetPathName(tmpfilename);
	ok = fbuf.open(tmpfilename, output) != 0;
      } else {
	ok = fbuf.open(pathname, output) != 0;
      }
      
      if (ok) {
	ostream out(&fbuf);
	false_top->Attach(ovpsv);
	ovpsv->SetCommand(this);
	if (!chooser_->idraw_format() && !chooser_->postscript_format())
	  ((GraphIdrawScript*)ovpsv)->SetByPathnameFlag(chooser_->by_pathname_flag());
	ovpsv->Update();
	ok = ovpsv->Emit(out);
	fbuf.close();
	
	if (chooser_->to_printer()) {
	  char cmd[CHARBUFSIZE];
	  if (strstr(pathname, "%s")) {
	    char buf[CHARBUFSIZE];
	    sprintf(buf, pathname, tmpfilename);    
	    sprintf(cmd, "(%s;rm %s)&", buf, tmpfilename);
	  } else
	    sprintf(cmd, "(%s %s;rm %s)&", pathname, tmpfilename, tmpfilename);
	  ok = system(cmd) == 0;
	}
      } 
      delete ovpsv;        
    }
    
    delete false_top;
    if (old_format) {
      OverlayScript::format(old_format);
      delete old_format;
    }
    return ok;
}
开发者ID:jmzaleski,项目名称:ivtools-1.2,代码行数:81,代码来源:graphexport.c


示例19: GetEditor

bool
TextComposition::HasEditor() const
{
  nsCOMPtr<nsIEditor> editor = GetEditor();
  return !!editor;
}
开发者ID:L2-D2,项目名称:gecko-dev,代码行数:6,代码来源:TextComposition.cpp


示例20: GetEditor

void CommandDrawCustomColors::Cancel()
{
	LandscapeEditorCustomColors* editor = GetEditor();
	if (editor && undoImage)
		editor->RestoreState(undoImage);
}
开发者ID:droidenko,项目名称:dava.framework,代码行数:6,代码来源:CustomColorCommands.cpp



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ GetEditorMode函数代码示例发布时间:2022-05-30
下一篇:
C++ GetEditable函数代码示例发布时间:2022-05-30
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap