aboutsummaryrefslogtreecommitdiff
path: root/src/gns/gnunet-gns-gtk_zone.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gns/gnunet-gns-gtk_zone.c')
-rw-r--r--src/gns/gnunet-gns-gtk_zone.c158
1 files changed, 158 insertions, 0 deletions
diff --git a/src/gns/gnunet-gns-gtk_zone.c b/src/gns/gnunet-gns-gtk_zone.c
new file mode 100644
index 00000000..71160c1d
--- /dev/null
+++ b/src/gns/gnunet-gns-gtk_zone.c
@@ -0,0 +1,158 @@
1/*
2 This file is part of GNUnet
3 (C) 2012 Christian Grothoff (and other contributing authors)
4
5 GNUnet is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published
7 by the Free Software Foundation; either version 2, or (at your
8 option) any later version.
9
10 GNUnet is distributed in the hope that it will be useful, but
11 WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with GNUnet; see the file COPYING. If not, write to the
17 Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 Boston, MA 02111-1307, USA.
19*/
20
21/**
22 * @file src/gns/gnunet-gns-gtk_zone.c
23 * @author Christian Grothoff
24 * @brief everything releated to the zone tree view
25 */
26#include "gnunet_gtk.h"
27
28
29
30
31/**
32 * The user has selected a new record type. Update the
33 * model, possibly invalidating (marking 'red') the existing
34 * value.
35 *
36 * @param renderer updated renderer
37 * @param path the path identifying the edited cell
38 * @param new_iter selected cell in the combo's model (with the record type)
39 * @param user_data unused
40 */
41void
42GNUNET_GNS_GTK_type_cellrenderercombo_changed_cb (GtkCellRendererCombo *combo,
43 gchar *path_string,
44 GtkTreeIter *new_iter,
45 gpointer user_data)
46{
47 GNUNET_break (0); // FIXME, not implemented
48}
49
50
51/**
52 * The user has toggled the 'public' checkmark of a cell. Update the
53 * model.
54 *
55 * @param renderer updated renderer
56 * @param path the path identifying the edited cell
57 * @param user_data unused
58 */
59void
60GNUNET_GNS_GTK_ispublic_cellrenderertoggle_toggled_cb (GtkCellRendererToggle *cell_renderer,
61 gchar *path,
62 gpointer user_data)
63{
64 GNUNET_break (0); // FIXME, not implemented
65}
66
67
68/**
69 * The user has edited a 'expiration' cell. Update the model.
70 *
71 * @param renderer updated renderer
72 * @param path the path identifying the edited cell
73 * @param new_text the new expiration time
74 * @param user_data unused
75 */
76void
77GNUNET_GNS_GTK_expiration_cellrenderertext_edited_cb (GtkCellRendererText *renderer,
78 gchar *path,
79 gchar *new_text,
80 gpointer user_data)
81{
82 GNUNET_break (0); // FIXME, not implemented
83}
84
85
86/**
87 * The user has edited a 'value' cell. Update the model,
88 * including the status on the consistency of the value with
89 * the type.
90 *
91 * @param renderer updated renderer
92 * @param path the path identifying the edited cell
93 * @param new_text the new value
94 * @param user_data unused
95 */
96void
97GNUNET_GNS_GTK_value_cellrenderertext_edited_cb (GtkCellRendererText *renderer,
98 gchar *path,
99 gchar *new_text,
100 gpointer user_data)
101{
102 GNUNET_break (0); // FIXME, not implemented
103}
104
105
106/**
107 * The user has edited a 'name' cell. Update the model (and if needed
108 * create another fresh line for additional records).
109 *
110 * @param renderer updated renderer
111 * @param path the path identifying the edited cell
112 * @param new_text the new name
113 * @param user_data unused
114 */
115void
116GNUNET_GNS_GTK_name_cellrenderertext_edited_cb (GtkCellRendererText *renderer,
117 gchar *path,
118 gchar *new_text,
119 gpointer user_data)
120{
121 GNUNET_break (0); // FIXME, not implemented
122}
123
124
125/**
126 * The zone treeview pop up menu is supposed to be created.
127 * (Note: this is not the only method that might need to be
128 * written to handle events to create pop up menus; right-clicks
129 * might need to be managed separately).
130 *
131 * @param widget the widget
132 * @param user_data unused
133 * @return TRUE if a menu was activated
134 */
135gboolean
136GNUNET_GNS_GTK_main_treeview_popup_menu_cb (GtkWidget *widget,
137 gpointer user_data)
138{
139 GNUNET_break (0); // FIXME, not implemented
140 return FALSE;
141}
142
143
144/**
145 * The zone treeview was realized. Setup the model.
146 *
147 * @param widget the widget
148 * @param user_data unused
149 */
150void
151GNUNET_GNS_GTK_main_treeview_realize_cb (GtkWidget *widget,
152 gpointer user_data)
153{
154 GNUNET_break (0); // FIXME, not implemented
155}
156
157
158/* end of gnunet-gns-gtk_zone.c */