Remmina - The GTK+ Remote Desktop Client  v1.4.33
Remmina is a remote desktop client written in GTK+, aiming to be useful for system administrators and travellers, who need to work with lots of remote computers in front of either large monitors or tiny netbooks. Remmina supports multiple network protocols in an integrated and consistent user interface. Currently RDP, VNC, NX, XDMCP and SSH are supported.
remmina_string_list.h
Go to the documentation of this file.
1 /*
2  * Remmina - The GTK+ Remote Desktop Client
3  * Copyright (C) 2009 - Vic Lee
4  * Copyright (C) 2014-2015 Antenore Gatta, Fabio Castelli, Giovanni Panozzo
5  * Copyright (C) 2016-2023 Antenore Gatta, Giovanni Panozzo
6  *
7  * This program is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 2 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, write to the Free Software
19  * Foundation, Inc., 51 Franklin Street, Fifth Floor,
20  * Boston, MA 02110-1301, USA.
21  *
22  * In addition, as a special exception, the copyright holders give
23  * permission to link the code of portions of this program with the
24  * OpenSSL library under certain conditions as described in each
25  * individual source file, and distribute linked combinations
26  * including the two.
27  * You must obey the GNU General Public License in all respects
28  * for all of the code used other than OpenSSL. * If you modify
29  * file(s) with this exception, you may extend this exception to your
30  * version of the file(s), but you are not obligated to do so. * If you
31  * do not wish to do so, delete this exception statement from your
32  * version. * If you delete this exception statement from all source
33  * files in the program, then also delete it here.
34  *
35  */
36 
37 #pragma once
38 
39 #include <gtk/gtk.h>
40 
41 typedef gboolean (*RemminaStringListValidationFunc)(const gchar *new_str, gchar **error);
42 
43 typedef struct _RemminaStringListPriv {
45  const gchar * fields_separator;
46  gboolean two_columns;
48 
49 typedef struct _RemminaStringList {
50  GtkBuilder * builder;
51  GtkDialog * dialog;
52 
53  GtkListStore * liststore_items;
54  GtkTreeView * treeview_items;
55  GtkTreeViewColumn * treeviewcolumn_item;
56  GtkTreeSelection * treeview_selection;
57  GtkCellRendererText * cellrenderertext_item1;
58  GtkCellRendererText * cellrenderertext_item2;
59 
60  GtkButton * button_add;
61  GtkButton * button_remove;
62  GtkButton * button_up;
63  GtkButton * button_down;
64 
65  GtkLabel * label_title;
66  GtkLabel * label_status;
67 
70 
71 G_BEGIN_DECLS
72 
73 /* RemminaStringList instance */
74 GtkDialog *remmina_string_list_new(gboolean two_columns, const gchar *fields_separator);
75 /* Load a string list by splitting a string value */
76 void remmina_string_list_set_text(const gchar *text, const gboolean clear_data);
77 /* Get a string value representing the string list */
78 gchar *remmina_string_list_get_text(void);
79 /* Set the dialog titles */
80 void remmina_string_list_set_titles(gchar *title1, gchar *title2);
81 /* Set a function that will be used to validate the new rows */
83 
84 G_END_DECLS
RemminaStringListPriv * priv
GtkCellRendererText * cellrenderertext_item1
RemminaStringListValidationFunc validation_func
struct _RemminaStringListPriv RemminaStringListPriv
struct _RemminaStringList RemminaStringList
GtkTreeViewColumn * treeviewcolumn_item
GtkTreeSelection * treeview_selection
GtkCellRendererText * cellrenderertext_item2
GtkTreeView * treeview_items
void remmina_string_list_set_validation_func(RemminaStringListValidationFunc func)
gboolean(* RemminaStringListValidationFunc)(const gchar *new_str, gchar **error)
void remmina_string_list_set_titles(gchar *title1, gchar *title2)
G_BEGIN_DECLS GtkDialog * remmina_string_list_new(gboolean two_columns, const gchar *fields_separator)
GtkListStore * liststore_items
gchar * remmina_string_list_get_text(void)
void remmina_string_list_set_text(const gchar *text, const gboolean clear_data)