-
Notifications
You must be signed in to change notification settings - Fork 0
/
cadtools.h
70 lines (58 loc) · 1.45 KB
/
cadtools.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#ifndef _CADTOOLS_H_
#define _CADTOOLS_H_
#include <agar/sg.h>
#include <agar/sg/sg_view.h>
#include <agar/sk.h>
#include <agar/sk/sk_view.h>
#include <agar/core/types.h>
#ifdef _CADTOOLS_INTERNAL
#include <cadtools/config/enable_nls.h>
#ifdef ENABLE_NLS
# include <libintl.h>
# define _(String) dgettext("cadtools",String)
# ifdef dgettext_noop
# define N_(String) dgettext_noop("cadtools",String)
# else
# define N_(String) (String)
# endif
#else
# undef _
# undef N_
# undef ngettext
# define _(s) (s)
# define N_(s) (s)
# define ngettext(Singular,Plural,Number) ((Number==1)?(Singular):(Plural))
#endif
#ifdef WIN32
# define PATHSEPC '\\'
# define PATHSEP "\\"
#else
# define PATHSEPC '/'
# define PATHSEP "/"
#endif
#endif /* _CADTOOLS_INTERNAL */
#include "program.h"
#include "fixture.h"
#include "machine.h"
#include "lathe.h"
#include "mill.h"
#include "part.h"
#include "feature.h"
#include "begin_code.h"
__BEGIN_DECLS
struct ag_menu;
extern struct ag_menu *appMenu;
extern AG_Object vfsRoot;
AG_Window *CAD_OpenObject(void *);
void CAD_GUI_NewObject(AG_Event *);
void CAD_GUI_OpenObject(AG_Event *);
void CAD_GUI_OpenDlg(AG_Event *);
void CAD_GUI_Save(AG_Event *);
void CAD_GUI_SaveAsDlg(AG_Event *);
void CAD_GUI_Quit(AG_Event *);
void CAD_InitMenuMDI(void);
void CAD_FileMenu(AG_MenuItem *, void *);
void CAD_EditMenu(AG_MenuItem *, void *);
__END_DECLS
#include "close_code.h"
#endif /* _CADTOOLS_H_ */