#pragma implementation #include #include #include #include #include #include #include #include "tledit.h" #include "tledit.m" #define TLKID_VERSION "1.0" int main (int argc, char *argv[]) { int ret = (argc, argv,"tlmpwork"); xconf_error(msg); char buf[1000]; snprintf (buf,sizeof(buf)-1,MSG_U(N_USAGE,"tlkid version %s\n\nUsage: tlkid fichier") ,TLEDIT_VERSION); xconf_notice (buf); int argc; char **argv; PRIVATE_MESSAGE msg; glocal.argc = argc; glocal.argv = argv; if (argc != 1){ usage(); }else{ (MSG_U(T_TLKID,"TLKID 1.0"),glocal.msg); xconf_notice (MSG_U(I_ABOUT ,"tlkid version %s\n" "Experimental TLMP programming game\n" "Written by Jacques Gélinas\n" "jack@solucorp.qc.ca") ,TLKID_VERSION); topmenu (MSG_U(M_FILE,"File")); menuentry (2,MSG_U(M_SAVE,"Save")); menuentry (2,MSG_U(M_SAVEAS,"Save as")); menuentry (99,MSG_U(M_QUIT,"Quit")); endmenu(); topmenu (MSG_U(M_OPTIONS,"Options")); menuentry (901,MSG_U(M_PREFER,"Preferences")); endmenu(); helpmenu(); endmenu(); if (id == 99){ end(); } DIALOG dia; SSTRING tmp; glocal.mainnode->gettext (tmp); dia.newf_textarea (NULL,tmp,60,20); int nof = 0; while (1){ dia.edit (MSG_U(T_SOURCEFILE,"Full text"),"",help_nil,nof,0); } frame.newdocument(); frame.loop(); } return 0; return ret; }