2005-11-22 12:26:26 +00:00
|
|
|
/*
|
|
|
|
* dialogs.h - this file is part of Geany, a fast and lightweight IDE
|
|
|
|
*
|
2008-01-06 18:11:57 +00:00
|
|
|
* Copyright 2005-2008 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
|
|
|
|
* Copyright 2006-2008 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
|
2005-11-22 12:26:26 +00:00
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
2006-07-25 12:46:08 +00:00
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
2005-11-22 12:26:26 +00:00
|
|
|
*
|
2005-12-11 02:16:02 +00:00
|
|
|
* $Id$
|
2005-11-22 12:26:26 +00:00
|
|
|
*/
|
|
|
|
|
2008-02-17 18:00:42 +00:00
|
|
|
/**
|
|
|
|
* @file dialogs.h
|
|
|
|
* File related dialogs, miscellaneous dialogs, font dialog.
|
|
|
|
**/
|
|
|
|
|
2005-11-22 12:26:26 +00:00
|
|
|
|
|
|
|
#ifndef GEANY_DIALOGS_H
|
|
|
|
#define GEANY_DIALOGS_H 1
|
|
|
|
|
2007-12-21 13:09:09 +00:00
|
|
|
typedef void (*InputCallback)(const gchar *);
|
|
|
|
|
|
|
|
|
2008-02-20 11:24:23 +00:00
|
|
|
void dialogs_show_open_file(void);
|
2005-11-22 12:26:26 +00:00
|
|
|
|
2008-02-20 11:24:23 +00:00
|
|
|
gboolean dialogs_show_save_as(void);
|
2005-11-22 12:26:26 +00:00
|
|
|
|
2008-06-15 13:35:48 +00:00
|
|
|
gboolean dialogs_show_unsaved_file(GeanyDocument *doc);
|
2005-11-22 12:26:26 +00:00
|
|
|
|
2008-02-20 11:24:23 +00:00
|
|
|
void dialogs_show_open_font(void);
|
2005-11-22 12:26:26 +00:00
|
|
|
|
2008-02-20 11:24:23 +00:00
|
|
|
void dialogs_show_word_count(void);
|
2005-11-22 12:26:26 +00:00
|
|
|
|
2006-07-27 20:57:13 +00:00
|
|
|
void dialogs_show_color(gchar *colour);
|
2005-11-22 12:26:26 +00:00
|
|
|
|
2007-12-21 13:09:09 +00:00
|
|
|
GtkWidget *dialogs_show_input(const gchar *title, const gchar *label_text,
|
|
|
|
const gchar *default_text, gboolean persistent, InputCallback input_cb);
|
2005-11-22 12:26:26 +00:00
|
|
|
|
2008-02-20 11:24:23 +00:00
|
|
|
void dialogs_show_goto_line(void);
|
2005-11-22 12:26:26 +00:00
|
|
|
|
2008-06-15 13:35:48 +00:00
|
|
|
void dialogs_show_file_properties(GeanyDocument *doc);
|
2006-02-22 13:46:20 +00:00
|
|
|
|
2006-10-21 11:01:34 +00:00
|
|
|
gboolean dialogs_show_question(const gchar *text, ...) G_GNUC_PRINTF (1, 2);
|
2006-04-27 18:06:35 +00:00
|
|
|
|
2007-07-04 17:08:53 +00:00
|
|
|
gboolean dialogs_show_question_full(GtkWidget *parent, const gchar *yes_btn, const gchar *no_btn,
|
|
|
|
const gchar *extra_text, const gchar *main_text, ...) G_GNUC_PRINTF (5, 6);
|
2006-08-18 17:22:57 +00:00
|
|
|
|
2007-04-23 12:30:27 +00:00
|
|
|
void dialogs_show_msgbox(gint type, const gchar *text, ...) G_GNUC_PRINTF (2, 3);
|
2006-10-25 14:38:48 +00:00
|
|
|
|
2007-11-29 18:08:20 +00:00
|
|
|
void dialogs_show_msgbox_with_secondary(gint type, const gchar *text, const gchar *secondary);
|
|
|
|
|
2005-11-22 12:26:26 +00:00
|
|
|
#endif
|