$Log$
+Revision 611.12 2005/06/14 01:59:43 ajc
+* 16x16 icons in the new tree view. Nice!
+
Revision 611.11 2005/06/13 22:05:54 ajc
* Finished the initial NanoTree integration. TODO: use a different icon
for each node depending on the view set for that room.
1998-12-03 Nathan Bryant <bryant@cs.usm.maine.edu>
* webserver.c: warning fix
+
int hasnewmsgs;
int is_mailbox;
int selectable;
+ int view;
};
char *viewdefs[] = {
" \n"
" var closedGif = 'static/folder_closed.gif'; \n"
" var openGif = 'static/folder_open.gif'; \n"
- " var pageIcon = 'static/page16x16.gif'; \n"
- " var userIcon = 'static/user_16x16.gif'; \n"
- " var helpIcon = 'static/help_16x16.gif'; \n"
" \n"
" rootNode = new TreeNode(1, 'root node - hide'); \n"
);
if (has_subfolders) {
wprintf("new Array(closedGif, openGif)");
}
+ else if (fold[i].view == VIEW_ADDRESSBOOK) {
+ wprintf("'static/savecontact_16x.gif'");
+ }
+ else if (fold[i].view == VIEW_CALENDAR) {
+ wprintf("'static/calarea_16x.gif'");
+ }
+ else if (fold[i].view == VIEW_TASKS) {
+ wprintf("'static/taskmanag_16x.gif'");
+ }
+ else if (fold[i].view == VIEW_NOTES) {
+ wprintf("'static/storenotes_16x.gif'");
+ }
+ else if (fold[i].view == VIEW_MAILBOX) {
+ wprintf("'static/privatemess_16x.gif'");
+ }
else {
- wprintf("pageIcon");
+ wprintf("'static/chatrooms_16x.gif'");
}
wprintf(", '");
urlescputs(fold[i].name);
if (flags & QR_MAILBOX) {
fold[max_folders].is_mailbox = 1;
}
+ fold[max_folders].view = extract_int(buf, 6);
room_to_folder(fold[max_folders].name,
fold[max_folders].room,
fold[max_folders].floor,