1 /*
2  *  gretl -- Gnu Regression, Econometrics and Time-series Library
3  *  Copyright (C) 2001 Allin Cottrell and Riccardo "Jack" Lucchetti
4  *
5  *  This program is free software: you can redistribute it and/or modify
6  *  it under the terms of the GNU General Public License as published by
7  *  the Free Software Foundation, either version 3 of the License, or
8  *  (at your option) any later version.
9  *
10  *  This program is distributed in the hope that it will be useful,
11  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  *  GNU General Public License for more details.
14  *
15  *  You should have received a copy of the GNU General Public License
16  *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
17  *
18  */
19 
20 enum tx_objects {
21     TX_SA,    /* save seasonally adjusted series */
22     TX_TR,    /* save trend/cycle */
23     TX_IR,    /* save irregular component */
24     TX_LN,    /* save linearized series */
25     TRIGRAPH, /* graph showing some/all of the above */
26     TEXTOUT,  /* for full text output */
27     TX_MAXOPT
28 };
29 
30 typedef struct _common_opt_info common_opt_info;
31 typedef struct _x12a_opts x12a_opts;
32 typedef struct _tx_request tx_request;
33 
34 struct _common_opt_info {
35     GtkWidget *check;
36     char save;
37     unsigned short v;
38     char savename[VNAMELEN];
39 };
40 
41 struct _x12a_opts {
42     int logtrans;
43     int outliers;
44     int trdays;
45 };
46 
47 struct _tx_request {
48     int prog;          /* tramo vs x12arima */
49     GtkWidget *dialog;
50     void (*helpfunc);
51     common_opt_info opts[TX_MAXOPT];
52     char yname[VNAMELEN];
53     void *gui;
54     gretlopt *popt;
55     int savevars;
56     int pd;
57     int seasonal_ok;
58     x12a_opts xopt;
59 };
60 
61 int add_tramo_options (tx_request *request, GtkWidget *vbox);
62 
63 int print_tramo_options (tx_request *request, FILE *fp);
64 
65 const char *get_tramo_save_string (int i);
66 
67 void sensitize_tx_entry (GtkToggleButton *b, GtkWidget *w);
68 
69 void update_tx_savename (GtkEntry *entry, char *name);
70