Moved the File selection dialog
[grace.git] / src / gui.h
blobd83d0250ae467e440a3d6b5f651bc7b7a662d5ce
1 /*
2 * Grace - GRaphing, Advanced Computation and Exploration of data
4 * Home page: http://plasma-gate.weizmann.ac.il/Grace/
6 * Copyright (c) 2012 Grace Development Team
8 * Maintained by Evgeny Stambulchik
11 * All Rights Reserved
13 * This program is free software; you can redistribute it and/or modify
14 * it under the terms of the GNU General Public License as published by
15 * the Free Software Foundation; either version 2 of the License, or
16 * (at your option) any later version.
18 * This program is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU General Public License for more details.
23 * You should have received a copy of the GNU General Public License
24 * along with this program; if not, write to the Free Software
25 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
28 /* GUI independent functions */
30 #ifndef __GUI_H_
31 #define __GUI_H_
33 #include "widgets.h"
35 /* Text */
36 TextStructure *CreateText(Widget parent, char *s);
37 TextStructure *CreateText2(Widget parent, char *s, int len);
38 TextStructure *CreateScrolledText(Widget parent, char *s, int nrows);
39 TextStructure *CreateCSText(Widget parent, char *s);
40 TextStructure *CreateScrolledCSText(Widget parent, char *s, int nrows);
41 int xv_evalexpr(TextStructure *cst, double *);
42 int xv_evalexpri(TextStructure *cst, int *);
44 typedef void (*Text_CBProc)(
45 TextStructure *cst,
46 char *, /* text string */
47 void * /* data the application registered */
49 void AddTextActivateCB(TextStructure *cst, Text_CBProc cbproc, void *data);
51 /* Button */
52 void AddButtonCB(Widget w, Button_CBProc cbproc, void *data);
54 /* ToggleButton */
55 void AddToggleButtonCB(Widget w, TB_CBProc cbproc, void *anydata);
57 #endif /* __GUI_H_ */