00001 /* 00002 * This file is part of connectionMgr. 00003 * 00004 * connectionMgr 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 * connectionMgr 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 00031 #ifndef _EDIT_PROFILES_H_ 00032 #define _EDIT_PROFILES_H_ 00033 00034 #include <gtk/gtk.h> 00035 #include <gdk/gdkkeysyms.h> 00036 #include <glib.h> 00037 00038 // time-out in seconds before "listitem select" mode exits automatically 00039 #define ITEM_SELECT_TIMEOUT 6 // seconds 00040 #define ITEM_SELECT_TIMER_INTERVAL 500 // milliseconds 00041 #define ITEM_SELECT_TIMEOUT_TICKS ((ITEM_SELECT_TIMEOUT * 1000) / ITEM_SELECT_TIMER_INTERVAL) 00042 00043 #ifdef __cplusplus 00044 extern "C" 00045 { 00046 #endif /* __cplusplus */ 00047 00048 GtkWidget *edit_profiles_create(void); 00049 void edit_profiles_set_text(void); 00050 void edit_profiles_display(void); 00051 00052 char *edit_profiles_default_profilename(void); 00053 00054 void edit_profiles_create_profile(void); 00055 int edit_profiles_get_edited_profile_index(void); 00056 00057 void on_edit_profiles_icon_clicked(int iconID, int iconState); 00058 00059 gboolean on_edit_profiles_keypress(GdkEventKey *event); 00060 00061 #ifdef __cplusplus 00062 } 00063 #endif /* __cplusplus */ 00064 00065 #endif //_EDIT_PROFILES_H_ 00066