root / src / prefs_display_items.h @ 1507
History | View | Annotate | Download (2.2 kB)
| 1 | 1502 | hiro | /*
|
|---|---|---|---|
| 2 | 1502 | hiro | * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client |
| 3 | 1502 | hiro | * Copyright (C) 1999-2007 Hiroyuki Yamamoto |
| 4 | 1502 | hiro | * |
| 5 | 1502 | hiro | * This program is free software; you can redistribute it and/or modify |
| 6 | 1502 | hiro | * it under the terms of the GNU General Public License as published by |
| 7 | 1502 | hiro | * the Free Software Foundation; either version 2 of the License, or |
| 8 | 1502 | hiro | * (at your option) any later version. |
| 9 | 1502 | hiro | * |
| 10 | 1502 | hiro | * This program is distributed in the hope that it will be useful, |
| 11 | 1502 | hiro | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | 1502 | hiro | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | 1502 | hiro | * GNU General Public License for more details. |
| 14 | 1502 | hiro | * |
| 15 | 1502 | hiro | * You should have received a copy of the GNU General Public License |
| 16 | 1502 | hiro | * along with this program; if not, write to the Free Software |
| 17 | 1502 | hiro | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
| 18 | 1502 | hiro | */ |
| 19 | 1502 | hiro | |
| 20 | 1502 | hiro | #ifndef __PREFS_DISPLAY_ITEMS_H__
|
| 21 | 1502 | hiro | #define __PREFS_DISPLAY_ITEMS_H__
|
| 22 | 1502 | hiro | |
| 23 | 1502 | hiro | #include <glib.h> |
| 24 | 1502 | hiro | #include <gtk/gtkwidget.h> |
| 25 | 1502 | hiro | |
| 26 | 1502 | hiro | typedef struct _PrefsDisplayItem PrefsDisplayItem; |
| 27 | 1502 | hiro | typedef struct _PrefsDisplayItemsDialog PrefsDisplayItemsDialog; |
| 28 | 1502 | hiro | |
| 29 | 1502 | hiro | struct _PrefsDisplayItem
|
| 30 | 1502 | hiro | {
|
| 31 | 1502 | hiro | gint id; |
| 32 | 1502 | hiro | gchar *name; |
| 33 | 1502 | hiro | gchar *label; |
| 34 | 1502 | hiro | gboolean allow_multiple; |
| 35 | 1502 | hiro | gboolean in_use; |
| 36 | 1502 | hiro | }; |
| 37 | 1502 | hiro | |
| 38 | 1502 | hiro | struct _PrefsDisplayItemsDialog
|
| 39 | 1502 | hiro | {
|
| 40 | 1502 | hiro | GtkWidget *window; |
| 41 | 1502 | hiro | |
| 42 | 1504 | hiro | GtkWidget *label; |
| 43 | 1504 | hiro | |
| 44 | 1502 | hiro | GtkWidget *stock_clist; |
| 45 | 1502 | hiro | GtkWidget *shown_clist; |
| 46 | 1502 | hiro | |
| 47 | 1502 | hiro | GtkWidget *add_btn; |
| 48 | 1502 | hiro | GtkWidget *remove_btn; |
| 49 | 1502 | hiro | GtkWidget *up_btn; |
| 50 | 1502 | hiro | GtkWidget *down_btn; |
| 51 | 1502 | hiro | |
| 52 | 1502 | hiro | GtkWidget *default_btn; |
| 53 | 1502 | hiro | |
| 54 | 1502 | hiro | GtkWidget *confirm_area; |
| 55 | 1502 | hiro | GtkWidget *ok_btn; |
| 56 | 1502 | hiro | GtkWidget *cancel_btn; |
| 57 | 1502 | hiro | |
| 58 | 1503 | hiro | const PrefsDisplayItem *all_items;
|
| 59 | 1503 | hiro | GList *available_items; |
| 60 | 1502 | hiro | const gint *default_visible_ids;
|
| 61 | 1502 | hiro | GList *visible_items; |
| 62 | 1502 | hiro | |
| 63 | 1502 | hiro | gboolean finished; |
| 64 | 1502 | hiro | gboolean cancelled; |
| 65 | 1502 | hiro | }; |
| 66 | 1502 | hiro | |
| 67 | 1502 | hiro | PrefsDisplayItemsDialog *prefs_display_items_dialog_create (void);
|
| 68 | 1502 | hiro | |
| 69 | 1503 | hiro | void prefs_display_items_dialog_set_available
|
| 70 | 1503 | hiro | (PrefsDisplayItemsDialog *dialog, |
| 71 | 1503 | hiro | PrefsDisplayItem *all_items, |
| 72 | 1503 | hiro | const gint *ids);
|
| 73 | 1502 | hiro | void prefs_display_items_dialog_set_default_visible
|
| 74 | 1502 | hiro | (PrefsDisplayItemsDialog *dialog, |
| 75 | 1502 | hiro | const gint *ids);
|
| 76 | 1502 | hiro | void prefs_display_items_dialog_set_visible
|
| 77 | 1502 | hiro | (PrefsDisplayItemsDialog *dialog, |
| 78 | 1502 | hiro | const gint *ids);
|
| 79 | 1502 | hiro | |
| 80 | 1502 | hiro | void prefs_display_items_dialog_destroy (PrefsDisplayItemsDialog *dialog);
|
| 81 | 1502 | hiro | |
| 82 | 1502 | hiro | #endif /* __PREFS_DISPLAY_ITEMS_H__ */ |