The R Project SVN R

Rev

Rev 59039 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
43760 ripley 1
/*
2
 *  R : A Computer Language for Statistical Data Analysis
3
 *  file editor.h
59039 ripley 4
 *  Copyright (C) 1999-2008  The R Core Team
43760 ripley 5
 *
6
 *  This program is free software; you can redistribute it and/or modify
7
 *  it under the terms of the GNU General Public License as published by
8
 *  the Free Software Foundation; either version 2 of the License, or
9
 *  (at your option) any later version.
10
 *
11
 *  This program is distributed in the hope that it will be useful,
12
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 *  GNU General Public License for more details.
15
 *
16
 *  You should have received a copy of the GNU General Public License
17
 *  along with this program; if not, a copy is available at
68956 ripley 18
 *  https://www.R-project.org/Licenses/
43760 ripley 19
 */
28992 murdoch 20
 
21
void menueditornew(control m);
22
void menueditoropen(control m);
23
int editorchecksave(editor c);
24
void editorsetfont(font f);
44016 ripley 25
int Rgui_Edit(const char *filename, int enc, const char *title, int modal);
28992 murdoch 26
 
27
#define EDITORMAXTITLE 128
28
#define MAXNEDITORS 50
29
 
30
struct structEditorData {
31
    Rboolean file; /* is the editor associated with an existing file */
46842 ripley 32
    char *filename; /* corresponding file, in UTF-8 as from 2.9.0 */
29051 murdoch 33
    char *title;    /* window title */
28992 murdoch 34
    Rboolean stealconsole;  /* set when using fix() or edit(), so that no events are sent to console until this editor is closed */
35
    menuitem mcut, mcopy, mdelete, mfind, mreplace,
36
	mpopcut, mpopcopy, mpopdelete;
36258 murdoch 37
    HelpMenuItems hmenu;
38
    PkgMenuItems pmenu;
28992 murdoch 39
};
40
typedef struct structEditorData *EditorData;