4 * $TOG: Undelete.hh /main/6 1998/09/02 15:58:26 mgreess $
6 * RESTRICTED CONFIDENTIAL INFORMATION:
8 * The information in this document is subject to special
9 * restrictions in a confidential disclosure agreement between
10 * HP, IBM, Sun, USL, SCO and Univel. Do not distribute this
11 * document outside HP, IBM, Sun, USL, SCO, or Univel without
12 * Sun's specific written approval. This document and all copies
13 * and derivative works thereof must be returned or destroyed at
16 * Copyright 1993 Sun Microsystems, Inc. All rights reserved.
24 #include "DialogShell.h"
25 #include "MsgScrollingList.hh"
28 /* UNDEL_* msgid 600 - 699
30 #define UNDEL_SENDER 600
32 #define UNDEL_DATE 602
33 #define UNDEL_SIZE 603
34 #define UNDEL_UNDEL 604
35 #define UNDEL_CLOSE 605
36 #define UNDEL_EXIT 606
37 #define UNDEL_OKBUT 607
38 #define UNDEL_DLGTTL 608
42 class UndelMsgScrollingList : public MsgScrollingList {
44 UndelMsgScrollingList ( RoamMenuWindow *, Widget, char * );
45 ~UndelMsgScrollingList ();
46 void extended_selection(DtMailEnv &, int);
47 void insertMsg(DtMailMessageHandle);
48 void insertMsg(DtMailEnv &, MsgStruct *);
49 void loadMsgs(DtMailEnv &, MsgHndArray *, int);
51 virtual void deleteSelected(Boolean silent = TRUE);
55 class UndelFromListDialog : public DialogShell {
57 UndelFromListDialog (char *, RoamMenuWindow *);
58 ~UndelFromListDialog();
59 Widget createWorkArea(Widget);
60 virtual void initialize();
68 void insertMsg(DtMailEnv &, MsgStruct *);
69 void loadMsgs(DtMailEnv &, MsgHndArray *, int);
73 UndelMsgScrollingList *undelList() { return _list; }
74 void addToRowOfButtons();
78 void replaceItems(XmString * items, int num_items) {
80 XmListReplaceItemsPos(_list->get_scrolling_list(), items, num_items, 1);
85 Cmd *_undelete_button;
88 UndelMsgScrollingList *_list;
89 Widget *_undel_list_button;
90 Widget rowOfLabels, rowOfButtons;
91 Widget rowOfMessageStatus;
92 RoamMenuWindow *my_owner;