From: Dave West Date: Mon, 5 Nov 2007 00:03:07 +0000 (+0000) Subject: Changes to make notes deleteable... INCOMPLETE.. X-Git-Tag: v7.86~2842 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=1b490c6d558eb7dca490675e4a603a61e02b51a0 Changes to make notes deleteable... INCOMPLETE.. Note icon is now draggable. Added a bit of text to act as a place holder for a trashcan object. If a note is dragged to the trash object the note icon is hidden but the note is not yet deleted. --- diff --git a/webcit/messages.c b/webcit/messages.c index e6ced3fb7..d392b4b69 100644 --- a/webcit/messages.c +++ b/webcit/messages.c @@ -2552,6 +2552,12 @@ void readloop(char *oper) /** end bbview scroller */ } + if (is_notes) + { + wprintf ("\n"); + } + + for (a = 0; a < nummsgs; ++a) { @@ -2594,7 +2600,6 @@ void readloop(char *oper) } } - /** Output loop */ if (displayed_msgs != NULL) { if (bbs_reverse) { @@ -2717,6 +2722,40 @@ void readloop(char *oper) wprintf("\n"); /** end bbview scroller */ } + + if (is_notes) + { +// wprintf ("\n"); + wprintf ("
Drop notes here to remove them.
\n"); + wprintf ("\n"); + } + + DONE: if (is_tasks) { diff --git a/webcit/notes.c b/webcit/notes.c index f6e295154..ffd6f33af 100644 --- a/webcit/notes.c +++ b/webcit/notes.c @@ -23,8 +23,7 @@ void display_note(long msgnum) int in_text = 0; int i, len; - wprintf("\n"); - +// wprintf("\n"); serv_printf("MSG0 %ld", msgnum); serv_getln(buf, sizeof buf); if (buf[0] != '1') { @@ -58,6 +57,26 @@ void display_note(long msgnum) /** Make it HTML-happy and print it. */ stresc(display_notetext, SIZ, notetext, 0, 0); +/* Lets try it as a draggable */ + if (!IsEmptyStr(eid)) { + wprintf ("\"Note\"\n"); + wprintf ("\n"); + } + else { + wprintf ("\n"); + wprintf ("\n"); + } + if (!IsEmptyStr(eid)) { wprintf("%s
\n", eid, display_notetext); }