43b37fd32e7fc42a3e265692276018ac8676e5b5
[tpg/acess2.git] / Usermode / Applications / axwin2_src / Shell_src / main.c
1 /*
2  * Acess2 GUI Test App
3  * - By John Hodge (thePowersGang)
4  */
5 #include <axwin2/axwin.h>
6
7 // === CONSTANTS ===
8 enum eTerminal_Events
9 {
10         EVENT_NULL,
11         EVENT_NEW_TAB,
12         EVENT_CLOSE_TAB,
13         EVENT_EXIT
14 };
15
16 // === PROTOTYPES ===
17  int    main(int argc, char *argv[]);
18  int    Global_HandleMessage(tAxWin_Message *Message);
19  int    Shell_HandleMessage(tAxWin_Message *Message);
20
21 // === GLOBALS ===
22 tAxWin_Element  *geConsole;
23
24 // === CODE ===
25 int main(int argc, char *argv[])
26 {
27         tAxWin_Element  *menu, *tab;
28         AxWin_Register("Terminal", Global_HandleMessage);
29
30         menu = AxWin_AddMenuItem(NULL, "File", 0);
31         AxWin_AddMenuItem(menu, "&New Tab\tCtrl-Shift-N", EVENT_NEW_TAB);
32         AxWin_AddMenuItem(menu, NULL, 0);
33         AxWin_AddMenuItem(menu, "&Close Tab\tCtrl-Shift-W", EVENT_CLOSE_TAB);
34         AxWin_AddMenuItem(menu, "E&xit\tAlt-F4", EVENT_EXIT);
35
36         tab = AxWin_CreateTab("root@acess: ~");
37         //geConsole = AxWin_CreateElement();
38         
39         AxWin_MessageLoop();
40         
41         return 0;
42 }
43
44 /**
45  */
46 int Global_HandleMessage(tAxWin_Message *Message)
47 {
48         return 0;
49 }
50
51 int Shell_HandleMessage(tAxWin_Message *Message)
52 {
53         return 0;
54 }

UCC git Repository :: git.ucc.asn.au