1 #ifndef PROFILEGUI_H
2 #define PROFILEGUI_H
3 /*
4     roxterm - VTE/GTK terminal emulator with tabs
5     Copyright (C) 2004-2015 Tony Houghton <h@realh.co.uk>
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., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
20 */
21 
22 
23 #ifndef DEFNS_H
24 #include "defns.h"
25 #endif
26 
27 /* Editing of a Profile with a GUI (using GtkBuilder) */
28 
29 typedef struct _ProfileGUI ProfileGUI;
30 
31 /* Loads a Profile and creates a working dialog box for it.
32  * Creates new profile if it doesn't already exist */
33 ProfileGUI *profilegui_open(const char *profile_name);
34 
35 void profilegui_delete(ProfileGUI *);
36 
37 /* Handlers declared extern for GtkBuilder */
38 void on_ssh_entry_activate(GtkEntry * entry, ProfileGUI * pg);
39 void on_ssh_host_changed(GtkWidget * widget, ProfileGUI *pg);
40 void on_edit_ssh_clicked(GtkWidget * widget, ProfileGUI *pg);
41 void on_Profile_Editor_destroy(GtkWidget * widget, ProfileGUI * pg);
42 void on_Profile_Editor_response(GtkWidget *widget, int response,
43         ProfileGUI *pg);
44 void on_Profile_Editor_close(GtkWidget * widget, ProfileGUI * pg);
45 void on_font_set(GtkFontButton * fontbutton, ProfileGUI * pg);
46 void on_entry_activate(GtkEntry * entry, ProfileGUI * pg);
47 void on_profile_notebook_switch_page(GtkNotebook * notebook, GtkWidget *page,
48         guint page_num, ProfileGUI * pg);
49 void on_bgtype_toggled(GtkToggleButton *button, ProfileGUI *pg);
50 void on_command_toggled(GtkToggleButton *button, ProfileGUI *pg);
51 void on_close_buttons_toggled(GtkToggleButton *button, ProfileGUI *pg);
52 void on_cursor_blinks_toggled(GtkToggleButton *button, ProfileGUI *pg);
53 void on_bgimg_chosen(GtkFileChooser *chooser, ProfileGUI *pg);
54 void on_reset_compat_clicked(GtkButton *button, ProfileGUI *pg);
55 void on_cell_size_toggled(GtkToggleButton * button, ProfileGUI *pg);
56 
57 #endif /* PROFILEGUI_H */
58 
59 /* vi:set sw=4 ts=4 noet cindent cino= */
60