The R Project SVN R

Rev

Rev 59039 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
37596 murdoch 1
/*
2
 *  R : A Computer Language for Statistical Data Analysis
3
 *  file preferences.h
4
 *  Copyright (C) 2000  Guido Masarotto and Brian Ripley
59039 ripley 5
 *                2004-7  R Core Team
37596 murdoch 6
 *
7
 *  This program is free software; you can redistribute it and/or modify
8
 *  it under the terms of the GNU General Public License as published by
9
 *  the Free Software Foundation; either version 2 of the License, or
10
 *  (at your option) any later version.
11
 *
12
 *  This program is distributed in the hope that it will be useful,
13
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
14
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15
 *  GNU General Public License for more details.
16
 *
17
 *  You should have received a copy of the GNU General Public License
42300 ripley 18
 *  along with this program; if not, a copy is available at
68956 ripley 19
 *  https://www.R-project.org/Licenses/
37596 murdoch 20
 */
21
 
46784 murdoch 22
#include "guicolors.h"
23
 
37596 murdoch 24
/*                configuration editor                        */
25
 
26
/* current state */
27
 
28
struct structGUI
29
{
30
    int MDI;
31
    int toolbar;
32
    int statusbar;
33
    int pagerMultiple;
34
    char font[50];
35
    int tt_font;
36
    int pointsize;
37
    char style[20];
38
    int crows, ccols, cx, cy, setWidthOnResize, prows, pcols,
39
	cbb, cbl, grx, gry;
51948 murdoch 40
    int cursor_blink; /* 0=none, 1=partial, 2=full */
46784 murdoch 41
    rgb guiColors[numGuiColors];
37596 murdoch 42
    rect MDIsize;
37744 ripley 43
    char language[20];
37860 ripley 44
    int buffered;
52072 murdoch 45
    char warning[256];  /* When loading the Rconsole, the warning system isn't set
46
                           up, so save one warning here. */
37596 murdoch 47
};
48
typedef struct structGUI *Gui;
49
 
41808 ripley 50
int loadRconsole(Gui gui, const char *optf);
43958 murdoch 51
void getDefaults(Gui gui);
37626 murdoch 52
void getActive(Gui gui);
53
void applyGUI(Gui newGUI);