码迷,mamicode.com
首页 > 其他好文 > 详细

Remark

时间:2014-08-05 18:41:59      阅读:346      评论:0      收藏:0      [点我收藏+]

标签:blog   io   for   2014   art   ar   cti   div   

// create by kim 20140805
public void Remark_insertChangeHeader(Editor e)
{
    userinfo        userInfo;
    ;
    e.unmark();
    e.gotoLine(1);
    e.gotoCol(1);
    select name from userInfo where userInfo.id == curUserId();
    e.insertLines(‘// ‘+ strUpr(enum2Value(currentAOLayer())) +‘ Changed on ‘ + date2str(today(),123,2,1,3,1,4, DateFlags::FormatAll ) + ‘ at ‘ + time2str(timenow(), 1, 1) + ‘ by ‘ + curuserid() + ‘ ‘ + userInfo.name + ‘\n‘);

}

  

// create by kim 20140805
void Remark_BeginOrigAndEnd(Editor e)
{
    userinfo        userInfo;
    int startLine = e.selectionStartLine();
    int endLine   = e.selectionEndLine();
    ;

    select name from userInfo where userInfo.id == curUserId();

    e.gotoCol(1);
    e.unmark();
    e.gotoLine(startline);
    e.insertLines(‘\t// ‘+strUpr(enum2str(currentAOLayer()))+ ‘ on ‘ + date2str(today(),321,2,3,2,3,4 ) + ‘ at ‘ + time2str(timeNow(), 1, 1) + ‘ Changed by ‘ +curUserId()+ ‘ ‘ + userInfo.name + ‘ -Begin\n‘);
    e.insertLines(‘\t/*‘ +‘ Original\n‘);
    e.gotoLine(endline+3);
    e.insertLines(‘\t*/‘ + ‘\n‘);
    e.insertLines(‘\t// ‘+strUpr(enum2str(currentAOLayer()))+‘ on ‘ + date2str(today(),321,2,3,2,3,4 ) + ‘ at ‘ + time2str(timeNow(), 1, 1) +  ‘ Changed by ‘ +curUserId()+ ‘ ‘ + userInfo.name + ‘ -End\n‘);

}

  

// create by kim 20140805
public void Remark_insertCreateHeader(Editor e)
{
    userinfo        userInfo;
    ;
    e.unmark();
    e.gotoLine(1);
    e.gotoCol(1);
    select name from userInfo where userInfo.id == curUserId();

    e.insertLines(‘// ‘+ strUpr(enum2Value(currentAOLayer())) +‘ Created on ‘ + date2str(today(),123,2,1,3,1,4, DateFlags::FormatAll ) + ‘ at ‘ + time2str(timenow(), 1, 1) + ‘ by ‘ + curuserid() + ‘ ‘ + userInfo.name + ‘\n‘);
}

  

// create by kim 20140805
void Remark_BeginAndEnd(Editor e)
{
    userinfo        userInfo;
    int startLine = e.selectionStartLine();
    int endLine   = e.selectionEndLine();
    ;

    select name from userInfo where userInfo.id == curUserId();

    e.gotoCol(1);
    e.unmark();
    e.gotoLine(startline);
    e.insertLines(‘\t// ‘+strUpr(enum2str(currentAOLayer()))+ ‘ on ‘ + date2str(today(),321,2,3,2,3,4 ) + ‘ at ‘ + time2str(timeNow(), 1, 1) + ‘ Changed by ‘ +curUserId()+ ‘ ‘ + userInfo.name + ‘ -Begin\n‘);
    e.gotoLine(endline+2);
    e.insertLines(‘\t// ‘+strUpr(enum2str(currentAOLayer()))+‘ on ‘ + date2str(today(),321,2,3,2,3,4 ) + ‘ at ‘ + time2str(timeNow(), 1, 1) +  ‘ Changed by ‘ +curUserId()+ ‘ ‘ + userInfo.name + ‘ -End\n‘);

}

  

Remark,布布扣,bubuko.com

Remark

标签:blog   io   for   2014   art   ar   cti   div   

原文地址:http://www.cnblogs.com/dingkui/p/3892546.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!