Code review of GUI module
[mdictionary] / src / gui / include / ws_gui_callbacks.h
index 4694f3a..32a24ba 100644 (file)
@@ -1,22 +1,32 @@
 /*******************************************************************************
-This file is part of WhiteStork.
+This file is part of mdictionary.
 
-WhiteStork is free software; you can redistribute it and/or modify
+mdictionary is free software; you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
 the Free Software Foundation; either version 2 of the License, or
 (at your option) any later version.
 
-WhiteStork is distributed in the hope that it will be useful, 
+mdictionary is distributed in the hope that it will be useful, 
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 GNU General Public License for more details.
 
 You should have received a copy of the GNU General Public License 
-along with WhiteStork; if not, write to the Free Software
+along with mdictionary; if not, write to the Free Software
 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
 
 Copyright 2006 ComArch S.A.
 *******************************************************************************/
+/** \addtogroup GUI
+ */
+/*@{*/
+/** \file ws_gui_callbacks.h
+ * \brief Declaration of structures used by ws_gui_callbacks.c
+ *
+ * \author Anna Gadomska \<anna.gadomska\@comarch.com\>
+ * \date 05-11-2007
+ * \version 1.0.0
+ */
 #ifndef _WS_GUI_CALLBACKS
 #define _WS_GUI_CALLBACKS 
 
@@ -38,6 +48,9 @@ extern "C" {
 #define TIMER_STOP  FALSE
 
 
+/* added by Dariusz Wiechecki - HISA */
+void ws_gui_search_home_handler(GError *error, GArray *word, gpointer user_data);
+
 /*do dbusa*/
 /** \brief handle dbus signals
  *
@@ -48,6 +61,12 @@ void ws_gui_signal_hander (GError *error, GArray *words, gpointer user_data);
  *
  */
 void ws_dbus_progress_bar(GError *error, GArray *words, gpointer user_data);
+
+/** \brief clean words list
+ *
+ */
+void ws_gui_clear_list (GtkListStore* list, gpointer user_data);
+
 /** \brief handle dbus signal and transfer words to the words list
  *
  */
@@ -65,7 +84,7 @@ void ws_gui_dbus_return_translation (GError *error,
 /** \brief handle dbus signal and load extracted dictionary 
  *
  */
-void ws_dbus_server_return_extracted_dict2(GError *error, 
+void ws_dbus_server_return_extracted_bzip(GError *error, 
                                          GArray *words, 
                                          gpointer user_data);
 
@@ -122,12 +141,6 @@ GtkWidget * create_view_and_model (GArray *words_list, gpointer user_data);
  */
 GtkTreeModel * create_and_fill_model (GArray *words_list, gpointer user_data);
 
-/** \brief handles a signal when user highlight a word from the words list
- *
- */
-void ws_gui_tree_selection_changed(GtkTreeSelection *selection,
-                                   gpointer user_data);
-
 /**  \brief switch view between full screen and normal mode 
 *
 */
@@ -249,6 +262,13 @@ void ws_gui_set_bookmark_menu_items(GtkMenuItem *menuitem, gpointer user_data);
 void ws_gui_read_active_dictionaries(gpointer user_data);
 
 void ws_gui_clear_array(GArray *history);
+
+void ws_gui_view_cursor_changed(GtkTreeView *treeview, gpointer user_data);
+
+void ws_gui_set_toolbar_avail(gpointer user_data);
+
+void ws_refresh_search_results(gpointer user_data);
+
 #ifdef __cplusplus
 }
 #endif