mclient.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. /* $Id: mclient.h,v 1.19 2001/05/03 23:17:47 kilobug Exp $ */
  2. #ifndef __PROLO_MCLIENT_H__
  3. #define __PROLO_MCLIENT_H__
  4. typedef struct _conf_t conf_t;
  5. #include "../general.h"
  6. #include "../gtkutil/gtkutil.h"
  7. #include "mysql.h"
  8. #define STATUT_ABSENT 0
  9. #define STATUT_PRESENT 1
  10. #define STATUT_ZLOCKE 2
  11. #define NOTEBOOK_PAGE_NUM 4
  12. extern conf_t *gl_config;
  13. struct _conf_t
  14. {
  15. MYSQL *mysql;
  16. GtkWidget *bmpl, *mapl, *prgl, *result, *matl; /* CList */
  17. sql_add_t *mapa, *prga;
  18. GtkWidget *window;
  19. GtkWidget *menunb[NOTEBOOK_PAGE_NUM];
  20. GtkNotebook *notebook;
  21. GtkTooltips *tooltips;
  22. char *hostname;
  23. const char *bindir;
  24. const char *gfx_client, *server;
  25. const char *db, *host;
  26. gboolean staff;
  27. };
  28. void init(int argc, char **argv);
  29. void set_my_status(int stat);
  30. void byebye(GtkWidget *widget, void *data);
  31. void create_gtk_stuff();
  32. GtkWidget *create_menubar();
  33. int bmp_sort(GtkCList *clist, gconstpointer ptr1, gconstpointer ptr2);
  34. void bmp_refresh(GtkWidget *wid, void *data);
  35. void bmp_send_message(GtkWidget *wid, void *data);
  36. int map_sort(GtkCList *clist, gconstpointer ptr1, gconstpointer ptr2);
  37. void map_refresh(GtkWidget *wid, void *data);
  38. void map_add(GtkWidget *wid, void *data);
  39. void map_remove(GtkWidget *wid, void *data);
  40. int prg_sort(GtkCList *clist, gconstpointer ptr1, gconstpointer ptr2);
  41. void prg_refresh(GtkWidget *wid, void *data);
  42. void prg_add(GtkWidget *wid, void *data);
  43. void prg_remove(GtkWidget *wid, void *data);
  44. void prg_edit(GtkWidget *wid, void *data);
  45. int mat_sort(GtkCList *clist, gconstpointer ptr1, gconstpointer ptr2);
  46. void mat_refresh(GtkWidget *wid, void *data);
  47. void mat_connect(GtkWidget *wid, void *data);
  48. GtkWidget *start_match_box();
  49. GtkWidget *start_tournois_box();
  50. void map_edit(GtkWidget *wid, void *data);
  51. #endif