Version bump.
[geany-mirror.git] / src / dialogs.h
blob0facb9edd3857d7c6faec0ba3c35dfa51968e699
1 /*
2 * dialogs.h - this file is part of Geany, a fast and lightweight IDE
4 * Copyright 2005-2010 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
5 * Copyright 2006-2010 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
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.
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.
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, Boston, MA 02110-1301, USA.
21 * $Id$
24 /**
25 * @file dialogs.h
26 * File related dialogs, miscellaneous dialogs, font dialog.
27 **/
30 #ifndef GEANY_DIALOGS_H
31 #define GEANY_DIALOGS_H 1
33 typedef void (*GeanyInputCallback)(const gchar *text);
36 void dialogs_show_open_file(void);
38 gboolean dialogs_show_save_as(void);
40 gboolean dialogs_show_unsaved_file(GeanyDocument *doc);
42 void dialogs_show_open_font(void);
44 void dialogs_show_word_count(void);
46 void dialogs_show_color(gchar *colour);
48 gchar *dialogs_show_input(const gchar *title, const gchar *label_text,
49 const gchar *default_text);
51 gchar *dialogs_show_input_goto_line(const gchar *title, const gchar *label_text,
52 const gchar *default_text);
54 GtkWidget *dialogs_show_input_persistent(const gchar *title, const gchar *label_text,
55 const gchar *default_text, GeanyInputCallback input_cb);
57 gboolean dialogs_show_input_numeric(const gchar *title, const gchar *label_text,
58 gdouble *value, gdouble min, gdouble max, gdouble step);
60 void dialogs_show_file_properties(GeanyDocument *doc);
62 gboolean dialogs_show_question(const gchar *text, ...) G_GNUC_PRINTF (1, 2);
64 gboolean dialogs_show_question_full(GtkWidget *parent, const gchar *yes_btn, const gchar *no_btn,
65 const gchar *extra_text, const gchar *main_text, ...) G_GNUC_PRINTF (5, 6);
67 gint dialogs_show_prompt(GtkWidget *parent,
68 const gchar *btn_1, GtkResponseType response_1,
69 const gchar *btn_2, GtkResponseType response_2,
70 const gchar *btn_3, GtkResponseType response_3,
71 const gchar *extra_text, const gchar *main_text, ...) G_GNUC_PRINTF (9, 10);
73 void dialogs_show_msgbox(GtkMessageType type, const gchar *text, ...) G_GNUC_PRINTF (2, 3);
75 void dialogs_show_msgbox_with_secondary(GtkMessageType type, const gchar *text, const gchar *secondary);
77 #endif