00001 /* 00002 * This file is part of contentLister. 00003 * 00004 * contentLister is free software: you can redistribute it and/or modify 00005 * it under the terms of the GNU General Public License as published by 00006 * the Free Software Foundation, either version 2 of the License, or 00007 * (at your option) any later version. 00008 * 00009 * contentLister is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 * GNU General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU General Public License 00015 * along with this program. If not, see <http://www.gnu.org/licenses/>. 00016 */ 00017 00027 #ifndef __DIST_LIST_WND_H__ 00028 #define __DIST_LIST_WND_H__ 00029 00030 00031 #define DIST_LIST_WND_WIDTH 666 00032 00033 #define DIST_LIST_WND_HEIGHT_SMALL (CLIENT_AREA - LISTER_BOX_BORDER - TITLE_MIN_HEIGHT - LIST_ITEM_SPACING - LISTER_ITEM_HEIGHT - LIST_ITEM_SPACING - LIST_ITEM_SPACING) 00034 #define DIST_LIST_WND_HEIGHT_BIG (CLIENT_AREA - LISTER_BOX_BORDER - LIST_ITEM_SPACING) 00035 00036 00037 #define DIST_LIST_WND_V_SPACING 15 00038 00039 00040 #ifdef __cplusplus 00041 extern "C" 00042 { 00043 #endif // __cplusplus 00044 00045 00046 typedef struct _GtkDistListWnd 00047 { 00048 GtkWidget* parentWnd; 00049 GtkWidget* settingItem; 00050 GtkWidget* selectLabel; 00051 GtkWidget* chkBtnTbl[14]; 00052 GtkWidget* finishLabel; 00053 gint lastSelBtn; // -1: no last selected button 00054 mdsSelType_e selType; 00055 } GtkDistListWnd; 00056 00057 typedef struct 00058 { 00059 gchar* name; 00060 gboolean state; 00061 } distListWnd_selectionItem_t; 00062 00063 00071 void create_dist_list_wnd(GtkWidget *parent); 00072 00080 void dist_list_wnd_clear(void); 00081 00092 erGtkSelectionGroup* dist_list_wnd_add_list(const gchar* display_as, 00093 const gchar* title, 00094 const gchar* instruction, 00095 const gchar** item_tbl); 00096 00104 void dist_list_wnd_goto_page(gint page); 00105 00113 void dist_list_wnd_page_forward(guint offset); 00114 void dist_list_wnd_page_back(guint offset); 00115 00123 gboolean dist_list_wnd_is_visible(void); 00124 00125 00126 #ifdef __cplusplus 00127 } 00128 #endif // __cplusplus 00129 00130 #endif // __DIST_LIST_WND_H__