1 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ |
---|
2 | |
---|
3 | /* |
---|
4 | * mail-search.h |
---|
5 | * |
---|
6 | * Copyright (C) 2001 Ximian, Inc. |
---|
7 | * |
---|
8 | * Developed by Jon Trowbridge <trow@ximian.com> |
---|
9 | */ |
---|
10 | |
---|
11 | /* |
---|
12 | * This program is free software; you can redistribute it and/or |
---|
13 | * modify it under the terms of version 2 of the GNU General Public |
---|
14 | * License as published by the Free Software Foundation. |
---|
15 | * |
---|
16 | * This program is distributed in the hope that it will be useful, |
---|
17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
19 | * GNU General Public License for more details. |
---|
20 | * |
---|
21 | * You should have received a copy of the GNU General Public License |
---|
22 | * along with this program; if not, write to the Free Software |
---|
23 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 |
---|
24 | * USA. |
---|
25 | */ |
---|
26 | |
---|
27 | #ifndef _MAIL_SEARCH_H_ |
---|
28 | #define _MAIL_SEARCH_H_ |
---|
29 | |
---|
30 | #ifdef _cplusplus |
---|
31 | extern "C" { |
---|
32 | #pragma } |
---|
33 | #endif /* _cplusplus */ |
---|
34 | |
---|
35 | #include <gnome.h> |
---|
36 | #include "mail-display.h" |
---|
37 | |
---|
38 | #define MAIL_SEARCH_TYPE (mail_search_get_type ()) |
---|
39 | #define MAIL_SEARCH(o) (GTK_CHECK_CAST ((o), MAIL_SEARCH_TYPE, MailSearch)) |
---|
40 | #define MAIL_SEARCH_CLASS(k) (GTK_CHECK_CLASS_CAST ((k), MAIL_SEARCH_TYPE, MailSearch)) |
---|
41 | #define IS_MAIL_SEARCH(o) (GTK_CHECK_TYPE ((o), MAIL_SEARCH_TYPE)) |
---|
42 | #define IS_MAIL_SEARCH_CLASS(k) (GTK_CHECK_CLASS_TYPE ((k), MAIL_SEARCH_TYPE)) |
---|
43 | |
---|
44 | typedef struct _MailSearch MailSearch; |
---|
45 | typedef struct _MailSearchClass MailSearchClass; |
---|
46 | |
---|
47 | struct _MailSearch { |
---|
48 | GnomeDialog parent; |
---|
49 | |
---|
50 | MailDisplay *mail; |
---|
51 | |
---|
52 | GtkWidget *entry; |
---|
53 | GtkWidget *msg_frame; |
---|
54 | GtkWidget *count_label; |
---|
55 | |
---|
56 | gboolean search_forward, case_sensitive; |
---|
57 | gchar *last_search; |
---|
58 | |
---|
59 | guint begin_handler; |
---|
60 | guint match_handler; |
---|
61 | }; |
---|
62 | |
---|
63 | struct _MailSearchClass { |
---|
64 | GnomeDialogClass parent_class; |
---|
65 | |
---|
66 | }; |
---|
67 | |
---|
68 | GtkType mail_search_get_type (void); |
---|
69 | |
---|
70 | void mail_search_construct (MailSearch *, MailDisplay *); |
---|
71 | GtkWidget *mail_search_new (MailDisplay *); |
---|
72 | |
---|
73 | |
---|
74 | #ifdef _cplusplus |
---|
75 | } |
---|
76 | #endif /* _cplusplus */ |
---|
77 | |
---|
78 | #endif /* _MAIL_SEARCH_H_ */ |
---|
79 | |
---|