* 16x16 icons in the new tree view. Nice!
authorArt Cancro <ajc@citadel.org>
Tue, 14 Jun 2005 01:59:46 +0000 (01:59 +0000)
committerArt Cancro <ajc@citadel.org>
Tue, 14 Jun 2005 01:59:46 +0000 (01:59 +0000)
webcit/ChangeLog
webcit/roomops.c
webcit/static/calarea_16x.gif [new file with mode: 0644]
webcit/static/chatrooms_16x.gif [new file with mode: 0644]
webcit/static/help_16x16.gif [deleted file]
webcit/static/privatemess_16x.gif [new file with mode: 0644]
webcit/static/savecontact_16x.gif [new file with mode: 0644]
webcit/static/storenotes_16x.gif [new file with mode: 0644]
webcit/static/taskmanag_16x.gif [new file with mode: 0644]
webcit/static/user_16x16.gif [deleted file]

index 8cc2a799e1c3427131622304e5a9804432179acc..031c8bcf049b6af7ae0838046d93f67608853150 100644 (file)
@@ -1,4 +1,7 @@
 $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.
@@ -2582,3 +2585,4 @@ Sun Dec  6 19:50:55 EST 1998 Art Cancro <ajc@uncnsrd.mt-kisco.ny.us>
 
 1998-12-03 Nathan Bryant <bryant@cs.usm.maine.edu>
        * webserver.c: warning fix
+
index 7614b607460a07144edf2e2bae5eb5a8311f873c..d859aa2bc12d4c1ee654943a365291e64b0efac6 100644 (file)
@@ -32,6 +32,7 @@ struct folder {
        int hasnewmsgs;
        int is_mailbox;
        int selectable;
+       int view;
 };
 
 char *viewdefs[] = {
@@ -2227,9 +2228,6 @@ void do_folder_view(struct folder *fold, int max_folders, int num_floors) {
                "                                                       \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"
        );
@@ -2273,8 +2271,23 @@ void do_folder_view(struct folder *fold, int max_folders, int num_floors) {
                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);
@@ -2450,6 +2463,7 @@ void list_all_rooms_by_floor(char *viewpref) {
                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,
diff --git a/webcit/static/calarea_16x.gif b/webcit/static/calarea_16x.gif
new file mode 100644 (file)
index 0000000..ac364d9
Binary files /dev/null and b/webcit/static/calarea_16x.gif differ
diff --git a/webcit/static/chatrooms_16x.gif b/webcit/static/chatrooms_16x.gif
new file mode 100644 (file)
index 0000000..ba3b5fc
Binary files /dev/null and b/webcit/static/chatrooms_16x.gif differ
diff --git a/webcit/static/help_16x16.gif b/webcit/static/help_16x16.gif
deleted file mode 100644 (file)
index e65b683..0000000
Binary files a/webcit/static/help_16x16.gif and /dev/null differ
diff --git a/webcit/static/privatemess_16x.gif b/webcit/static/privatemess_16x.gif
new file mode 100644 (file)
index 0000000..27fcfe0
Binary files /dev/null and b/webcit/static/privatemess_16x.gif differ
diff --git a/webcit/static/savecontact_16x.gif b/webcit/static/savecontact_16x.gif
new file mode 100644 (file)
index 0000000..51bf487
Binary files /dev/null and b/webcit/static/savecontact_16x.gif differ
diff --git a/webcit/static/storenotes_16x.gif b/webcit/static/storenotes_16x.gif
new file mode 100644 (file)
index 0000000..9ce5a84
Binary files /dev/null and b/webcit/static/storenotes_16x.gif differ
diff --git a/webcit/static/taskmanag_16x.gif b/webcit/static/taskmanag_16x.gif
new file mode 100644 (file)
index 0000000..83f9683
Binary files /dev/null and b/webcit/static/taskmanag_16x.gif differ
diff --git a/webcit/static/user_16x16.gif b/webcit/static/user_16x16.gif
deleted file mode 100644 (file)
index 0533d2b..0000000
Binary files a/webcit/static/user_16x16.gif and /dev/null differ