version 1.76, 2006/09/28 07:50:59
|
version 1.77, 2006/09/29 07:34:27
|
Line 220 ThotBool UseMenuClicked (NotifyElement *
|
Line 220 ThotBool UseMenuClicked (NotifyElement *
|
int nbitems, size; |
int nbitems, size; |
struct menuType *items; |
struct menuType *items; |
char *types, *menuString; |
char *types, *menuString; |
|
View view; |
|
|
|
TtaGetActiveView (&doc, &view); |
|
if (view != 1) |
|
return FALSE; /* let Thot perform normal operation */ |
|
|
doc = event->document; |
doc = event->document; |
el = event->element; |
el = event->element; |
elType = TtaGetElementType (el); |
elType = TtaGetElementType (el); |
t = (XTigerTemplate) Get (Templates_Dic, DocumentMeta[doc]->template_url); |
t = (XTigerTemplate) Get (Templates_Dic, DocumentMeta[doc]->template_url); |
if (!t) |
if (!t) |
return FALSE; // no template ?!?! |
return FALSE; /* let Thot perform normal operation */ |
|
|
// give the list of possible items |
// give the list of possible items |
attributeType.AttrSSchema = elType.ElSSchema; |
attributeType.AttrSSchema = elType.ElSSchema; |
Line 324 ThotBool UseMenuClicked (NotifyElement *
|
Line 329 ThotBool UseMenuClicked (NotifyElement *
|
} |
} |
} |
} |
} |
} |
return FALSE; |
return TRUE; |
#endif /* TEMPLATES */ |
#endif /* TEMPLATES */ |
return TRUE; |
return TRUE; |
} |
} |
Line 339 ThotBool OptionMenuClicked (NotifyElemen
|
Line 344 ThotBool OptionMenuClicked (NotifyElemen
|
ElementType elType, elType1; |
ElementType elType, elType1; |
Document doc; |
Document doc; |
XTigerTemplate t; |
XTigerTemplate t; |
|
View view; |
|
|
|
TtaGetActiveView (&doc, &view); |
|
if (view != 1) |
|
return FALSE; /* let Thot perform normal operation */ |
doc = event->document; |
doc = event->document; |
child = TtaGetFirstChild (event->element); |
child = TtaGetFirstChild (event->element); |
if (!child) |
if (!child) |
return FALSE; |
return FALSE; /* let Thot perform normal operation */ |
elType = TtaGetElementType (child); |
elType = TtaGetElementType (child); |
elType1 = TtaGetElementType (event->element); |
elType1 = TtaGetElementType (event->element); |
if ((elType.ElTypeNum != Template_EL_useEl && |
if ((elType.ElTypeNum != Template_EL_useEl && |
Line 371 ThotBool OptionMenuClicked (NotifyElemen
|
Line 380 ThotBool OptionMenuClicked (NotifyElemen
|
} |
} |
while (next); |
while (next); |
} |
} |
return FALSE; |
return TRUE; /* don't let Thot perform normal operation */ |
#endif /* TEMPLATES */ |
#endif /* TEMPLATES */ |
return TRUE; |
return TRUE; |
} |
} |
Line 390 ThotBool RepeatMenuClicked (NotifyElemen
|
Line 399 ThotBool RepeatMenuClicked (NotifyElemen
|
int nbitems, size; |
int nbitems, size; |
struct menuType *items; |
struct menuType *items; |
char *types, *menuString; |
char *types, *menuString; |
|
View view; |
|
|
|
TtaGetActiveView (&doc, &view); |
|
if (view != 1) |
|
return FALSE; /* let Thot perform normal operation */ |
|
|
doc = event->document; |
doc = event->document; |
t = (XTigerTemplate) Get (Templates_Dic, DocumentMeta[doc]->template_url); |
t = (XTigerTemplate) Get (Templates_Dic, DocumentMeta[doc]->template_url); |
if (!t) |
if (!t) |
return FALSE; // no template ?!?! |
return FALSE; /* let Thot perform normal operation */ |
types = "top end"; |
types = "top end"; |
size = strlen (types); |
size = strlen (types); |
giveItems (types, size, &items, &nbitems); |
giveItems (types, size, &items, &nbitems); |
Line 432 ThotBool RepeatMenuClicked (NotifyElemen
|
Line 446 ThotBool RepeatMenuClicked (NotifyElemen
|
} |
} |
} |
} |
} |
} |
return FALSE; |
return TRUE; /* don't let Thot perform normal operation */ |
#endif /* TEMPLATES */ |
#endif /* TEMPLATES */ |
return TRUE; |
return TRUE; |
} |
} |
Line 446 void OpeningInstance (char *fileName, Do
|
Line 460 void OpeningInstance (char *fileName, Do
|
char *content, *ptr; |
char *content, *ptr; |
gzFile stream; |
gzFile stream; |
char buffer[2000]; |
char buffer[2000]; |
int res, size; |
int res; |
|
|
stream = TtaGZOpen (fileName); |
stream = TtaGZOpen (fileName); |
if (stream != 0) |
if (stream != 0) |